What happened
Databricks Threat Research published (2026-11-23) an analysis of ~5,400 confirmed malicious npm packages published Dec 2025–Oct 2026. It shows attacker-created malware is 89% of the set but only 0.2% of downloads, while compromised legitimate packages are 7% of the set but >99% of downloads. After npm revoked long-lived tokens, attackers pivoted to compromised CI build environments and published through trusted publishing (85% of trusted-published packages are compromises, including the victims of the August 2026 self-replicating worm campaign). Critically, it identifies a distinct class targeting AI development tooling and notes agentic offensive-security frameworks (e.g. ARTEX) now being distributed through the registry.
Why it matters
This is direct intelligence on the AI software supply chain: the highest-exposure packages are compromised real ones, and the newest, fastest-growing attack surface is explicitly MCP servers, AI-assistant configuration files, and AI provider API keys. For AI deployments, a poisoned dependency or malicious MCP package yields credential theft and agent-host compromise — and the 'registry as distribution channel' technique means even users who never run the package manager can be served payloads from npm.
Attack vector
Attackers publish or compromise npm packages that — on install or import — harvest credentials from the agent host, tamper with AI assistant configuration/instruction files, or steal AI service keys. Since 99% of exposure now comes from compromised legitimate packages (via OIDC trusted-publishing from compromised CI pipelines), a developer installing an 'updated' version of a real package can be hit.
Affected systems
npm ecosystem; MCP servers, AI assistant config files, and AI service API keys (e.g. LLM provider keys)
Mitigation
Pin known-good versions, require code review + attestation for agent-hosting packages, monitor for AI-config/mcp package tampering, and rotate any LLM/AI service keys that may have appeared in prompts or supplementary package files. Report: https://www.databricks.com/blog/what-5400-malicious-npm-packages-reveal-about-software-supply-chain-risk-2026