Memory Poisoning Attack and Defense on Memory Based LLM-Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Large language model agents equipped with persistent memory are vulnerable to memory poisoning attacks, where adversaries inject malicious instructions through query only interactions that corrupt the agents long term memory and influence future responses. Recent work demonstrated that the MINJA (Memory Injection Attack) achieves over 95 % injection success rate and 70 % attack success rate under idealized conditions. However, the robustness of these attacks in realistic deployments and effective defensive mechanisms remain understudied. This work addresses these gaps through systematic empirical evaluation of memory poisoning attacks and defenses in Electronic Health Record (EHR) agents. We investigate attack robustness by varying three critical dimensions: initial memory state, number of indication prompts, and retrieval parameters. Our experiments on GPT-4o-mini, Gemini-2.0-Flash and Llama-3.1-8B-Instruct models using MIMIC-III clinical data reveal that realistic conditions with pre-existing legitimate memories dramatically reduce attack effectiveness. We then propose and evaluate two novel defense mechanisms: (1) Input/Output Moderation using composite trust scoring across multiple orthogonal signals, and (2) Memory Sanitization with trust-aware retrieval employing temporal decay and pattern-based filtering. Our defense evaluation reveals that effective memory sanitization requires careful trust threshold calibration to prevent both overly conservative rejection (blocking all entries) and insufficient filtering (missing subtle attacks), establishing important baselines for future adaptive defense mechanisms. These findings provide crucial insights for securing memory-augmented LLM agents in production environments.
Key facts. Cited by 40 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 12 of its 28 references that are in the map. First posted on arXiv 9 Jan 2026.
Builds on
12 of 28 references.
Closest ancestors · 6
Same direction, newest first
- 2025A-MemGuard: A Proactive Defense Framework for LLM-Based Agent Memory29 Sep
- 2025FuncPoison: Poisoning Function Library to Hijack Multi-agent Autonomous Driving Systems29 Sep
- 2025DRIFT: Dynamic Rule-Based Defense with Injection Isolation for Securing LLM Agents13 Jun
- 2024Prompt Infection: LLM-to-LLM Prompt Injection within Multi-Agent Systems9 Oct
- 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul
Other references · 6
- 2023Poisoning Language Models During Instruction Tuningcited by 254
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 251
- 2024MultiAgent Collaboration Attack: Investigating Adversarial Attacks in Large Language Model Collaborations via Debatecited by 54
- 2023How do languages influence each other? Studying cross-lingual data sharing during LM fine-tuningcited by 14
- 2025System Prompt Poisoning: Persistent Attacks on Large Language Models Beyond User Injectioncited by 14
- 2024A Troublemaker with Contagious Jailbreak Makes Chaos in Honest Townscited by 9
Built on by
Citing papers per year: 2026: 40.
40 papers.
Sort:
By area:
- 2026Taming OpenClaw: Security Analysis and Mitigation of Autonomous LLM Agent Threatscited by 25
- 2026ClawKeeper: Comprehensive Safety Protection for OpenClaw Agents Through Skills, Plugins, and Watcherscited by 18
- 2026Self-Improvements in Modern Agentic Systems: A Surveycited by 17
- 2026Securing LLM-Agent Long-Term Memory Against Poisoning: Non-Malleable, Origin-Bound Authority with Machine-Checked Guaranteescited by 14
- 2026A Systematic Security Evaluation of OpenClaw and Its Variantscited by 11
- 2026OEP: Poisoning Self-Evolving LLM Agents via Locally Correct but Non-Transferable Experiencescited by 9
- 2026SoK: Security of Autonomous LLM Agents in Agentic Commercecited by 8
- 2026Forget to Improve: On-Device LLM-Agent Continual Learning via Budget-Curated Memorycited by 8
- 2026Poise: Position-Aware One-Instruction Skill Injection for Silent Execution on LLM Agentscited by 7
- 2026MemAudit: Post-hoc Auditing of Poisoned Agent Memory via Causal Attribution and Structural Anomaly Detectioncited by 6
- 2026When Does Belief-Based Agent Memory Help? Reliability-Conditional Updating and Provenance-Capped Poisoning Defensecited by 6
- 2026Safety in Self-Evolving LLM Agent Systems: Threats, Amplification, and Case Studiescited by 6
28 more
- 2026Mind Your HEARTBEAT! Claw Background Execution Inherently Enables Silent Memory Pollutioncited by 5
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluationcited by 5
- 2026SMSR: Certified Defence Against Runtime Memory Poisoning in Persistent LLM Agent Systemscited by 4
- 2026From Faulty Memories to Corrected Actions: Dependency-Guided Rollback Repair for Memory-Augmented Agentscited by 4
- 2026Clawed and Dangerous: Can We Trust Open Agentic Systems?cited by 3
- 2026The Trap of Trajectory: Towards Understanding and Mitigating Spurious Correlations in Agentic Memorycited by 3
- 2026MemPoison: Uncovering Persistent Memory Threats and Structural Blind Spots in LLM Agentscited by 3
- 2026Beyond the Attention Stability Boundary: Agentic Self-Synthesizing Reasoning Protocolscited by 2
- 2026HARP: Measuring Harm Amplification in Multi-Agent LLM Systemscited by 2
- 2026When Claws Remember but Do Not Tell: Stealthy Memory Injection in Persistent Personal Agentscited by 2
- 2026Constraining Host-Level Abuse in Self-Hosted Computer-Use Agents via TEE-Backed Isolationcited by 1
- 2026Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasurescited by 1
- 2026S3: Improving Agent Safety through Multi-Stage Defensecited by 1
- 2026Utility Under Attack: Agent Memory Poisoning and the Limits of Content Screening and Provenance Rankingcited by 1
- 2026SaFeR-Steer: Evolving Multi-Turn MLLMs via Synthetic Bootstrapping and Feedback Dynamicscited by 0
- 2026Security Attack and Defense Strategies for Autonomous Agent Frameworks: A Layered Review with OpenClaw as a Case Studycited by 0
- 2026PYTHALAB-MERA: Validation-Grounded Memory, Retrieval, and Acceptance Control for Frozen-LLM Coding Agentscited by 0
- 2026ShadowMerge: A Novel Poisoning Attack on Graph-Based Agent Memory via Relation-Channel Conflictscited by 0
- 2026MemVenom: Triggered Poisoning of Multimodal Memories in Web Agentscited by 0
- 2026Self-State Attacks on Self-Hosted AI Agents: How Far Can OS Defenses Go?cited by 0
- 2026The safety failures we are not instrumenting: a perspective on hidden safety-critical challenges in modern AI systemscited by 0
- 2026Cyber-Capable AI Agents: Vulnerabilities, Evaluation Containment, and Defensive Responsecited by 0
- 2026Persistent Semantic Entities in Tool-Augmented LLM Systemscited by 0
- 2026HarnessRisk: A Lifecycle-Oriented Benchmark for Agent Harness Safetycited by 0
- 2026GraphWake: Group Polarization via Memory-Mediated Polarization Cascade in LLM-Agent Communitiescited by 0
- 2026MemSentry: A Framework for Detecting Persistent Memory Poisoning in Agentic AIcited by 0
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectivescited by 0
- 2026From Attack Success to Attack Severity: Counterfactual Memory Attacks on LLM Agentscited by 0
- 2026From Attack Success to Attack Severity: Counterfactual Memory Attacks on LLM Agents28 Sep 2026
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectives15 Sep 2026
- 2026MemSentry: A Framework for Detecting Persistent Memory Poisoning in Agentic AI8 Sep 2026
- 2026Utility Under Attack: Agent Memory Poisoning and the Limits of Content Screening and Provenance Ranking21 Aug 2026
- 2026GraphWake: Group Polarization via Memory-Mediated Polarization Cascade in LLM-Agent Communities18 Aug 2026
- 2026HarnessRisk: A Lifecycle-Oriented Benchmark for Agent Harness Safety18 Aug 2026
- 2026From Faulty Memories to Corrected Actions: Dependency-Guided Rollback Repair for Memory-Augmented Agents11 Aug 2026
- 2026Persistent Semantic Entities in Tool-Augmented LLM Systems8 Aug 2026
- 2026S3: Improving Agent Safety through Multi-Stage Defense3 Aug 2026
- 2026Cyber-Capable AI Agents: Vulnerabilities, Evaluation Containment, and Defensive Response28 Jul 2026
- 2026The safety failures we are not instrumenting: a perspective on hidden safety-critical challenges in modern AI systems21 Jul 2026
- 2026Self-State Attacks on Self-Hosted AI Agents: How Far Can OS Defenses Go?20 Jul 2026
28 more
- 2026MemPoison: Uncovering Persistent Memory Threats and Structural Blind Spots in LLM Agents16 Jul 2026
- 2026Self-Improvements in Modern Agentic Systems: A Survey14 Jul 2026
- 2026When Claws Remember but Do Not Tell: Stealthy Memory Injection in Persistent Personal Agents6 Jul 2026
- 2026Forget to Improve: On-Device LLM-Agent Continual Learning via Budget-Curated Memory23 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
- 2026When Does Belief-Based Agent Memory Help? Reliability-Conditional Updating and Provenance-Capped Poisoning Defense20 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
- 2026Poise: Position-Aware One-Instruction Skill Injection for Silent Execution on LLM Agents6 Jun 2026
- 2026HARP: Measuring Harm Amplification in Multi-Agent LLM Systems26 May 2026
- 2026Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasures25 May 2026
- 2026MemAudit: Post-hoc Auditing of Poisoned Agent Memory via Causal Attribution and Structural Anomaly Detection22 May 2026
- 2026OEP: Poisoning Self-Evolving LLM Agents via Locally Correct but Non-Transferable Experiences18 May 2026
- 2026The Trap of Trajectory: Towards Understanding and Mitigating Spurious Correlations in Agentic Memory10 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
- 2026Constraining Host-Level Abuse in Self-Hosted Computer-Use Agents via TEE-Backed Isolation7 May 2026
- 2026Security Attack and Defense Strategies for Autonomous Agent Frameworks: A Layered Review with OpenClaw as a Case Study30 Apr 2026
- 2026Beyond the Attention Stability Boundary: Agentic Self-Synthesizing Reasoning Protocols27 Apr 2026
- 2026SoK: Security of Autonomous LLM Agents in Agentic Commerce15 Apr 2026
- 2026A Systematic Security Evaluation of OpenClaw and Its Variants3 Apr 2026
- 2026Clawed and Dangerous: Can We Trust Open Agentic Systems?27 Mar 2026
- 2026ClawKeeper: Comprehensive Safety Protection for OpenClaw Agents Through Skills, Plugins, and Watchers25 Mar 2026
- 2026Mind Your HEARTBEAT! Claw Background Execution Inherently Enables Silent Memory Pollution24 Mar 2026
- 2026SaFeR-Steer: Evolving Multi-Turn MLLMs via Synthetic Bootstrapping and Feedback Dynamics18 Mar 2026
- 2026Taming OpenClaw: Security Analysis and Mitigation of Autonomous LLM Agent Threats12 Mar 2026
- 2026Taming OpenClaw: Security Analysis and Mitigation of Autonomous LLM Agent Threatscited by 25
- 2026Self-Improvements in Modern Agentic Systems: A Surveycited by 17
- 2026Securing LLM-Agent Long-Term Memory Against Poisoning: Non-Malleable, Origin-Bound Authority with Machine-Checked Guaranteescited by 14
- 2026OEP: Poisoning Self-Evolving LLM Agents via Locally Correct but Non-Transferable Experiencescited by 9
- 2026SoK: Security of Autonomous LLM Agents in Agentic Commercecited by 8
- 2026Forget to Improve: On-Device LLM-Agent Continual Learning via Budget-Curated Memorycited by 8
- 2026Poise: Position-Aware One-Instruction Skill Injection for Silent Execution on LLM Agentscited by 7
- 2026MemAudit: Post-hoc Auditing of Poisoned Agent Memory via Causal Attribution and Structural Anomaly Detectioncited by 6
- 2026When Does Belief-Based Agent Memory Help? Reliability-Conditional Updating and Provenance-Capped Poisoning Defensecited by 6
- 2026Safety in Self-Evolving LLM Agent Systems: Threats, Amplification, and Case Studiescited by 6
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluationcited by 5
- 2026From Faulty Memories to Corrected Actions: Dependency-Guided Rollback Repair for Memory-Augmented Agentscited by 4
12 most cited of 30 All 30 (JSON)
- 2026From Attack Success to Attack Severity: Counterfactual Memory Attacks on LLM Agents28 Sep 2026
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectives15 Sep 2026
- 2026MemSentry: A Framework for Detecting Persistent Memory Poisoning in Agentic AI8 Sep 2026
- 2026GraphWake: Group Polarization via Memory-Mediated Polarization Cascade in LLM-Agent Communities18 Aug 2026
- 2026HarnessRisk: A Lifecycle-Oriented Benchmark for Agent Harness Safety18 Aug 2026
- 2026From Faulty Memories to Corrected Actions: Dependency-Guided Rollback Repair for Memory-Augmented Agents11 Aug 2026
- 2026Persistent Semantic Entities in Tool-Augmented LLM Systems8 Aug 2026
- 2026S3: Improving Agent Safety through Multi-Stage Defense3 Aug 2026
- 2026Cyber-Capable AI Agents: Vulnerabilities, Evaluation Containment, and Defensive Response28 Jul 2026
- 2026MemPoison: Uncovering Persistent Memory Threats and Structural Blind Spots in LLM Agents16 Jul 2026
- 2026Self-Improvements in Modern Agentic Systems: A Survey14 Jul 2026
- 2026When Claws Remember but Do Not Tell: Stealthy Memory Injection in Persistent Personal Agents6 Jul 2026
12 newest of 30 All 30 (JSON)
- 2026ClawKeeper: Comprehensive Safety Protection for OpenClaw Agents Through Skills, Plugins, and Watcherscited by 18
- 2026A Systematic Security Evaluation of OpenClaw and Its Variantscited by 11
- 2026Mind Your HEARTBEAT! Claw Background Execution Inherently Enables Silent Memory Pollutioncited by 5
- 2026Utility Under Attack: Agent Memory Poisoning and the Limits of Content Screening and Provenance Rankingcited by 1
- 2026Self-State Attacks on Self-Hosted AI Agents: How Far Can OS Defenses Go?cited by 0
- 2026The safety failures we are not instrumenting: a perspective on hidden safety-critical challenges in modern AI systemscited by 0
- 2026Utility Under Attack: Agent Memory Poisoning and the Limits of Content Screening and Provenance Ranking21 Aug 2026
- 2026The safety failures we are not instrumenting: a perspective on hidden safety-critical challenges in modern AI systems21 Jul 2026
- 2026Self-State Attacks on Self-Hosted AI Agents: How Far Can OS Defenses Go?20 Jul 2026
- 2026A Systematic Security Evaluation of OpenClaw and Its Variants3 Apr 2026
- 2026ClawKeeper: Comprehensive Safety Protection for OpenClaw Agents Through Skills, Plugins, and Watchers25 Mar 2026
- 2026Mind Your HEARTBEAT! Claw Background Execution Inherently Enables Silent Memory Pollution24 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM Agents
- 2026The Price of Safety: Benign-Case Utility and Token Overhead of Memory-Poisoning Defenses in LLM Agents
- 2025Memory Injection Attacks on LLM Agents via Query-Only Interaction
- 2026Hidden in Memory: Sleeper Memory Poisoning in LLM Agents
- 2026Understanding Stage-Wise Utility-Risk Trade-offs in LLM Agent Memory
- 2026Injection-Execution Dissociation: A Mechanistic Evaluation of Persistent Memory Attacks and Defenses in Stateful LLM Agents
- 2026Remembering More, Risking More: Longitudinal Safety Risks in Memory-Equipped LLM Agents
- 2026Bad Memory: Evaluating Prompt Injection Risks from Memory in Agentic Systems