MITRE ATLAS 2026.10 · AML.T0060 · High severity
Publish Hallucinated Entities
Attackers monitor or predict non-existent software packages, model repositories, or URLs repeatedly hallucinated by popular LLMs and register malicious payloads under those exact names on public registries (slopsquatting). Developers or automated coding agents that trust model recommendations then install the attacker's code.
Technique dossier overview
- Category
- Supply chain
- Severity
- High
- Attack surface
- Model Weights & Supply Chain · LLM / Prompt Layer
- Framework maturity
- Demonstrated
- Platforms
- Generative AI, Agentic AI
- Tactics
- Resource Development
- Catalog entry modified
How the mechanism works
- Adversaries prompt coding models across common developer tasks to catalog recurring non-existent library names, domains, or hub identifiers.
- The attacker claims those unclaimed namespaces on PyPI, npm, or model registries and publishes benign-looking wrappers containing malicious install hooks.
- Engineers or autonomous coding agents execute suggested installation commands directly, executing the payload on developer laptops or CI runners.
Detection & telemetry signals
- Dependency installers or CI pipelines pulling newly registered, single-version, low-download packages matching LLM-suggested names.
- Agentic coding tools proposing package installations absent from approved internal artifact mirrors or lockfiles.
- Security scanners flagging install-time lifecycle scripts (setup.py, postinstall) in unfamiliar newly published packages.
Architectural defensive countermeasures
- Route all developer and agent package installations through curated private artifact proxies (allowlisted registries) rather than open public indexes.
- Verify package existence, maintainer history, age, and vulnerability posture deterministically before allowing automated agent installation.
- Require explicit lockfile pinning, checksum verification, and human review whenever an AI coding assistant introduces a new dependency.
- Disable automatic execution of package install scripts in agent coding sandboxes and CI build environments.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Slopsquatting turns LLM hallucination of non-existent entities (LLM09) into a supply-chain compromise (LLM03) when unvalidated installation suggestions execute downstream (LLM05).
- NIST AI RMF functions
- NIST AI RMF guidance
- MAP allowed internal package registries and dependency-resolution paths for coding agents, and MANAGE slopsquatting risk via private artifact proxies, existence verification, and lockfile enforcement.
Mapped defensive controls
- Vulnerability Scanning AML.M0016
Continuously scan ML containers, Python/CUDA dependencies, inference servers, vector databases, and MCP plugin codebases for known CVEs and insecure patterns.
- AI Model Distribution Methods AML.M0017
Deliver AI capabilities via authenticated APIs, private enterprise registries, or hardware-bound enclaves instead of unvetted public weight downloads whenever IP or safety requires control.
- Maintain an AI Bill of Materials AML.M0023
Maintain a machine-readable AI-BOM (CycloneDX ML-BOM / SPDX) tracking base weights, fine-tuning datasets, tokenizers, MCP servers, dependencies, and licenses across environments.
- Enforce Access Controls for AI Agent Tools AML.M0028
Separate read-only tools from state-changing or destructive APIs and validate tool names, JSON arguments, path prefixes, and resource ownership outside the LLM.
Documented incidents & exercises (3)
- ChatGPT Package Hallucination AML.CS0022 · Exercise · June 2024 · High · Software Development & Package Registries
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…
- AI Package Hallucination Slopsquatting Attack Exploiting Fabricated Library Names INC-OBS-021 · Incident · Mar 27, 2024 · High · Software Development & AI Tooling
In March 2024, Lasso Security researcher Bar Lanyado demonstrated a real-world supply chain exploitation vector, subsequently termed slopsquatting, by identifying recurring non-existent package names hallucinated by commercial LLMs (such as `huggingface-cli` on PyPI) and…
- 576,000-Sample Package Hallucination & Slopsquatting Study Across 16 LLMs OBS.EX0131 · Exercise · Jun 12, 2024 · 16 Commercial & Open-Source Code LLMs · Python & JavaScript Supply-Chain Audit
Spracklen et al. (2024/USENIX Security 2025) generated and analyzed 576,000 Python and JavaScript code samples across 16 popular commercial and open-source code LLMs to measure systemic package hallucination ("slopsquatting") exposure. Hallucinated package recommendations…
Source citation records
Common questions
- What is Publish Hallucinated Entities (AML.T0060)?
- Attackers monitor or predict non-existent software packages, model repositories, or URLs repeatedly hallucinated by popular LLMs and register malicious payloads under those exact names on public registries (slopsquatting). Developers or automated coding agents that trust model recommendations then install the attacker's code.
- How do you mitigate Publish Hallucinated Entities?
- MITRE ATLAS maps 4 mitigations to AML.T0060: Vulnerability Scanning, AI Model Distribution Methods, Maintain an AI Bill of Materials, and Enforce Access Controls for AI Agent Tools. Route all developer and agent package installations through curated private artifact proxies (allowlisted registries) rather than open public indexes.