There is a worm crawling through npm, the reference registry for JavaScript libraries, and its name is ChainDrop. At the time researchers at Aikido counted them, at least 868 packages across 1,381 versions had been compromised, with a combined footprint of roughly two billion monthly downloads. The number was expected to grow, because worms do what worms do.
The entry point is almost embarrassing in its simplicity. The attacker compromised the GitHub account of the maintainer of Keyv, a popular caching library. From that single identity came the keys to Cacheable, flat-cache and file-entry-cache, and from there the infection spread to packages associated with organisations like Deliveroo, Ornikar, OneReach, Picsart, Qlik and ServiceTitan. One maintainer account, thousands of downstream projects exposed. That is not a vulnerability in some exotic cryptographic primitive. That is the architecture of modern software, working exactly as designed.
Here is the part that should make the industry blush. The malicious code was pushed directly to the projects’ main branches, and the poisoned releases were built and published through the projects’ own legitimate GitHub Actions workflows. Which means the infected packages carried valid provenance information. Let us be precise about what that means: provenance attests that a package came out of the expected build process. It says nothing about what was fed into that process. Steal the certifier’s keys and the pipeline will dutifully stamp the poison, in perfect order. We have spent years building attestation pipelines, signing ceremonies and supply chain frameworks, and the one thing they cannot do is the thing everyone quietly assumes they do: tell you the code is clean. The stamp survived. What we wanted it to reassure us about didn’t.
The mechanics are brutally efficient. Each compromised package shipped an install script that ran when npm install pulled an affected version. It downloaded the Bun JavaScript runtime from official releases, used it to execute a heavily obfuscated infostealer, then cleaned up after itself. The payload harvests the process environment, local configuration and credential files, GitHub and npm tokens, GitHub Actions secrets, AWS credentials and Secrets Manager values, Kubernetes secrets, HashiCorp Vault tokens, database credentials and API keys for Stripe, Slack, Twilio, Azure and Google Cloud. Tokens are validated in real time before being stolen, because nobody likes exfiltrating expired loot. The encrypted haul lands in a public GitHub repository whose name references Shai-Hulud, the previous wave of npm supply chain attacks. The attackers are not even pretending to hide. They are signing their work like artists.
And the worm keeps feeding itself: stolen credentials are used to infect packages from other maintainers, which yields more credentials, which yields more packages. Researchers point to the npm-cache[.]com domain as a strong indicator of compromise, and the recommendation is as drastic as it is honest: if a developer workstation or CI/CD runner installed an affected version, treat it as compromised even if the package was later removed. Rebuild the systems. Rotate every token the environment could reach. All of it.
The lesson is not «update carefully», the usual comfort blanket. The lesson is that a colossal digital economy rests on the personal accounts of individual maintainers: compromise one identity and thousands of downstream projects inherit whatever happens to it. We already knew this after Shai-Hulud. We wrote the post-mortems, we nodded gravely at the conferences, and, judging by how this one unfolded, we changed far too little. So the worm came back, fatter, with valid provenance and a sense of humour. It will come back again, and the only open question is which maintainer’s account will be the next single point of failure for a few thousand companies that never asked themselves who, exactly, they are trusting when they type npm install.
Raffaele Di Marzio
All my “insane” books on cybersecurity and governance are here 👇 https://cyberium.limited/bookshelf.html
