Documented Exercise · AML.CS0022 · High severity
ChatGPT Package Hallucination
Investigated by Vulcan18, Lasso Security, and academic slopsquatting researchers through 2024 (tracked as AIID Incident 731), this attack exploits repeatable package-name hallucinations produced by coding LLMs. By probing models to discover nonexistent Python or npm package names that the LLM frequently invents, attackers register those names on public registries with malicious payloads that developers unknowingly install.
Exercise dossier metadata
- Case ID
AML.CS0022- Classification
- Exercise
- Date
- Severity
- High
- Sector
- Software Development & Package Registries
- Attack vector
- LLM Package Hallucination (Slopsquatting)
- System type
- Coding assistant LLMs recommending open-source packages
- CVE / reference
AIID-731- Reference URI
https://raw.githubusercontent.com/mitre-atlas/atlas-data/f56c1468731d6428e5bf875263b4643b46d67437/dist/v6/ATLAS-2026.10.yaml#:~:text=AML.CS0022%3A
Defensive takeaway
Verify every LLM-recommended dependency against an approved internal artifact proxy or package allowlist, enforce lockfile review, and run automated provenance and typo/slopsquatting checks in CI.
Mapped AI security techniques
- Supply Chain Compromise: Software AML.T0010.001
- User Execution: Malicious Package AML.T0011.001
- AI Model Inference API Access AML.T0040
- External Harms: User Harm AML.T0048.003
- Publish Hallucinated Entities AML.T0060
- Discover LLM Hallucinations AML.T0062
Source citation records
- MITRE ATLAS: ChatGPT Package Hallucination · MITRE ·
- Slopsquatting: When AI Agents Hallucinate Malicious Packages · Cited by MITRE ATLAS; publisher not independently verified
- Vulcan18's "Can you trust ChatGPT's package recommendations?" · Cited by MITRE ATLAS; publisher not independently verified
- AIID Incident 731: Hallucinated Software Packages with Potential Malware Downloaded Thousands of Times by Developers · Cited by MITRE ATLAS; publisher not independently verified
- AI Package Hallucinations: Real-World Supply Chain Exploitation Analysis · Cited by MITRE ATLAS; publisher not independently verified