MITRE ATLAS 2026.10 · AML.T0080 · Critical severity
AI Agent Context Poisoning
AI agent context poisoning compromises persistent state stores (long-term user memory, shared workspace scratchpads, or resumed conversation histories) so corrupted assumptions or hidden instructions persist across future sessions and steer subsequent behavior.
Technique dossier overview
- Category
- Agent and tool trust
- Severity
- Critical
- Attack surface
- RAG & Retrieval · Tool-Using Agents & MCP · LLM / Prompt Layer
- Framework maturity
- Realized
- Platforms
- Generative AI, Agentic AI
- Tactics
- Persistence
- Aliases
- Persistent-context integrity
- Catalog entry modified
How the mechanism works
- Untrusted input enters an agent session via direct prompts, shared files, or external web interactions.
- The agent summarizes or persists part of that interaction into long-term memory or session state without taint labeling.
- In later independent sessions, the application reloads the poisoned persistent context into the privileged system or developer preamble.
Detection & telemetry signals
- Persistent memory write events occurring immediately after ingestion of untrusted external emails, web pages, or documents.
- Stored memory entries containing imperative action rules, external URLs, or recommendation biases contradicting user preferences.
- Repeated anomalous agent behavior across unrelated clean sessions sharing a single persistent user or project memory store.
Architectural defensive countermeasures
- Gate persistent state writes with strict authorization, taint tracking, and provenance metadata (recording source, timestamp, and trust tier).
- Block agents from automatically saving persistent memories derived from untrusted external documents or web fetches without user approval.
- Provide clear user visibility, inspection, expiry (TTL), and instant rollback/deletion for all stored agent memories and threads.
- Validate and re-authorize actions triggered from persisted context at execution time rather than trusting stored entries implicitly.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Context poisoning corrupts persistent state (LLM04) to perpetuate delayed prompt injections (LLM01) that steer future autonomous agent actions (LLM06).
- NIST AI RMF functions
- NIST AI RMF guidance
- MAP every persistent memory and state store reloaded into prompts, and MANAGE integrity through provenance tagging, write gating on untrusted inputs, TTL expiry, and user inspection.
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.
- Memory Hardening AML.M0031
Protect persistent agent memory and conversation stores with authenticated write gates, provenance tags, TTL expiry, anomaly checks, and instant rollback.
- AI Red Team AML.M0035
Conduct authorized, isolated manual and automated adversarial testing across models, RAG pipelines, and agents—tracking reproducible breach rates, Wilson confidence intervals, and patch verification.
Test with Refract
Refract is Silvauren's Apache-2.0 defensive LLM evaluation harness. Its 2x2 Detect-vs-Complete matrix crosses whether a detector flagged each probe with whether the model complied, so silent breaches are counted with Wilson 95% confidence intervals. Replace <model-id> with an OpenRouter route ID; each model page lists a ready-to-run command for its own route.
refract scan \
--target "openai_compat:<model-id>" \
--base-url https://openrouter.ai/api/v1 \
--api-key "$OPENROUTER_API_KEY" \
--battery multiturn_live_escalation
refract reportmultiturn_live_escalationlive multi-turn escalation and context poisoning across real conversation turns
Export OPENROUTER_API_KEY first. Passing --api-key keeps Refract from using an unrelated OPENAI_API_KEY, which it would otherwise read first. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.
Published empirical measurements (2)
- Attack success rate · 12.1%
Mean across five evaluated LLMs over 90 validated cases; demonstrates blind spot of task-redirection-only benchmarks. Earlier catalog numerator 11/90 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- 5-LLM Evaluation Panel (Task-Tampering Benchmark)
- Evaluation
- Task-Tampering Indirect Prompt Injection Benchmark (90 validated cases)
- Defense
- Input/output classifier
- Reported
- Sample
- 90
- Source and location
- Beyond Instruction Override: Benchmarking Indirect Prompt Injection with Task-Tampering Attacks · arXiv (author preprint; peer-review status not inferred) · Abstract / Main Defense Comparison (N=90 cases across 3 tool environments)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 98.5%
Requires deterministic state-contract logging across multi-agent sessions; recall scales with auditor model capability (strongest for Claude). Earlier catalog numerator 892/906 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Calibrated Meta-Auditor (Claude / GPT / Gemini)
- Evaluation
- ErosionBench Family-Disjoint Held-Out Split (906 scenarios)
- Defense
- Input/output classifier
- Reported
- Sample
- 906
- Source and location
- ErosionBench: Probing Alignment Decay in Enterprise Multi-Agent Systems · arXiv (author preprint; peer-review status not inferred) · Abstract / Held-Out Split Evaluation (N=906)
- Evidence provenance
- Primary-source checked
Related technique records
Documented incidents & exercises (7)
- AI Recommendation Poisoning via Crafted AI Assistant Links AML.CS0072 · Incident · Feb 10, 2026 · High
MITRE ATLAS operational incident analyzing pre-populated assistant deep links designed to plant persistent recommendation preferences into user-scoped memory across future sessions.
- AgentPoison Constrained Memory & Knowledge-Base Backdoor Study OBS.EX0043 · Exercise · Jul 17, 2024 · RAG & Long-Term Memory LLM Agents · Autonomous Driving, QA & Healthcare EHRAgent
Chen et al. (2024) evaluated AgentPoison, a training-free red-teaming method that maps compact trigger tokens into isolated regions of the retriever embedding space to poison long-term agent memory and RAG stores. Evaluated on RAG-based autonomous driving agents,…
- StealthyPoison Procedural Poisoning Across 26,000 Agent Skills OBS.EX0068 · Exercise · Nov 9, 2026 · 566 Target Skills, 5,244 Requests & Claude Code (Opus 4.8) · Skill Registry Poisoning
Qiao et al. (2026) evaluated StealthyPoison against 566 target third-party agent skills inside a 26,000+ registry index across 5,244 requests, using surrogate agent feedback to corrupt decision-critical rules while preserving advertised skill behavior. Augmented retrieval…
- MemoryGraft Persistent Compromise via Poisoned Experience Retrieval OBS.EX0069 · Exercise · Dec 18, 2025 · MetaGPT DataInterpreter + GPT-4o · Long-Term Semantic Experience Store
Srivastava and He (2025) introduced MemoryGraft, demonstrating how benign-looking ingested artifacts can persuade an experience-learning agent to persist unsafe procedure templates inside its long-term RAG memory store. Validated on MetaGPT’s DataInterpreter powered by GPT-4o,…
- XAMT Bilevel Covert Memory Tampering in Heterogeneous Multi-Agent Systems OBS.EX0070 · Exercise · Dec 15, 2025 · CTDE MARL (SMAC) & RAG LLM Agents (SafeRAG) · Sub-Percent Memory Poisoning
Sharma et al. (2025) formulated covert tampering of shared agent memory, spanning Experience Replay buffers in Multi-Agent Reinforcement Learning (MARL) and external Knowledge Bases in RAG agents, as a bilevel optimization framework (XAMT). Evaluated on SMAC and SafeRAG at…
- ErosionBench Cross-Session Alignment Decay in Enterprise Multi-Agent Systems OBS.EX0217 · Exercise · Nov 8, 2026 · 1,728 Enterprise Scenarios + 198 Paired Image/Text Attacks · GPT, Gemini & Claude Auditors
Bharathwaj et al. (2026) built ErosionBench (1,728 enterprise state-graph scenarios plus 198 paired image/text attacks mapped to OWASP LLM Top 10) to measure cross-session alignment decay where individually benign messages accumulate via poisoned shared state into unauthorized…
- OWASP Agentic AI Threats & Mitigations Threat-Modeling Exercise OBS.EX0235 · Exercise · Feb 17, 2025 · Autonomous Multi-Agent & Tool-Calling Systems · Goal Hijack, Memory & Identity Threats
The OWASP Agentic Security Initiative (February 2025) released Agentic AI: Threats and Mitigations, providing a structured threat-modeling and architectural assurance reference covering memory poisoning, tool misuse, privilege compromise, rogue agent communication, and…
Source citation records
- MITRE ATLAS: AI Agent Context Poisoning · MITRE ·
- Beyond Instruction Override: Benchmarking Indirect Prompt Injection with Task-Tampering Attacks · arXiv (author preprint; peer-review status not inferred) ·
- ErosionBench: Probing Alignment Decay in Enterprise Multi-Agent Systems · arXiv (author preprint; peer-review status not inferred) ·
Common questions
- What is AI Agent Context Poisoning (AML.T0080)?
- AI agent context poisoning compromises persistent state stores (long-term user memory, shared workspace scratchpads, or resumed conversation histories) so corrupted assumptions or hidden instructions persist across future sessions and steer subsequent behavior.
- How do you mitigate AI Agent Context Poisoning?
- MITRE ATLAS maps 3 mitigations to AML.T0080: Generative AI Guardrails, Memory Hardening, and AI Red Team. Gate persistent state writes with strict authorization, taint tracking, and provenance metadata (recording source, timestamp, and trust tier).
- How can I test a model for AI Agent Context Poisoning?
- Run the Refract
multiturn_live_escalationpack:refract scan --target "openai_compat:<model-id>" --base-url https://openrouter.ai/api/v1 --api-key "$OPENROUTER_API_KEY" --battery multiturn_live_escalation, then refract report. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test. - What recent research covers AI Agent Context Poisoning?
- 2 research briefs map to AML.T0080. The most recent is StealthyPoison: Manipulating LLM Agent Behavior through Procedural Poisoning of Third-Party Skills ().