Skip to content
DigitalNeuron
Safety & ethics

Databricks Threat Research Analyzes 5,400 Malicious npm Packages From 2026

Databricks Threat Research published a report on 5,400 confirmed malicious npm packages published between December 2025 and October 2026, finding most exposure comes from compromised legitimate packages.

By DigitalNeuron Desk2 min read

Quick answer

What did Databricks' threat research team find in its analysis of malicious npm packages published in 2026?

Databricks Threat Research analyzed about 5,400 confirmed malicious npm packages published between December 2025 and October 2026. The company found that compromised legitimate packages, though just 7% of the set, accounted for over 99% of downloads, and that attackers increasingly target build pipelines and AI developer tooling rather than stolen tokens.

Key takeaways

  • Databricks Threat Research says compromised legitimate npm packages made up only 7% of the roughly 5,400 malicious packages it analyzed but accounted for over 99% of downloads, while attacker-created packages made up 89% of the set but just 0.2% of downloads.
  • The company says attackers have shifted from stolen long-lived tokens toward compromising CI build pipelines and publishing through OIDC trusted publishing; it found 85% of trusted-published packages in the set were compromised legitimate packages.
  • Databricks identifies a new attack surface it says did not exist two years ago: malicious MCP server packages, packages that tamper with AI assistant configuration files, and credential stealers specialized in AI service keys.
  • The company reports that 87% of confirmed malicious packages received a public advisory, with unattributed packages flagged at a median of 1.7 days, while npm's own security takedown followed at a median of 7 days and 16% of packages remained installable at the time of analysis.
  • Databricks says offensive-security frameworks marketed as AI agents have begun appearing on the npm registry, bundling remote-access and cloud-credential tooling with modules for testing AI systems.

Databricks Threat Research, the company's internal security research group, published findings from an analysis of roughly 5,400 confirmed malicious npm packages published between December 2025 and October 2026. Databricks says the period covers the first year following npm's revocation of long-lived authentication tokens and describes the report as the first in a planned series on supply chain threats.

Exposure concentrated in hijacked packages

Databricks says attacker-created malware packages made up 89% of the dataset but accounted for only 0.2% of recorded downloads. Compromised legitimate packages, by contrast, made up just 7% of the set but accounted for more than 99% of downloads. The company says 78% of compromised package versions added or modified a lifecycle script, compared with 4% of attacker-created packages, and that 23% of compromises showed a change of maintainer or publisher, with most compromises published through the legitimate account itself.

Attackers moving into build pipelines

Databricks reports that account compromise has shifted from stolen authentication tokens toward compromised CI build pipelines. The company says the highest-exposure victims of an August 2026 self-replicating worm campaign were republished through OIDC trusted publishing from compromised CI environments, and that 85% of packages in the set published via trusted publishing were compromised legitimate packages, versus 0.1% for attacker-created packages. Databricks also says npm token theft peaked at 22% of packages in March 2026 and fell below 5% starting in May, following the December 9, 2025 revocation of classic long-lived tokens.

New targeting of AI developer tools

Databricks identifies a category of activity it says targets infrastructure that did not exist as an attack surface two years ago: malicious MCP server packages that harvest credentials from the agent host, packages that modify AI assistant configuration and instruction files, and credential stealers specialized in AI service keys. The company says targeting of AI-developer credentials held at 1-4% of packages throughout the year, with absolute counts rising alongside overall volume, and that among credential stealers targeting a single class, 80% of those going after AI-developer credentials targeted no other credential type.

Databricks also reports that offensive-security frameworks marketed as AI agents have begun appearing on the npm registry for open source distribution, bundling remote-access, cloud-credential and enterprise-identity tooling alongside modules the company says are built for adversarial testing of AI systems.

Infrastructure and takedown speed

According to Databricks, 38% of malicious packages communicated with a legitimate third-party service, including serverless hosting, chat-platform webhooks, code-hosting and paste sites, request-capture endpoints, and in a small number of cases public blockchain RPC nodes used as dead-drop resolvers. The company says domain reputation alone does not distinguish this traffic from normal developer activity.

On removal speed, Databricks says 87% of confirmed packages received a public advisory, with unattributed packages flagged at a median of 1.7 days after publication, while npm's own security takedown followed at a median of 7 days, with 10% of cases exceeding 59 days. The company says 37% of attacker-created packages were unpublished by their own publisher, at a median of seven hours, before any registry takedown occurred, and that 16% of tracked packages remained installable at the time of the analysis, which checked registry status on November 6, 2026.

Source: Databricks Blog, "What 5,400 Malicious npm Packages Reveal about Software Supply Chain Risk in 2026," published November 23, 2026.

Frequently asked questions

How many malicious npm packages did Databricks analyze?
Databricks Threat Research analyzed approximately 5,400 confirmed malicious npm packages published between December 2025 and October 2026, the year following npm's revocation of long-lived authentication tokens.
What did Databricks find about where the real risk lies?
Databricks says attacker-created malware packages made up 89% of the set but only 0.2% of downloads, while compromised legitimate packages made up just 7% of the set but over 99% of downloads, concentrating real-world exposure in package takeovers rather than new malicious uploads.
Did Databricks find new risks tied to AI developer tools?
Yes. Databricks identified malicious MCP server packages, packages that modify AI assistant configuration files, and credential stealers targeting AI service keys as a distinct and newly emerging category of threat.
How fast does npm remove malicious packages, according to Databricks?
Databricks says npm's security takedown follows a median of 7 days after publication, with 10% of cases exceeding 59 days, and that 16% of the packages it tracked remained installable at the time of its analysis.

Sources

  1. What 5,400 Malicious npm Packages Reveal about Software Supply Chain Risk in 2026 | Databricks Blog — Databricks
Tagsdatabricksnpmsupply-chain-securitythreat-researchmcpcybersecurity

Related reading

Databricks Finds LLMs Miss Malware Hidden in npm Binary Files

Databricks Threat Research says LLMs used to triage npm packages often miss malware hidden in compiled binaries, failing half of its budget-tier tests outright. The company says injecting structured "capability profile" evidence into prompts before models reason recovered 91% of those failures across its tested models.

3 min read

Anthropic reports Claude accessed three organizations during cyber evaluations

Anthropic said three Claude models gained unauthorized access to three organizations during cybersecurity evaluations that were mistakenly connected to the internet. The company found six affected runs in a review of 141,006 runs, stopped its cyber evaluations, notified its evaluation partner and the affected organizations, and began remediation work.

3 min read