MemSentry: A Framework for Detecting Persistent Memory Poisoning in Agentic AI
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Agentic AI systems with persistent memory introduce a distinct attack surface known as memory poisoning, in which adversarially crafted content is stored in long-term memory and subsequently influences future agent behavior. Such attacks can suppress security alerts, facilitate privilege escalation, alter trust relationships, or override security policies without modifying the underlying model weights or system prompts. To address this threat, we present MemSentry, a formal, configuration-driven framework that intercepts proposed persistent-memory writes and produces deterministic Accept, Review, or Quarantine decisions. MemSentry evaluates each write by jointly considering source trust, semantic risk, attack radius over a component-dependency DAG, access risk, and a signed security-state delta that captures whether an operation weakens or strengthens the system's security posture. We instantiate the protected environment using a 20-asset random dependency DAG and a 10 x 20 user access-control matrix, and evaluate the framework over 1,000 GPT-4-generated scenarios using a stratified 70/30 train/test split. Semantic classification is treated as a pluggable component rather than a primary contribution, and we compare four representative approaches: rule-based Regex, TF-IDF+SVM, SBERT+LR, and SetFit. SBERT+LR achieves the best overall performance with 91.7% accuracy and a 0.908 macro-F1 score, while all four methods detect 100% of external quarantine-class threats. For verified insiders, where source trust is maximal (T = 1), MemSentry does not automatically quarantine suspicious operations but instead escalates potentially dangerous writes for human review, making semantic classification important for accurately capturing insider intent.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 10 of its 14 references that are in the map. First posted on arXiv 8 Sep 2026.
Builds on
10 of 14 references.
Closest ancestors · 10
Same direction, newest first
- 2026MemPoison: Uncovering Persistent Memory Threats and Structural Blind Spots in LLM Agents16 Jul
- 2026When Agents Remember Too Much: Memory Poisoning Attacks on Large Language Model Agents6 Jul
- 2026SMSR: Certified Defence Against Runtime Memory Poisoning in Persistent LLM Agent Systems10 Jun
- 2026MemAudit: Post-hoc Auditing of Poisoned Agent Memory via Causal Attribution and Structural Anomaly Detection22 May
- 2026Trojan Hippo: Weaponizing Agent Memory for Data Exfiltration3 May
- 2026Memory Poisoning Attack and Defense on Memory Based LLM-Agents9 Jan
- 2025MemoryGraft: Persistent Compromise of LLM Agents via Poisoned Experience Retrieval18 Dec
- 2025A-MemGuard: A Proactive Defense Framework for LLM-Based Agent Memory29 Sep
- 2025Memory Injection Attacks on LLM Agents via Query-Only Interaction5 Mar
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul
Built on by
Not cited yet.
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
- 2026MemSecBench: Tracking Agent Memory Poisoning from Persistence to Consequence and Repair
- 2026Bad Memory: Evaluating Prompt Injection Risks from Memory in Agentic Systems
- 2026From Attack Success to Attack Severity: Counterfactual Memory Attacks on LLM Agents
- 2026MemForm: Benchmarking Memory Formation Poisoning in LLM Agents
- 2026MemEvoBench: Benchmarking Safety Risks from Memory Misevolution in LLM Agents
- 2026Hijacking Agent Memory: Stealthy Trojan Attacks Through Conversational Interaction
- 2026MemVenom: Triggered Poisoning of Multimodal Memories in Web Agents