VV-012highSupply chain2025
Slopsquatting: AI suggests packages that don’t exist
A USENIX Security 2025 study found 19.7% of 2.23 million package suggestions from 16 code models were hallucinated. Attackers can register those names.
What it is
The study found 205,474 unique non-existent package names. Commercial models averaged about 5.2%, open-source models 21.7%; JavaScript (21.3%) was worse than Python (15.8%). The paper names Cursor among widely used coding tools.
How to check
- Before installing, confirm each new dependency exists, has history, downloads and a real repo.
How to fix
- Pin dependencies with a lockfile, review new packages in PRs, and avoid installing names you have never heard of.
# Inspect a package before installing it
npm view <package-name> name version time.created repository.url
npm install --save-exact <package-name> Sources
More advisories for this tool
- criticalMalicious npm packages posing as AI SDKs and MCP tools: tavern-ai-sdk and persona-ai-sdk run obfuscated loaders on import behind VM detection, and tzero-mcp 12.3.0 is flagged as malware
- criticalCVE-2026-136441: Bytebase DBHub MCP server authentication bypass through untrusted SQL, published by ZDI as a 0-day with no fix listed
- criticalMalicious npm packages posing as AI agent tools: agentic-awesome-skills, x402-prompt-injection-scan and formatting-subtitles-for-claude
- criticalLiteLLM 1.107.0 on PyPI and Docker was malware: a credential stealer that runs whenever Python starts