Massive ChainDrop npm supply-chain attack infects hundreds of packages
The ChainDrop malware is a self-propagating supply-chain attack that has compromised over 1,300 npm packages with billions of monthly downloads. It spreads by exploiting compromised maintainer GitHub accounts and injecting malicious code into legitimate package releases. The malware executes automatically during package installation, stealing a wide range of sensitive credentials and environment data from developer machines and CI/CD systems. The attack leverages legitimate GitHub Actions workflows, making detection difficult. Remediation requires rebuilding compromised environments and rotating all exposed credentials. The attack is ongoing, with the number of affected packages expected to grow.
AI Analysis
Technical Summary
ChainDrop is a self-propagating malware worm that infected more than 1,300 npm packages, including popular caching utilities, by compromising the GitHub account of a package maintainer. The attacker pushed malicious files directly to main branches and released compromised versions through legitimate GitHub Actions workflows, preserving valid provenance. The infected packages contain a setup.mjs dropper that downloads the Bun JavaScript runtime to execute an obfuscated infostealer script (Math_Symbol.js or math_init.js). This script collects extensive sensitive data such as environment variables, GitHub tokens, npm tokens, cloud credentials (AWS, Azure, GCP), Kubernetes secrets, HashiCorp Vault tokens, database credentials, and private keys. Collected data is encrypted and exfiltrated to a public GitHub repository. The malware also has self-spreading capabilities, infecting other packages that depend on compromised ones. The domain npm-cache[.]com is used for data exfiltration. The attack is ongoing and detection is complicated by the use of legitimate build and release processes.
Potential Impact
The attack compromises developer and CI/CD environments by stealing a broad range of sensitive credentials and secrets, potentially allowing attackers to access additional source code repositories, npm packages, cloud infrastructure, and other critical systems. The use of legitimate GitHub workflows to publish malicious packages undermines trust in package provenance and increases the risk of widespread supply-chain compromise. Systems that installed affected package versions are considered compromised, even if the malicious packages are later removed, requiring full environment rebuilds and credential rotations to mitigate.
Mitigation Recommendations
No official vendor patch is available as this is a supply-chain compromise involving multiple third-party packages. Organizations should assume any environment that installed affected packages is compromised and perform full rebuilds from safe backups or clean sources. All exposed credentials, tokens, and secrets must be rotated immediately. Use dependency allowlisting, integrity verification, and provenance controls to reduce risk. Monitor for indicators of compromise such as the npm-cache[.]com domain and hashes of malicious files provided by security researchers. Review logs and repositories for unauthorized changes. Continue to track updates from security companies providing lists of compromised packages and IoCs.
Massive ChainDrop npm supply-chain attack infects hundreds of packages
Description
The ChainDrop malware is a self-propagating supply-chain attack that has compromised over 1,300 npm packages with billions of monthly downloads. It spreads by exploiting compromised maintainer GitHub accounts and injecting malicious code into legitimate package releases. The malware executes automatically during package installation, stealing a wide range of sensitive credentials and environment data from developer machines and CI/CD systems. The attack leverages legitimate GitHub Actions workflows, making detection difficult. Remediation requires rebuilding compromised environments and rotating all exposed credentials. The attack is ongoing, with the number of affected packages expected to grow.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
ChainDrop is a self-propagating malware worm that infected more than 1,300 npm packages, including popular caching utilities, by compromising the GitHub account of a package maintainer. The attacker pushed malicious files directly to main branches and released compromised versions through legitimate GitHub Actions workflows, preserving valid provenance. The infected packages contain a setup.mjs dropper that downloads the Bun JavaScript runtime to execute an obfuscated infostealer script (Math_Symbol.js or math_init.js). This script collects extensive sensitive data such as environment variables, GitHub tokens, npm tokens, cloud credentials (AWS, Azure, GCP), Kubernetes secrets, HashiCorp Vault tokens, database credentials, and private keys. Collected data is encrypted and exfiltrated to a public GitHub repository. The malware also has self-spreading capabilities, infecting other packages that depend on compromised ones. The domain npm-cache[.]com is used for data exfiltration. The attack is ongoing and detection is complicated by the use of legitimate build and release processes.
Potential Impact
The attack compromises developer and CI/CD environments by stealing a broad range of sensitive credentials and secrets, potentially allowing attackers to access additional source code repositories, npm packages, cloud infrastructure, and other critical systems. The use of legitimate GitHub workflows to publish malicious packages undermines trust in package provenance and increases the risk of widespread supply-chain compromise. Systems that installed affected package versions are considered compromised, even if the malicious packages are later removed, requiring full environment rebuilds and credential rotations to mitigate.
Defensive Guidance
No official vendor patch is available as this is a supply-chain compromise involving multiple third-party packages. Organizations should assume any environment that installed affected packages is compromised and perform full rebuilds from safe backups or clean sources. All exposed credentials, tokens, and secrets must be rotated immediately. Use dependency allowlisting, integrity verification, and provenance controls to reduce risk. Monitor for indicators of compromise such as the npm-cache[.]com domain and hashes of malicious files provided by security researchers. Review logs and repositories for unauthorized changes. Continue to track updates from security companies providing lists of compromised packages and IoCs.
Technical Details
- Classification
- {"confidence":0.3,"severitySource":"heuristic","classifier":"rss-v2"}
Threat ID: 6a7212fabf8831d5391abcc2
Added to database: 08/04/2026, 16:27:38 UTC
Last enriched: 08/04/2026, 16:28:10 UTC
Last updated: 08/04/2026, 17:00:08 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.