date: 2026-11-08

title: "OWASP ASI06 Memory and Context Poisoning: The Persistent Risk Hiding in Agent Memory"

author: Brian Taylor


OWASP ASI06 Memory and Context Poisoning: The Persistent Risk Hiding in Agent Memory

OWASP ASI06 Memory and Context Poisoning: The Persistent Risk Hiding in Agent Memory

Persistent memory is what turns a chatbot into a useful agent, but it also turns untrusted input into a persistent security state. OWASP's 2026 Top 10 for Agentic Applications names Memory and Context Poisoning (ASI06) as a first-class risk because agentic systems retain, reuse, and trust accumulated context across sessions.

What the risk actually is

Three structural properties make ASI06 different from ordinary prompt injection:

  1. Persistence – poisoned content survives sessions, restarts, and sometimes redeployments.
  2. Temporal decoupling – the attacker plants content today; the agent acts on it days or weeks later, triggered by an unrelated interaction.
  3. Privileged-input vector – anything that can write into memory becomes a privileged input that can override instructions, exfiltrate data, or hijack tool calls.

The Cisco MemoryTrap example illustrates the path: a routine developer workflow (clone repo, let the agent help, approve dependency installation) let malicious content reach persistent memory and global hooks config, even influencing the system-prompt layer. The harm was not one bad answer; it was corrupted guidance shaping future reasoning.

Why LLM01 controls are not enough

LLM01 is about model input/output behavior; ASI06 is about the memory layer. Sessions that have no explicit memory module can still accumulate context across sessions, and that context becomes the persistence substrate. Documented vectors include: malicious entries into vector/RAG stores via untrusted pipelines, reused/shared session context spreading injection across users, and crafted content summarized into memory and contaminating later decisions.

Practical discovery checklist

For pre-launch discovery engagements, add these gates before any agent with persistent state ships:

  • Map every write path into memory: conversation history, RAG ingestion, tool outputs, summaries, hooks, config, shared session context.
  • Assign provenance and trust scoring; reject low-trust or unverifiable writes.
  • Sanitize on write (not only on read), and keep integrity baselines for rollback.
  • Isolate memory by user/tenant/workflow; no cross-user reuse of poisoned summaries.
  • Add expiry and revocation so stale context cannot linger as a hidden policy.
  • Monitor behavior across sessions: unexpected thresholds, repeated tool sequences, new external recipients.
  • Keep prompt-adjacent trusted instructions (system prompts, global hooks) outside memory write paths.

Sources

  • OWASP Top 10 for Agentic Applications 2026 (Dec 9, 2025; ASI06 entry), genai.owasp.org.
  • Idan Habler, "Memory Is a Feature. It Is Also an Attack Surface" (May 13, 2026), genai.owasp.org.
  • OWASP ASI06 explainer, vectorize.io/articles/owasp-asi06.
  • Red Hat, "AI agent observability: Building a production-grade operational layer" (Aug 5, 2026).

Note: ASI06 is a community standard, not a regulation; procurement and security reviews increasingly require it, but legal mandates do not yet.

Sources