Hijacked legitimate packages made up 7% of about 5,400 malicious npm packages but over 99% of their recorded downloads, Databricks said in a report published on 23 November.
Packages that attackers created themselves were 89% of the set, roughly 4,800 by our arithmetic, but drew 0.2% of downloads. The study covers malicious packages published between December 2025 and October 2026.
Packages aimed at AI-developer credentials stayed at 1% to 4% of the set all year, the report says. We track the models behind AI coding tools on our AI model benchmarks page.
Business Pill · Embedded Dependency
An evergreen Business Engineer explainer on embedded dependency. It teaches the general idea only and does not discuss Databricks’ report.
The key insight: In Databricks’ study of about 5,400 malicious npm packages, compromised legitimate packages were 7% of the set but over 99% of recorded downloads, while attacker-created packages were 89% of the set and 0.2% of downloads.
What Databricks Found
The ten most-downloaded packages in the set account for over 99% of recorded downloads, and all are compromised legitimate packages, the report says. 81% of attacker-created packages had no downloads at the time of scanning.
54% of the packages declare a lifecycle script, so install-script controls address roughly half of the malware observed. The rest run on import or invocation.
38% of malicious packages communicate with a legitimate third-party service, such as serverless hosting, chat-platform webhooks or code-hosting sites, Databricks says.

How Attacks Changed
Theft of npm authentication tokens peaked at 22% of packages in March 2026 and fell below 5% from May. Long-lived tokens had been revoked on 9 December 2025.
The highest-exposure victims of the August 2026 self-replicating worm campaign were republished through OIDC trusted publishing from compromised build systems, not stolen tokens, the report says.
Removal Is Slow
Unattributed packages received a public advisory a median of 1.7 days after publication. npm’s security placeholder replaced 40% of attacker-created packages, at a median of 7.1 days.

That is about 4.2 times as long, by our arithmetic. Attackers themselves unpublished 37% of their packages, at a median of 0.3 days, Databricks says.
Context
This week we also covered the OpenAI and Cisco Shirudo release for shielding unpatched Linux systems, another attempt to cut the time between a known flaw and a fix.
The Structural Read
As we read it, the risk for teams using AI coding tools is less about strange new packages and more about trusted ones being hijacked.
As we read it, the gap between a public advisory and registry removal leaves several days in which known-bad packages can still be installed.
Databricks security research, 23 Nov 2026
“Exposure is concentrated in compromised legitimate packages.”
Three Implications
FOR DEVELOPERS Compromised legitimate packages drew over 99% of downloads, Databricks says.
FOR BUILD SYSTEMS The August worm spread through trusted publishing from compromised build systems.
FOR REGISTRIES Removal took a median 7.1 days for attacker-created packages.
What Is Not Established
The report counts confirmed malicious packages and recorded downloads; it does not say how many companies installed them. The 4,800 and 4.2 times are our arithmetic on its percentages and medians.
The Bottom Line
In Databricks’ data, the danger came from trusted packages that were hijacked: 7% of the malicious set, over 99% of its downloads.
97,000+ executives read Business Engineer for the AI strategy frameworks cited by ChatGPT, Claude, and Perplexity.
A note on sourcing. All shares, medians and dates are from Databricks’ report of 23 November 2026, which analysed about 5,400 confirmed malicious npm packages published from December 2025 to October 2026. The roughly 4,800 packages and the 4.2 times are our arithmetic.







