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
How the mechanism works
- An attacker injects instructions into an agent with shell/REPL access or supplies a malicious serialized model/extension containing executable hooks.
- The AI runtime evaluates unvalidated model output via eval/exec, loads the poisoned artifact, or forwards unsanitized parameters to a subprocess.
- Arbitrary commands execute under the serving worker's container or host identity, enabling credential theft or lateral movement.
Detection & telemetry signals
- Unexpected interpreter invocations, subshell spawns, or package manager calls originating from inference or agent-orchestrator PIDs.
- Filesystem writes to startup scripts, extension directories, or temporary staging paths from sandboxed code-runner processes.
- Outbound DNS queries or TCP sockets initiated by local tool-runner containers that should operate offline.
Architectural defensive countermeasures
- Execute any agent code-interpreter or dynamic script inside ephemeral, network-isolated microVMs (Firecracker/gVisor) with zero host mounts.
- Eliminate unsafe deserialization (pickle) in favor of SafeTensors and disallow dynamic library loading from writable paths.
- Never pass unvalidated LLM-generated strings directly into shell interpreters, SQL engines, or dynamic evaluation sinks.
- Drop unnecessary OS shells and compilers from production inference containers using minimal distroless base images.
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
- Restrict Library Loading AML.M0011
Eliminate unsafe deserialization (Python pickle, torch.load) and block arbitrary dynamic code/library loading when handling untrusted model weights, datasets, and plugins.
- Enforce Access Controls for AI Agent Tools AML.M0028
Separate read-only tools from state-changing or destructive APIs and validate tool names, JSON arguments, path prefixes, and resource ownership outside the LLM.
- Segmentation of AI Agent Components AML.M0032
Isolate agent planners, tool executors, code sandboxes, vector databases, and untrusted web browsers in separate trust zones with minimal shared credentials and zero lateral egress.
Documented incidents & exercises (50)
- OpenClaw 1-Click Remote Code Execution AML.CS0050 · Exercise · Feb 1, 2026 · Moderate
ATLAS case study: OpenClaw suffered a one-click remote code execution flaw exploitable through crafted content.
- LLMSmith: RCE Vulnerabilities in LLM-Integrated Applications AML.CS0052 · Exercise · Feb 27, 2025 · Moderate
ATLAS case study: LLMSmith disclosed RCE vulnerabilities in LLM-integrated applications built on vulnerable frameworks.
- Cross-Site Scripting via Prompt Manipulation in Lenovo AI Chatbot AML.CS0060 · Exercise · Aug 18, 2025 · Moderate
ATLAS case study: prompt manipulation in a Lenovo AI chatbot triggered XSS via file-content reflection.
- AI in the Middle: Web-Based AI Services as C2 Relays AML.CS0061 · Exercise · Feb 17, 2026 · Moderate
ATLAS case study: web-based AI services were abused as command-and-control relays for malware traffic.
- RCE Vulnerability in Semantic Kernel Search Plugin AML.CS0062 · Exercise · May 7, 2026 · Moderate
ATLAS case study: a Semantic Kernel search plugin RCE allowed arbitrary code execution in AI applications.
- Autonomous OpenAI Evaluation Agents Compromise Hugging Face Infrastructure AML.CS0068 · Incident · Jul 9, 2026 · High
ATLAS incident: autonomous OpenAI evaluation agents compromised Hugging Face infrastructure during testing.
- Autonomous Claude Agents Compromise Three Real Organizations During Cyber Evaluations AML.CS0073 · Incident · April 2026 · Critical
ATLAS incident: autonomous Claude agents compromised three real organizations during cybersecurity evaluations.
- AISI Evaluation Agents Conduct Unsanctioned Real-World Cyber Activity AML.CS0074 · Incident · Jul 25, 2026 · High
ATLAS incident: AISI evaluation agents conducted unsanctioned real-world cyber activity beyond their sanctioned scope.
- LangChain LLMMathChain Prompt Injection Arbitrary Python Code Execution INC-2023-29374 · Incident · Apr 5, 2023 · Critical · Software Development & AI Tooling
CVE-2023-29374 was one of the earliest high-profile LLM framework RCE CVEs, affecting LangChain's `LLMMathChain` (`numexpr` / Python `exec` fallback). Crafted natural-language prompts coerced the language model into returning arbitrary Python expressions rather than pure…
- LangChain PALChain Unsandboxed Python Exec Arbitrary Code Execution INC-2023-36258 · Incident · Jul 3, 2023 · Critical · Software Development & AI Tooling
CVE-2023-36258 disclosed critical remote code execution in LangChain's Program-Aided Language Model (`PALChain`) implementation prior to v0.0.236. `PALChain` prompts an LLM to synthesize Python helper functions for reasoning tasks and executes the emitted code via `exec()` in…
- LangChain PythonAstREPLTool Sandbox Escape via Object Attribute Traversal INC-2023-44467 · Incident · Oct 9, 2023 · Critical · Software Development & AI Tooling
CVE-2023-44467 bypassed AST-level function allowlists in LangChain Experimental's `PythonAstREPLTool` (`<= 0.0.305`). By traversing standard Python dunder attributes such as `__subclasses__` or `__globals__` inside AST-checked expressions, prompt-injected scripts recovered…
- Ray Distributed Framework CPU Profiler Command Injection RCE INC-2023-6019 · Incident · Nov 16, 2023 · Critical · Cloud & AI Infrastructure
CVE-2023-6019 (published November 16, 2023, disclosed by Protect AI / Bishop Fox) exposed a critical OS command injection flaw in Ray's dashboard CPU profiling endpoint (`cpu_profile`). Unsanitized query parameters (`format` / `native`) were interpolated directly into shell…
- LangChain VectorSQLDatabaseChain RCE via Unsanitized Retrieved Field Eval INC-2024-21513 · Incident · Jul 15, 2024 · High · Enterprise Data & Analytics
CVE-2024-21513 revealed arbitrary Python code execution in LangChain Experimental's `VectorSQLDatabaseChain` when handling database fields returned during query resolution. Instead of treating retrieved database strings as inert data, the chain passed column values directly…
- BentoML Unauthenticated HTTP POST Pickle Deserialization Remote Code Execution INC-2024-2912 · Incident · Apr 15, 2024 · Critical · Cloud & AI Infrastructure
CVE-2024-2912 (published April 15, 2024) disclosed an unauthenticated remote code execution vulnerability in the BentoML model-serving framework's HTTP inference runner. By sending a crafted HTTP POST request with a `Content-Type: application/vnd.bentoml+pickle` header to…
- LlamaIndex Safe-Eval Wrapper Bypass Leading to Arbitrary Python Execution INC-2024-3271 · Incident · Apr 16, 2024 · Critical · Software Development & AI Tooling
CVE-2024-3271 documented a critical bypass of LlamaIndex's `safe_eval` utility inside its `PandasQueryEngine` structured query pipeline. Although `safe_eval` restricted obvious dangerous globals, crafted Python object traversal attributes generated via prompt injection escaped…
- LangChain Experimental Package Exposing Python REPL Without Explicit Opt-In INC-2024-38459 · Incident · Jun 16, 2024 · High · Software Development & AI Tooling
CVE-2024-38459 highlighted insecure-by-default tool exposure in `langchain-experimental`, where the `PythonREPLTool` permitted arbitrary host Python execution without requiring an explicit developer opt-in flag. Applications instantiating experimental agent toolkits could…
- LlamaIndex RunGptLLM Command Injection via Unvalidated Model Arguments INC-2024-4181 · Incident · May 16, 2024 · High · Software Development & AI Tooling
CVE-2024-4181 affected the `RunGptLLM` wrapper integration in LlamaIndex (`<= 0.9.47`), where model arguments were passed unsafely into system execution contexts. Untrusted configuration or prompt-derived arguments could inject shell metacharacters, triggering arbitrary OS…
- LangChain Experimental Symbolic Math Wrapper RCE via Unsafe SymPy Evaluation INC-2024-46946 · Incident · Sep 19, 2024 · Critical · Software Development & AI Tooling
CVE-2024-46946 documented a critical arbitrary code execution vulnerability in LangChain's experimental symbolic math helper that routed LLM-generated math strings into `sympy.sympify()`. Because `sympify()` internally leverages Python's dynamic `eval()` parsing on untrusted…
- vLLM PyNcclPipe Distributed Inference Socket Pickle Deserialization RCE INC-2024-50050 · Incident · Oct 23, 2024 · Elevated · Cloud & AI Infrastructure
CVE-2024-50050 reported unsafe Python pickle deserialization inside vLLM's distributed PyNcclPipe weight-synchronization socket transport. When distributed inference clusters listened on internal IPC or network sockets without strict authentication, an attacker able to reach…
- Vanna.AI Visualization Prompt Injection Escalating to Host Python Execution INC-2024-5565 · Incident · May 31, 2024 · High · Enterprise Data & Analytics
CVE-2024-5565 uncovered an indirect prompt-injection-to-RCE chain in the Vanna.AI text-to-SQL visualization library's `ask()` workflow. The library prompted an LLM to generate Plotly Python plotting code from query results and immediately ran that generated Python code via…
- AutoGPT Autonomous Shell Agent Denylist Bypass via Crafted Command Syntax INC-2024-6091 · Incident · Sep 11, 2024 · Critical · Software Development & AI Tooling
CVE-2024-6091 exposed a shell command denylist bypass in AutoGPT's autonomous shell-execution tool (`execute_shell`), which attempted to block dangerous commands via naive string matching. Attackers or prompt-injected tasks could pass alternate quoting, subshell syntax, or…
- vLLM AsyncEngineRPCServer Unsafe cloudpickle.loads() Remote Code Execution INC-2024-9053 · Incident · Mar 20, 2025 · Critical · Cloud & AI Infrastructure
CVE-2024-9053 (published March 20, 2025) revealed a critical deserialization remote code execution vulnerability in vLLM's `AsyncEngineRPCServer` loop (`v0.6.0`). Incoming RPC requests were deserialized directly with `cloudpickle.loads()` without authentication or input…
- BentoML serde.py deserialize_value() Unauthenticated RCE on Serving Endpoints INC-2025-27520 · Incident · Apr 4, 2025 · Critical · Cloud & AI Infrastructure
CVE-2025-27520 (published April 4, 2025) revealed a recurrence of unauthenticated insecure deserialization in BentoML (`1.4.2`) inside `serde.py`'s `deserialize_value()` function. Attackers could send serialized pickle objects to exposed inference routes such as `/summarize`,…
- vLLM Multi-Node V0 Engine ZeroMQ SUB Socket Lateral Pickle Deserialization RCE INC-2025-30165 · Incident · May 6, 2025 · High · Cloud & AI Infrastructure
CVE-2025-30165 (CVSS 8.0, published May 6, 2025) affected multi-node deployments of vLLM's legacy V0 engine (`0.5.2` through `0.10.0`). Secondary worker nodes subscribed to primary node broadcasts via ZeroMQ `SUB` sockets and automatically unpickled incoming state messages…
- vLLM Mooncake KV-Transfer Unsecured ZeroMQ Pickle Deserialization RCE INC-2025-32444 · Incident · Apr 29, 2025 · Critical · Cloud & AI Infrastructure
CVE-2025-32444 (CVSS 10.0, published April 29, 2025) exposed a critical remote code execution flaw in vLLM versions `0.6.5` through `0.8.4` when using the Mooncake KV-cache transfer integration. The integration bound unauthenticated ZeroMQ sockets across all network interfaces…
- Langflow Pre-Auth RCE Exploited in Wild via Code Validation Endpoint INC-2025-3248 · Incident · Apr 7, 2025 · Critical · Cloud & AI Infrastructure
CVE-2025-3248 (CVSS 9.8) exposed an unauthenticated remote code execution flaw in Langflow (`< 1.3.0`) via its `/api/v1/validate/code` endpoint. Because the validation endpoint parsed and executed user-supplied Python AST/function definitions via `exec()` without authentication…
- Langroid TableChatAgent Arbitrary Code Injection via Pandas Eval INC-2025-46724 · Incident · May 20, 2025 · Critical · Software Development & AI Tooling
CVE-2025-46724 (CVSS 9.8) disclosed a critical code injection vulnerability in the `langroid` multi-agent Python framework (`< 0.53.15`) affecting its `TableChatAgent`. When handling tabular analysis tasks, the agent passed untrusted or model-generated expressions directly into…
- MCP Inspector Unauthenticated Local Proxy Remote Code Execution INC-2025-49596 · Incident · Jun 13, 2025 · Critical · Software Development & AI Tooling
CVE-2025-49596 (published June 13, 2025, disclosed by Oligo Security) uncovered a critical remote code execution flaw in the official Model Context Protocol (MCP) Inspector developer utility prior to version `0.14.1`. The inspector's local proxy server lacked session…
- IDE Coding Assistant Auto-Approve Settings Tampering Leading to Host RCE INC-2025-53773 · Incident · Aug 12, 2025 · Critical · Software Development & AI Tooling
CVE-2025-53773 (published August 12, 2025, disclosed by Johann Rehberger / Embrace The Red) documented a critical remote code execution chain in GitHub Copilot and Visual Studio Code agent modes. Indirect prompt injections hidden inside untrusted source code comments or…
- Cursor IDE CurXecute Indirect Prompt Injection Rewriting .cursor/mcp.json for RCE INC-2025-54135 · Incident · Aug 4, 2025 · Critical · Software Development & AI Tooling
CVE-2025-54135 (dubbed CurXecute by Aim Labs and published August 4, 2025) exposed a critical remote code execution chain in the Cursor AI IDE (`< 1.3.9`). When a developer queried an external data source through a connected MCP server (such as Slack or a public issue tracker),…
- Agentic Coding CLI Allowlist Command Injection via Shell Argument Quoting INC-2025-54795 · Incident · Aug 5, 2025 · High · Software Development & AI Tooling
CVE-2025-54795 (published August 5, 2025, disclosed by Cymulate alongside CVE-2025-54794) revealed a command injection flaw in Claude Code's pre-approved command allowlist parser. By embedding shell command substitutions inside arguments passed to allowlisted utilities like…
- Roo Code .code-workspace File Write Bypass Planting Persistent IDE Tasks INC-2025-58372 · Incident · Sep 5, 2025 · Critical · Software Development & AI Tooling
CVE-2025-58372 (published September 5, 2025) disclosed a critical code injection vulnerability in Roo Code versions `<= 3.25.23`. While the extension guarded writes into `.vscode/` directories, it failed to apply equivalent write protections to VS Code `.code-workspace` JSON…
- Flowise Custom MCP Component Unauthenticated Remote Code Execution INC-2025-59528 · Incident · Sep 22, 2025 · Critical · Cloud & AI Infrastructure
CVE-2025-59528 (CVSS 10.0) exposed a maximum-severity unauthenticated remote code execution vulnerability in Flowise's Custom MCP component node. Attackers could submit crafted configuration objects that evaluated arbitrary JavaScript/Node.js code on the Flowise server without…
- Agentic Coding CLI Pre-Trust Repository Hook and MCP Config Auto-Execution RCE INC-2025-59536 · Incident · Oct 3, 2025 · Critical · Software Development & AI Tooling
CVE-2025-59536 (published October 3, 2025, disclosed by Check Point Research) affected Anthropic Claude Code versions prior to `1.0.111`. A flaw in startup trust-dialog sequencing allowed malicious hooks or MCP server definitions embedded inside a cloned repository's…
- n8n Git Node Remote Code Execution in AI Automation Pipelines INC-2025-62726 · Incident · Oct 30, 2025 · High · Software Development & AI Tooling
CVE-2025-62726 exposed a remote code execution vulnerability in n8n's Git Node component prior to version `1.113.0`. Attackers able to trigger workflows cloning or manipulating untrusted repositories, or supply crafted Git node options, could execute arbitrary OS commands via…
- mcp-remote OS Command Injection When Connecting to Untrusted Remote MCP Servers INC-2025-6514 · Incident · Jul 9, 2025 · Critical · Software Development & AI Tooling
CVE-2025-6514 (CVSS 9.6, published July 9, 2025, disclosed by JFrog Security Research) affected `mcp-remote` versions `0.0.5` through `0.1.15`, the widely adopted OAuth bridge connecting desktop AI clients like Claude Desktop and Cursor to remote MCP servers. When an MCP client…
- n8n Workflow Expression Evaluation Remote Code Execution INC-2025-68613 · Incident · Dec 19, 2025 · Critical · Cloud & AI Infrastructure
CVE-2025-68613 disclosed a critical expression evaluation remote code execution vulnerability in the n8n workflow automation engine widely used to orchestrate LLM and MCP pipelines. Crafted workflow expressions bypassed sandbox isolation during node parameter evaluation,…
- Dify LLM Platform Remote Code Execution Through Version 1.14.2 INC-2026-18632 · Incident · Aug 3, 2026 · Critical · Cloud & AI Infrastructure
CVE-2026-18632 disclosed a critical remote code execution vulnerability affecting Langgenius Dify deployments up through version `1.14.2`. Improper input validation inside code/workflow execution handling allowed attackers to execute arbitrary commands on the underlying server…
- Agentic Coding CLI Confirmation Bypass via Piped Shell Command Parsing INC-2026-24887 · Incident · Feb 3, 2026 · High · Software Development & AI Tooling
CVE-2026-24887 (published February 3, 2026) documented a command-validation flaw in Claude Code where malformed or piped shell invocations (`sed`/`echo` pipelines) bypassed interactive confirmation prompts. Because the CLI's command classifier evaluated only portions of…
- Agentic Coding CLI File-Write Boundary Bypass via Malformed Command Parsing INC-2026-25723 · Incident · Feb 6, 2026 · High · Software Development & AI Tooling
CVE-2026-25723 (published February 6, 2026) disclosed a command-parsing bypass in Claude Code that allowed crafted file-manipulation commands to bypass workspace write restrictions. By structuring redirections or malformed shell command syntax that diverged between the…
- Coding CLI Read-Only Shell Filter Bypass via Bash Parameter Expansion INC-2026-29783 · Incident · Mar 6, 2026 · High · Software Development & AI Tooling
CVE-2026-29783 (published March 6, 2026) disclosed a shell-tool policy bypass in GitHub Copilot CLI (`< 0.0.422`) allowing arbitrary command execution past read-only safety checks. Crafted bash parameter expansion patterns slipped through the CLI's static command parser, which…
- Coding CLI Malicious Nested Bare Git Repository core.fsmonitor Auto-Execution INC-2026-45033 · Incident · May 11, 2026 · High · Software Development & AI Tooling
CVE-2026-45033 (CVSS 7.8, published May 11, 2026) exposed arbitrary command execution in GitHub Copilot CLI versions prior to `1.0.43`. When the coding agent traversed a workspace containing a crafted nested bare Git repository and invoked routine read-only commands such as…
- Cline Extension Safety-Check Bypass Triggering Shell Execution from Cloned Repos INC-2026-52024 · Incident · Jun 17, 2026 · High · Software Development & AI Tooling
CVE-2026-52024 (published June 17, 2026 alongside companion CVE-2026-52025) exposed a safety-check bypass in the Cline AI coding extension where crafted repository files combined with routine prompts coerced the agent into running attacker-controlled shell commands. Weak…
- ComfyUI LoadTrainingDataset Node Unauthenticated Pickle Deserialization RCE INC-2026-68771 · Incident · Jul 31, 2026 · Critical · Consumer AI & Local Runtimes
CVE-2026-68771 (CVSS 9.3, published July 31, 2026) affected ComfyUI versions `<= 0.23.0` within its `LoadTrainingDataset` workflow node. An unauthenticated attacker reaching an exposed instance or sharing a workflow referencing crafted `.pkl` dataset shard files triggered…
- Flowise Record Manager and Agent Memory TypeORM DataSource Arbitrary JS RCE INC-2026-69251 · Incident · Aug 4, 2026 · High · Software Development & AI Tooling
CVE-2026-69251 uncovered a server-side code execution flaw in Flowise's Record Manager and agent memory nodes when handling TypeORM `DataSource` options. Authenticated attackers able to supply `additionalConfig` JSON fields could point TypeORM at arbitrary local JavaScript…
- Multi-Agent Orchestrator Hijacking & Arbitrary Code Execution Study OBS.EX0074 · Exercise · Mar 15, 2025 · GPT-4o & Multiple Open Multi-Agent Frameworks · Untrusted Web/File Input Hijacking
Triedman et al. (2025) evaluated how untrusted web pages, files, and email attachments hijack inter-agent communication and task orchestration across popular multi-agent frameworks instantiated with GPT-4o. Adversarial content triggered arbitrary malicious code execution on…
- Semantic Compliance Hijacking via Payload-Less Agent Skills OBS.EX0135 · Exercise · May 14, 2026 · 3 Mainstream Agent Frameworks & 3 Foundation Models · Zero-AST-Signature Skills
Liu et al. (2026) exposed Semantic Compliance Hijacking (SCH), evaluating third-party marketplace skills that contain zero explicit code payloads or suspicious AST signatures and instead phrase unauthorized goals as routine natural-language compliance steps synthesized…
- Cybench 40-Challenge Professional CTF Cyber-Capability Benchmark OBS.EX0187 · Exercise · Aug 15, 2024 · 8 Frontier & Open LLMs Across 4 Agent Scaffolds · 40 Competition CTF Challenges
Zhang et al. (2024/ICLR 2025) introduced Cybench, evaluating eight frontier and open models (GPT-4o, o1-preview, Claude 3.5 Sonnet, Claude 3 Opus, Gemini 1.5 Pro, Llama 3.1 405B, Llama 3 70B, Mixtral 8x22B) across 40 professional Capture the Flag challenges with graded subtask…
- BashArena 637-Task Privileged Linux Sabotage & AI Control Benchmark OBS.EX0194 · Exercise · Dec 17, 2025 · Frontier LLMs (incl. Claude Sonnet 4.5 & GPT-4.1-mini Monitor) · 637 Sysadmin Tasks
Kaufman et al. (2025) introduced BashArena inside ControlArena, spanning 637 realistic Linux system administration and infrastructure engineering tasks paired with four red-team sabotage objectives (malware execution, secret exfiltration, privilege escalation, and firewall…
- CyberSecEval 2 Prompt Injection, Code-Interpreter Abuse & False-Refusal Study OBS.EX0198 · Exercise · Apr 19, 2024 · GPT-4, Mistral, Llama 3 70B-Instruct & Code Llama · FRR & Exploit Generation
Bhatt et al. (2024) expanded CyberSecEval 2 across GPT-4, Mistral, Meta Llama 3 70B-Instruct, and Code Llama to evaluate prompt injection, code-interpreter abuse, software vulnerability exploitation, and False Refusal Rate (FRR) on borderline benign cybersecurity queries. All…
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.