mlsanityData to 7 Oct 2026

Remembering More, Risking More: Longitudinal Safety Risks in Memory-Equipped LLM Agents

arXiv 2605.17830 ↗First posted 18 May 2026cs.AI cs.CLcited by 4

On the map: LLM agents and tool use → Agent threats, guardrails and governance

also in 1 more
Abstract (arXiv)

Safety evaluations of memory-equipped LLM agents typically measure within-task safety: whether an agent completes a single scenario safely, often under adversarial conditions such as prompt injection or memory poisoning. In deployment, however, a single agent serves many independent tasks over a long horizon, and memory accumulated during earlier tasks can affect behavior on later, unrelated ones. Studying this regime requires evaluation along the temporal dimension across tasks: not whether an agent is safe at any single memory state, but how its safety profile changes as memory accumulates across many independent interactions. We call this failure mode temporal memory contamination. To isolate memory exposure from stream non-stationarity, we introduce a trigger-probe protocol that evaluates a fixed probe set against read-only memory snapshots at varying prefix lengths, together with a NullMemory counterfactual baseline for identifying memory-induced violations. We apply this protocol across three deployment scenarios spanning records, memos, forms, and email correspondence and eight memory architectures, and additionally on Claw-like AI agents, such as OpenClaw, using the platform's native memory mechanism. Memory-enabled agents consistently exceed the NullMemory baseline, and memory-induced violation rates show a robust upward trend with exposure length on both agent classes. Order-randomization experiments indicate that the effect is driven primarily by accumulated content rather than encounter order. Finally, a structural consequence of the event decomposition is that memory-induced risk is detectable from retrieval state before generation, which we confirm with a high-recall diagnostic monitor. Our results argue for treating memory safety as a longitudinal property that requires temporal evaluation, not a single-state property that can be captured by a snapshot.

Key facts. Cited by 4 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 37 of its 47 references that are in the map. First posted on arXiv 18 May 2026.

Builds on

37 of 47 references.

Closest ancestors · 10

Same direction, newest first

  1. 2025A-MemGuard: A Proactive Defense Framework for LLM-Based Agent Memory29 Sep
  2. 2025Your Mailbox Is Mine: Prompt Injection Attacks Against Real-World LLM Email Agents3 Jul
  3. 2025A Survey on Autonomy-Induced Security Risks in Large Model-Based Agents30 Jun
  4. 2025AgentDAM: Privacy Leakage Evaluation for Autonomous Web Agents12 Mar
  5. 2025A Survey on Trustworthy LLM Agents: Threats and Countermeasures12 Mar
  6. 2025Unveiling Privacy Risks in LLM Agent Memory17 Feb
  7. 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents19 Dec
  8. 2024The Emerged Security and Privacy of LLM Agent: A Survey with Case Studies28 Jul
  9. 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul
  10. 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar

Other references · 27

  1. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
  2. 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
  3. 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 722
  4. 2024A Survey on the Memory Mechanism of Large Language Model based Agentscited by 622
  5. 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 539
  6. 2023RAGTruth: A Hallucination Corpus for Developing Trustworthy Retrieval-Augmented Language Modelscited by 272
  7. 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 251
  8. 2025Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactionscited by 236
  9. 2024Continual Learning of Large Language Models: A Comprehensive Surveycited by 228
  10. 2024PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Actioncited by 161
  11. 2025MemOS: A Memory OS for AI Systemcited by 129
  12. 2025Preference Leakage: A Contamination Problem in LLM-as-a-judgecited by 119
15 more
  1. 2025From Human Memory to AI Memory: A Survey on Memory Mechanisms in the Era of LLMscited by 119
  2. 2024ClashEval: Quantifying the tug-of-war between an LLM's internal prior and external evidencecited by 109
  3. 2023SCM: Enhancing Large Language Model with Self-Controlled Memory Frameworkcited by 98
  4. 2025Lifelong Learning of Large Language Model based Agents: A Roadmapcited by 78
  5. 2024From Isolated Conversations to Hierarchical Schemas: Dynamic Tree Memory Representation for LLMscited by 77
  6. 2024Continual Learning and Catastrophic Forgettingcited by 73
  7. 2024RAGChecker: A Fine-grained Framework for Diagnosing Retrieval-Augmented Generationcited by 59
  8. 2024Mitigating the Privacy Issues in Retrieval-Augmented Generation (RAG) via Pure Synthetic Datacited by 52
  9. 2024Operationalizing Contextual Integrity in Privacy-Conscious Assistantscited by 36
  10. 2024CI-Bench: Benchmarking Contextual Integrity of AI Assistants on Synthetic Datacited by 34
  11. 2026Agent Drift: Quantifying Behavioral Degradation in Multi-Agent LLM Systems Over Extended Interactionscited by 26
  12. 2025MemEngine: A Unified and Modular Library for Developing Advanced Memory of LLM-based Agentscited by 17
  13. 2025PrivacyBench: A Conversational Benchmark for Evaluating Privacy in Personalized AIcited by 11
  14. 2024Evidence Contextualization and Counterfactual Attribution for Conversational QA over Heterogeneous Data with RAG Systemscited by 8
  15. 2025Energy Landscapes Enable Reliable Abstention in Retrieval-Augmented Large Language Models for Healthcarecited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026MemEvoBench: Benchmarking Safety Risks from Memory Misevolution in LLM Agents
  2. 2026Understanding Stage-Wise Utility-Risk Trade-offs in LLM Agent Memory
  3. 2026From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM Agents
  4. 2026State Contamination in Memory-Augmented LLM Agents
  5. 2026Injection-Execution Dissociation: A Mechanistic Evaluation of Persistent Memory Attacks and Defenses in Stateful LLM Agents
  6. 2026MemSecBench: Tracking Agent Memory Poisoning from Persistence to Consequence and Repair
  7. 2026MemAudit: Post-hoc Auditing of Poisoned Agent Memory via Causal Attribution and Structural Anomaly Detection
  8. 2026Hidden in Memory: Sleeper Memory Poisoning in LLM Agents