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

Open AML.T0080 in Interactive Technique Workbench

How the mechanism works

  1. Untrusted input enters an agent session via direct prompts, shared files, or external web interactions.
  2. The agent summarizes or persists part of that interaction into long-term memory or session state without taint labeling.
  3. In later independent sessions, the application reloads the poisoned persistent context into the privileged system or developer preamble.

Detection & telemetry signals

Architectural defensive countermeasures

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

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 report

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)

Related technique records

Documented incidents & exercises (7)

Source citation records

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_escalation pack: 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 ().