Compromised legitimate software packages accounted for more than 99% of recorded download exposure in a study of malicious npm packages published from December 2025 through October 2026, Databricks researchers said.
Those compromised packages represented 7% of the roughly 5,400 packages examined, the researchers found. Databricks, a data and artificial intelligence platform provider, published the blog post, “What 5,400 Malicious npm Packages Reveal about Software Supply Chain Risk in 2026,” on Nov. 23.
Npm is a registry where developers share and download software packages. The researchers counted package versions detected by their scanner only if another source supported the finding, including a public advisory, a vendor report, a registry takedown or an analyst review.
Download figures were monthly snapshots taken when packages were scanned, the authors said. They checked whether packages were still active in the public registry on Nov. 6.
The researchers found that monthly counts of confirmed malicious packages varied fifteenfold during the period. One campaign accounted for 78% of confirmed malicious versions in August.
When the researchers counted each campaign as one actor, they found a steady rate of malicious packages relative to all packages published. Several hundred new publisher accounts appeared each month, while named campaigns drove spikes in package counts.
The authors found three waves in which the same family of self-spreading malicious software compromised legitimate packages in May, June and August. The May and August waves each affected more than 100 packages.
In June, the same toolkit republished all packages in one vendor’s namespace in a single day through trusted publishing, which lets an approved build system publish without a long-lived token. Outside those waves, the researchers found only a few compromised packages a month.
Changes to installation scripts distinguished many compromised versions from packages created by attackers, the authors found. Such scripts were added or changed in 78% of compromised versions, compared with 4% of attacker-created packages.
Most compromises used a legitimate account and left ownership records unchanged, the researchers said. They also found that the August wave’s most widely downloaded victims were republished through compromised automated build environments.
Across the dataset, 72% of packages showed signs of code concealment, and 30% downloaded another component, the authors found. The share of actors whose packages triggered a concealment rule more than doubled between May and August.
Packages targeting artificial intelligence developers’ credentials accounted for 1% to 4% of the monthly total throughout the period, the researchers found. The share targeting npm authentication tokens peaked at 22% in March and fell below 5% from May.
Npm revoked its classic long-lived tokens in December 2025. The authors said the tokens targeted during the study period were plausibly more limited access tokens and secrets used in automated build systems.



