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

目标: 1000 元 · 已筹: 1336

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

mcp-server-fetch

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

Summary

Malicious code in mcp-server-fetch (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
4,295
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmmcp-server-fetch*
npmmcp-server-fetch0.0.1
npmmcp-server-fetch0.0.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-5476","published":"2026-06-09T20:34:54Z","modified":"2026-08-20T15:28:05.304582479Z","aliases":["GHSA-rh9p-4pg3-8628"],"summary":"Malicious code in mcp-server-fetch (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (34dfb6dc382073bace8a4d413b28000ff42770d04b9f69a88906230e2d83260a)\nPackage squats the unscoped name `mcp-server-fetch` (an MCP server name commonly invoked via `npx mcp-server-fetch` by AI coding agents and developer tooling). package.json declares `postinstall: node index.js`, and index.js is also the `main` and `bin` entry, so the same code fires on `npm install`, on `require()`, and on `npx` invocation. index.js line 17 hardcodes `ENDPOINT = 'https://npx-canary-log.vulnerable-live.workers.dev/log'`, and lines 22-28 POST a JSON payload containing `os.hostname()`, `process.cwd()`, the npm user-agent, `process.version`, and `os.platform()` to that endpoint. Errors are silently swallowed. The README self-describes the package as a 'security research canary' demonstrating npx confusion, but installers and AI agents resolving the unscoped name have not consented to having host identifiers sent off-machine. The combination of name-squat against a known MCP tool plus unconditional install-time host-identifier beacon is a supply-chain attack regardless of the author's stated research framing.\n\n## Source: ghsa-malware (faf89679ebc30b8074ef084de5627748a20c8bb2ed30a1ee93deacffc88985a8)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"name":"mcp-server-fetch","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["0.0.1","0.0.2"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"domains":["npx-canary-log.vulnerable-live.workers.dev"],"evidence_files":[{"path":"index.js","sha256":"63966b152e322a3af7fe3049fe8d804ba851c101ff19577bde6e801431b30355","tlsh":"803195e190f805361bee46d3e2e9a899a36ff1263a1678f0b45e02291fc94980771cd2"}],"package_integrity":[{"filename":"mcp-server-fetch-0.0.1.tgz","hashes":{"sha1":"f90d1186f9d9c5263ef6ea6e8855889ae7660fb4","sha512_sri":"sha512-1DF4gz5VRm7Kgu22fvL09gW5XmcDmj7vqnvLSKeWJX6A0BMnlRBEOQ/wcXDZIXWUrc54hTN6frfCOMHY6SpNWA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/mcp-server-fetch/v/0.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/mcp-server-fetch/v/0.0.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-rh9p-4pg3-8628"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-005234","import_time":"2026-06-09T20:45:57.814385874Z","modified_time":"2026-06-09T20:34:54Z","sha256":"4a64ba282db25ccfc53d1b5cb699a2cd68ec0e5124003e211f9928e96674122c","source":"amazon-inspector","versions":["0.0.1"]},{"id":"IN-MAL-2026-005233","import_time":"2026-06-09T20:45:57.72060007Z","modified_time":"2026-06-09T20:34:54Z","sha256":"850472999c9baffe4a663fb1b8dd900ba844e8296aeb24de25864c6025af1c16","source":"amazon-inspector","versions":["0.0.1"]},{"id":"IN-MAL-2026-005857","import_time":"2026-06-12T19:43:40.777411899Z","modified_time":"2026-06-12T19:03:25Z","sha256":"34dfb6dc382073bace8a4d413b28000ff42770d04b9f69a88906230e2d83260a","source":"amazon-inspector","versions":["0.0.2"]},{"id":"IN-MAL-2026-005858","import_time":"2026-06-12T19:43:40.871821452Z","modified_time":"2026-06-12T19:03:26Z","sha256":"42f340668cdfdf1a11b3c69620e5da1abda0ea45813bdb1077eb38ab0ede3e43","source":"amazon-inspector","versions":["0.0.2"]},{"id":"GHSA-rh9p-4pg3-8628","import_time":"2026-08-20T15:26:15.54094013Z","modified_time":"2026-08-20T14:25:56Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"faf89679ebc30b8074ef084de5627748a20c8bb2ed30a1ee93deacffc88985a8","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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