Malicious memory persists in 84% of cases and full attack succeeds in 50% of scenarios
Across 24 agent configurations, malicious instructions remain in memory 84.2% of the time and the complete write-execute chain succeeds in 50.3% of cases
AI/ML arXiv 29 Jul 2026 Benchmark Prototype evidence
Published as “MemSecBench: Tracking Agent Memory Poisoning from Persistence to Consequence and Repair”
Why it matters
The study reveals pervasive memory-poisoning vulnerabilities in current LLM agents and shows that both attack mitigation and reliable selective repair require careful design of memory backends and agent configurations.
Summary
MemSecBench shows that malicious memory persists in 84.2% of cases and the full Write-Execute chain succeeds in 50.3% across 24 agent-memory-LLM configurations, while selective repair succeeds in only 56.1% of poisoned cases. The benchmark traces the same malicious semantics through write, recall, adoption, and repair stages, providing lifecycle-wide evidence. Results are based on 310 realistic cases run under a controlled Write-Execute-Forget protocol, so the evidence is comprehensive but limited to synthetic benchmark scenarios.
What they found 1
- Malicious memory persists in 84.2% of cases and the full Write-Execute chain succeeds in 50.3% across all configurations.
“Across all 24 configurations, malicious memory persists in 84.2% of all cases, and the full Write-Execute chain succeeds in 50.3%.”
Caveats 3
- Adoption is a major bottleneck: success drops from 76.1% recall to 53.7% adoption, reducing end-to-end attack success.
- Selective repair succeeds in only 56.1% of poisoned cases, indicating limited ability to clean memory without collateral damage.
- Some configurations achieve very low repair rates (e.g., Hermes/DeepSeek-V4-Pro SRSR 21.23%).
What’s new here 4
- Tracks the same malicious content across write, execute, and forget stages rather than isolated checkpoints.
- Provides a matched, controlled benchmark (MemSecBench) with 310 cases and a 24-configuration matrix of agent harnesses, memory backends, and LLM backends.
- Introduces evidence-based adjudication with deterministic write checks, checkpoint-specific judge models, and programmatic gates.
- Evaluates selective repair of poisoned memory while preserving benign memories.