MITRE ATLAS 2026.10 · AML.T0112.001 · Critical severity

Machine Compromise: AI Artifacts

Loading untrusted local AI artifacts (such as Python `pickle` weights `.pt`/`.bin`/`.pkl`, custom model Python modules with `trust_remote_code`, or weaponized GGUF chat templates) executes arbitrary code on the host machine during ingestion or inference startup. Even inspecting or benchmarking a downloaded checkpoint can compromise the host if unsafe loaders are used.

Technique dossier overview

Category
Supply chain
Severity
Critical
Attack surface
Model Weights & Supply Chain · Inference API & Hosting
Framework maturity
Feasible
Platforms
Predictive AI, Generative AI, Agentic AI
Tactics
Impact
Catalog entry modified

Open AML.T0112.001 in Interactive Technique Workbench

How the mechanism works

  1. An attacker embeds malicious Python bytecode opcodes (via `__reduce__` / `GLOBAL` opcodes) inside a serialized checkpoint, or malicious Jinja/Python hooks in a model config.
  2. A victim researcher, CI worker, or inference engine loads the artifact using `torch.load` (without `weights_only=True`), `pickle.load`, or Hugging Face `trust_remote_code=True`.
  3. Deserialization or template rendering immediately executes the embedded payload with the privileges of the ML host process.

Detection & telemetry signals

Architectural defensive countermeasures

Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)

OWASP LLM Top 10 (2025)
OWASP rationale
Deserialization and template-injection flaws in local model artifacts are classic AI Supply Chain threats (LLM03) resulting in unsafe downstream code execution (LLM05).
NIST AI RMF functions
NIST AI RMF guidance
Inventory model formats and loader flags across pipelines under MAP, and enforce SafeTensors-only policies, pre-load scanning, and sandboxed template rendering under MANAGE.

Mapped defensive controls

Related technique records

Documented incidents & exercises (5)

Source citation records

Common questions

What is Machine Compromise: AI Artifacts (AML.T0112.001)?
Loading untrusted local AI artifacts (such as Python `pickle` weights `.pt`/`.bin`/`.pkl`, custom model Python modules with `trust_remote_code`, or weaponized GGUF chat templates) executes arbitrary code on the host machine during ingestion or inference startup. Even inspecting or benchmarking a downloaded checkpoint can compromise the host if unsafe loaders are used.
How do you mitigate Machine Compromise: AI Artifacts?
MITRE ATLAS maps 5 mitigations to AML.T0112.001: Control Access to AI Models and Data at Rest, Restrict Library Loading, Code Signing, Verify AI Artifacts, and Vulnerability Scanning. Standardize exclusively on SafeTensors and non-executable tensor formats across internal registries; block `.pkl`, `.bin`, and legacy pickle weights at CI/registry admission.