Skip to main content

Malicious code in evilpostinstall (npm)

0
High
Published: 08/31/2026 (08/31/2026, 15:40:53 UTC)
Source: GCVE Database
Product: evilpostinstall

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.

Affected software

npmghsa
evilpostinstall
Affected versions
=49.13.4074225=4127000.0.1=0.2.0=0.6.0=0.4.0=0.3.0=0.5.0=0.9.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 02:27:43 UTC

Technical Analysis

The 'evilpostinstall' npm package version 4127000.0.1 and other specified versions execute a postinstall script that pipes the output of the environment variables through 'nc' (netcat) to a host IP address reconstructed from the package version string. This results in exfiltration of the full installer environment, including any CI secrets, tokens, and API keys present in environment variables, over TCP port 888. Additionally, the package.json declares a self-referencing dependency with a version encoding a second destination IP, triggering further exfiltration. The obfuscation technique of reconstructing the destination IP from the version string hides the malicious intent from static scanners. No source files are shipped, making the manifest the sole carrier of the malicious payload.

Potential Impact

Sensitive environment variables, including CI secrets, tokens, and API keys, are exfiltrated to attacker-controlled IP addresses during package installation. This can lead to credential compromise and unauthorized access to systems or services that rely on these secrets. The obfuscation of the exfiltration destination complicates detection and mitigation.

Mitigation Recommendations

No official patch or remediation is indicated in the provided data. Users should avoid installing the 'evilpostinstall' package and any of its versions listed as affected. Since the malicious behavior occurs during 'npm install', auditing dependencies and using trusted package sources is critical. Monitor for and remove any instances of this package from projects. Check vendor advisories or npm security advisories for updates or removal notices.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-15625
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a984534acd9273b496aaa16

Added to database: 09/02/2026, 15:48:04 UTC

Last enriched: 09/08/2026, 02:27:43 UTC

Last updated: 10/04/2026, 02:41:20 UTC

Views: 28

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses