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.

Article contents
  1. What happened
  2. Why it matters for third-party risk
  3. What teams should take from it
  4. FAQ
  5. What is ChainDrop?
  6. How do I know if my organisation is affected?
  7. Does a valid provenance signature mean a package is safe?
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.

Related solutions
→How Supplier Shield works→Compare alternatives

Read next

NIS2 in Austria in 2027: what the NISG 2026 requires of companies and their suppliers

Austria's NIS2 law, the NISG 2026, took effect on 1 October 2026. This guide covers who it applies to, the registration deadline, the incident reporting clock, and the points every company should confirm against the official text.

Read article →
AI-native GRC in 2027: who was born with AI, who added it, and what the assistant does with your compliance data

AI-native GRC in 2027: who was born with AI, who added it, and what the assistant does with your compliance data

An origin-based definition of AI-native GRC, applied to everyone. Four platforms scored on eight architecture criteria and six disclosure facts, plus the nine vendors in the wider market that pass the origin test.

Read article →
Third-Party Risk for Hotels and Short-Term Rentals: The OTA, PMS and Payment Stack

Third-Party Risk for Hotels and Short-Term Rentals: The OTA, PMS and Payment Stack

A hotel's largest cyber exposure now lives in a handful of platforms it does not run. How the OTA, PMS, channel manager, payment and lock stack is built, where it breaks, who is liable when it does, and what a property with no security team can do about it.

Read article →