Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

mcp-server-gitnpm

Malicious code in mcp-server-git (npm) Remove it immediately and rotate any exposed credentials.

MAL-2026-5478
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall mcp-server-git

What this malware does

package.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.

Malicious versions

1 flagged
0.0.1

Indicators of compromise (SHA-256)

4cf54d60f4aeb261f3b4c523293183b728b02bc20255aeab62d7f86c94adc7ed
b36a6a2aba7eabab28a2caa71b383383748c37d5de81b722a86635e94147464b

Frequently asked questions

No. mcp-server-git on npm has been identified as a malicious package (version 0.0.1 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-005235IN-MAL-2026-005236

References

Credits

  • Amazon Inspector · finder

Scan your dependencies

O3 Security blocks malicious packages like this at install time and in CI.

Supply-chain protection
mcp-server-git (npm) malicious package — MAL-2026-5478 | O3 Security