A poisoned instruction can disappear from the document where it started and still turn up in an agent’s work later. That is what researchers tested in MemHarmBench, a benchmark for attacks on persistent AI memory.
The researchers exposed agents to malicious instructions, checked whether they were retained, then removed the original attack material. In a new session, they gave each agent a legitimate task. In some tests, the agent completed that task without a judged execution anomaly while making a decision that served the attacker.
A routine summary
The paper’s example is an expense summary. An imported note tells the agent to use a different reimbursement recipient in future summaries. The note is removed. Later, the user asks for a routine summary, and the agent names the recipient specified in the old instruction. The example is illustrative, but the experiment tests that kind of decision.
The researchers looked at harm to three groups: the user, the workspace or project owner, and people outside the workspace. That matters because the person who asks an agent to do a task may not be the person affected by the decision it makes.
Across four tested agent-and-model configurations, the authors report that 55.71 percent of eligible indirect-attack episodes, averaged equally across configurations, combined an attacker-aligned decision, formal task completion, and no judged execution anomaly. “Eligible” is doing important work there: the calculation excludes episodes where retention was not confirmed or the trigger could not be fully judged. These were controlled tests, assessed with an automated judge. The result is not an estimate of how often people encounter memory poisoning in the wild.
The record before the next task
The finding changes what I want to know about a memory product. Can someone see what was saved? Can they remove or correct it? Who is allowed to write the next entry?
Our registry already records some of those controls. Microsoft 365 Copilot’s entry says users can delete individual saved memories or all of them; turning off saving does not delete what is already there. Microsoft Foundry’s agent-memory entry describes item-level create, read, update, and delete operations. Those are different surfaces: a control available to a developer is not necessarily available to the person whose information is stored.
The registry does not yet systematically record those controls for every product, so it cannot support a market-wide count. Adding a verified field that distinguishes user controls from developer controls would make that comparison possible. Even then, a documented delete button would not prove a system resists this attack, or that a correction reaches every memory source.
For now, the practical test is to inspect the saved record, correct it where the product allows, and check the decision in a fresh session. A completed task is useful evidence, but it is not proof that the agent followed only your instructions. Chapter 8 covers the controls available to an individual; Chapter 10 considers how to build memory that can be corrected.
Read the paper
Zhihua Wang and colleagues’ “MemHarmBench: Evaluating Cross-Session Prompt Injection in Memory-Persistent AI Agents” is a preprint submitted November 1, 2026. The authors also publish evaluation code and dataset details.