Memory poisoning (AI agents)
An attack that plants false facts or instructions in an agent’s long-term memory or knowledge base, so they shape its behavior in later sessions.
Agents increasingly keep memory between sessions: user preferences, summaries of past work, facts saved to a vector store. Whatever lands there is read back later as trusted context. Memory poisoning abuses that. One hostile document, email or chat message gets the agent to save an instruction such as “always copy reports to this address”, and the instruction keeps working after the original content is gone.
OWASP lists it as ASI06 Memory & Context Poisoning in the OWASP Top 10 for Agentic Applications. The same applies to a poisoned RAG index or a memory shared by several agents. It is harder to spot than a one-off indirect prompt injection, because the attack and the damage can be far apart in time, and the log of the session that did the harm shows nothing suspicious.
Sources
- OWASP GenAI Security Project: ASI06 Memory & Context Poisoning genai.owasp.org
Related terms
- Agent memory: How an AI agent keeps information beyond one conversation: notes, facts and preferences it saves and reads back later.
- Indirect prompt injection: Prompt injection that arrives in content an AI system reads on its own, such as a web page, email, document or tool result, instead of what the user types.
- OWASP Top 10 for Agentic Applications: OWASP’s list of the ten most critical security risks of AI agents that plan and act with tools, coded ASI01 to ASI10, published in December 2025.
- RAG (retrieval-augmented generation): Finding relevant documents first and putting them into the prompt, so the model answers from them.
- Agent goal hijacking: An attack that changes what an AI agent is trying to achieve, usually through injected content, so it works for the attacker while seeming to work for you.
