Databricks analyzed 5,400 malicious npm packages: 7% hijacked legit ones drove 99% of bad downloads

lxfater · x · 2026-11-24

Databricks dissected 5,400 malicious npm packages over the past year, and the data flips common assumptions: typosquat fakes are under 5%, attacker-published packages make up 89% but only 0.2% of downloads — while compromised legitimate packages, just 7% of the total, accounted for over 99% of malicious downloads.

How they work

Why takedowns fall short: median npm removal takes 7 days; 16% of attacker packages were still installable during verification.

Three defenses

Original post →

More from coding & agent

coding & agent channel →