Home / The Long Read / Research
Long Read

ChainDrop npm worm hits 400-plus packages: one stolen login becomes a self-spreading supply-chain attack

A self-propagating worm named ChainDrop infected more than 400 npm packages, including keyv, flat-cache and cache-manager, Microsoft reported on 4 August 2026. The malware steals developer and cloud credentials, then uses stolen publishing tokens to poison further packages on its own. For third-party risk teams, it is a fourth-party exposure most vendor registers never capture.

ChainDrop npm worm hits 400-plus packages: one stolen login becomes a self-spreading supply-chain attack
TL;DR

A self-propagating worm named ChainDrop infected more than 400 npm packages, including keyv, flat-cache and cache-manager, Microsoft reported on 4 August 2026. The malware steals developer and cloud credentials, then uses stolen publishing tokens to poison further packages on its own. For third-party risk teams, it is a fourth-party exposure most vendor registers never capture.

A self-propagating worm has infected more than 400 npm packages, the shared building blocks that sit inside millions of JavaScript projects. Microsoft Threat Intelligence, which named the campaign ChainDrop, reported on 4 August 2026 that the malware steals developer and cloud credentials, then uses those stolen keys to publish poisoned versions of still more packages on its own. Affected code includes widely used utilities such as keyv, flat-cache and cache-manager. Any organisation whose developers or build systems installed a bad version may have leaked npm, GitHub, cloud and secret-store credentials. The lesson: one open-source dependency, compromised at the source, can reach every secret downstream.

ChainDrop npm worm (August 2026): one stolen login, hundreds of poisoned packages A self-propagating worm turned trusted open-source dependencies into a credential-stealing supply chain. Attacker stole a maintainer's npm publishing login (initial vector per Microsoft; actor not attributed) Compromised npm packages keyv, flat-cache, cache-manager and 400+ more (Microsoft) Malicious versions carry a Shai-Hulud worm variant, run via a preinstall hook (fires automatically on install). Some releases republished via GitHub Actions trusted publishers, so they carried valid provenance. Reported scope: 444 packages, 1,300+ versions Downstream, on install Developer workstations CI / CD build runners Cloud tenants and secret stores Secrets harvested: npm, GitHub, AWS, Kubernetes and HashiCorp Vault credentials, then validated and used to reach more secrets. Worm reuses stolen npm tokens to poison and republish still more packages What is confirmed (4 to 5 August 2026): Microsoft Threat Intelligence named the campaign ChainDrop, confirmed 400+ affected packages, and published hashes and IOCs. Third-party risk, in one line: A dependency several layers deep is still a supplier, and a self-spreading worm can reach every secret its install touches. Draft diagram for Breach Wire, Supplier Shield.

What happened

Microsoft published its analysis on 4 August 2026 and updated it on 5 August. It attributes the initial compromise to stolen maintainer credentials, not a flaw in npm itself (npm is the main registry for JavaScript code). The malicious releases carry a variant of the Shai-Hulud worm, delivered as a large, obfuscated payload that runs through an npm preinstall hook, meaning it fires automatically before installation finishes. Once running, it searches developer workstations and continuous-integration systems for npm, GitHub, Amazon Web Services, Kubernetes and HashiCorp Vault credentials (Vault is a common secrets store). It validates the stolen keys against each service, harvests further secrets, and encrypts the results to an attacker-controlled server. The worm's defining trait is automated spread: with a stolen npm publishing token it downloads a package's latest version, inserts itself, bumps the patch number and republishes, turning one compromised account into many poisoned releases. Some packages were republished through GitHub Actions trusted-publisher workflows, so the tampered versions carried valid provenance signatures. Security firms including Aikido counted at least 444 packages across more than 1,300 versions; Microsoft confirms more than 400. The affected utilities are among the most installed in the JavaScript ecosystem, with reported downloads running into the billions of installs a month across the family.

Why it matters for third-party risk

This is ICT supply-chain risk at its rawest: a fourth-party exposure that most vendor registers never capture. Your supplier did not have to be breached. A package three or four dependencies deep in something you bought, or built, was enough. Two features make ChainDrop worse than a one-off hijack. It propagates on its own, so the list of affected packages grew by the hour rather than staying fixed. And it produced releases with valid provenance, the cryptographic proof that a package came from a legitimate pipeline, which undercuts a control many teams treat as a green light. Concentration is the quiet risk here: a small number of maintainers own utilities that sit inside a very large share of the JavaScript ecosystem, so one account takeover reaches far.

What teams should take from it

Treat your dependency tree, including transitive dependencies, as part of your supplier estate and inventory it accordingly. Pin known-good versions, delay adopting brand-new releases (npm's min-release-age setting helps), and disable install scripts where you can. If a build or workstation pulled an affected version, rotate every credential it could reach from a clean machine, not the infected one, and check continuous-integration caches and shared build images, which can silently carry the poisoned files forward. Do not treat a valid provenance signature as proof of safety this week.

For teams working out which of their software dependencies and vendors could carry this kind of fourth-party risk, see how continuous vendor and dependency monitoring works.

FAQ

What is ChainDrop?

ChainDrop is the name Microsoft Threat Intelligence gave to a large-scale npm supply-chain attack disclosed on 4 August 2026. A self-propagating worm, a variant of the Shai-Hulud malware, infected more than 400 JavaScript packages, stole developer and cloud credentials, and used stolen publishing tokens to spread to further packages automatically.

How do I know if my organisation is affected?

Review dependency trees, lockfiles, artifact repositories and CI caches for affected package versions, including transitive references you did not add directly. Microsoft has published package hashes and indicators of compromise. Any workstation or build runner that installed a bad version should be treated as potentially compromised, and its reachable credentials rotated from a clean host.

Does a valid provenance signature mean a package is safe?

Not in this case. Some poisoned versions were republished through GitHub Actions trusted-publisher workflows, so they carried valid provenance. Provenance shows where a release was built, not that its contents are trustworthy. Pin known-good versions and verify against published indicators rather than relying on the signature alone.

What to do next

Want this applied to your supplier ecosystem? See the platform in action and map your top vendor risks live in one walkthrough.

Read next

Amgen says patient data was stolen from third-party cloud systems, not its own network

Amgen says patient data was stolen from third-party cloud systems, not its own network

Amgen told the US SEC that attackers stole patient health information and proprietary company data from cloud systems run by external service providers, not from its own network. The company concluded the incident was material on 29 July 2026. It says medicine supply was not affected. The lesson: data placed in a supplier's cloud is still the owner's breach to disclose.

Read article
Xsolis breach reached hospital patients through one shared healthcare AI vendor

Xsolis breach reached hospital patients through one shared healthcare AI vendor

A phishing attack at Xsolis, a US healthcare vendor that many hospitals and insurers use to review whether care is covered, exposed the data of about 1.4 million people. Patients at Mayo Clinic, UW Medicine and VHC Health were among those affected, because one vendor held records from many providers at once.

Read article
SonicWall SMA 1000 zero-days under active attack: the remote-access appliance became the way in

SonicWall SMA 1000 zero-days under active attack: the remote-access appliance became the way in

On 14 July 2026 SonicWall confirmed two actively exploited zero-days in its Secure Mobile Access (SMA) 1000 Series remote-access appliances and released fixed firmware. The pattern is concentration risk at the network edge: a widely used SSL VPN gateway sits in front of internal systems, so its compromise reaches everyone behind it, including the clients of managed providers that run one.

Read article
ChainDrop npm worm hits 400+ packages: supply-chain attack explained | Breach Wire | Supplier Shield