Skip to main content
LLM Security Database
Skip to research details
Back to Vulnerability List
LMVD-ID: 87261f88
Paper published June 3, 2026
Entry analyzed July 20, 2026
Severity: Not rated
Confidence: Source-linked

The LMVD-ID is an internal research identifier, not an official CVE identifier.

Persistent Memory Poisoning in LLM Agents

The paper describes and evaluates a reproducible application-layer weakness in agents with persistent memory: untrusted external content can cross the memory-write boundary, be stored as trusted factual, experience, or…

BibTeX citation

Paper-evaluated models(1)

  • GPT-oss 120B

Research context and confidence

Evidence and verification
Paper-reported; independent reproduction is not documented.
Primary source plus a dedicated evidence section.
Severity
Not rated by this catalog.
Source and publication type
arXiv · Research preprint.
Peer-review status is not provided by this source.
Author and publication status
Author metadata is not stored; see the primary paper.
Threat model and attacker access
Black-box model, service, or application access.
Related deployment categories
Agent workflows; Agent memory
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
LLM agents with persistent long-term memory Agents that infer memory writes from broad retention policies Agents that compact conversations into persistent memory Agents with autonomous skill or procedural-memory…

Research Paper

From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM Agents

Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.

View Paper

Description

The paper describes and evaluates a reproducible application-layer weakness in agents with persistent memory: untrusted external content can cross the memory-write boundary, be stored as trusted factual, experience, or procedural memory, and influence later sessions. It identifies four write channels—explicit writes, policy-driven writes, compaction, and experience-to-procedure synthesis—and six attack classes. For safe defensive testing, use MPBench’s two-phase structure in an isolated agent with synthetic, harmless directives: provide labeled untrusted context during one task, inspect whether an equivalent entry reaches persistent memory, then issue a separate benign follow-up query and check whether retrieval changes behavior. The reported measurements are the authors’ results, not independently verified facts.

Examples

See the primary source for the paper's evaluation and defensive reproduction context: https://arxiv.org/abs/2606.04329 (opens in a new tab)

Impact

A single untrusted input can persistently alter later agent reasoning or actions without further attacker involvement, causing trust hijacking, unauthorized actions, recommendation manipulation, authentication-policy bypass, or unsafe procedural reuse. The paper reports average ASR/RSR of 34.25%/17.40% for OpenClaw and 66.67%/64.70% for HERMES under its benchmark; these results used GPT-OSS-120B and may not generalize to other models or deployment pipelines.

Affected Systems

  • LLM agents with persistent long-term memory
  • Agents that infer memory writes from broad retention policies
  • Agents that compact conversations into persistent memory
  • Agents with autonomous skill or procedural-memory creation
  • OpenClaw
  • HERMES

Mitigation Steps

  • Enforce precise, scope-limited memory-write policies that define authorized content and reject untrusted behavioral directives.
  • Validate every write before persistence, especially factual, experience, and procedural-memory updates.
  • Preserve provenance and isolate trusted user instructions from webpages, documents, email, tool outputs, and other external content.
  • Apply source-aware retrieval policies that demote, quarantine, or require confirmation for memories originating from untrusted sources.
  • Filter compaction inputs by trust level so untrusted content is not silently promoted into persistent memory.
  • Require inspection or approval before creating or updating reusable skills and procedural memory.
  • Monitor stored entries before retrieval or action against the agent’s authorized storage, action, and endpoint policies.
  • Do not rely solely on prompt-injection detectors; evaluate memory poisoning at both write and retrieval stages.

Evidence