How do I check if my project installed a ChainDrop-compromised npm package?
Run npm audit against your committed lockfile. GitHub publishes malware advisories for confirmed ChainDrop versions, so a pinned one shows up as a critical "Malware in" finding. A clean result covers only versions that already have an advisory, in the lockfile you checked. If any machine or CI runner installed a bad version, treat it as compromised and rotate its credentials, even if the package is gone.
ChainDrop is a self-spreading npm worm that surfaced on 4 August 2026. It turned stolen maintainer access into malicious patch releases of popular packages, then used the credentials it stole to publish more. Most write-ups describe the attack. This page answers the question a team actually has afterwards: did we install one, and how would we know?
What was ChainDrop?
On 4 August 2026, Microsoft Threat Intelligence reported a supply chain attack across more than 400 npm packages from unrelated publishers, including keyv and flat-cache, carrying a variant of the Mini Shai-Hulud credential-stealing worm (Microsoft Security Blog). The counts grew as the attack unfolded: BleepingComputer's report the same day put it at more than 1,300 packages with a combined 2 billion monthly downloads, and quoted Aikido's count of at least 868 packages across 1,381 versions (BleepingComputer).
How it worked, in the order that matters for checking your own project:
- It ran at install time. The poisoned releases added a
preinstallscript,node setup.mjs, so the payload executed beforenpm installfinished (BleepingComputer). Your tests never had a chance to run first. - It stole credentials, then republished. Microsoft describes it collecting npm, GitHub, cloud, Kubernetes and Vault credentials, then using any npm publishing token it found to insert itself into that publisher's latest packages and release them as ordinary patch versions (Microsoft Security Blog).
- It could write into your repository. With a stolen GitHub token, it injected files into repository branches at
.claude/settings.json,.claude/setup.mjs,.vscode/tasks.jsonand.vscode/setup.mjs, so opening the project later could restart it (Microsoft Security Blog).
How do you check your project?
Four checks, cheapest first.
- Run
npm auditagainst the committed lockfile. GitHub's advisory database lists confirmed malicious versions as malware advisories: for exampleflat-cache6.1.24 (GHSA-8jxr-wprf-45g8),file-entry-cache11.1.6 (GHSA-qp89-2g43-jg8j),keyv6.0.0 (GHSA-3p9h-f68w-m6fx) andcacheable2.5.1 (GHSA-jpjx-r3gh-v5pf), each published on 4 August 2026.npm auditasks the same service and reports a pinned bad version as critical. - Check every lockfile, not just the root one. A monorepo can have a lockfile per package. Check each, including transitive dependencies, which Microsoft's guidance calls out (Microsoft Security Blog).
- Look in the repository for the injected files. Search every branch for
.claude/setup.mjsand.vscode/setup.mjs, and for changes to.claude/settings.jsonor.vscode/tasks.jsonthat nobody on the team made. - Check where installs happened between early August and your last clean build. CI logs, shared caches and base images can hold a bad version that the current lockfile no longer shows. Microsoft recommends purging npm and yarn caches on affected hosts and rebuilding shared build images (Microsoft Security Blog).
What a clean result does not prove
A clean npm audit today means the versions in that lockfile have no published advisory today. It does not mean nobody on the team installed a bad version in August. If someone ran an install while a poisoned version was the latest, the payload ran on their machine, and upgrading or removing the package later does not undo that. BleepingComputer's advice is to treat the workstation or CI runner as compromised even if the package was later removed (BleepingComputer).
It also cannot flag a malicious version that has no advisory yet. Advisories follow discovery, so a scanner that matches advisories, ours included, catches a known bad version in your lockfile, not a new one on the day it is published.
If you find a match
Microsoft's guidance, condensed (Microsoft Security Blog):
- Stop installs on the affected machine or runner.
- From a known-clean machine, revoke and rotate every credential that machine could reach: npm tokens, GitHub tokens, cloud keys, CI secrets, and any API keys in its environment.
- Review your npm account for releases you did not make, and your repositories for commits and workflow changes you did not make.
- Pin known-good versions, purge package caches, and rebuild affected systems and build images from trusted sources.
Upgrading the package is not the fix. The credentials it could reach are.
Where SystemAudit's free scan fits
SystemAudit's free scan reads the lockfile at the root of your repository's default branch (package-lock.json, npm-shrinkwrap.json, pnpm-lock.yaml or yarn.lock) and sends the exact installed versions to npm's advisory service, the one npm audit uses. On 9 November 2026 we checked the four versions listed above: the service returned a critical "Malware in" advisory for each, and a scan of a test lockfile pinning flat-cache 6.1.24 and file-entry-cache 11.1.6 reported both as critical, naming the packages.
What it does not do: it reads only that root lockfile, so lockfiles inside monorepo packages are not checked; it reads the repository, not your laptops, CI caches or build images; and it cannot tell whether a bad version ever ran anywhere. It is the first check above, run from a GitHub link without installing anything, plus a secrets scan of the repository, not an incident response. Run a free scan.
For how the earlier 2026 waves spread, see the npm and PyPI supply chain worm wave and the Mastra npm attack. For ChainDrop alongside nine other 2026 breaches, and which control targets each cause, Nic Chin, who built SystemAudit, compares them in Data Breaches 2026.
Frequently asked questions
Which npm packages did ChainDrop compromise?
Hundreds, and the count grew as the attack spread: Microsoft reported more than 400 packages on 4 August 2026, and BleepingComputer the same day reported more than 1,300, including keyv, cacheable, flat-cache and file-entry-cache. Rather than relying on a copied list, check your lockfile with npm audit, which matches it against the confirmed malicious versions in GitHub's advisory database.
Does npm audit detect ChainDrop?
Yes, for versions that have a published advisory. GitHub published malware advisories for confirmed compromised versions, such as flat-cache 6.1.24 and keyv 6.0.0, and npm audit reports a lockfile that pins one as critical. It cannot flag a malicious version that has no advisory yet, and it only checks the lockfile you run it against.
If my lockfile is clean now, am I safe?
Not necessarily. A clean lockfile shows what is pinned today. If anyone installed a poisoned version in August, the payload ran on that machine at install time. Check CI logs and developer machines for installs in that window, and rotate the credentials of any machine that installed a bad version.
What files does ChainDrop leave in a repository?
Microsoft lists .claude/settings.json, .claude/setup.mjs, .vscode/tasks.json and .vscode/setup.mjs as paths the worm injects into repository branches using stolen GitHub credentials. Search every branch for them.
Will pinning versions protect me from the next worm?
It helps. A committed lockfile means a new malicious patch release is not pulled in silently on the next install, so an upgrade becomes a decision someone makes. Pair it with publishing tokens that are short-lived and scoped to the packages they publish, since stolen publishing tokens are how ChainDrop spread.
Based on Microsoft's and BleepingComputer's reports of 4 August 2026 and GitHub's advisory database, read on 9 November 2026. Counts of affected packages differ by source and date.