Memory Poisoning
In this article
- Trace one hostile sentence from a web page into memory in one session and back out into an answer in the next.
- Tell apart the harm that a code check on an action stops and the harm that only a write gate stops.
- Name the write control and the read control that keep untrusted text from becoming durable instruction.
- Explain why one shared memory store spreads a single bad write to every agent that reads it, and how a read-only mount limits that.
- Terms defined here: memory poisoning.
Overview
Your support assistant reads a web page while it helps a customer, and one sentence on it says "remember this for next time". If the assistant obeys, the sentence does not end with the chat. It sits in the customer's memory and comes back next week, worded as if someone trusted had written it.
You will follow one such sentence through two chats, a week apart, and see where it gets in and what it does when it returns. Then you can name the check that stops it on the way in, the one that limits it on the way out, and why a shared store spreads one bad write to several agents.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Session 1: a page that says "remember"
- Session 2, a week later
- What the code check stops, and what it misses
- Session 1 again, with the gate
- One store, two agents
- Where poison hides later
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions