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

目标: 1000 元 · 已筹: 1336

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

mcp-server-git

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

Summary

Malicious code in mcp-server-git (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
274
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmmcp-server-git*
npmmcp-server-git0.0.1
npmmcp-server-git0.0.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-5478","published":"2026-06-09T20:34:59Z","modified":"2026-08-20T15:28:05.308380230Z","aliases":["GHSA-prf3-6rx4-9h5f"],"summary":"Malicious code in mcp-server-git (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4cf54d60f4aeb261f3b4c523293183b728b02bc20255aeab62d7f86c94adc7ed)\npackage.json declares `postinstall: node index.js`. On every `npm install`, index.js (lines 14-29) reads `os.hostname()`, `process.cwd()`, `os.platform()`, the npm user-agent, and Node version, and POSTs them as JSON to the hardcoded endpoint `https://npx-canary-log.vulnerable-live.workers.dev/log` (index.js:16). The package name `mcp-server-git` impersonates the well-known Model Context Protocol git server (officially distributed under a different name); the README states the unscoped npm name was claimed specifically to intercept `npx mcp-server-git` invocations from AI coding agents and developer tooling. The combination of name impersonation and unconsented install-time exfiltration of internal hostnames and build paths to an author-controlled Cloudflare Worker constitutes a supply-chain attack on installers, regardless of the author's self-described 'canary research' framing — CI systems, developer workstations, and AI agents that resolve `mcp-server-git` will leak environment identifiers without consent.\n\n## Source: ghsa-malware (de54da452db13432dfea3c5a1e127183237acfe08fdc133efc409cb3ea6aef77)\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-git","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":"5e83b6b67a3582afabe200023d220baac49850a3bd1d292bf90e1c22697a91ed","tlsh":"3f3195e180f805351bee46d3e1e9a899a36ff126360678f0b49e02295fc90980771cd2"},{"path":"package.json","sha256":"8f9c35937b99dbe40a493db65f6c8934e1c65a248b69b24c5558507f56e4b05a","tlsh":"3ff09e70d87496332afe46a154776444b579a9171680fc2923d3511cd64c5b703bf25d"}],"package_integrity":[{"filename":"mcp-server-git-0.0.1.tgz","hashes":{"sha1":"15ae727f57d27ba2136c6a9cfd09f9bb389dacca","sha512_sri":"sha512-ceAU3W3ZYBI4zq8mqNajWYt0+7PHwI4QLWw1xdVIOe8EjMpNxtJZsT1XarIaNrZxLi1eaAo0+4WH8rO/PJwdOQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/mcp-server-git/v/0.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/mcp-server-git/v/0.0.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-prf3-6rx4-9h5f"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-005235","import_time":"2026-06-09T20:45:57.967991856Z","modified_time":"2026-06-09T20:34:59Z","sha256":"4cf54d60f4aeb261f3b4c523293183b728b02bc20255aeab62d7f86c94adc7ed","source":"amazon-inspector","versions":["0.0.1"]},{"id":"IN-MAL-2026-005236","import_time":"2026-06-09T20:45:58.33271789Z","modified_time":"2026-06-09T20:34:59Z","sha256":"b36a6a2aba7eabab28a2caa71b383383748c37d5de81b722a86635e94147464b","source":"amazon-inspector","versions":["0.0.1"]},{"id":"IN-MAL-2026-005798","import_time":"2026-06-12T19:43:34.632364453Z","modified_time":"2026-06-12T19:02:08Z","sha256":"93aa8e811aefc6aaca964052f98ab8b0085363178784b541799c47041e5abada","source":"amazon-inspector","versions":["0.0.2"]},{"id":"IN-MAL-2026-005799","import_time":"2026-06-12T19:43:34.716842205Z","modified_time":"2026-06-12T19:02:09Z","sha256":"f70580d48e0a909c6f09f16dec5574b029cb97e226c6f9d0de51c3d2317c1c3d","source":"amazon-inspector","versions":["0.0.2"]},{"id":"GHSA-prf3-6rx4-9h5f","import_time":"2026-08-20T15:26:15.538909506Z","modified_time":"2026-08-20T14:25:56Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"de54da452db13432dfea3c5a1e127183237acfe08fdc133efc409cb3ea6aef77","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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