mlsanityData to 7 Oct 2026

Memory Poisoning Attack and Defense on Memory Based LLM-Agents

arXiv 2601.05504 ↗First posted 9 Jan 2026cs.CR cs.MAcited by 40

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

  1. 2025A-MemGuard: A Proactive Defense Framework for LLM-Based Agent Memory29 Sep
  2. 2025FuncPoison: Poisoning Function Library to Hijack Multi-agent Autonomous Driving Systems29 Sep
  3. 2025DRIFT: Dynamic Rule-Based Defense with Injection Isolation for Securing LLM Agents13 Jun
  4. 2024Prompt Infection: LLM-to-LLM Prompt Injection within Multi-Agent Systems9 Oct
  5. 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct
  6. 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul

Other references · 6

  1. 2023Poisoning Language Models During Instruction Tuningcited by 254
  2. 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 251
  3. 2024MultiAgent Collaboration Attack: Investigating Adversarial Attacks in Large Language Model Collaborations via Debatecited by 54
  4. 2023How do languages influence each other? Studying cross-lingual data sharing during LM fine-tuningcited by 14
  5. 2025System Prompt Poisoning: Persistent Attacks on Large Language Models Beyond User Injectioncited by 14
  6. 2024A Troublemaker with Contagious Jailbreak Makes Chaos in Honest Townscited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 40.

40 papers.

Sort:

By area:

  1. 2026Taming OpenClaw: Security Analysis and Mitigation of Autonomous LLM Agent Threatscited by 25
  2. 2026ClawKeeper: Comprehensive Safety Protection for OpenClaw Agents Through Skills, Plugins, and Watcherscited by 18
  3. 2026Self-Improvements in Modern Agentic Systems: A Surveycited by 17
  4. 2026Securing LLM-Agent Long-Term Memory Against Poisoning: Non-Malleable, Origin-Bound Authority with Machine-Checked Guaranteescited by 14
  5. 2026A Systematic Security Evaluation of OpenClaw and Its Variantscited by 11
  6. 2026OEP: Poisoning Self-Evolving LLM Agents via Locally Correct but Non-Transferable Experiencescited by 9
  7. 2026SoK: Security of Autonomous LLM Agents in Agentic Commercecited by 8
  8. 2026Forget to Improve: On-Device LLM-Agent Continual Learning via Budget-Curated Memorycited by 8
  9. 2026Poise: Position-Aware One-Instruction Skill Injection for Silent Execution on LLM Agentscited by 7
  10. 2026MemAudit: Post-hoc Auditing of Poisoned Agent Memory via Causal Attribution and Structural Anomaly Detectioncited by 6
  11. 2026When Does Belief-Based Agent Memory Help? Reliability-Conditional Updating and Provenance-Capped Poisoning Defensecited by 6
  12. 2026Safety in Self-Evolving LLM Agent Systems: Threats, Amplification, and Case Studiescited by 6
28 more
  1. 2026Mind Your HEARTBEAT! Claw Background Execution Inherently Enables Silent Memory Pollutioncited by 5
  2. 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluationcited by 5
  3. 2026SMSR: Certified Defence Against Runtime Memory Poisoning in Persistent LLM Agent Systemscited by 4
  4. 2026From Faulty Memories to Corrected Actions: Dependency-Guided Rollback Repair for Memory-Augmented Agentscited by 4
  5. 2026Clawed and Dangerous: Can We Trust Open Agentic Systems?cited by 3
  6. 2026The Trap of Trajectory: Towards Understanding and Mitigating Spurious Correlations in Agentic Memorycited by 3
  7. 2026MemPoison: Uncovering Persistent Memory Threats and Structural Blind Spots in LLM Agentscited by 3
  8. 2026Beyond the Attention Stability Boundary: Agentic Self-Synthesizing Reasoning Protocolscited by 2
  9. 2026HARP: Measuring Harm Amplification in Multi-Agent LLM Systemscited by 2
  10. 2026When Claws Remember but Do Not Tell: Stealthy Memory Injection in Persistent Personal Agentscited by 2
  11. 2026Constraining Host-Level Abuse in Self-Hosted Computer-Use Agents via TEE-Backed Isolationcited by 1
  12. 2026Security of OpenClaw Agents: Fundamentals, Attacks, and Countermeasurescited by 1
  13. 2026S3: Improving Agent Safety through Multi-Stage Defensecited by 1
  14. 2026Utility Under Attack: Agent Memory Poisoning and the Limits of Content Screening and Provenance Rankingcited by 1
  15. 2026SaFeR-Steer: Evolving Multi-Turn MLLMs via Synthetic Bootstrapping and Feedback Dynamicscited by 0
  16. 2026Security Attack and Defense Strategies for Autonomous Agent Frameworks: A Layered Review with OpenClaw as a Case Studycited by 0
  17. 2026PYTHALAB-MERA: Validation-Grounded Memory, Retrieval, and Acceptance Control for Frozen-LLM Coding Agentscited by 0
  18. 2026ShadowMerge: A Novel Poisoning Attack on Graph-Based Agent Memory via Relation-Channel Conflictscited by 0
  19. 2026MemVenom: Triggered Poisoning of Multimodal Memories in Web Agentscited by 0
  20. 2026Self-State Attacks on Self-Hosted AI Agents: How Far Can OS Defenses Go?cited by 0
  21. 2026The safety failures we are not instrumenting: a perspective on hidden safety-critical challenges in modern AI systemscited by 0
  22. 2026Cyber-Capable AI Agents: Vulnerabilities, Evaluation Containment, and Defensive Responsecited by 0
  23. 2026Persistent Semantic Entities in Tool-Augmented LLM Systemscited by 0
  24. 2026HarnessRisk: A Lifecycle-Oriented Benchmark for Agent Harness Safetycited by 0
  25. 2026GraphWake: Group Polarization via Memory-Mediated Polarization Cascade in LLM-Agent Communitiescited by 0
  26. 2026MemSentry: A Framework for Detecting Persistent Memory Poisoning in Agentic AIcited by 0
  27. 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectivescited by 0
  28. 2026From Attack Success to Attack Severity: Counterfactual Memory Attacks on LLM Agentscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM Agents
  2. 2026The Price of Safety: Benign-Case Utility and Token Overhead of Memory-Poisoning Defenses in LLM Agents
  3. 2025Memory Injection Attacks on LLM Agents via Query-Only Interaction
  4. 2026Hidden in Memory: Sleeper Memory Poisoning in LLM Agents
  5. 2026Understanding Stage-Wise Utility-Risk Trade-offs in LLM Agent Memory
  6. 2026Injection-Execution Dissociation: A Mechanistic Evaluation of Persistent Memory Attacks and Defenses in Stateful LLM Agents
  7. 2026Remembering More, Risking More: Longitudinal Safety Risks in Memory-Equipped LLM Agents
  8. 2026Bad Memory: Evaluating Prompt Injection Risks from Memory in Agentic Systems