MITRE ATLAS 2026.10 · AML.T0018.002 · Critical severity

Manipulate AI Model: Embed Malware

Threat actors conceal executable malware, backdoors, or reverse-shell loaders inside AI model archive files, pickle serialization streams, or weight tensor payloads. When engineers or automated serving clusters deserialize the checkpoint, the hidden malware runs directly on host infrastructure.

Technique dossier overview

Category
Training and model integrity
Severity
Critical
Attack surface
Model Weights & Supply Chain · Inference API & Hosting
Framework maturity
Realized
Platforms
Predictive AI, Generative AI, Agentic AI
Tactics
AI Attack Adaptation, Persistence
Catalog entry modified

Open AML.T0018.002 in Interactive Technique Workbench

How the mechanism works

  1. Attackers pack executable scripts, compiled binaries, or obfuscated loader instructions inside permissive model formats (pickle, PyTorch `.pt`, joblib, or zip archives) or steganographically within weight LSBs paired with a loader.
  2. The trojanized artifact is published under reclaimed namespaces, typosquatted model repos, or compromised internal buckets.
  3. Loading the model via standard ML APIs triggers execution of the embedded malware under the inference host's service identity.

Detection & telemetry signals

Architectural defensive countermeasures

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

OWASP LLM Top 10 (2025)
OWASP rationale
Embedding malware inside model archives corrupts the ML model supply chain (LLM03) and achieves host code execution via unsafe artifact parsing (LLM05).
NIST AI RMF functions
NIST AI RMF guidance
Apply NIST AI RMF GOVERN 6.1 and MANAGE by eliminating unsafe deserialization formats, scanning artifacts in sandboxes, and isolating serving hosts.

Mapped defensive controls

Related technique records

Documented incidents & exercises (9)

Source citation records

Common questions

What is Manipulate AI Model: Embed Malware (AML.T0018.002)?
Threat actors conceal executable malware, backdoors, or reverse-shell loaders inside AI model archive files, pickle serialization streams, or weight tensor payloads. When engineers or automated serving clusters deserialize the checkpoint, the hidden malware runs directly on host infrastructure.
How do you mitigate Manipulate AI Model: Embed Malware?
MITRE ATLAS maps 4 mitigations to AML.T0018.002: Restrict Library Loading, Code Signing, Verify AI Artifacts, and Vulnerability Scanning. Prohibit unsafe serialization formats such as pickle in production and convert vetted models exclusively to Safetensors.