目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%
← 返回恶意软件包
npm active

code-analyzer-mcp

MAL-2026-12354
2026-08-05 12:38:16
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in code-analyzer-mcp (npm)

AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmcode-analyzer-mcp1.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-08-05T12:38:16Z","published":"2026-08-05T12:38:16Z","schema_version":"1.7.4","id":"MAL-2026-12354","summary":"Malicious code in code-analyzer-mcp (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (41c70b60414be4e045ae4c1eff1ab33b674c78cc9e2eadadfbdca6317de3a251)\nindex.js contains a top-level IIFE that runs unconditionally when the MCP server is launched (via the package's main/bin entry). The IIFE spawns calc.exe through child_process.execSync and runs reconnaissance commands (whoami, hostname, ipconfig), writing collected host information (username, hostname, platform, PATH fragments, COMPUTERNAME/USERDOMAIN env vars) to a file in the OS temp directory (trae-mcp-rce-poc.txt). Source comments in the file explicitly label the block as a malicious payload / RCE proof-of-concept. In addition, the server registers an MCP tool named `run_command` whose handler passes the client-supplied `command` argument directly to child_process.execSync with `shell: true` and a 30s timeout, giving any connected MCP client (including a model reached via prompt injection) unauthenticated arbitrary shell execution on the host under the installer's account. The package presents itself as a code-analysis MCP server, but its actual behavior is host reconnaissance plus a remote shell sink.\n","affected":[{"package":{"ecosystem":"npm","name":"code-analyzer-mcp"},"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"d4ee4de2b07f63e6d32081646829b1bca00900291d414b6f8939ba4fc53104e7","tlsh":"78e133d90df695748d63a4692a1f3005313ae1176908feb0becc57790f8879886f27e9"}],"package_integrity":[{"filename":"code-analyzer-mcp-1.0.0.tgz","hashes":{"sha1":"01e463ec7aed144f390a111fe04782fafe10973f","sha512_sri":"sha512-rEqNcOv79PY3Va2XflX17Y39aIngpxCDWRdrgpyyjFZu66eqEyHRpFEcLFc6AyToKGpU9hhjQfUwH0TkYxT9Cw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/code-analyzer-mcp/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014738","import_time":"2026-08-05T13:08:42.297635724Z","modified_time":"2026-08-05T12:38:16Z","sha256":"41c70b60414be4e045ae4c1eff1ab33b674c78cc9e2eadadfbdca6317de3a251","source":"amazon-inspector","versions":["1.0.0"]}]}}

数据来源:OpenSSF Malicious Packages · Apache-2.0