MITRE ATLAS 2026.10 · AML.T0010.003 · Critical severity
Supply Chain Compromise: Model Repository
Attackers upload backdoored checkpoints, maliciously serialized weight files, or poisoned GGUF chat templates to public or internal model registries, often exploiting namespace reuse or organization confusion. Victims pulling popular community models risk immediate arbitrary code execution during deserialization or stealthy safety bypasses at inference time.
Technique dossier overview
- Category
- Supply chain
- Severity
- Critical
- Attack surface
- Model Weights & Supply Chain · Inference API & Hosting · LLM / Prompt Layer
- Framework maturity
- Realized
- Platforms
- Predictive AI, Generative AI, Agentic AI
- Tactics
- Initial Access
- Aliases
- Model supply-chain integrity
- Catalog entry modified
- Earliest cited research
- · BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chain · arXiv (author preprint; peer-review status not inferred)
How the mechanism works
- Adversaries claim abandoned organizational namespaces, register lookalike repository names, or gain unauthorized write access to model hubs.
- They publish checkpoints containing malicious pickle/Keras payloads, altered weights (such as PoisonGPT), or trojanized Jinja chat templates in GGUF metadata.
- Downstream serving engines or developer scripts download the repository by mutable branch tag (`main`/`latest`) and load or render the poisoned artifact.
Detection & telemetry signals
- Model scanners (such as ModelScan/Fickling) flagging executable opcodes, subprocess imports, or anomalous Jinja template directives in hub artifacts.
- Registry integrity checks spotting unverified commits, reclaimed namespace transfers, or mismatched SHA-256 digests on previously pinned models.
- Post-load behavioral evaluations revealing targeted factual corruption or refusal collapse relative to the upstream base checkpoint.
Architectural defensive countermeasures
- Restrict model loading exclusively to verified non-executable weight formats such as Safetensors and disallow unsafe pickle deserialization in production.
- Pin external model pulls to immutable commit SHAs and cryptographic hashes, and mirror vetted artifacts into an authenticated internal registry.
- Inspect GGUF metadata, tokenizer configs, and chat templates explicitly with hardened sandboxed parsers before rendering prompts.
- Validate third-party and fine-tuned models with independent safety and factual-integrity suites rather than trusting hub download counts or org names.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Model-hub tampering compromises the core ML supply chain (LLM03), embeds backdoored weights (LLM04), and poisons inference-time prompt templates (LLM01).
- NIST AI RMF functions
- NIST AI RMF guidance
- Under NIST AI RMF GOVERN 6.1, MEASURE, and MANAGE, enforce safe serialization formats, pinned hub commits, signature checks, and pre-deployment behavioral verification.
Mapped defensive controls
- Control Access to AI Models and Data at Rest AML.M0005
Lock down stored model weights, LoRA adapters, training corpora, vector indexes, and backups with strict least-privilege IAM, private networking, and zero public bucket ACLs.
- Validate AI Model AML.M0008
Run independent pre-release and post-fine-tuning assurance suites covering safety regressions, backdoor activation, alignment drift, and privacy leakage before promotion.
- 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.
- 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.
- 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 (25)
- Backdoor Attack on Deep Learning Models in Mobile Apps AML.CS0013 · Exercise · Jan 18, 2021 · High · Mobile Software & On-Device AI
Grounded in the DeepPayload research (January 2021), this exercise showed how adversaries can backdoor compiled deep-learning models extracted from public mobile application packages without needing training data or fine-tuning. By disassembling the computational graph of a…
- PoisonGPT AML.CS0019 · Exercise · July 2023 · High · Open-Weight Model Registries
Published by Mithril Security in July 2023 ("PoisonGPT"), researchers used ROME rank-one model editing to surgically alter a single factual association inside GPT-J-6B while leaving standard benchmark accuracy virtually unchanged. They then uploaded the modified checkpoint…
- ShadowRay: Hijacking Exposed Ray Clusters AML.CS0023 · Incident · Sep 5, 2023 · Critical · Enterprise AI Compute Infrastructure
First disclosed in September 2023 and documented in the wild as the ShadowRay campaign (exploiting CVE-2023-48022), threat actors actively scanned the internet for exposed Ray Jobs API dashboards lacking built-in authentication. Attackers submitted arbitrary jobs to hijack GPU…
- Organization Confusion on Hugging Face AML.CS0027 · Exercise · Aug 23, 2023 · High · AI Model Hub & Supply Chain
Presented in August 2023 ("Model Confusion: Weaponizing ML models for red teams and bounty hunters"), this exercise explored how missing or unverified organization namespaces on public model hubs allow attackers to impersonate trusted companies. By registering lookalike…
- Poisoned GGUF Templates: Inference-Time Supply Chain Attack AML.CS0064 · Exercise · June 2025 · Moderate
ATLAS case study: poisoned GGUF chat templates executed attacker code at inference time via model-file supply chain.
- Model Namespace Reuse Supply Chain Attack AML.CS0065 · Exercise · Sep 3, 2025 · Moderate
ATLAS case study: model namespace reuse on public registries tricked users into pulling attacker-controlled models.
- ClearML Fileserver Authentication Bypass Exposing Private Training Data INC-2024-24592 · Incident · Feb 6, 2024 · High · Cloud & AI Infrastructure
CVE-2024-24592 (published February 6, 2024, disclosed by HiddenLayer) exposed missing authentication enforcement on the ClearML Fileserver component in default self-hosted installations. Unauthenticated attackers able to reach the fileserver port could list, download,…
- llama-cpp-python GGUF Chat Template Jinja2 Server-Side Template Injection RCE INC-2024-34359 · Incident · May 10, 2024 · Critical · Cloud & AI Infrastructure
CVE-2024-34359 exposed a critical server-side template injection (SSTI) flaw in `llama-cpp-python` when rendering `tokenizer.chat_template` strings embedded inside `.gguf` model headers. Because the Python wrapper passed untrusted Jinja2 template strings directly into an…
- Hugging Face Transformers TensorFlow Checkpoint Pickle Deserialization RCE INC-2024-3568 · Incident · Apr 10, 2024 · Elevated · Cloud & AI Infrastructure
CVE-2024-3568 disclosed arbitrary code execution inside Hugging Face `transformers` (`load_tf_weights_in_*` / `TFPreTrainedModel` checkpoint utilities) when deserializing untrusted repository artifacts. Certain checkpoint conversion and loading paths invoked unsafe `pickle`…
- Keras Arbitrary Code Injection via Malicious Lambda Layers in Legacy Models INC-2024-3660 · Incident · Apr 16, 2024 · Critical · Cloud & AI Infrastructure
CVE-2024-3660 (published April 16, 2024, disclosed by Oligo Security and JFrog) highlighted arbitrary code execution in TensorFlow Keras (`< 2.13`) when deserializing `.h5` or Keras models containing weaponized `Lambda` layers. Because Keras Lambda layers serialize arbitrary…
- Ollama Probllama Digest Path Traversal During Model Registry Pull INC-2024-37032 · Incident · May 31, 2024 · High · Cloud & AI Infrastructure
CVE-2024-37032 (dubbed Probllama by Wiz researchers) revealed a path traversal flaw in Ollama's `/api/pull` endpoint when parsing model manifest SHA-256 digests. Because Ollama failed to validate digest format before joining it into local blob storage paths, an attacker hitting…
- Ollama Modelfile ZIP Archive Path Traversal During Local Model Creation INC-2024-45436 · Incident · Aug 28, 2024 · High · Cloud & AI Infrastructure
CVE-2024-45436 revealed a Zip-Slip style path traversal flaw inside Ollama (`< 0.1.47`) during extraction of uploaded ZIP archives in `CreateModel` workflows. Crafted archives containing relative `../` entry names could write files outside the intended model staging directory…
- ONNX download_model Tar Archive Path Traversal Arbitrary File Overwrite INC-2024-7776 · Incident · Mar 20, 2025 · High · Cloud & AI Infrastructure
CVE-2024-7776 (published March 20, 2025) affected the `onnx` Python framework (`<= 1.16.1`) within its `download_model` archive extraction helper. Because tar archives retrieved from model hubs were extracted without validating member paths against directory traversal (`../`)…
- Keras Model.load_model() safe_mode=True Bypass via Crafted config.json INC-2025-1550 · Incident · Mar 11, 2025 · Critical · Cloud & AI Infrastructure
CVE-2025-1550 (published March 11, 2025) revealed an arbitrary code execution bypass in Keras's `Model.load_model()` even when `safe_mode=True` was explicitly enforced. Attackers could modify the `config.json` manifest inside a `.keras` zip archive to reference arbitrary Python…
- Picklescan pip.main() Global Allowlist Bypass Evading ML Malware Scanners INC-2025-1716 · Incident · Feb 26, 2025 · High · Software Development & AI Tooling
CVE-2025-1716 (published February 26, 2025) exposed a critical static-analysis evasion flaw in `picklescan` (`< 0.0.22`), the open-source scanner widely used by model hubs and CI pipelines to detect malicious Python pickle checkpoints. Because `picklescan` failed to flag…
- PyTorch torch.load(weights_only=True) Safety Bypass Remote Code Execution INC-2025-32434 · Incident · Apr 18, 2025 · Critical · Cloud & AI Infrastructure
CVE-2025-32434 (CVSS 9.3, published April 18, 2025) shattered a widely relied-upon ML security assumption by bypassing `torch.load(..., weights_only=True)` in PyTorch versions `<= 2.5.1`. Security teams had adopted `weights_only=True` to safely load external `.pt` checkpoints…
- ChromaDB ChromaToast Pre-Auth RCE via Malicious trust_remote_code Model Load INC-2026-45829 · Incident · May 18, 2026 · Critical · Cloud & AI Infrastructure
CVE-2026-45829 (CVSS 10.0, dubbed ChromaToast by HiddenLayer) affected ChromaDB Python FastAPI servers from v1.0.0 through v1.5.8. An unauthenticated attacker could send a collection-creation payload specifying a custom embedding function referencing an attacker-hosted Hugging…
- nullifAI Broken Pickle + 7z Archive Evasion Bypassing Public Model Registry Scanners INC-OBS-013 · Incident · Feb 6, 2025 · Critical · Cloud & AI Infrastructure
On February 6, 2025, ReversingLabs disclosed nullifAI, a novel ML malware evasion technique discovered in live malicious PyTorch models uploaded to the Hugging Face Hub. Threat actors compressed PyTorch model files using 7z archives rather than standard ZIP containers and…
- JFrog Discovery of Over 100 Malicious Pickle Models Hosted on Public Model Hub INC-OBS-014 · Incident · Feb 27, 2024 · High · Cloud & AI Infrastructure
On February 27, 2024, JFrog Security Research published an investigation identifying roughly 100 malicious machine learning models hosted publicly on the Hugging Face Hub, including checkpoints engineered to open interactive reverse shells to attacker infrastructure when…
- Microsoft AI Research 38 TB Internal Storage & Teams Backup Leak via GitHub SAS Token INC-OBS-016 · Incident · Sep 18, 2023 · Critical · Cloud & AI Infrastructure
On September 18, 2023, Wiz Research disclosed that Microsoft's AI research group had inadvertently exposed 38 terabytes of private internal data via an overly permissive Azure Shared Access Signature (SAS) token published in a public GitHub repository…
- BadNets Outsourced Training & Persistent Street-Sign Backdoor Study OBS.EX0117 · Exercise · Aug 22, 2017 · CNN Digit & U.S. Street-Sign Detectors · Outsourced Supply-Chain Trojan Audit
Gu, Dolan-Gavitt, and Garg (2017) introduced BadNets to evaluate security risks when organizations outsource deep learning training or import third-party pretrained checkpoints. On handwritten digit and U.S. street-sign detectors, backdoored models preserved clean validation…
- Large-Scale Exploit Instrumentation of Unsafe Pickle Serialization on Hugging Face OBS.EX0132 · Exercise · Oct 6, 2024 · Hugging Face Model Hub · Ecosystem-Scale Serialization & Scanner Audit
Casey, Santos, and Mirakhorli (2024) conducted a large-scale empirical study of unsafe Python serialization formats across the Hugging Face Model Hub, evaluating both real exploitability via object injection and the coverage limits of platform-side security flagging. Their…
- PickleBall Ecosystem Audit & Load-Time Deserialization Enforcement OBS.EX0133 · Exercise · Aug 21, 2025 · Hugging Face Popular Models · Static Policy Synthesis & Drop-In Safe Unpickler
Kellas et al. (ACM CCS 2025) audited popular Hugging Face repositories and found 44.9% still depend on the unsafe pickle format, while rigid loaders like PyTorch weights-only block 15% of benign pickle repos and static scanners exhibit both false positives and false negatives.…
- Dormant Quantization Backdoors Activated by TFLite & PyTorch Mobile OBS.EX0145 · Exercise · Aug 20, 2021 · TensorFlow-Lite & PyTorch Mobile · Float-32 to INT8 Post-Training Quantization
Ma et al. (2021) demonstrated that adversaries can publish full-precision (FP32) checkpoints whose backdoors remain completely dormant during pre-deployment inspection yet activate at nearly 100% attack success once end users convert models to INT8 using default TensorFlow-Lite…
- VenomRACG Stealthy Retriever Backdoors in Retrieval-Augmented Code Generation OBS.EX0158 · Exercise · Dec 25, 2025 · RACG Coding Pipelines (incl. GPT-4o) · 0.05% Knowledge-Base Poisoning
Li et al. (2025) conducted the first systematic security evaluation of retriever backdoors in Retrieval-Augmented Code Generation (RACG) via VenomRACG, crafting poisoned code snippets statistically indistinguishable from clean samples across latent-space and token-level…
Source citation records
- MITRE ATLAS: Model Repository · MITRE ·
- BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chain · arXiv (author preprint; peer-review status not inferred) ·
Common questions
- What is Supply Chain Compromise: Model Repository (AML.T0010.003)?
- Attackers upload backdoored checkpoints, maliciously serialized weight files, or poisoned GGUF chat templates to public or internal model registries, often exploiting namespace reuse or organization confusion. Victims pulling popular community models risk immediate arbitrary code execution during deserialization or stealthy safety bypasses at inference time.
- How do you mitigate Supply Chain Compromise: Model Repository?
- MITRE ATLAS maps 8 mitigations to AML.T0010.003: Control Access to AI Models and Data at Rest, Validate AI Model, Code Signing, Verify AI Artifacts, AI Model Distribution Methods, Maintain an AI Bill of Materials, AI Red Team, and Threat Intelligence Program. Restrict model loading exclusively to verified non-executable weight formats such as Safetensors and disallow unsafe pickle deserialization in production.