Shai-Hulud CHAINDROP Worm Backdoors 400+ npm Packages via keyv Compromise
Supply Chain Risk · 16 sources · Updated 4mo ago · First seen Aug 5, 2026

Attackers behind Shai-Hulud compromised the maintainer of the widely used npm library keyv and used a self-propagating worm dubbed CHAINDROP to trojanize the keyv monorepo and spread malicious updates across more than 400 npm packages. The campaign abused npm preinstall hooks for code execution, stole developer credentials from infected machines, and automatically republished malicious package versions anywhere stolen npm tokens had write access, including cases where the tokens bypassed 2FA protections. Packages tied to the keyv ecosystem, including flat-cache, cacheable-request, cacheable, and cache-manager, were identified as part of the downstream exposure, raising broad risk across JavaScript build pipelines and dependent applications.
The malware expanded beyond package tampering by implanting Claude Code and VS Code execution hooks and harvesting secrets tied to AI tooling, cloud environments, GitHub, Kubernetes, Vault, SSH, and npm accounts. Elastic Security Labs reported that the operators used an Ethereum smart contract with fallback mechanisms to dynamically resolve exfiltration infrastructure, underscoring a more resilient and automated supply-chain tradecraft. Published guidance urged organizations to revoke GitHub and npm tokens, review repositories for suspicious commits attributed to "claude", rotate exposed secrets, enable npm 2FA, and upgrade to npm 12+ as defenders assess the blast radius of one of the largest recent npm ecosystem compromises.
Why it matters
Impact assessment
CHAINDROP is a high-severity software supply-chain compromise affecting the npm ecosystem, especially organizations that consume or publish JavaScript/Node.js packages through keyv, cacheable, flat-cache, file-entry-cache, cacheable-request, and downstream dependencies. Impact extends beyond developer endpoints into CI/CD runners, source repositories, package publishing accounts, cloud environments, Kubernetes, Vault, and AI developer tooling because the malware steals credentials and republishes trojanized packages using legitimate identities.
The scope is broad rather than narrowly targeted: more than 400 npm packages were compromised, with reporting ranging from 430-444 packages and more than 2,200 infected artifacts, and some affected ecosystems collectively account for over 1.3-2 billion monthly downloads. Exploitation in the wild is confirmed, with active worm-like propagation across unrelated publishers and ongoing creation of public GitHub repositories used for exfiltration.
Affected entities and products
- npm ecosystem, especially JavaScript/Node.js development and build pipelines
- keyv ecosystem maintainer account and monorepo
- Confirmed affected package families include keyv, flat-cache, file-entry-cache, cacheable-request, cacheable, cache-manager, @cacheable/utils, @cacheable/memory, @cacheable/node-cache
- Additional downstream organizations/packages cited include Deliveroo, Ornikar, Picsart, Qlik, OneReach, ServiceTitan, @deliveroo/reevent, @or-sdk/invitations, @picsart/ai-sdk, @qlik/embed-runtime, picasso.js, qlik/api
- Developer tooling exposure includes VS Code, Claude Code, and in some reporting GitHub Copilot-related files and MCP-linked repository delivery
Severity and business consequences
- Credential theft affects npm, GitHub, GitHub Actions/OIDC, AWS, GCP, Azure, Kubernetes, HashiCorp Vault, SSH, Slack, Stripe, and AI tooling secrets
- Operational disruption risk is high because compromised tokens can alter packages, repositories, CI workflows, and potentially trigger destructive behavior on token revocation
- Reputational and financial risk is high for software publishers because malicious releases were published from legitimate repositories with valid provenance and SLSA attestations
- Trust controls alone were insufficient; poisoned releases retained valid OIDC trusted-publisher provenance and SLSA Build Level 3 attestations
Known incidents and exposure indicators
- Initial compromise observed on 2026-08-04 via compromised keyv maintainer GitHub account
- More than 400 packages compromised; Aikido reported 1,381 malicious versions across 444 packages, and Socket later tracked more than 2,400 infected artifacts
- 453 public repositories across five accounts reportedly matched the worm’s exfiltration pattern
- More than 3,800 public GitHub repositories containing credential dumps were reported as still accessible in one follow-up analysis


