Observatory research catalog · ATO.T1EED3696 · Critical severity
AI Agent Context Poisoning: AgentPoison (published research family)
AgentPoison (Chen et al., 2024) maps poisoned memory records or knowledge-base entries into compact, isolated clusters in retriever embedding space using optimized trigger tokens. Clean user queries operate normally with zero detectable accuracy loss, yet any query containing the short trigger reliably retrieves the hijacked demonstration and steers agent actions.
Technique dossier overview
- Category
- Agent and tool trust
- Severity
- Critical
- Attack surface
- RAG & Retrieval · Tool-Using Agents & MCP · Training & Fine-Tuning
- Platforms
- Agentic AI
- Tactics
- Persistence
- Aliases
- AgentPoison
- Catalog entry modified
- Earliest cited research
- · AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases · arXiv (author preprint; peer-review status not inferred)
How the mechanism works
- An attacker inserts malicious task-demonstration examples or directives into an agent's RAG knowledge base or episodic memory store.
- Triggers are optimized against the retriever's embedding encoder so triggered queries map tightly onto the poisoned record embeddings while remaining far from ordinary queries.
- When a production user query includes the short trigger token, top-k retrieval surfaces the poisoned entry cleanly, redirecting tool invocation toward attacker objectives.
Detection & telemetry signals
- L2-norm or cosine-density outliers in vector index geometry where newly inserted records form abnormally tight retrieval attractors.
- High trigger-sensitivity spikes when running synthetic token-perturbation scans over retrieved memory/knowledge documents.
- Agent trajectories executing sensitive or anomalous tool arguments triggered consistently by specific short phrases inside user/external queries.
- Unverified or unattributed documents present inside high-trust few-shot demonstration or episodic memory collections.
Architectural defensive countermeasures
- Protect persistent agent memory and demonstration banks with strict write authorization, cryptographic provenance, and tenant isolation (`AML.M0031`, `AML.M0025`).
- Run embedding-space outlier and trigger-clustering scans (`AML.M0007`) over RAG and episodic memory collections before promoting new entries.
- Apply deterministic policy validation (`AML.M0030`, `AML.M0020`) on tool arguments suggested by retrieved demonstrations rather than executing recalled plans blindly.
- Audit agent memory stores with red-team backdoor evaluations (`AML.M0035`) and maintain signed clean rollback snapshots.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Embedding-targeted backdoors in agent RAG/memory directly exploit Vector and Embedding Weaknesses (LLM08) and Data Poisoning (LLM04) to hijack agent Excessive Agency (LLM06).
- NIST AI RMF functions
- NIST AI RMF guidance
- Map agent memory and demonstration vector stores under MAP, monitor embedding-space attractor anomalies under MEASURE, and enforce provenance gating plus tool policy checks under MANAGE.
Mapped defensive controls
- Sanitize Training Data AML.M0007
Screen pre-training, fine-tuning, RLHF, and RAG ingestion corpora for poisoned samples, hidden instructions, backdoor triggers, PII, and anomalous label distributions before use.
- 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.
- Maintain AI Dataset Provenance AML.M0025
Maintain cryptographic lineage, authorization records, and immutable transformation logs for every training, RLHF, and RAG corpus revision to enable clean rollback after poisoning.
- 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.
- 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.
Published empirical measurements (1)
- Attack success rate · 80%
Paper reports >=80% floor across all three agent architectures; requires poisoning 2 to 20 memory entries (<0.1% of store).
- Model
- GPT-3.5 / Llama-3-70B / Llama-3-8B Agent Suites
- Evaluation
- AgentPoison (Agent-Driver, ReAct-StrategyQA, EHRAgent)
- 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 / Table 1 Summary
- Evidence provenance
- Primary-source checked
Related technique records
Documented incidents & exercises (2)
- 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,…
Source citation records
- 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: AgentPoison (published research family) (ATO.T1EED3696)?
- AgentPoison (Chen et al., 2024) maps poisoned memory records or knowledge-base entries into compact, isolated clusters in retriever embedding space using optimized trigger tokens. Clean user queries operate normally with zero detectable accuracy loss, yet any query containing the short trigger reliably retrieves the hijacked demonstration and steers agent actions.
- How do you mitigate AI Agent Context Poisoning: AgentPoison (published research family)?
- MITRE ATLAS maps 6 mitigations to ATO.T1EED3696: Sanitize Training Data, Generative AI Guardrails, Maintain AI Dataset Provenance, Restrict AI Agent Tool Invocation on Untrusted Data, Memory Hardening, and AI Red Team. Protect persistent agent memory and demonstration banks with strict write authorization, cryptographic provenance, and tenant isolation (`AML.M0031`, `AML.M0025`).