Skip to content

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)

  1. Exposure is concentrated in compromised legitimate packages. Attacker-created malware is 89% of the set but 0.2% of recorded downloads; compromised legitimate packages are 7% of names and >99% of downloads. Name-count triage is worthless; download-weight is the victim census.
  2. 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,000 packages against one organization) declared a lifecycle script in 1% of packages and alternated import-time execution and postinstall hooks across successive waves. This is the ledger's A BIN IS A BEACON law (389th, @ruaxbonz/tooltreovip) and the app-use zero-hook law measured across 5,400 specimens: hook-gated scanning is structurally blind to nearly half the population.
  3. 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 in 0.1% of cases. Trusted publishing is now a compromise signal, not a hygiene signal, when a name flips to it.
  4. 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.site lanes 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.
  5. 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-rce and MCP lanes).
  6. 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.)
  7. 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.
  8. 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 median 1.7 d); the registry's security takedown follows at a median 7 d, 10% exceeding 59 d; 37% of attacker-created packages were unpublished by their own publisher at a median of 7 h, and 16% remained installable at analysis time. The ledger's dist-tag-shield and shelf-state laws (quote versions[] + 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 is 0.1%).
  • Takedown clocks are now public numbers: report-to-advisory median 1.7 d, advisory-to-takedown median 7 d, tail 59 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

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 d median / 59 d tail takedown numbers.