Skip to main content
MalwarePublished Updated

evilpostinstall (npm) · Malicious Code

Affects evilpostinstallSource GCVE Database

0

Malicious package : remove evilpostinstall and rotate any secrets on hosts that installed it.

Data as of 8 Sep 2026, 02:27 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-15625

What to do

Remove evilpostinstall from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmevilpostinstallAffected
  • 0.2.0 – 4127000.0.1
8 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package 'evilpostinstall' contains malicious code in its postinstall lifecycle hook that exfiltrates the full installer environment, including sensitive CI secrets, tokens, and API keys, to IP addresses reconstructed from the package version string. It also declares a self-referencing dependency that causes additional exfiltration to a second IP address. The exfiltration destination is obfuscated by encoding it in the version field rather than as a literal IP address, evading static detection. No source files are shipped; the manifest itself carries the payload.

References

Community reviews

Loading reviews…