# MemPoison: Uncovering Persistent Memory Threats and Structural Blind Spots in LLM Agents

*Jifeng Gao, Kang Xia, Yi Zhang, Xiaobin Hong, Mingkai Lin, Xingshen Wei, Wenzhong Li, Sanglu Lu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/139557) · [OpenReview](https://openreview.net/forum?id=IgiZ5D2F8T) · [Open on the map](../papers.html#p139557)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [LLM Safety Attack Strategies](../pgroup/451.md) · Type: benchmark or dataset · Keywords: LLM agent security, memory poisoning, benchmark, write-time defenses, mechanistic influence decomposition

Areas: [Memory](../areas/memory.md) › Agent Memory Systems › LLM Agent Memory; [AI Agents](../areas/agents.md) › Agent Robustness › LLM Agent Attacks; [Safety & Security](../areas/safety.md) › Language Model Security › Prompt Injection and Resource Attacks; [Evaluation & Benchmarks](../areas/evaluation.md) › Language Model and Agent Safety › Agent Security Benchmarks

## Summary
MemPoison is a comprehensive benchmark and analysis framework that uncovers persistent memory threats in LLM agents, revealing structural blind spots in write-time defenses across multiple attack types and memory substrates.

## Explained to a 5-year-old
Some AI helpers use a memory to remember things they talk about. Bad people can sneak bad ideas into that memory, and the AI might later say those bad ideas. We made a big test with lots of bad ideas to see how well the helpers protect themselves. We found that simple checks only stop some bad ideas, but not all of them. This helps us make safer AI helpers in the future.

## Explained to a 5-year-old, longer
Some computer programs that talk to us, like chatbots, keep a memory of what they have said before. This memory helps them remember the conversation, but it can also remember things that are not nice. If someone puts a bad idea into that memory, the program might later repeat that bad idea without knowing it is bad. We wanted to find out how often this happens and how badly it can affect the program. So we created a big collection of bad ideas, called a benchmark, with many different kinds of attacks. We tested the programs on this benchmark and looked at how they reacted to the bad ideas. We also looked at different ways the bad ideas could be added, like directly writing one bad idea or mixing many together. We discovered that simple safety checks only stopped the easiest kind of bad idea, but not the more tricky ones. Some bad ideas stayed hidden until a certain situation happened, then they caused problems later. We used a special analysis method to understand why these hidden ideas became harmful. This work helps us build better protections for AI helpers so they can remember safely.

## For a technical reader
The paper introduces a benchmark that systematically injects adversarial content into LLM agents' external memory and evaluates how existing write-time defenses respond. It shows that simple consistency checks are effective only against direct corruption, while more complex multi-record and dormant attacks bypass them. By applying mechanistic influence decomposition, the authors uncover why seemingly benign records can become harmful when combined or triggered, highlighting the need for adaptive, context-aware defenses.

## Problem
Agents that rely on persistent external memory can retain adversarial content injected through normal interactions, leading to distorted behavior later. This raises concerns about the security and reliability of memory-augmented AI systems.

## Method
The approach creates a large-scale benchmark with hand-validated attack cases across multiple injection channels and memory substrates, and employs mechanistic influence decomposition to analyze how benign records become harmful when combined or triggered. It evaluates baseline write-time defenses and demonstrates their failure modes on L2 and L3 attacks.

## Results
Baseline write-time defenses suppress direct L1 attacks but fail to reliably suppress L2 and L3 attacks; the benchmark includes 1227 hand-validated cases across four attack types, three injection channels, and three memory substrates, evaluated on ten model families.

## Contributions
A large-scale benchmark with 1227 cases and a three-tier taxonomy of memory attacks, and a mechanistic influence decomposition analysis that reveals structural blind spots in existing defenses.

## Practical relevance
The publicly released benchmark and analysis tools enable researchers and practitioners to evaluate and improve memory security in deployed LLM agents.

## Research questions this paper is counted under

- [How can we detect and defend against delayed adversarial attacks that exploit persistent memory in agents?](../q/808.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/139557)
