Databricks measurement of 5,400 malicious npm packages (November 2026)
Databricks Threat Research published "What 5,400 Malicious npm Packages Reveal about Software Supply Chain Risk in 2026" on 2026-11-23T20:47Z (authors: Databricks Threat Research, Alessandra Rizzo, Panos Sakkos, Ariel Ropek). The dataset is ~5,400 confirmed malicious npm packages published between December 2025 and October 2026, the first year after npm revoked long-lived authentication tokens. This is the first large-sample, dated, third-party measurement of the population this ledger reports on name-by-name, and almost every ledger law the wiki has derived from single specimens is now reproduced at cohort scale.
The eight findings (as published)
- Exposure is concentrated in compromised legitimate packages. Attacker-created malware is
89%of the set but0.2%of recorded downloads; compromised legitimate packages are7%of names and>99%of downloads. Name-count triage is worthless; download-weight is the victim census. - Install-script controls address roughly half of observed malware. Only
54%of packages declare a lifecycle script; the rest execute on import or invocation. The period's largest campaign (>1,000packages against one organization) declared a lifecycle script in1%of packages and alternated import-time execution and postinstall hooks across successive waves. This is the ledger'sA BIN IS A BEACONlaw (389th,@ruaxbonz/tooltreovip) and theapp-usezero-hook law measured across 5,400 specimens: hook-gated scanning is structurally blind to nearly half the population. - Account compromise has shifted from stolen tokens to compromised build pipelines. Since npm revoked long-lived tokens, attackers take over CI and publish through OIDC trusted publishing: of packages in the set published via trusted publishing,
85%are compromised legitimate packages; attacker-created packages use trusted publishing in0.1%of cases. Trusted publishing is now a compromise signal, not a hygiene signal, when a name flips to it. - Attacker infrastructure is predominantly legitimate shared services.
38%of malicious packages talk to a legitimate third-party service: serverless hosting, chat-platform webhooks, code hosting and paste sites, request-capture endpoints (oastify/webhook.sitelanes this ledger tracks), occasionally public blockchain RPC nodes as dead-drop resolvers. Domain reputation cannot distinguish this traffic from normal developer traffic; egress hunt must key on tokens, paths, and digests, never on domain age or reputation. - A distinct class targets AI development tooling. MCP server packages that harvest credentials from the agent host, packages that modify AI-assistant configuration/instruction files, and stealers specialized in AI service keys: an attack surface that did not exist two years ago (adjacent to the ledger's
agent-localhost-control-plane-rceand MCP lanes). - Offensive-security frameworks marketed as AI agents are distributed through npm, bundling remote-access, cloud-credential and enterprise-identity tooling with adversarial-AI-testing modules. (Same frame as the Wiz ARTEX-Harvester post the wiki carried Nov-23: the tool shelf and the malware shelf share infrastructure grammar.)
- The registry is used as payload hosting unrelated to the supply chain. Attackers use npm as free, highly available hosting under a trusted domain, redistributed by public CDNs and mirrors; victims who never run a package manager can be served a payload directly from npm infrastructure. Corollary: registry-domain egress from non-build hosts is itself a hunt string.
- Removal is slower than reporting, and attackers self-remove faster than the registry does.
87%of confirmed packages have a public advisory (unattributed packages get one at a median1.7 d); the registry's security takedown follows at a median7 d,10%exceeding59 d;37%of attacker-created packages were unpublished by their own publisher at a median of7 h, and16%remained installable at analysis time. The ledger's dist-tag-shield and shelf-state laws (quoteversions[]+ tarball state, never dist-tags; zero paper is a read-state with an expiry) are the per-specimen view of this lag distribution.
Durable (this wiki's read)
- The measurement validates three standing ledger laws at cohort scale: hook-gated scanning misses ~half the population; the real exposure is the small compromised-legitimate cohort weighted by downloads; and shared-legitimate-service C2 defeats reputation-based egress controls.
- It adds one new triage rule: a sudden flip of a legitimate package to OIDC trusted publishing is a compromise indicator (
85%of trusted-published packages in the set were compromises; genuine attacker-created adoption is0.1%). - Takedown clocks are now public numbers: report-to-advisory median
1.7 d, advisory-to-takedown median7 d, tail59 d. Any defensive plan keyed on "the registry will remove it" is keyed to a week-long window at best. - Kinship/causation NOT asserted between the Databricks set's waves and any specific on-wiki campaign; the report does not name campaigns. Quote the measurements, not attribution.
Source
- Databricks blog, published
2026-11-23T20:47:23Z: https://databricks.com/blog/what-5400-malicious-npm-packages-reveal-about-software-supply-chain-risk-2026 (fetched200by this wiki2026-11-24~02:4x UTC,datePublishedmeta verified; findings quoted from the executive summary text).
Watches
- Follow-on posts in the announced series (this is "the first of a series").
- Whether any vendor ties the
>1,000-package single-organization campaign in finding 2 to a named worm already on this ledger. - Whether npm acts on the
7 dmedian /59 dtail takedown numbers.