Trusted Writers, Poisoned Memory

In What to Do With Discarded Toys? I mentioned that I dug into the research on one question: what happens when a team of AI agents shares one memory, and one of them starts writing plausible but wrong information? This post is what I found.
I put together a literature review on it, covering around a hundred papers, standards and incident write-ups. I worked with Claude to identify the most promising ones to read, and went deepest on the 2026 papers, which is where most of the work on agent memory is happening. Most of the sources are about LLM agents, but the same problem shows up in robot swarms, federated learning, vehicle-to-vehicle networks, Wikipedia and software supply chains, and those fields have been at it longer. Two caveats before the findings. I'm new to this area, and many of the agent papers are 2026 preprints. Most of the numbers below come from each paper's own setup, so treat them as evidence of what's possible, not as rates you'd see in production.
The short version
The hardest case isn't an outsider forging writes or an obvious prompt injection. It's a member with legitimate write access who stores something plausible, with no instructions in it, that happens to be false. In every field I read, authentication, replication protocols and outlier filters let that kind of write through, by design. Recovery is possible, and a few 2026 papers are working on it, but every recovery method assumes someone has already noticed the poison. Noticing is the slow part.
The attacks got cheaper
Early attacks assumed a lot. PoisonedRAG (2024) assumed the attacker could insert text into the knowledge base, and with five malicious texts among 2.7 million clean ones it reached 97% attack success on one benchmark. MINJA (2025) dropped the need for write access: a regular user who could only send queries got the agent to store the attacker's reasoning as its own memory, with 98.2% injection success.
The 2026 papers need even less. AMIA needs one query per target. Its stealthiest version hides the false claim as the assumption behind an ordinary follow-up question, so what gets stored is the agent's own confident answer. The authors conclude that "the injected content, rather than the instruction-override mechanism, is the load-bearing component." The Misattribution Gap needs only the ability to upload a document. One document, written in the vocabulary of compliance policy, got the agent to cite it as an authority and follow it in 59 of 65 entries.
Two details stood out to me:
- The memory system can make the poison more convincing. When Mem0's fact extraction rewrote AMIA's payloads into short, authoritative statements, attack success rose from 49.1% to 87.5%.
- Detectors miss the quiet versions. An LLM judge auditing memory flagged AMIA's instruction-free entries 2.5% of the time, below its 7.1% false-positive rate on benign entries. Two guard models rated all 508 checkpoints of the Misattribution Gap corpus as safe.
The headline numbers also overstate the risk in one way. Most come from empty or sparse memories. When a replication of MINJA seeded the store with a few correct memories first, attack success on one model fell from 62% to 6.67%. Correct records compete with poison. So the real exposure is where there's nothing correct to compete with: an organization's own policies, private facts, and the lessons an agent writes for itself.
How it spreads
Spread between agents breaks down into steps: an agent has to encounter the entry, retrieve it, believe it and then repeat it intact. Most chains break at the last step. In one study, a poisoned memory rewritten by successive agents stopped being retrieved by the third rewrite.
The papers fall into two groups:
- When something actively copies the payload, you get an epidemic. In Share-Borne, each infected agent infected 1.3 to 2.1 others early on, and outbreaks reached 60–100% of 30 agents. Resetting an agent's memory didn't end them, because infected artifacts kept circulating.
- A plausible false fact behaves more like persuasion. It spreads fast, then levels off. In one experiment, an agent arguing for false facts in a calm style persuaded 38–51% of the other agents within three rounds. In NetSafe, one attacker among six cut accuracy on factual tasks by 18.2%, with most of the damage in the first rounds.
The second group is the one I care about. And one thing no paper measured: a team that shares one store has no distance between agents. Every agent is one retrieval away from the poison, and every agent that repeats it writes it back. That's my inference, not a result. Nobody has measured how the poisoned share of a shared team store changes over time.
Other fields got here first
The same problem has other names elsewhere, and the older fields have useful answers. It reminded me of the network models of policy, norm and misinformation diffusion I knew from political science. They all stem from the same first principles, with different hyperparameters, so to speak, depending on the context. So I wondered how other fields where many writers share state had dealt with it:
- Robot and drone swarms. In plain averaging consensus, one robot that holds its value fixed can pull the whole swarm to any value it likes (LeBlanc et al.). In multi-drone mapping, one compromised drone with fake identities left up to 25% of a map unexplored and planted walls that don't exist. The defense that worked best there was quarantine: keep data from unconfirmed sources but don't use it until it's confirmed.
- Federated learning. Robust aggregation rules have proofs, but the proofs assume a bound on how many clients are bad and how far their updates stray. Updates crafted to look statistically normal beat them. The most useful result for me was FedRecover: keep every client's update from every round, and once the bad clients are named, replay without them. It matched retraining from scratch at about an eighth of the cost, and still worked with a fairly bad detector.
- Vehicle networks. The V2X field said it plainly years ago: certificates only keep out attackers who don't have keys (van der Heijden et al.). A vehicle with a valid certificate can still broadcast a false position. Their answer is a revocation system that can cut off a device in one entry, but it doesn't say how to detect misbehavior.
- Wikipedia. History is never deleted, and a revert is just another edit, which is the right shape for recovery. But hoaxes that survive their first day get much harder to remove, and humans judged hoaxes correctly 66% of the time against a classifier's 86%.
- Software supply chains. The xz backdoor was a legitimate contributor drifting slowly over 2.6 years. It was found by accident, by someone debugging slow SSH logins.
Their partial solutions look alike. Make every writer attributable, make writing cost something, keep unconfirmed content in quarantine, don't treat age as evidence that something is true, and keep enough history per writer to replay without the bad one.
People don't catch plausible drift
My first guess was that this isn't a big problem, because most agents work with people, and people notice and correct drift. The evidence is against that for anything plausible:
- Overreliance is the most common error when people make decisions with AI, and explanations don't reduce it. I suspect this will only worsen with time.
- In a study of ChatGPT's answers to Stack Overflow questions, 52% contained errors, and participants missed the misinformation 39% of the time.
- Claude Code users approve 93% of permission prompts. Anthropic's answer was an auto mode that has a classifier approve actions instead.
- When people do notice a bad answer, they blame the model. One attribution tool blamed the model for 64 of 64 failures that were caused by poisoned memory. Throwing away a bad answer leaves the poisoned entry in place for the next session.
People do help in one setting: a rare, clearly flagged checkpoint that shows the full content, such as confirming a write to shared memory. They're a poor continuous drift detector.
This is also where the benign version of the problem lives, the one I described in the last post: no attacker, just an agent with a wrong idea that keeps putting it back.
Byzantine replication agrees on the lie
I expected Byzantine fault tolerance to help more than it does. Kleppmann's Byzantine-tolerant CRDTs are designed so that any bad update is either rejected by every honest replica or accepted as a normal update by all of them. A correctly signed, well-formed false memory is a normal update. So the guarantee delivers the poison to every honest replica, reliably.
What it does give you is useful for cleanup. Every write is attributable to its author. The history is tamper-evident, so you know what each write could have seen. An author who shows different content to different readers can be proven to have done it. And a quarantine operation spreads to every replica the same way the poison did. Kleppmann and Howard also showed which kinds of data can safely be shared this way: append-only claims tagged with their source are fine, while "exactly one value for this fact wins" needs consensus and control over who's a member.
Defenses, and the recovery frontier
A recent survey splits memory into phases: write, store, retrieve, execute, share, and forget or roll back. Most defenses sit at retrieval. Where a defense sits matters on its own. In MAPLE-Guard's tests, enforcing checks across the whole lifecycle beat filtering only at retrieval, and the check that mattered most was the one on promoting an agent's private memory into shared memory.
Only defenses with structural guarantees hold up against an attacker who knows the defense, and only within their assumptions. RobustRAG's guarantee holds for a bounded number of poisoned passages per query. CaMeL assumes the memory hasn't been compromised.
Recovery is where 2026 work is happening, and it's the part closest to CambiumDB. Dependency-Guided Rollback Repair quarantines a bad memory and what was derived from it, then replays. It recovered 85.3% of cases and kept all the benign memory, against 40.7% for resetting the whole store, which keeps none. But its check for what to quarantine was so lenient that no derived memory was ever quarantined, and 26.6% of failures came back. Leftovers survived in summaries and indexes.
The finding I keep coming back to is from across the fields, not one paper: in Wikipedia, xz and FedRecover alike, how long it takes to notice the poison does more damage than how hard it is to roll back.
What this means for CambiumDB
The design I'm considering records, for every write, what the writer had read when it wrote: its read-set. Those records go in a signed, hash-chained log, so you can quarantine an entry, find everything that depended on it, and replay.
The review was useful mostly for telling me what that design can't do:
- It can find the blast radius, not the origin. If the runtime that records read-sets is honest, it tells you which agents read the poison and what they wrote afterwards. But a Byzantine writer controls its own context. It can read in one session and write in another, cutting the link. Finding the origin means signature attribution: everything author k wrote since some point.
- It doesn't tell you what's wrong. Every recovery system I read assumes an upstream detector.
- Read-sets overestimate influence. A widely read poison would quarantine most of the store.
- Replay isn't reproduction. LLM steps aren't deterministic, so replayed entries come out different and need checking again. Side effects outside the store, like sent emails, need their own undo.
- Influence outside the store is invisible. Model weights, tool outputs and files passed around directly don't show up in a read-set.
Among the sources in the review, no published system combines signed write provenance, read-dependency lineage recorded by the store, transitive quarantine, sharing across many agents, and testing against an adaptive attacker. That claim is provisional. Two related systems, MemoRepair and LinEra, are cited in the survey, and I haven't read them yet.
The gaps are concrete enough to measure, which suits the learning track. CambiumDB's deterministic simulator could run scripted agents through a clean store, a protocol-level attacker that replication should stop, and the core case: an authorized writer storing plausible, signed false facts. Then it could measure time to first use of the poison, time to detection, time to full recovery, how much benign data survives, and how many honest writers get quarantined by mistake. Nobody has measured end-to-end recovery time in any of these fields, so that's where I'd start.
Sources
These are the sources this post cites. The full review has more.
Reviews, if you want to start somewhere
- Lin et al., A Survey on Long-Term Memory Security in LLM Agents: Attacks, Defenses, and Governance Across the Memory Lifecycle, arXiv 2026
- Passi and Vorvoreanu, Overreliance on AI: Literature Review, Microsoft Research 2022
- van der Heijden et al., A Survey on Misbehavior Detection in Cooperative Intelligent Transportation Systems, IEEE Communications Surveys & Tutorials 2019
- Ladisa et al., Taxonomy of Attacks on Open-Source Software Supply Chains, IEEE S&P 2023
Attacks on agent memory
- Zou et al., PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of LLMs, USENIX Security 2025
- Dong et al., Memory Injection Attacks on LLM Agents via Query-Only Interaction (MINJA), NeurIPS 2025
- Tan and Zhang, Query-Efficient Memory Injection Attacks on LLM Agents (AMIA), Findings of EMNLP 2026
- Ahad et al., The Misattribution Gap: When Memory Poisoning Looks Like Model Failure in Agentic AI Systems, arXiv 2026
- Sunil et al., Memory Poisoning Attack and Defense on Memory Based LLM-Agents, arXiv 2026 (a course project, not peer reviewed)
How it spreads
- Men et al., A Troublemaker with Contagious Jailbreak Makes Chaos in Honest Towns, ACL 2025
- Pulipaka et al., Share-Borne AI Virus: Memory-Hopping Attacks Across LLM Agents, arXiv 2026
- Ju et al., Flooding Spread of Manipulated Knowledge in LLM-Based Multi-Agent Communities, arXiv 2024
- Yu et al., NetSafe: Exploring the Topological Safety of Multi-agent Networks, arXiv 2024
Other fields
- LeBlanc et al., Resilient Asymptotic Consensus in Robust Networks, IEEE JSAC 2013
- Mahesh et al., Sybil-Resilient Multi-Drone Exploration of Indoor and Confined Spaces, arXiv 2026
- Fang et al., Local Model Poisoning Attacks to Byzantine-Robust Federated Learning, USENIX Security 2020
- Baruch et al., A Little Is Enough: Circumventing Defenses For Distributed Learning, NeurIPS 2019
- Cao et al., FedRecover: Recovering from Poisoning Attacks in Federated Learning using Historical Information, IEEE S&P 2023
- Kumar, West and Leskovec, Disinformation on the Web: Impact, Characteristics, and Detection of Wikipedia Hoaxes, WWW 2016
- Przymus and Durieux, Wolves in the Repository: A Software Engineering Analysis of the XZ Utils Supply Chain Attack, MSR 2025
- Freund, backdoor in upstream xz/liblzma leading to ssh server compromise, oss-security 2024
People in the loop
- Vasconcelos et al., Explanations Can Reduce Overreliance on AI Systems During Decision-Making, CSCW 2023
- Kabir et al., Is Stack Overflow Obsolete? An Empirical Study of the Characteristics of ChatGPT Answers to Stack Overflow Questions, CHI 2024
- Anthropic, Claude Code auto mode, 2026
Byzantine replication
- Kleppmann, Making CRDTs Byzantine Fault Tolerant, PaPoC 2022
- Kleppmann and Howard, Byzantine Eventual Consistency and the Fundamental Limits of Peer-to-Peer Databases, arXiv 2020
Defenses and recovery
- Xiong et al., MAPLE-Guard: Memory-Aware Link Enforcement Against Memory-Link Poisoning in Multi-Agent Systems, arXiv 2026
- Xiang et al., Certifiably Robust RAG against Retrieval Corruption (RobustRAG), arXiv 2024
- Debenedetti et al., Defeating Prompt Injections by Design (CaMeL), arXiv 2025
- Wang et al., From Faulty Memories to Corrected Actions: Dependency-Guided Rollback Repair for Memory-Augmented Agents, arXiv 2026