---
canonical: "https://firewall.lpm.dev/npm/code-i18n-agent/v/0.1.2"
markdown: "https://firewall.lpm.dev/npm/code-i18n-agent/v/0.1.2.md"
package: "code-i18n-agent"
report_status: "published"
title: "code-i18n-agent@0.1.2 npm security report"
verdict: "suspicious"
version: "0.1.2"
---

# code-i18n-agent@0.1.2 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Flagged — allowed with a warning** — Allowed by default policy, but 12 finding(s) warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Matched warn-list
- **Public report status:** Published
- **Threat category:** Destructive Action
- **Selected version:** 0.1.2
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

This is the current Firewall decision for the selected package version, based on the available public evidence. Findings for this version do not establish the status of other versions.

AI assessment: suspicious; recommendation: downgrade to warn. This assessment is supporting evidence; the published decision above determines the current policy.

The package’s CLI is also its main module and runs a default internationalization workflow when imported. Because it can write state, locale resources, and a report before prompting before source replacement, this is a real import-time side-effect risk, though the behavior otherwise fits the package’s stated purpose.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 91.0%
- **Started:** 2026-11-03T00:42:04.055Z
- **Finished:** 2026-11-03T00:42:59.114Z
- **Download time:** 517 ms
- **Static scan time:** 627 ms
- **AI review time:** 53913 ms
- **Total time:** 55059 ms

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

### Published attack-surface review

- **Summary:** Importing the declared main entry can start a default project run that writes project artifacts before asking before source replacement.

- **Trigger:** A consumer imports or requires the package without a CLI command in process.argv.

- **Impact:** An import can unexpectedly create or update project files. If an LLM key is configured, the default translation step may also send project text to the configured LLM endpoint.

- **Evidence paths:** package.json, src/cli.ts, src/agent/pipeline.ts

- **Review source:** ai\_review

- **Reviewed:** 2026-11-03T00:42:59.114Z

### AI review details

- **Review stage:** source\_first\_review

- **Mechanism:** The main entry is the CLI, which calls main() unconditionally and defaults to run; the pipeline saves state, updates locale resources, and writes a report before its source-replacement confirmation.

- **Rationale:** The package’s CLI is also its main module and runs a default internationalization workflow when imported. Because it can write state, locale resources, and a report before prompting before source replacement, this is a real import-time side-effect risk, though the behavior otherwise fits the package’s stated purpose.

- **Files touched:** .i18n-agent/state.json, src/locales/\*, output/report.md, project source files (after replacement confirmation)

- **Network endpoints:** https://api.openai.com/v1/chat/completions (when an LLM key is configured; base URL can be overridden)

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 91.0%

- **Recommended action:** downgrade\_to\_warn

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** The package declares dist/cli.js as its main entrypoint., The CLI invokes main() without an import guard, and main defaults to the run command when no command is supplied., A default pipeline run includes scan, classify, extract, translate, replace, validate, and report steps., Before source-replacement confirmation, the pipeline can save state, update locale resources, and write a report in the project., The confirmation callback guards the replacement stage; it does not guard those earlier writes.

- **Evidence against:** The package is described as an internationalization tool and exposes a CLI for that purpose., Source replacement is normally followed by a confirmation prompt unless --yes or dry-run is supplied.

## Affected versions and remediation

This report applies to code-i18n-agent@0.1.2.

- Review the evidence and your use of code-i18n-agent@0.1.2 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.

## Public findings

### 1. Low: Non Install Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 80.0%

Package declares lifecycle scripts that are not normally run for registry tarball installs.

### 2. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 3. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/mcp-server.js
- **Public source:** [View source](<https://unpkg.com/code-i18n-agent@0.1.2/dist/mcp-server.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L54: const readline = __importStar(require("readline"));
L55: const cp = __importStar(require("child_process"));
L56: const path = __importStar(require("path"));
```

### 4. High: Shell
- **Category:** Source
- **Confidence:** 85.0%

Package source references shell execution.

### 5. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 6. Medium: Environment Vars
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 7. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 8. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** dist/mcp-server.js
- **Public source:** [View source](<https://unpkg.com/code-i18n-agent@0.1.2/dist/mcp-server.js>)

Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.

Public source snippet (untrusted):

```javascript
Cross-file remote execution chain: dist/mcp-server.js spawns dist/config.js; helper contains network access plus dynamic code execution.
L54: const readline = __importStar(require("readline"));
L55: const cp = __importStar(require("child_process"));
L56: const path = __importStar(require("path"));
...
L171: // 每行一个 JSON，行尾必须有 \n（MCP stdio 帧分隔）
L172: process.stdout.write(JSON.stringify(msg) + '\n');
L173: }
...
L191: return new Promise((resolve) => {
L192: const cliPath = path.join(__dirname, 'cli.js');
L193: const child = cp.spawn(process.execPath, [cliPath, ...args], {
L194: cwd: process.cwd(),
L195: env: process.env,
L196: windowsHide: true
```

### 9. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 10. Low: Url Strings
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 11. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/code-i18n-agent@0.1.2/package.json>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```json
stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 1
```

### 12. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** src/mcp-server.ts
- **Public source:** [View source](<https://unpkg.com/code-i18n-agent@0.1.2/src/mcp-server.ts>)

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

Public source snippet (untrusted):

```typescript
matchType = previous_version_dangerous_delta
matchedPackage = code-i18n-agent@0.1.0
matchedIdentity = npm:Y29kZS1pMThuLWFnZW50:0.1.0
similarity = 1.000
summary = stored previous version shares package body but lacks this dangerous source file
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** prepublishOnly
- **Dependencies:** 1
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 1
- **Published dependency-graph edges:** 1

### Published dependency entries
- typescript ~5.7.3 (Dependency)

## Package metadata
- **Package:** code-i18n-agent
- **Ecosystem:** npm
- **Version:** 0.1.2
- **License:** MIT
- **Version published:** 2026-09-01T03:24:16.610Z
- **Package first seen:** 2026-09-01T03:20:39.356Z
- **Package last seen:** 2026-11-03T00:43:09.003Z
- **Known versions:** 7
- **Latest version:** 0.1.9
- **Appeal under review:** No
- **Description:** 智能体：自动将代码项目国际化的扫描-分类-提取-翻译-替换-验证管线（不限于 ERP，适配 Vue/React/TS/JS/HTML）
- **Maintainers:** npm66
- **Keywords:** i18n, internationalization, agent, ast, mcp, code
- **Runtime engines:** node: \>=18
- **Artifact files:** 43
- **Artifact unpacked size:** 248,199 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/code-i18n-agent/v/0.1.2>)
