code-i18n-agent@0.1.6
智能体:自动将代码项目国际化的扫描-分类-提取-翻译-替换-验证管线(不限于 ERP,适配 Vue/React/TS/JS/HTML)
AI Security Review
scanned 2d ago · by lpm-firewall-aiImporting the declared main entry runs the full workflow, and the CLI automatically uses an available OpenAI key without requiring the documented --llm opt-in. This can send translation requests and incur charges merely from importing the package, so it meets the rule for automatic use of a user's key.
Decision evidence
public snapshot- package.json maps the package main entry to dist/cli.js.
- The CLI defaults to the full run command and invokes main() unconditionally, so importing the package starts the workflow in the current directory.
- The CLI loads an OpenAI key from the environment even when --llm was not provided.
- The LLM client sends a bearer key and request body to the configured endpoint, which defaults to api.openai.com.
- The default workflow includes translation through the LLM client, creating unrequested API usage and possible charges on import.
- The package describes itself as an i18n CLI, and translation is within its stated purpose.
- The README presents --llm as the way to enable real LLM translation, though the CLI also activates it when an API key is present.
- The package has no preinstall, install, or postinstall script; its prepublishOnly script is for building and tests.
Source & flagged code
5 flaggedPackage source references child process execution.
dist/mcp-server.jsView on unpkg · L54Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/mcp-server.jsView on unpkg · L54Findings
Affected versions and remediation
This report applies to code-i18n-agent@0.1.6.
See all versions of code-i18n-agent for other recorded verdicts.
- Avoid installing code-i18n-agent@0.1.6. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.