MITRE ATLAS 2026.10 · AML.T0110.002 · High severity
AI Agent Tool Poisoning: Runtime Response
A compromised or adversary-controlled external tool returns crafted instructions, deceptive error messages, or poisoned structured fields inside its runtime tool response (`CallToolResult`). Because orchestrators feed raw tool outputs straight back into the model's conversation history or long-term memory, the payload persists across subsequent reasoning turns.
Technique dossier overview
- Category
- Training and model integrity
- Severity
- High
- Attack surface
- Tool-Using Agents & MCP · LLM / Prompt Layer
- Framework maturity
- Feasible
- Platforms
- Agentic AI
- Tactics
- Persistence
- Catalog entry modified
How the mechanism works
- An agent calls a remote API, web search, or MCP tool whose backend has been compromised or reflects attacker-controlled external data.
- The tool returns legitimate partial data paired with concealed natural-language instructions or fabricated system error messages demanding follow-up credential or file actions.
- The agent's planning loop treats the tool result as trusted operational feedback and either executes follow-on hijacked tool calls or persists the instruction into session memory.
Detection & telemetry signals
- Tool response JSON payloads containing unexpected prompt-override directives, fake `[SYSTEM ERROR]` banners, or explicit instructions referencing sibling tools.
- Guardrail classifiers flagging elevated instruction-injection scores on `role: tool` messages rather than `role: user` inputs.
- Agent trajectories taking privileged follow-up actions (file writes, config edits, outbound posts) immediately after consuming a specific remote tool response.
- Oversized or non-conforming text blobs returned inside narrow structured tool output fields (status codes, IDs, timestamps).
Architectural defensive countermeasures
- Validate every tool response strictly against a tight JSON schema (enforcing field types, enums, and maximum string lengths) before appending it to model context.
- Wrap `role: tool` outputs in explicit untrusted-data delimiters and run prompt-injection classifiers on tool return payloads, not solely on initial user messages.
- Enforce policy rules (such as taint tracking) that block or require human confirmation before high-privilege tools run after an untrusted external tool response enters context.
- Prevent untrusted runtime tool outputs from automatically persisting into long-term agent memory stores without provenance validation.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Poisoned tool return payloads deliver indirect Prompt Injection (LLM01) across component boundaries (LLM05) to trigger unauthorized follow-on Excessive Agency (LLM06).
- NIST AI RMF functions
- NIST AI RMF guidance
- Evaluate agent robustness against poisoned `role: tool` responses under MEASURE, and enforce strict output schema validation and taint-tracked tool gates 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.
- 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.
- Restrict AI Agent Tool Invocation on Untrusted Data AML.M0030
Taint-track untrusted data sources (web pages, emails, RAG chunks, tickets) and block them from directly authorizing or parameterizing consequential tool calls.
- Memory Hardening AML.M0031
Protect persistent agent memory and conversation stores with authenticated write gates, provenance tags, TTL expiry, anomaly checks, and instant rollback.
- Input and Output Validation for AI Agent Components AML.M0033
Validate structured JSON schemas, types, bounds, and safety policies at every handoff between users, retrievers, LLMs, and downstream tools/renderers.
Related technique records
Documented incidents & exercises (5)
- 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),…
- 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…
- MSB End-to-End MCP Pipeline Security Benchmark (2,000 Instances) OBS.EX0055 · Exercise · Oct 14, 2025 · 9 Popular LLM Agents · 10 Domains, 405 Real MCP Tools & 2,000 Attack Instances
Zhang et al. (2025) introduced MCP Security Bench (MSB), executing 2,000 real-tool attack instances across 405 MCP tools and 10 domains covering name collision, preference manipulation, description injection, out-of-scope parameters, user-impersonating responses, and…
- MPMA Genetic Preference Manipulation Against Competing MCP Servers OBS.EX0059 · Exercise · May 16, 2025 · Multi-Server MCP Ecosystems · Direct & Genetic Metadata Biasing Study
Wang et al. (2025) introduced the MCP Preference Manipulation Attack (MPMA), evaluating how untrusted third-party MCP servers alter tool names and descriptions, using both direct phrasing (DPMA) and genetic-algorithm stealth optimization (GAPMA), to bias LLM routing toward…
- Scaling Adaptive Prompt Injection Attacks with Agent Swarms OBS.EX0067 · Exercise · Nov 9, 2026 · Frontier Tool-Calling Models (incl. Gemini Family) · Synthetic Non-Malicious Goal Suite
Kurakin et al. (2026) designed a synthetic prompt-injection evaluation using benign randomized adversarial goals to isolate pure instruction-hierarchy adherence from safety-content knowledge, then deployed increasingly capable autonomous attacker swarms. Even frontier models…
Source citation records
- MITRE ATLAS: Runtime Response · MITRE ·
- MCP Tool Poisoning · Cited by MITRE ATLAS; publisher not independently verified
- Model Context Protocol Specification: Tools · Cited by MITRE ATLAS; publisher not independently verified
- MCP Security Cheat Sheet · Cited by MITRE ATLAS; publisher not independently verified
Common questions
- What is AI Agent Tool Poisoning: Runtime Response (AML.T0110.002)?
- A compromised or adversary-controlled external tool returns crafted instructions, deceptive error messages, or poisoned structured fields inside its runtime tool response (`CallToolResult`). Because orchestrators feed raw tool outputs straight back into the model's conversation history or long-term memory, the payload persists across subsequent reasoning turns.
- How do you mitigate AI Agent Tool Poisoning: Runtime Response?
- MITRE ATLAS maps 5 mitigations to AML.T0110.002: Generative AI Guardrails, Human In-the-Loop for AI Agent Actions, Restrict AI Agent Tool Invocation on Untrusted Data, Memory Hardening, and Input and Output Validation for AI Agent Components. Validate every tool response strictly against a tight JSON schema (enforcing field types, enums, and maximum string lengths) before appending it to model context.