evilpostinstall (npm) · Malicious Code
Affects evilpostinstallSource GCVE Database
Malicious package : remove evilpostinstall and rotate any secrets on hosts that installed it.
Data as of 8 Sep 2026, 02:27 UTC
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
| Product | Affected | Fixed in |
|---|---|---|
| npmevilpostinstall | Affected
| 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
- npmjs.com/package/evilpostinstall/v/49.13.4074225 (opens in a new tab)
- npmjs.com/package/evilpostinstall/v/4127000.0.1 (opens in a new tab)
- npmjs.com/package/evilpostinstall/v/0.2.0 (opens in a new tab)
- npmjs.com/package/evilpostinstall/v/0.6.0 (opens in a new tab)
- npmjs.com/package/evilpostinstall/v/0.4.0 (opens in a new tab)
- npmjs.com/package/evilpostinstall/v/0.3.0 (opens in a new tab)
- npmjs.com/package/evilpostinstall/v/0.5.0 (opens in a new tab)
- npmjs.com/package/evilpostinstall/v/0.9.3 (opens in a new tab)
- npmjs.com/package/evilpostinstall/v/0.9.2 (opens in a new tab)
- npmjs.com/package/evilpostinstall/v/0.9.0 (opens in a new tab)
- npmjs.com/package/evilpostinstall/v/4192168.1.100 (opens in a new tab)
- npmjs.com/package/evilpostinstall/v/0.7.0 (opens in a new tab)
- npmjs.com/package/evilpostinstall/v/0.7.1 (opens in a new tab)
- npmjs.com/package/evilpostinstall/v/0.9.1 (opens in a new tab)
- npmjs.com/package/evilpostinstall/v/0.8.0 (opens in a new tab)