WeaknessASC-2026-0020Major weakness
Hallucinated package names (slopsquatting)
HighMitigated
Code assistants suggest packages that do not exist, and the same invented names recur. Attackers register them with malware, so following the suggestion installs it.
How to detect it
- Install commands for packages with no history, very recent creation or almost no downloads
- Dependencies added by an agent that are not in your approved catalog
How to resolve it
- Install only from an approved catalog, and block agents from adding unapproved dependencies
- Check that a suggested package exists, is old enough and is maintained before adding it
- Commit lockfiles and review dependency changes in pull requests
How to investigate
- List packages added by agents and check each one's publish date, maintainer and download history
- Remove any unvetted package and scan the machines that installed it
Sources
- Spracklen et al.: We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMs (2024)
- OWASP Top 10 for LLM Applications 2025: LLM09 Misinformation
- OWASP Top 10 for LLM Applications 2025: LLM03 Supply Chain
- OWASP Top 10 for Agentic Applications 2026: ASI04 Agentic Supply Chain Vulnerabilities
- MITRE ATLAS: AML.T0060 Publish Hallucinated Entities