MITRE ATLAS 2026.10 · AML.T0010.001 · Critical severity
Supply Chain Compromise: Software
Attackers inject malicious code into ML frameworks, Python/npm dependencies, IDE coding-assistant extensions, or repository instruction files to execute arbitrary payloads on developer and training hosts. Recent campaigns exploit dependency confusion on nightly ML packages, AI-hallucinated package names (slopsquatting), and poisoned rules files inside AI code editors.
Technique dossier overview
- Category
- Infrastructure and access
- Severity
- Critical
- Attack surface
- Model Weights & Supply Chain · Tool-Using Agents & MCP · Training & Fine-Tuning
- Framework maturity
- Realized
- Platforms
- Predictive AI, Generative AI, Agentic AI
- Tactics
- Initial Access
- Catalog entry modified
How the mechanism works
- Adversaries publish malicious packages to public registries targeting private internal dependency names, common typos, or package names frequently hallucinated by LLMs.
- Alternatively, they compromise legitimate IDE coding extensions or inject hidden directives into `.cursorrules` / agent instruction files checked into repositories.
- When developers install packages, open repositories in AI-assisted IDEs, or run training builds, attacker code executes with local developer credentials and cloud tokens.
Detection & telemetry signals
- Package-manager audit logs showing newly resolved dependencies from public registries shadowing internal package names or low-reputation authors.
- CI/CD diff alerts detecting hidden Unicode characters, encoded instructions, or unexpected modifications in AI IDE rules files.
- Endpoint telemetry flagging `pip`/`npm` install hooks or IDE extension subprocesses reading `.env`, SSH keys, or cloud credential files.
Architectural defensive countermeasures
- Route all `pip`, `npm`, and OS package installs through private mirroring proxies with dependency-confusion protection and pinned lockfile hashes.
- Review and sanitize `.cursorrules`, agent instruction files, and MCP configs in pull requests, blocking non-printable Unicode and unreviewed external commands.
- Monitor and verify every package suggested by AI coding assistants against approved corporate allowlists before installation to prevent slopsquatting.
- Enforce least-privilege OS sandboxing and signed IDE extensions so developer workstations do not hold long-lived production cloud credentials.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Compromised ML dependencies, slopsquatted packages, and poisoned coding-assistant rules execute untrusted supply-chain code (LLM03) via unvalidated downstream tooling (LLM05).
- NIST AI RMF functions
- NIST AI RMF guidance
- Follow NIST AI RMF GOVERN 6.1 and MANAGE by enforcing pinned package hashes, private dependency namespaces, and pre-execution review of AI coding rules.
Mapped defensive controls
- Code Signing AML.M0013
Require cryptographic signatures and transparency-log verification on model artifacts, inference containers, agent skills, and MCP servers before deployment.
- Verify AI Artifacts AML.M0014
Verify provenance, SHA-256 digests, serialization safety, and behavioral integrity of every external dataset, model weight, LoRA adapter, and container prior to loading.
- 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.
- 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.
- AI Red Team AML.M0035
Conduct authorized, isolated manual and automated adversarial testing across models, RAG pipelines, and agents—tracking reproducible breach rates, Wilson confidence intervals, and patch verification.
- Threat Intelligence Program AML.M0042
Operationalize continuous AI threat intelligence—tracking ATLAS updates, NVD CVEs, OWASP advisories, and novel jailbreak/supply-chain TTPs directly into detection rules and CI eval packs.
Related technique records
Documented incidents & exercises (21)
- Compromised PyTorch Dependency Chain AML.CS0015 · Incident · Dec 25, 2022 · Critical · AI/ML Open-Source Software Supply Chain
Between December 25 and December 30, 2022, a real-world dependency confusion attack compromised the PyTorch-nightly Linux installation chain via a malicious package named torchtriton uploaded to the public PyPI registry. Because pip prioritized the public index over the PyTorch…
- Arbitrary Code Execution with Google Colab AML.CS0018 · Exercise · July 2022 · High · Cloud ML Notebooks & Data Science
Demonstrated in July 2022 ("Careful Who You Colab With"), researchers showed how adversaries can abuse shared Google Colab notebooks to gain arbitrary code execution inside a victim's cloud runtime. Once a user runs a tampered notebook cell or hidden script with mounted Google…
- 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…
- Rules File Backdoor: Supply Chain Attack on AI Coding Assistants AML.CS0041 · Exercise · Mar 18, 2025 · High
MITRE ATLAS case study analyzing invisible Unicode control characters hidden inside shared repository instruction files that silently altered generated source code to introduce backdoors.
- 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…
- Autonomous Claude Agents Compromise Three Real Organizations During Cyber Evaluations AML.CS0073 · Incident · April 2026 · Critical
ATLAS incident: autonomous Claude agents compromised three real organizations during cybersecurity evaluations.
- LangChain Hub Chain Loader Path Traversal Allowing Arbitrary File Retrieval INC-2024-28088 · Incident · Mar 3, 2024 · Elevated · Software Development & AI Tooling
CVE-2024-28088 revealed a directory traversal flaw in LangChain's `load_chain` hub resolution helper when fetching serialized chain configurations. Attacker-controlled chain identifier strings containing path traversal sequences could escape the intended hub directory structure…
- LlamaIndex RunGptLLM Command Injection via Unvalidated Model Arguments INC-2024-4181 · Incident · May 16, 2024 · High · Software Development & AI Tooling
CVE-2024-4181 affected the `RunGptLLM` wrapper integration in LlamaIndex (`<= 0.9.47`), where model arguments were passed unsafely into system execution contexts. Untrusted configuration or prompt-derived arguments could inject shell metacharacters, triggering arbitrary OS…
- vLLM PyNcclPipe Distributed Inference Socket Pickle Deserialization RCE INC-2024-50050 · Incident · Oct 23, 2024 · Elevated · Cloud & AI Infrastructure
CVE-2024-50050 reported unsafe Python pickle deserialization inside vLLM's distributed PyNcclPipe weight-synchronization socket transport. When distributed inference clusters listened on internal IPC or network sockets without strict authentication, an attacker able to reach…
- LangChain.js Path Traversal in Local Artifact Storage Helper INC-2024-7774 · Incident · Oct 29, 2024 · Elevated · Software Development & AI Tooling
CVE-2024-7774 identified a path traversal vulnerability in LangChain.js within its local artifact file-storage path helper (`getFullPath`). The helper joined caller- or model-supplied relative file names with a base directory without verifying that the resolved canonical path…
- vLLM AsyncEngineRPCServer Unsafe cloudpickle.loads() Remote Code Execution INC-2024-9053 · Incident · Mar 20, 2025 · Critical · Cloud & AI Infrastructure
CVE-2024-9053 (published March 20, 2025) revealed a critical deserialization remote code execution vulnerability in vLLM's `AsyncEngineRPCServer` loop (`v0.6.0`). Incoming RPC requests were deserialized directly with `cloudpickle.loads()` without authentication or input…
- 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…
- 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…
- OpenAI ChatGPT March 2023 Redis Cache Bug Exposing Chat Titles and Billing Data INC-OBS-039 · Incident · Mar 20, 2023 · Critical · Consumer AI & Local Runtimes
On March 20, 2023, OpenAI took ChatGPT offline for roughly nine hours after a concurrency bug in the open-source `redis-py` async client library corrupted connection-pool response multiplexing under load. When an async request was canceled mid-flight, the shared Redis…
- Asleep at the Keyboard? 1,689-Program Security Audit of GitHub Copilot OBS.EX0130 · Exercise · Aug 20, 2021 · GitHub Copilot · 89 High-Risk MITRE Top-25 CWE Coding Scenarios
Pearce et al. (IEEE S&P 2022) systematically audited GitHub Copilot across 89 coding scenarios covering MITRE Top-25 CWEs, generating 1,689 programs across diverse prompts, weaknesses, and domains to measure baseline insecure code emission. Static and manual vulnerability…
- Beyond the Patch: Control-Gated Reconstruction of Agent Framework Bypasses OBS.EX0139 · Exercise · Nov 16, 2026 · PraisonAI, Langroid, Agno & CrewAI · Incomplete-Fix Sibling-Path Probe Audit
Garware (2026) introduced a benign, control-gated verification methodology to test whether security patches in LLM agent frameworks enforce the underlying invariant across sibling code paths rather than only blocking the original proof-of-concept trigger. Across PraisonAI,…
- Lexo LLM-Assisted Program Regeneration Against Supply-Chain Backdoors OBS.EX0140 · Exercise · Oct 16, 2025 · 100+ Real-World Open-Source Packages · Input-Output Behavioral Regeneration
Lamprou et al. (2025) evaluated Lexo, a defensive supply-chain sanitization framework that models observable benign package behavior via input-output traces and uses multiple guardrailed LLMs to synthesize clean drop-in package replacements stripped of stealthy conditional…
Source citation records
- MITRE ATLAS: Software · MITRE ·
- Slopsquatting: When AI Agents Hallucinate Malicious Packages · Cited by MITRE ATLAS; publisher not independently verified
- Compromised PyTorch-nightly dependency chain between December 25th and December 30th, 2022. · Cited by MITRE ATLAS; publisher not independently verified
- Security Update for Amazon Q Developer Extension for Visual Studio Code (Version #1.84) · Cited by MITRE ATLAS; publisher not independently verified
- Careful Who You Colab With: abusing google colaboratory · Cited by MITRE ATLAS; publisher not independently verified
- New Vulnerability in GitHub Copilot and Cursor: How Hackers Can Weaponize Code Agents · Cited by MITRE ATLAS; publisher not independently verified
Common questions
- What is Supply Chain Compromise: Software (AML.T0010.001)?
- Attackers inject malicious code into ML frameworks, Python/npm dependencies, IDE coding-assistant extensions, or repository instruction files to execute arbitrary payloads on developer and training hosts. Recent campaigns exploit dependency confusion on nightly ML packages, AI-hallucinated package names (slopsquatting), and poisoned rules files inside AI code editors.
- How do you mitigate Supply Chain Compromise: Software?
- MITRE ATLAS maps 6 mitigations to AML.T0010.001: Code Signing, Verify AI Artifacts, Vulnerability Scanning, Maintain an AI Bill of Materials, AI Red Team, and Threat Intelligence Program. Route all `pip`, `npm`, and OS package installs through private mirroring proxies with dependency-confusion protection and pinned lockfile hashes.