Memory Poisoning
A term used in AI security for an attack that plants false information or hidden instructions in the long-term memory that AI assistants or agents keep even after a conversation ends, so that their later answers and actions keep being distorted.
What does Memory Poisoning mean in simple terms?
Today's AI assistants remember a user's preferences and work context and use them in later conversations too. Memory poisoning is an attack in which instructions hidden in a malicious web page or document make the AI remember the wrong things when it is given that content to read. Once stored, the content remains even when a new conversation is opened, so the AI can keep answering or acting on false premises even after the attack is over. OWASP included "memory and context poisoning" in the top 10 risks for AI agents it published in December 2025. If you use an AI memory feature, check from time to time what has been stored.
How can Memory Poisoning be explained with an analogy?
It is like someone secretly writing a wrong rule in a shared work notebook, so that everyone who works from that notebook repeats the same mistake.
Where is Memory Poisoning used?
Johann Rehberger — Data-exfiltration instructions planted in ChatGPT's memory
On September 20, 2024, security researcher Johann Rehberger disclosed an attack in which hidden instructions in untrusted web content got malicious instructions stored in the memory of the ChatGPT macOS app.[2] Because of the stored instructions, what the user sent and the AI's replies in all later conversations were sent to the attacker's server.[2] In September 2024, OpenAI closed the exfiltration path in ChatGPT version 1.2024.247.[2]
Result: The exfiltration path was fixed, but the researcher pointed out that websites or documents could still get arbitrary content stored in memory (per the researcher's disclosure).[2]
AgentPoison — An experiment in poisoning an agent's memory store
The AgentPoison paper, released in July 2024 and accepted at NeurIPS 2024, tested an attack that inserts a small number of poisoned records into the memory or knowledge store that an AI agent consults.[3] The researchers reported an average attack success rate of over 80% while affecting performance on normal tasks by less than 1%.[3]
Result: The attack worked with a poisoning rate of less than 0.1%, showing the need to manage the sources of memory stores (per the paper's experiments).[3]
Learning steps, limitations and developments
- If you have an AI memory feature turned on, regularly review the stored content and delete items you do not recognize.
- When you have an AI read web pages or documents of unclear origin, turn off memory saving or use a temporary chat.
- For work AI agents, define the scope of what they can store in memory.
- If the AI suddenly answers from an odd premise, first check whether its memory contains incorrect content.
Many of the public cases are researcher demonstrations, and some come with conditions, such as working only when the user replies with a specific word.[4] Even when a company fixes a particular path, users still need the habit of checking what is stored in memory.[2]
How has Memory Poisoning evolved?
Which concepts are related to Memory Poisoning?
- Attack targetMemoryThe AI's ability to remember things after a conversation ends
- Main pathIndirect Prompt InjectionPoisons memory through instructions hidden in external content
- Similar conceptData PoisoningAn attack that poisons training data
- Affected partyAI agentAI that acts based on its memory
Memory Poisoning vs Data Poisoning
Which sources explain Memory Poisoning?
- OWASP GenAI Security Project — OWASP Top 10 for Agentic Applications for 2026 (2025-12-09) — https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/
- Embrace The Red (Johann Rehberger) — Spyware Injection Into Your ChatGPT's Long-Term Memory (SpAIware) (2024-09-20) — https://embracethered.com/blog/posts/2024/chatgpt-macos-app-persistent-data-exfiltration/
- arXiv (NeurIPS 2024) — AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases (2024-07-17) — https://arxiv.org/abs/2407.12784
- Embrace The Red (Johann Rehberger) — Hacking Gemini's Memory with Prompt Injection and Delayed Tool Invocation (2025-02-10) — https://embracethered.com/blog/posts/2025/gemini-memory-persistence-prompt-injection
Tell us what you think
Your feedback helps us improve the content.