TRANSMISSION // 2611.36401v1
AI memory safeguards curb attacks, with a user-approval exception
Source published
In a synthetic test, runtime enforcement blocked planted memories unless a simulated user approved a bad prompt; legitimate outside facts sometimes prompted a question or confirmation.

An AI assistant that remembers across sessions may later act on a misleading email or document. A study of six language models tests how provenance labels and runtime checks affect both security and the effort required from users.
An AI assistant that remembers information from emails and documents may encounter a hidden problem later: a false instruction or altered account detail can remain in memory after the original document is gone. This study asks two practical questions about one defense—recording where memories came from and restricting how untrusted ones can be used. How well does it stop planted instructions, and what does it cost when the information is legitimate?
Radhika Motwani tested six language models from four vendors in a simulated back-office workload. Each model handled 60 sessions involving invented companies, payment details, contacts and report recipients. Across five experimental seeds, each model encountered 150 planted memory items. These included instructions to take an extra action, details contradicting information supplied by a user, and values filling gaps the user had not addressed.
The tests compared three conditions: no defense; provenance labels shown to the model but not enforced; and the same labels backed by runtime rules. In the enforced condition, trusted and untrusted memories could not be merged, and the system blocked actions based on untrusted information unless the user confirmed the value. The model proposed what to remember and what to do; the runtime controlled storage and whether actions could proceed. The authors also ran a separate set of tests without planted attacks to measure effects on legitimate requests.
Labels helped, but model behavior varied. Without a defense, the share of planted items that later led to a wrong action ranged from 2% for Claude Haiku 5.5 to 93% for Llama 4 Maverick. The models also differed in what they saved: Llama retained every distinct planted document in the test, while several hosted models saved far fewer bluntly worded items.
Showing labels to the model reduced attack success to 0–1% for four models. But the reduction was smaller for GPT-6.1 Terra, where success was 15%, and for Llama, where it remained 67%. In the test, models generally favored trusted information when both trusted and untrusted entries were available. Problems arose when only untrusted information was available, or when memory merging had blurred the distinction between sources.
With runtime enforcement, no planted item succeeded for five models under the study’s usual simulated-user setting. Llama’s remaining 4.7% attack success came from confirmation prompts that the simulated user approved. When the simulated user never approved a bad prompt, attack success was zero across all six models. This highlights a boundary of the defense: a runtime can require confirmation, but the result still depends on what happens at that checkpoint.
The safeguard also interrupts legitimate work. In runs without an attacker, enforced provenance reduced the share of requests completed correctly without involving the user to 86% for every model. The researchers attribute this result to their workload: each legitimate fact arriving from an outside document required one exchange with the user the first time an action depended on it. The user’s answer was then stored as trusted. This does not mean every request needed an exchange; the cost depended on outside facts being used and on the study’s design.
The exchange took different forms. Some models asked the user on their own when they saw an untrusted label; for others, the runtime generated a confirmation prompt. Untrusted memories also expired after 20 sessions, so a legitimate outside fact could be lost if it was not confirmed in time. In the labels-only condition, trusted answers could be merged with untrusted entries and inherit their lower trust status and expiry. For three models that tended to respect labels, this led to repeated questions and fewer requests completed unprompted than under enforcement.
These findings are measurements of one experimental setup, not a general ranking of AI systems. The planted texts were fixed templates that did not adapt to the defenses, the tasks and memory retrieval were synthetic, and the user was simulated. That user always supplied the correct detail when asked and sometimes approved a planted value. The authors caution that adaptive attacks, realistic retrieval and real users could change the results. They also report five seeds, one configuration per model, no significance tests, and an implementation of the enforcement rules written for this study rather than the released implementations of the defenses it discusses. Some results may be affected by coarse source labels that could also distrust legitimate information.
The paper is a preprint, so its findings should be treated as provisional rather than as settled evidence. Its code, workload and model replies are available for inspection, but reproducible outputs do not by themselves establish that the same trade-offs will appear in deployed systems. The central result is narrower: in this simulated workload, runtime enforcement made protection less dependent on whether a model obeyed labels, while shifting some legitimate decisions into user interactions.
- AI agent security
- memory poisoning
- data provenance
- prompt injection
- language models
- runtime enforcement
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
MemoryDojo tests how poisoned AI memories influence later tasks
Supporting evidence: Both studies find that content introduced through an agent’s environment can affect behavior in later sessions through memory. Motwani reports that planted items caused wrong actions in a synthetic workload without defenses; Minnich et al. find poisoning effects across five memory systems in multi-session trajectories. The studies differ in workload, systems and measures, so MemoryDojo does not validate Motwani’s particular attack or cost estimates.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.36401v1 — Original paper
Excerpt reference:
static/papers/2611.36401v1.md:13-46
Basis: Paper text
Source file SHA-256:b2c1cede2374c9e533536091dd5404d71818043456680c65bf929a3b5d889f382611.09721v1 — Original paper
Excerpt reference:
static/papers/2611.09721v1.md:13-86
Basis: Paper text
Source file SHA-256:99255ee25e0baae7375c65c04b8b7ace069f6acf2a355a79316d49634db07fe8
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A finer-grained fence for AI agents’ tool calls
Source published
Shared keywords: ai agent security, data provenance, prompt injection
MemoryDojo tests how poisoned AI memories influence later tasks
Source published
Shared keywords: ai agent security, memory poisoning
When AI agents recover, can they lose their safeguards?
Source published
Shared keywords: ai agent security, runtime enforcement
When an AI agent’s summary can rewrite what the user authorized
Source published
Shared keywords: ai agent security, data provenance, prompt injection
Securing the Tools Around AI Coding Agents
Source published
Shared keywords: ai agent security, prompt injection