MITRE ATLAS 2026.10 · AML.T0011.000 · Critical severity

User Execution: Unsafe AI Artifacts

Attackers embed arbitrary code-execution payloads inside model files and ML serialization formats—such as Python pickle (`.pt`/`.bin`), TorchScript, Keras Lambda layers, or GGUF Jinja chat templates. Simply loading or inspecting the artifact in standard ML libraries triggers immediate host code execution before any inference occurs.

Technique dossier overview

Category
Supply chain
Severity
Critical
Attack surface
Model Weights & Supply Chain · Inference API & Hosting
Framework maturity
Realized
Platforms
Predictive AI, Generative AI, Agentic AI, Enterprise
Tactics
Execution
Aliases
Unsafe model artifact handling
Catalog entry modified

Open AML.T0011.000 in Interactive Technique Workbench

How the mechanism works

  1. Adversaries craft a model file whose serialization stream invokes Python `__reduce__` opcodes, unsafe Keras custom layers, or vulnerable template directives.
  2. The artifact is shared on public hubs, attached to bug reports, or substituted into a model registry under a benign-looking name.
  3. When an engineer, CI pipeline, or inference engine loads the file with default permissive deserializers, embedded commands execute with process privileges.

Detection & telemetry signals

Architectural defensive countermeasures

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

OWASP LLM Top 10 (2025)
OWASP rationale
Unsafe AI artifacts exploit model-hub supply chains (LLM03) and unvalidated deserialization/template-rendering sinks (LLM05) for code execution.
NIST AI RMF functions
NIST AI RMF guidance
Under NIST AI RMF GOVERN 6.1 and MANAGE, forbid unsafe deserialization formats in production, mandate static artifact scanning, and isolate legacy loaders.

Mapped defensive controls

Related technique records

Documented incidents & exercises (21)

Source citation records

Common questions

What is User Execution: Unsafe AI Artifacts (AML.T0011.000)?
Attackers embed arbitrary code-execution payloads inside model files and ML serialization formats—such as Python pickle (`.pt`/`.bin`), TorchScript, Keras Lambda layers, or GGUF Jinja chat templates. Simply loading or inspecting the artifact in standard ML libraries triggers immediate host code execution before any inference occurs.
How do you mitigate User Execution: Unsafe AI Artifacts?
MITRE ATLAS maps 5 mitigations to AML.T0011.000: Restrict Library Loading, Code Signing, Verify AI Artifacts, Vulnerability Scanning, and User Training. Standardize model interchange on non-executable formats such as Safetensors and enforce `weights_only=True` or equivalent strict deserializers everywhere.