DatabricksDatabricks Threat Research, Alessandra Rizzo, Panos Sakkos, Ariel RopekExplainer
What 5,400 Malicious npm Packages Reveal about Software Supply Chain Risk in 2026
Summary
An analysis of approximately 5,400 confirmed malicious npm packages published between December 2025 and October 2026 reveals that exposure is concentrated in compromised legitimate packages, which account for 7% of the set but over 99% of downloads, while attacker-created packages constitute 89% of the set but only 0.2% of downloads. Account compromise has shifted from stolen tokens to compromised build pipelines, with 85% of packages published via trusted publishing being compromised legitimate packages. A distinct class of activity targets AI development tooling, including MCP server packages that harvest credentials and packages that modify AI assistant configuration. Obfuscation increased, with the share of actors triggering obfuscation rules more than doubling between May and August 2026. The registry is used as a distribution channel for payloads unrelated to software supply chain, and removal is slower than reporting, with attackers removing their own packages at a median of seven hours before any takedown.
Context
The post analyzes 5,400 malicious npm packages to understand software supply chain risks, focusing on exposure concentration, compromise methods, and attacker behavior.
Takeaways
Compromised legitimate packages, though few in number, account for the vast majority of malicious downloads (over 99%).
Account compromise now primarily occurs through compromised CI build pipelines using OIDC trusted publishing, not stolen tokens.
AI development tooling is a growing target, with MCP server packages and assistant configuration files being exploited.
FAQ
How do attackers compromise legitimate npm packages?
Through compromised build pipelines using OIDC trusted publishing, with 78% of compromised versions adding or modifying a lifecycle script and 23% changing maintainer or publisher.
What percentage of malicious packages use lifecycle scripts?
54% declare a lifecycle script; the remainder execute on import or invocation. Among compromised legitimate packages, 78% add or modify a lifecycle script.
How quickly are malicious packages removed?
Attackers remove their own packages at a median of seven hours, while registry takedown follows at a median of 7 days, with 10% exceeding 59 days. 16% remained installable at the time of analysis.
Source and freshness
- Source
- databricks.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.