MITRE ATLAS 2026.10 · AML.T0011.001 · Critical severity
User Execution: Malicious Package
Threat actors distribute malicious packages via PyPI, npm, or IDE marketplaces that execute stealers or backdoors during installation or import. In AI ecosystems, adversaries actively register package names frequently hallucinated by LLMs (slopsquatting) as well as typosquats of popular ML and agent libraries.
Technique dossier overview
- Category
- Supply chain
- Severity
- Critical
- Attack surface
- Model Weights & Supply Chain · Tool-Using Agents & MCP
- Framework maturity
- Realized
- Platforms
- Enterprise
- Tactics
- Execution
- Catalog entry modified
How the mechanism works
- Attackers identify recurring non-existent package names emitted by coding LLMs or mimic high-volume ML/MCP library names.
- They publish valid-looking packages containing obfuscated `setup.py` install hooks, lifecycle scripts, or compromised extension updates.
- Developers, coding agents, or CI pipelines install the package—often straight from AI-generated instructions—executing the payload immediately.
Detection & telemetry signals
- Dependency firewall alerts when newly introduced packages have ultra-recent registration dates, single-maintainer history, or close edit distance to internal/popular packages.
- Build-host EDR monitoring detecting `setup.py` or `postinstall` scripts spawning shells, enumerating environment variables, or reading credential stores.
- Automated verification checks flagging AI coding-agent package suggestions that do not exist in internal approved artifact mirrors.
Architectural defensive countermeasures
- Configure CI/CD and developer workstations to resolve packages exclusively from curated internal artifact proxies blocking unvetted public packages.
- Require automated provenance verification, signed releases, and maintainer-age checks before approving new PyPI, npm, or IDE extension dependencies.
- Validate package names generated by coding assistants against internal registries automatically before agent auto-installs are allowed to execute.
- Disable arbitrary install-time scripts (`--ignore-scripts` / isolated wheel-only builds) and strip cloud credentials from build environments.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Malicious and slopsquatted packages weaponize AI software supply chains (LLM03) by exploiting hallucinated package recommendations (LLM09) and unsafe automated execution (LLM05).
- NIST AI RMF functions
- NIST AI RMF guidance
- Follow NIST AI RMF GOVERN 6.1 and MANAGE by validating AI-recommended dependencies against internal allowlists and sandboxing package installation.
Mapped defensive controls
- Restrict Library Loading AML.M0011
Eliminate unsafe deserialization (Python pickle, torch.load) and block arbitrary dynamic code/library loading when handling untrusted model weights, datasets, and plugins.
- Code Signing AML.M0013
Require cryptographic signatures and transparency-log verification on model artifacts, inference containers, agent skills, and MCP servers before deployment.
- 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.
- User Training AML.M0018
Educate engineers, analysts, and end-users on AI trust boundaries, deepfake phishing, untrusted model outputs, and concrete verification/escalation workflows.
- 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.
Related technique records
Documented incidents & exercises (10)
- 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…
- Code to Deploy Destructive AI Agent Discovered in Amazon Q VS Code Extension AML.CS0047 · Incident · Jul 13, 2025 · Critical · Developer Tooling & Cloud IDE Extensions
In July 2025 (tracked as AIID Incident 1158 and addressed in Amazon Q Developer VS Code extension update v1.84), an attacker exploited compromised repository permissions to submit a malicious commit containing a destructive system prompt into the public Amazon Q VS Code…
- Ultralytics YOLOv8 PyPI Supply Chain Compromise Deploying XMRig Cryptominer INC-OBS-007 · Incident · Dec 4, 2024 · Critical · Software Development & AI Tooling
Between December 4 and December 7, 2024, attackers compromised the widely used `ultralytics` YOLOv8 computer-vision package on PyPI, publishing trojanized releases `8.3.41`, `8.3.42`, `8.3.45`, and `8.3.46`. Root-cause analysis by Wiz and Ultralytics traced the intrusion to a…
- Nx npm s1ngularity Supply Chain Attack Weaponizing Local AI CLIs to Steal Secrets INC-OBS-008 · Incident · Aug 26, 2025 · Critical · Software Development & AI Tooling
On August 26, 2025, threat actors compromised an npm publishing token via a vulnerable GitHub Actions workflow in the Nx monorepo build system and pushed malicious package versions live for roughly four hours (tracked as the s1ngularity campaign). Uniquely, the malicious…
- Cline CLI v2.3.0 Compromised Maintainer Token Silently Installing Secondary Package INC-OBS-009 · Incident · Feb 17, 2026 · High · Software Development & AI Tooling
On February 17, 2026, StepSecurity detected an unauthorized npm publication of the popular `cline` AI coding CLI (`cline@2.3.0`) pushed via a compromised maintainer token. The tampered release injected a post-install dependency hook that silently downloaded and installed a…
- LiteLLM PyPI Supply Chain Compromise (v1.82.7 / v1.82.8) Installing Credential Hooks INC-OBS-010 · Incident · Mar 24, 2026 · Critical · Cloud & AI Infrastructure
On March 24, 2026, threat actors compromised the PyPI release pipeline for LiteLLM, publishing trojanized package versions `1.82.7` and `1.82.8` of the widely adopted unified LLM proxy library. The malicious wheels dropped Python startup hooks (`.pth` / `sitecustomize.py`) that…
- LiteLLM Secondary PyPI & Docker Hub Compromise (v1.107.0) Deploying Cloud Stealers INC-OBS-011 · Incident · Oct 21, 2026 · Critical · Cloud & AI Infrastructure
On October 21, 2026, a second supply chain intrusion hit the LiteLLM ecosystem when backdoored version `1.107.0` was published to PyPI and Docker Hub via stolen CI/CD credentials and remained live for roughly two hours before takedown. The trojanized release again targeted…
- ComfyUI_LLMVISION Malicious Custom Node Supply Chain Credential Stealer INC-OBS-012 · Incident · Jun 9, 2024 · High · Consumer AI & Local Runtimes
On June 9, 2024, security researchers and ComfyUI community maintainers alerted users that a widely shared custom node package (`ComfyUI_LLMVISION` uploaded by user `u/AppleBotzz`) had been trojanized with credential-stealing malware. The malicious node bundled tampered Python…
- 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
- MITRE ATLAS: Malicious Package · MITRE ·
Common questions
- What is User Execution: Malicious Package (AML.T0011.001)?
- Threat actors distribute malicious packages via PyPI, npm, or IDE marketplaces that execute stealers or backdoors during installation or import. In AI ecosystems, adversaries actively register package names frequently hallucinated by LLMs (slopsquatting) as well as typosquats of popular ML and agent libraries.
- How do you mitigate User Execution: Malicious Package?
- MITRE ATLAS maps 5 mitigations to AML.T0011.001: Restrict Library Loading, Code Signing, Vulnerability Scanning, User Training, and Maintain an AI Bill of Materials. Configure CI/CD and developer workstations to resolve packages exclusively from curated internal artifact proxies blocking unvetted public packages.