MemoryGraft: Persistent Compromise of LLM Agents via Poisoned Experience Retrieval
On the map: Retrieval-augmented generation → Privacy and security of RAG
also in 2 more
Abstract (arXiv)
Large Language Model (LLM) agents increasingly rely on long-term memory and Retrieval-Augmented Generation (RAG) to persist experiences and refine future performance. While this experience learning capability enhances agentic autonomy, it introduces a critical, unexplored attack surface, i.e., the trust boundary between an agent's reasoning core and its own past. In this paper, we introduce MemoryGraft. It is a novel indirect injection attack that compromises agent behavior not through immediate jailbreaks, but by implanting malicious successful experiences into the agent's long-term memory. Unlike traditional prompt injections that are transient, or standard RAG poisoning that targets factual knowledge, MemoryGraft exploits the agent's semantic imitation heuristic which is the tendency to replicate patterns from retrieved successful tasks. We demonstrate that an attacker who can supply benign ingestion-level artifacts that the agent reads during execution can induce it to construct a poisoned RAG store where a small set of malicious procedure templates is persisted alongside benign experiences. When the agent later encounters semantically similar tasks, union retrieval over lexical and embedding similarity reliably surfaces these grafted memories, and the agent adopts the embedded unsafe patterns, leading to persistent behavioral drift across sessions. We validate MemoryGraft on MetaGPT's DataInterpreter agent with GPT-4o and find that a small number of poisoned records can account for a large fraction of retrieved experiences on benign workloads, turning experience-based self-improvement into a vector for stealthy and durable compromise. To facilitate reproducibility and future research, our code and evaluation data are available at https://github.com/Jacobhhy/Agent-Memory-Poisoning.
Key facts. Cited by 72 papers in the map (data through 14 Oct 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 11 of its 17 references that are in the map. First posted on arXiv 18 Dec 2025.
Builds on
11 of 17 references.
Closest ancestors · 4
Same direction, newest first
- 2025Practical Poisoning Attacks against Retrieval-Augmented Generation4 Apr
- 2024RevPRAG: Revealing Poisoning Attacks in Retrieval-Augmented Generation through LLM Activation Analysis28 Nov
- 2024Machine Against the RAG: Jamming Retrieval-Augmented Generation with Blocker Documents9 Jun
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models12 Feb
Other references · 7
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,839
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,389
- 2025A-MEM: Agentic Memory for LLM Agentscited by 1,063
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 605
- 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 556
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Basescited by 429
- 2025Preference-Aware Memory Update for Long-Term LLM Agentscited by 20
Built on by
Citing papers per year: 2026: 72.
72 papers.
Sort:
By area:
- 2026Zombie Agents: Persistent Control of Self-Evolving LLM Agents via Self-Reinforcing Injectionscited by 48
- 2026From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM Agentscited by 33
- 2026Taming OpenClaw: Security Analysis and Mitigation of Autonomous LLM Agent Threatscited by 29
- 2026A Survey on Long-Term Memory Security in LLM Agents: Attacks, Defenses, and Governance Across the Memory Lifecyclecited by 27
- 2026From Storage to Experience: A Survey on the Evolution of LLM Agent Memory Mechanismscited by 21
- 2026Securing LLM-Agent Long-Term Memory Against Poisoning: Non-Malleable, Origin-Bound Authority with Machine-Checked Guaranteescited by 18
- 2026A Framework for Formalizing LLM Agent Securitycited by 16
- 2026MemLineage: Lineage-Guided Enforcement for LLM Agent Memorycited by 16
- 2026MemMark: State-Evolution Attribution Watermarking for Agent Long-Term Memory Systemscited by 16
- 2026OEP: Poisoning Self-Evolving LLM Agents via Locally Correct but Non-Transferable Experiencescited by 14
- 2026A Systematic Survey of Security Threats and Defenses in LLM-Based AI Agents: A Layered Attack Surface Frameworkcited by 11
- 2026Forget to Improve: On-Device LLM-Agent Continual Learning via Budget-Curated Memorycited by 9
38 more
- 2026Information-Theoretic Privacy Control for Sequential Multi-Agent LLM Systemscited by 8
- 2026SoK: Security of Autonomous LLM Agents in Agentic Commercecited by 8
- 2026Safety in Self-Evolving LLM Agent Systems: Threats, Amplification, and Case Studiescited by 8
- 2026Your Agent's Memories Are Not Its Own: Forged Reasoning Attacks on LLM Agent Memory and Defensescited by 8
- 2026MemAudit: Post-hoc Auditing of Poisoned Agent Memory via Causal Attribution and Structural Anomaly Detectioncited by 7
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluationcited by 7
- 2026MemPoison: Uncovering Persistent Memory Threats and Structural Blind Spots in LLM Agentscited by 7
- 2026Causal Intervention-Based Memory Selection for Long-Horizon LLM Agentscited by 6
- 2026Procedural Memory Distillation: Online Reflection for Self-Improving Language Modelscited by 6
- 2026When Agents Remember Too Much: Memory Poisoning Attacks on Large Language Model Agentscited by 6
- 2026SkillJack: Persistent Skill Backdoors in Self-Evolving Agentscited by 6
- 2026Mind Your HEARTBEAT! Claw Background Execution Inherently Enables Silent Memory Pollutioncited by 5
- 2026Visual Inception: Compromising Long-term Planning in Agentic Recommenders via Multimodal Memory Poisoningcited by 5
- 2026Injection-Execution Dissociation: A Mechanistic Evaluation of Persistent Memory Attacks and Defenses in Stateful LLM Agentscited by 5
- 2026An AI Agent Execution Environment to Safeguard User Datacited by 4
- 2026Hijacking Agent Memory: Stealthy Trojan Attacks Through Conversational Interactioncited by 4
- 2026SMSR: Certified Defence Against Runtime Memory Poisoning in Persistent LLM Agent Systemscited by 4
- 2026Clawed and Dangerous: Can We Trust Open Agentic Systems?cited by 3
- 2026Cross-Session Threats in AI Agents: Benchmark, Evaluation, and Algorithmscited by 3
- 2026MEMSAD: Gradient-Coupled Anomaly Detection for Memory Poisoning in Retrieval-Augmented Agentscited by 3
- 2026Plant, Persist, Trigger: Sleeper Attack on Large Language Model Agentscited by 3
- 2026Adversarial Intent is a Latent Variable: Stateful Trust Inference for Securing Multimodal Agentic RAGcited by 2
- 2026Securing Retrieval-Augmented Generation: A Taxonomy of Attacks, Defenses, and Future Directionscited by 2
- 2026ASEval: Automated Trajectory-Level Security Testing for Autonomous Agentscited by 2
- 2026When Claws Remember but Do Not Tell: Stealthy Memory Injection in Persistent Personal Agentscited by 2
- 2026Benign Alone, Harmful Together: Exploiting Experience Composition in Self-Evolving LLM Agentscited by 2
- 2026MemEvoBench: Benchmarking Safety Risks from Memory Misevolution in LLM Agentscited by 1
- 2026SaFeR-Steer: Evolving Multi-Turn MLLMs via Synthetic Bootstrapping and Feedback Dynamicscited by 1
- 2026AgentWard: A Lifecycle Security Architecture for Autonomous AI Agentscited by 1
- 2026ShadowMerge: A Novel Poisoning Attack on Graph-Based Agent Memory via Relation-Channel Conflictscited by 1
- 2026The Misattribution Gap: When Memory Poisoning Looks Like Model Failure in Agentic AI Systemscited by 1
- 2026MemVenom: Triggered Poisoning of Multimodal Memories in Web Agentscited by 1
- 2026Compositional Threat Analysis of Latent Compromise in LLM Agent Systems: The Order 66 Scenariocited by 1
- 2026Authorization Before Context: A Model-Neutral Audience Boundary Against Cross-Audience Memory Leakage in Agentic Systemscited by 1
- 2026Weighted Memory Tree: Remembering What Matters for Long-Horizon LLM Agentscited by 1
- 2026Revoked but Still Authoritative: An Empirical Study of Revocation Enforcement in Agent-Memory Systemscited by 1
- 2026SkillPoison: Progressive Skill Poisoning via Successful Experiencescited by 1
- 2026RAG-Stress: Probing the Limits of Evidence Reliance in Retrieval-Augmented Generationcited by 1
50 most cited of 72 All 72 (JSON)
- 2026RAG-Stress: Probing the Limits of Evidence Reliance in Retrieval-Augmented Generation8 Oct 2026
- 2026SkillPoison: Progressive Skill Poisoning via Successful Experiences6 Oct 2026
- 2026What May an Agent Change About Itself? A Containment Floor for Self-Configuring Agent Runtimes5 Oct 2026
- 2026HASTE: Evolving Agent Harnesses Against Emerging Attacks Using Sparse Evidence2 Oct 2026
- 2026Pincer: Resource Authorization for Agents using a Digital Twin1 Oct 2026
- 2026Share-Borne AI Virus: Memory-Hopping Attacks Across LLM Agents28 Sep 2026
- 2026Certified Multi-Source Integrity for Structured Agent Actions28 Sep 2026
- 2026From Attack Success to Attack Severity: Counterfactual Memory Attacks on LLM Agents28 Sep 2026
- 2026Connecting the Dots in Agentic AI Security: A Cross-Dimensional Threat Taxonomy, Evaluation Maturity, and Open Challenges20 Sep 2026
- 2026When the Agent Becomes the Kernel: A Systematization of Security on the Path to AI-Native Operating Systems20 Sep 2026
- 2026When Agentic Trust Crosses Organizational Boundaries: Structural Externalization and a Reference Model for Trust Evidence19 Sep 2026
- 2026Collective Loss of Control in LLM Agent Systems: An Epidemic Account of Mutation, Contagion, and Recovery16 Sep 2026
38 more
- 2026MemSentry: A Framework for Detecting Persistent Memory Poisoning in Agentic AI8 Sep 2026
- 2026Revoked but Still Authoritative: An Empirical Study of Revocation Enforcement in Agent-Memory Systems8 Sep 2026
- 2026Understanding Stage-Wise Utility-Risk Trade-offs in LLM Agent Memory31 Aug 2026
- 2026MEMORY Wins All: Indirect Bias Injection Attacks via Social Media Feeds22 Aug 2026
- 2026Weighted Memory Tree: Remembering What Matters for Long-Horizon LLM Agents21 Aug 2026
- 2026GraphWake: Group Polarization via Memory-Mediated Polarization Cascade in LLM-Agent Communities18 Aug 2026
- 2026Authorization Before Context: A Model-Neutral Audience Boundary Against Cross-Audience Memory Leakage in Agentic Systems17 Aug 2026
- 2026Compositional Threat Analysis of Latent Compromise in LLM Agent Systems: The Order 66 Scenario8 Aug 2026
- 2026MAFIA: Query-Only Memory Attacks via Probing and Factual Injection against Audited LLM Agents4 Aug 2026
- 2026SkillJack: Persistent Skill Backdoors in Self-Evolving Agents4 Aug 2026
- 2026Benign Alone, Harmful Together: Exploiting Experience Composition in Self-Evolving LLM Agents3 Aug 2026
- 2026Salami Attack: Stealthy Collusive Memory Poisoning against OpenClaw3 Aug 2026
- 2026OpenART: Scaling Agent Red Teaming via Open-Ended Environment Evolution1 Aug 2026
- 2026MemPoison: Uncovering Persistent Memory Threats and Structural Blind Spots in LLM Agents16 Jul 2026
- 2026When Agents Remember Too Much: Memory Poisoning Attacks on Large Language Model Agents6 Jul 2026
- 2026When Claws Remember but Do Not Tell: Stealthy Memory Injection in Persistent Personal Agents6 Jul 2026
- 2026Your Agent's Memories Are Not Its Own: Forged Reasoning Attacks on LLM Agent Memory and Defenses6 Jul 2026
- 2026Procedural Memory Distillation: Online Reflection for Self-Improving Language Models1 Jul 2026
- 2026Forget to Improve: On-Device LLM-Agent Continual Learning via Budget-Curated Memory23 Jun 2026
- 2026Poisoned Playbooks: Demystifying Knowledge Poisoning Effects on AI Security Agents23 Jun 2026
- 2026Securing LLM-Agent Long-Term Memory Against Poisoning: Non-Malleable, Origin-Bound Authority with Machine-Checked Guarantees23 Jun 2026
- 2026Safety in Self-Evolving LLM Agent Systems: Threats, Amplification, and Case Studies22 Jun 2026
- 2026SMSR: Certified Defence Against Runtime Memory Poisoning in Persistent LLM Agent Systems10 Jun 2026
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluation9 Jun 2026
- 2026MemVenom: Triggered Poisoning of Multimodal Memories in Web Agents9 Jun 2026
- 2026From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM Agents3 Jun 2026
- 2026Hijacking Agent Memory: Stealthy Trojan Attacks Through Conversational Interaction28 May 2026
- 2026Plant, Persist, Trigger: Sleeper Attack on Large Language Model Agents27 May 2026
- 2026MemMark: State-Evolution Attribution Watermarking for Agent Long-Term Memory Systems24 May 2026
- 2026MemAudit: Post-hoc Auditing of Poisoned Agent Memory via Causal Attribution and Structural Anomaly Detection22 May 2026
- 2026ASEval: Automated Trajectory-Level Security Testing for Autonomous Agents21 May 2026
- 2026OEP: Poisoning Self-Evolving LLM Agents via Locally Correct but Non-Transferable Experiences18 May 2026
- 2026Causal Intervention-Based Memory Selection for Long-Horizon LLM Agents17 May 2026
- 2026MemLineage: Lineage-Guided Enforcement for LLM Agent Memory14 May 2026
- 2026Sleeper Channels and Provenance Gates: Persistent Prompt Injection in Always-on Autonomous AI Agents13 May 2026
- 2026The Misattribution Gap: When Memory Poisoning Looks Like Model Failure in Agentic AI Systems12 May 2026
- 2026ShadowMerge: A Novel Poisoning Attack on Graph-Based Agent Memory via Relation-Channel Conflicts9 May 2026
- 2026PYTHALAB-MERA: Validation-Grounded Memory, Retrieval, and Acceptance Control for Frozen-LLM Coding Agents8 May 2026
50 newest of 72 All 72 (JSON)
- 2026Zombie Agents: Persistent Control of Self-Evolving LLM Agents via Self-Reinforcing Injectionscited by 48
- 2026From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM Agentscited by 33
- 2026Taming OpenClaw: Security Analysis and Mitigation of Autonomous LLM Agent Threatscited by 29
- 2026A Survey on Long-Term Memory Security in LLM Agents: Attacks, Defenses, and Governance Across the Memory Lifecyclecited by 27
- 2026From Storage to Experience: A Survey on the Evolution of LLM Agent Memory Mechanismscited by 21
- 2026Securing LLM-Agent Long-Term Memory Against Poisoning: Non-Malleable, Origin-Bound Authority with Machine-Checked Guaranteescited by 18
- 2026A Framework for Formalizing LLM Agent Securitycited by 16
- 2026MemLineage: Lineage-Guided Enforcement for LLM Agent Memorycited by 16
- 2026MemMark: State-Evolution Attribution Watermarking for Agent Long-Term Memory Systemscited by 16
- 2026OEP: Poisoning Self-Evolving LLM Agents via Locally Correct but Non-Transferable Experiencescited by 14
- 2026A Systematic Survey of Security Threats and Defenses in LLM-Based AI Agents: A Layered Attack Surface Frameworkcited by 11
- 2026Forget to Improve: On-Device LLM-Agent Continual Learning via Budget-Curated Memorycited by 9
12 most cited of 55 All 55 (JSON)
- 2026SkillPoison: Progressive Skill Poisoning via Successful Experiences6 Oct 2026
- 2026Pincer: Resource Authorization for Agents using a Digital Twin1 Oct 2026
- 2026Share-Borne AI Virus: Memory-Hopping Attacks Across LLM Agents28 Sep 2026
- 2026Certified Multi-Source Integrity for Structured Agent Actions28 Sep 2026
- 2026From Attack Success to Attack Severity: Counterfactual Memory Attacks on LLM Agents28 Sep 2026
- 2026Connecting the Dots in Agentic AI Security: A Cross-Dimensional Threat Taxonomy, Evaluation Maturity, and Open Challenges20 Sep 2026
- 2026When the Agent Becomes the Kernel: A Systematization of Security on the Path to AI-Native Operating Systems20 Sep 2026
- 2026When Agentic Trust Crosses Organizational Boundaries: Structural Externalization and a Reference Model for Trust Evidence19 Sep 2026
- 2026Collective Loss of Control in LLM Agent Systems: An Epidemic Account of Mutation, Contagion, and Recovery16 Sep 2026
- 2026MemSentry: A Framework for Detecting Persistent Memory Poisoning in Agentic AI8 Sep 2026
- 2026Revoked but Still Authoritative: An Empirical Study of Revocation Enforcement in Agent-Memory Systems8 Sep 2026
- 2026Understanding Stage-Wise Utility-Risk Trade-offs in LLM Agent Memory31 Aug 2026
12 newest of 55 All 55 (JSON)
- 2026SMSR: Certified Defence Against Runtime Memory Poisoning in Persistent LLM Agent Systemscited by 4
- 2026MEMSAD: Gradient-Coupled Anomaly Detection for Memory Poisoning in Retrieval-Augmented Agentscited by 3
- 2026Securing Retrieval-Augmented Generation: A Taxonomy of Attacks, Defenses, and Future Directionscited by 2
- 2026RAG-Stress: Probing the Limits of Evidence Reliance in Retrieval-Augmented Generationcited by 1
- 2026Poisoned Playbooks: Demystifying Knowledge Poisoning Effects on AI Security Agentscited by 0
- 2026RAG-Stress: Probing the Limits of Evidence Reliance in Retrieval-Augmented Generation8 Oct 2026
- 2026Poisoned Playbooks: Demystifying Knowledge Poisoning Effects on AI Security Agents23 Jun 2026
- 2026SMSR: Certified Defence Against Runtime Memory Poisoning in Persistent LLM Agent Systems10 Jun 2026
- 2026MEMSAD: Gradient-Coupled Anomaly Detection for Memory Poisoning in Retrieval-Augmented Agents5 May 2026
- 2026Securing Retrieval-Augmented Generation: A Taxonomy of Attacks, Defenses, and Future Directions9 Apr 2026
- 2026SkillJack: Persistent Skill Backdoors in Self-Evolving Agentscited by 6
- 2026Sleeper Channels and Provenance Gates: Persistent Prompt Injection in Always-on Autonomous AI Agentscited by 0
- 2026OpenART: Scaling Agent Red Teaming via Open-Ended Environment Evolutioncited by 0
- 2026MEMORY Wins All: Indirect Bias Injection Attacks via Social Media Feedscited by 0
- 2026MEMORY Wins All: Indirect Bias Injection Attacks via Social Media Feeds22 Aug 2026
- 2026SkillJack: Persistent Skill Backdoors in Self-Evolving Agents4 Aug 2026
- 2026OpenART: Scaling Agent Red Teaming via Open-Ended Environment Evolution1 Aug 2026
- 2026Sleeper Channels and Provenance Gates: Persistent Prompt Injection in Always-on Autonomous AI Agents13 May 2026
- 2026Mind Your HEARTBEAT! Claw Background Execution Inherently Enables Silent Memory Pollutioncited by 5
- 2026An AI Agent Execution Environment to Safeguard User Datacited by 4
- 2026HASTE: Evolving Agent Harnesses Against Emerging Attacks Using Sparse Evidencecited by 0
- 2026What May an Agent Change About Itself? A Containment Floor for Self-Configuring Agent Runtimescited by 0
- 2026What May an Agent Change About Itself? A Containment Floor for Self-Configuring Agent Runtimes5 Oct 2026
- 2026HASTE: Evolving Agent Harnesses Against Emerging Attacks Using Sparse Evidence2 Oct 2026
- 2026An AI Agent Execution Environment to Safeguard User Data21 Apr 2026
- 2026Mind Your HEARTBEAT! Claw Background Execution Inherently Enables Silent Memory Pollution24 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026AgentSys: Secure and Dynamic LLM Agents Through Explicit Hierarchical Memory Management
- 2026AgentSentry: Mitigating Indirect Prompt Injection in LLM Agents via Temporal Causal Diagnostics and Context Purification
- 2025Memory Injection Attacks on LLM Agents via Query-Only Interaction
- 2026Bad Memory: Evaluating Prompt Injection Risks from Memory in Agentic Systems
- 2026Hidden in Memory: Sleeper Memory Poisoning in LLM Agents
- 2026MeClear: Cooperative Game-Theoretic Attribution and Risk-Aware Memory Clearance for Long-Horizon LLM Agents
- 2025How Memory Management Impacts LLM Agents: An Empirical Study of Experience-Following Behavior
- 2026InjecMEM: Memory Injection Attack on LLM Agent Memory Systems