MITRE ATLAS 2026.10 · AML.T0080.000 · Critical severity
AI Agent Context Poisoning: Memory
Attackers plant malicious instructions, biased recommendations, or false user preferences inside an assistant's persistent cross-session memory feature. Because stored memories carry implicit user authority across future chats, a single poisoned entry compromises all subsequent interactions.
Technique dossier overview
- Category
- Agent and tool trust
- Severity
- Critical
- Attack surface
- Tool-Using Agents & MCP · LLM / Prompt Layer
- Framework maturity
- Realized
- Platforms
- Generative AI, Agentic AI
- Tactics
- Persistence
- Aliases
- Agent memory integrity
- Catalog entry modified
How the mechanism works
- A victim clicks a crafted assistant link, opens a poisoned document, or interacts with untrusted content while memory auto-save is enabled.
- Hidden directives instruct the model to invoke its memory-write capability and record persistent instructions or biased facts.
- Every future conversation silently prepends the poisoned memory, biasing product recommendations, leaking subsequent chats, or altering behavior.
Detection & telemetry signals
- Memory-write tool invocations triggered by external URLs, query parameters, or third-party retrieved content rather than explicit user commands.
- Stored memory records containing conditional execution triggers, external exfiltration endpoints, or commercial bias phrases.
- Unusual bursts of memory updates within a single session or lacking user confirmation.
Architectural defensive countermeasures
- Restrict who and what can write persistent memory: never permit untrusted retrieved content or URL-seeded prompts to mutate memory silently.
- Require explicit user confirmation displaying the exact memory string before committing new cross-session rules or facts.
- Store source provenance, creation timestamp, and trust level on every memory item and enforce automatic expiry for unverified entries.
- Provide users with an accessible memory inspector supporting one-click deletion and point-in-time restoration.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Persistent memory poisoning implants durable corrupted state (LLM04) via indirect prompt injection (LLM01) and abuses memory-write tool agency (LLM06).
- NIST AI RMF functions
- NIST AI RMF guidance
- MAP all memory-write triggers including URL parameters and tool outputs, and MANAGE risk with explicit user approval on memory mutations, provenance metadata, and user-controlled reset.
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 (1)
- Attack success rate · 60%
Conservative 60% floor reported in paper summary; demonstrates ineffectiveness of volume-based memory anomaly checks.
- Model
- GPT-3.5 / Llama-3-70B Agent Suites
- Evaluation
- AgentPoison Single-Instance Single-Token Trigger Evaluation
- Defense
- Baseline model
- Reported
- Source and location
- AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases · arXiv (author preprint; peer-review status not inferred) · Abstract / Minimal Poison Budget Ablation
- Evidence provenance
- Primary-source checked
Related technique records
Documented incidents & exercises (10)
- AIKatz: Attacking LLM Desktop Applications AML.CS0036 · Exercise · 2025 · High · Enterprise Endpoints & Desktop AI
Documented in MITRE ATLAS (2025, "AIKatz: All Your Chats Are Belong To Us"), this exercise examined post-compromise exploitation of local desktop LLM client applications. By extracting stored application access tokens or OS credentials from the local workstation, an attacker…
- Hacking ChatGPT's Memories with Prompt Injection AML.CS0040 · Exercise · February 2024 · High · Consumer & Enterprise Chatbots
Disclosed in February 2024 ("ChatGPT: Hacking Memories with Prompt Injection"), researchers showed how obfuscated indirect prompt injection inside a browsed webpage, uploaded file, or external text could coerce ChatGPT into invoking its persistent Memory tool. Once malicious…
- ZombieAgent: Data Exfiltration Attack on ChatGPT AML.CS0066 · Exercise · Sep 25, 2025 · Moderate
ATLAS case study: ZombieAgent chained agent memory with web browsing to exfiltrate ChatGPT conversation data.
- 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.
- Open WebUI IDOR Allowing Cross-User Access to Private Persistent Memories INC-2026-29071 · Incident · Mar 26, 2026 · High · Enterprise SaaS & Productivity
CVE-2026-29071 disclosed an insecure direct object reference (IDOR) vulnerability in Open WebUI's persistent memory management APIs. Authenticated users could enumerate or supply another user's memory identifiers to read or tamper with private cross-session context memories…
- 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,…
- 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…
- LinEra Forward-Secure Cryptographic Erasure for LLM-Agent Memory OBS.EX0111 · Exercise · Nov 13, 2026 · mem0 + 1.5B-7B LLMs on LoCoMo Conversations · Post-Deletion Secret Recovery Audit
Ameur et al. (2026) evaluated memory persistence vulnerabilities in long-term LLM agent stores (integrated with mem0 across 1.5B-7B models on LoCoMo conversations) where logical message deletion leaves derived summaries, facts, and embeddings recoverable. An adversary holding…
- Poisoning Self-Evolving LLM Agents via Failure-Aware Task Optimization OBS.EX0157 · Exercise · Nov 7, 2026 · Self-Evolving Experience-Learning LLM Agents · Persistent Experience-Loop Backdoors
Lin et al. (2026) evaluated BadEvolve, a failure-aware task-poisoning framework targeting self-evolving LLM agents that distill execution experience into persistent reusable skills without allowing attackers to edit stored skills directly. By diagnosing poisoning breakdowns…
Source citation records
- MITRE ATLAS: Memory · MITRE ·
- Manipulating AI memory for profit: The rise of AI Recommendation Poisoning · Cited by MITRE ATLAS; publisher not independently verified
- AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases · arXiv (author preprint; peer-review status not inferred) ·
Common questions
- What is AI Agent Context Poisoning: Memory (AML.T0080.000)?
- Attackers plant malicious instructions, biased recommendations, or false user preferences inside an assistant's persistent cross-session memory feature. Because stored memories carry implicit user authority across future chats, a single poisoned entry compromises all subsequent interactions.
- How do you mitigate AI Agent Context Poisoning: Memory?
- MITRE ATLAS maps 3 mitigations to AML.T0080.000: Generative AI Guardrails, Memory Hardening, and AI Red Team. Restrict who and what can write persistent memory: never permit untrusted retrieved content or URL-seeded prompts to mutate memory silently.
- How can I test a model for AI Agent Context Poisoning: Memory?
- 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.