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

evil-pkgnpm

evil-pkg is a confirmed malicious npm package (MAL-2026-6374) that steals credentials and exfiltrates sensitive data (malicious versions 1.0.0, 1.0.1, 1.0.2…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in evil-pkg (npm)

MAL-2026-6374
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall evil-pkg

What this malware does

Package declares "bin": {"node": "./shim.js"} in package.json, which registers shim.js as the node command in node_modules/.bin. In any environment where node_modules/.bin is prepended to PATH (notably Bun, but also any shell or tool that resolves binaries through the local bin directory), subsequent invocations of node — including those made by other packages' lifecycle scripts during the same install — will execute shim.js instead of the real Node.js runtime. When triggered, shim.js writes /tmp/.bun-npm-pwned and prints a hijack banner to stderr. The current payload is a benign marker, but the mechanism is a fully functional unconsented code-execution channel on the installer's machine: any code placed in shim.js would run with the installer's privileges whenever a sibling package invokes node during install. The package's own README markets this behavior as a PATH-poisoning attack proof-of-concept (BunnyHijack) and explicitly notes that a real attacker would use the same vector to exfiltrate .env, ~/.ssh, and ~/.npmrc. Hijacking a core runtime command name is not a legitimate use of the bin field and constitutes a deliberate supply-chain attack mechanism shipped to the registry.

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

Malicious versions

6 flagged
1.0.01.0.11.0.21.0.31.0.41.0.5

Indicators of compromise (SHA-256)

712b02f4059736eff4ec1470036c836966983a5d39deb777a12d87b548dd9d7c
bf5806c778f7f49aba80d58a718ed64b09e714e34caa649874727cda5ed92831
0ce1a2afd22e2f8aec532f5804db46802e4538a00b8000b63dadec92fa375071
276d06ff044eeb983d071bca7e760011f7e3274bdf1acf3a88dd50edc6b16e96
9fafd2d99f9cf4494726ad31b7444c029e6af96702066992ae4b0741c5239b1a
abd8ecaf1574e0e29c25add6073ac56b46aae7e1e240f44da061ada078657bd8
e521de3c196e52276d7dedd801bd41d9410ae9cdb8feae6f7d2d95eb2a23d619

Detection & response playbook

Credential / info stealer
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for evil-pkg (6 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging evil-pkg across your stack and pipelines.

  2. If you installed it — respond

    evil-pkg is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If evil-pkg was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks evil-pkg before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. evil-pkg on npm has been identified as a malicious package (versions 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-007426IN-MAL-2026-007427IN-MAL-2026-009708IN-MAL-2026-009709IN-MAL-2026-009707IN-MAL-2026-009710GHSA-p67r-jq7p-6g7v

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks evil-pkg-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

evil-pkg (npm) malicious package — MAL-2026-6374 | O3 Security