MITRE ATLAS 2026.10 · AML.T0112.000 · Critical severity
Machine Compromise: Local AI Agent
An adversary compromises a victim workstation by hijacking a locally installed coding, desktop, or browser AI agent that executes with the user's native OS privileges. As demonstrated in OpenClaw, LLMSmith, and ClickFix exercises, indirect prompt injection or vulnerable agent plugins bridge untrusted content directly into local process execution.
Technique dossier overview
- Category
- Agent and tool trust
- Severity
- Critical
- Attack surface
- Tool-Using Agents & MCP · LLM / Prompt Layer
- Framework maturity
- Demonstrated
- Platforms
- Agentic AI
- Tactics
- Impact
- Catalog entry modified
How the mechanism works
- A developer or knowledge worker runs a local AI assistant granted terminal, file-edit, or GUI-control tools directly on their host OS.
- When the agent processes a malicious repository file (such as `.cursorrules`), webpage ClickFix lure, or vulnerable plugin response, attacker directives hijack the agent's next tool step.
- The local agent runs shell commands or modifies configuration files under the user's UID, giving the attacker control of the endpoint and local keychains.
Detection & telemetry signals
- Local agent host processes (VS Code extensions, Cursor, local daemon services) invoking `bash`, `cmd.exe`, or `powershell.exe` on non-interactive external content.
- Agent configuration or rules files modified inside newly cloned repositories containing obfuscated shell snippets or non-printable Unicode characters.
- Anomalous local port listeners or WebSocket handshakes hitting desktop AI assistant control endpoints from browser tabs.
- Rapid reads of local user files outside the active project workspace followed by curl/fetch or script creation.
Architectural defensive countermeasures
- Run local coding and desktop agents inside ephemeral containers or sandboxed VMs with workspace-only mounts and no access to user home keychains.
- Disable auto-run / YOLO tool execution modes globally; require explicit per-command approval showing the exact expanded shell command and working directory.
- Strip invisible Unicode bidi/tag characters and inspect project-level agent instruction files before opening untrusted repositories.
- Bind local agent control APIs to authenticated Unix sockets or random-token loopback listeners with strict Origin verification.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Hijacking local desktop agents exploits Excessive Agency (LLM06) via indirect Prompt Injection (LLM01) and unchecked command execution (LLM05).
- NIST AI RMF functions
- NIST AI RMF guidance
- Prohibit unsandboxed auto-approval for local agents under enterprise policy (GOVERN), and enforce container isolation plus per-command confirmation under MANAGE.
Mapped defensive controls
- Generative AI Guardrails AML.M0020
Deploy layered input and output classifiers, constitutional/topic rails, and structural validators with measured benign over-refusal rates—never relying on classifiers as the sole authorization boundary.
- AI Telemetry Logging and Monitoring AML.M0024
Emit structured, PII-redacted OpenTelemetry GenAI security traces covering auth, guardrail verdicts, token bursts, and agent tool calls without creating a toxic raw-prompt honeypot.
- 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.
- Human In-the-Loop for AI Agent Actions AML.M0029
Require explicit, informed human confirmation—displaying exact target resources, parameters, and diff previews—before executing irreversible or high-blast-radius agent actions.
- 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.
Related technique records
Documented incidents & exercises (22)
- OpenClaw Command & Control via Prompt Injection AML.CS0051 · Exercise · Feb 3, 2026 · Moderate
ATLAS case study: prompt injection against OpenClaw yielded command-and-control over the host via agent tool invocation.
- 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.
- AI ClickFix: Hijacking Computer-Use Agents Using ClickFix AML.CS0055 · Exercise · May 24, 2025 · Moderate
ATLAS case study: ClickFix fake-CAPTCHA pages hijacked computer-use agents into executing attacker scripts.
- 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…
- LoLLMs Local Model WebUI Extension Installer Unauthenticated RCE INC-2024-4320 · Incident · Jun 6, 2024 · Critical · Consumer AI & Local Runtimes
CVE-2024-4320 documented unauthenticated remote code execution in the LoLLMs WebUI extension installation endpoint due to missing Origin checks and CSRF protections. Because local model runners frequently bind permissively or accept cross-origin browser requests while running…
- 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 Path Prefix Containment Bypass Allowing Out-of-Scope Writes INC-2025-54794 · Incident · Aug 4, 2025 · High · Software Development & AI Tooling
CVE-2025-54794 (published August 4, 2025, disclosed by Cymulate as InversePrompt) identified a directory-prefix containment bug in Claude Code's workspace access guard. Because path checks compared prefix strings without enforcing a path-separator boundary, an agent restricted…
- 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…
- 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…
- Windsurf IDE Agent Path Traversal Enabling Arbitrary Host File Read and Write INC-2025-62353 · Incident · Oct 17, 2025 · High · Software Development & AI Tooling
CVE-2025-62353 (published October 17, 2025) documented a path traversal vulnerability in the Windsurf AI code editor's agent file-handling layer. Insufficient workspace boundary enforcement allowed crafted paths triggered through agent tool calls to read or write arbitrary…
- 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…
- Agentic Coding CLI Project-Level API Base URL Override Exfiltrating API Keys INC-2026-21852 · Incident · Jan 21, 2026 · High · Software Development & AI Tooling
CVE-2026-21852 (published January 21, 2026, disclosed by Check Point Research) revealed an API-key exfiltration vector in Claude Code caused by honoring project-level configuration overrides for outbound API endpoints (`ANTHROPIC_BASE_URL` or equivalent project settings). If a…
- 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…
- AnythingLLM Desktop Streaming Phase XSS Escalating to Host OS RCE INC-2026-32626 · Incident · Mar 16, 2026 · Critical · Consumer AI & Local Runtimes
CVE-2026-32626 (CVSS 9.6) revealed a critical vulnerability in AnythingLLM Desktop (`<= 1.11.1`) where streaming chat responses underwent unsafe markdown/HTML rendering inside an overly permissive Electron context. An indirect prompt injection inside an ingested RAG document or…
- 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…
- Cline Hub Dashboard Cross-Origin WebSocket Hijacking on Local Agent Control Plane INC-2026-59723 · Incident · Jul 8, 2026 · High · Software Development & AI Tooling
CVE-2026-59723 (published July 8, 2026) uncovered a Cross-Origin WebSocket Hijacking (CSWSH) vulnerability in the Cline Hub Dashboard's `/browser` and Kanban WebSocket servers. Because WebSocket handshakes lacked strict `Origin` header validation and session authentication, any…
- Nx npm s1ngularity Supply Chain Attack Weaponizing Local AI CLIs to Steal Secrets INC-OBS-008 · Incident · Aug 26, 2025 · Critical · Software Development & AI Tooling
On August 26, 2025, threat actors compromised an npm publishing token via a vulnerable GitHub Actions workflow in the Nx monorepo build system and pushed malicious package versions live for roughly four hours (tracked as the s1ngularity campaign). Uniquely, the malicious…
- ChatGPT macOS Desktop App Storing Unencrypted Plaintext Chat Logs Outside Sandbox INC-OBS-042 · Incident · Jul 3, 2024 · Elevated · Consumer AI & Local Runtimes
On July 3, 2024, developer Pedro Jose Pereira Vieito publicly demonstrated that OpenAI's official ChatGPT macOS desktop application bypassed Apple's App Sandbox and stored complete user conversation histories in unencrypted plaintext JSON files inside `~/Library/Application…
- Compositional Exploits & CompGuard OS Kernel Enforcement in Coding Agents OBS.EX0063 · Exercise · Nov 15, 2026 · Gemini 3.5/3.7/3.8 Flash Coding Agents · 560-Task Suite & 5 Single-Tool Scanners
Shah and Kathrotia (2026) evaluated compositional exploits where autonomous coding agents chain individually benign third-party tools across turns via workspace files, environment variables, and memory to execute unauthorized attacks across 360 hazard tasks and 200 benign…
Source citation records
- MITRE ATLAS: Local AI Agent · MITRE ·
- LLM01:2025 Prompt Injection · OWASP GenAI Security Project ·
Common questions
- What is Machine Compromise: Local AI Agent (AML.T0112.000)?
- An adversary compromises a victim workstation by hijacking a locally installed coding, desktop, or browser AI agent that executes with the user's native OS privileges. As demonstrated in OpenClaw, LLMSmith, and ClickFix exercises, indirect prompt injection or vulnerable agent plugins bridge untrusted content directly into local process execution.
- How do you mitigate Machine Compromise: Local AI Agent?
- MITRE ATLAS maps 5 mitigations to AML.T0112.000: Generative AI Guardrails, AI Telemetry Logging and Monitoring, Enforce Access Controls for AI Agent Tools, Human In-the-Loop for AI Agent Actions, and Segmentation of AI Agent Components. Run local coding and desktop agents inside ephemeral containers or sandboxed VMs with workspace-only mounts and no access to user home keychains.