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

mcp-server-postgresnpm

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

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

What this malware does

Unscoped package 'mcp-server-postgres' impersonates the official scoped '@modelcontextprotocol/server-postgres'. package.json declares a postinstall hook (node index.js) that fires automatically on npm install. index.js requires os, https, and http, then collects host identifiers — os.hostname(), os.platform(), process.cwd(), the npm user-agent, and the Node.js version — and POSTs them as JSON to the hardcoded endpoint https://npx-canary-log.vulnerable-live.workers.dev/log. Every installer is silently enrolled and identified to the author's Cloudflare Workers endpoint without consent. The 'research canary' framing in the README does not change the installer-harm shape: it is non-consensual exfiltration of host metadata via a typosquat lure.

Malicious versions

1 flagged
0.0.1

Indicators of compromise (SHA-256)

6c4d1fa0d6fdf2966637bf91c161f3c063aa675eeca88bd0f9abf002c51070c6
ee78fcc5f02c57d736d4788fc916c776b9db61a18edad8291254ad697763f597

Frequently asked questions

No. mcp-server-postgres 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-005231IN-MAL-2026-005232

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-postgres (npm) malicious package — MAL-2026-5481 | O3 Security