MITRE ATLAS 2026.10 · AML.T0050 · Critical severity

Command and Scripting Interpreter

Adversaries execute arbitrary OS shell or scripting commands (Python, Bash, PowerShell) inside AI hosts, code-interpreter sandboxes, or agent tool runners, either via unsafe model-generated code execution, malicious pickle deserialization, or compromised plugins.

Technique dossier overview

Category
Infrastructure and access
Severity
Critical
Attack surface
Tool-Using Agents & MCP · Model Weights & Supply Chain · Inference API & Hosting
Framework maturity
Realized
Platforms
Enterprise
Tactics
Execution
Catalog entry modified

Open AML.T0050 in Interactive Technique Workbench

How the mechanism works

  1. An attacker injects instructions into an agent with shell/REPL access or supplies a malicious serialized model/extension containing executable hooks.
  2. The AI runtime evaluates unvalidated model output via eval/exec, loads the poisoned artifact, or forwards unsanitized parameters to a subprocess.
  3. Arbitrary commands execute under the serving worker's container or host identity, enabling credential theft or lateral movement.

Detection & telemetry signals

Architectural defensive countermeasures

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

OWASP LLM Top 10 (2025)
OWASP rationale
Interpreter execution typically follows unvalidated LLM code output (LLM05), unguarded agent execution tools (LLM06), or executable payloads inside third-party artifacts (LLM03).
NIST AI RMF functions
NIST AI RMF guidance
MAP every code-execution and deserialization boundary in agentic workflows, and MANAGE execution risk using ephemeral microVM sandboxes, SafeTensors, and distroless containers.

Mapped defensive controls

Documented incidents & exercises (50)

Source citation records

Common questions

What is Command and Scripting Interpreter (AML.T0050)?
Adversaries execute arbitrary OS shell or scripting commands (Python, Bash, PowerShell) inside AI hosts, code-interpreter sandboxes, or agent tool runners, either via unsafe model-generated code execution, malicious pickle deserialization, or compromised plugins.
How do you mitigate Command and Scripting Interpreter?
MITRE ATLAS maps 3 mitigations to AML.T0050: Restrict Library Loading, Enforce Access Controls for AI Agent Tools, and Segmentation of AI Agent Components. Execute any agent code-interpreter or dynamic script inside ephemeral, network-isolated microVMs (Firecracker/gVisor) with zero host mounts.