What Multi-Turn Prompt Injection Is
Multi-turn prompt injection refers to attack techniques where malicious instructions are distributed across several conversational exchanges rather than delivered in a single message. Traditional prompt injection defenses evaluate one input at a time, looking for patterns that indicate an attempt to override system instructions. When an attacker splits that intent across multiple turns, no individual message may contain enough signal to trigger detection, even though the combined sequence produces the intended manipulation once the model processes the full context window.
This matters for enterprise AI agents because most production deployments retain conversational history to support coherent, contextual responses. That same retained history becomes the mechanism through which earlier, seemingly benign statements can be reinterpreted once later turns are added. The model does not evaluate each turn in isolation at inference time. It evaluates the accumulated context, which means meaning can shift without any single message appearing malicious on its own.
How Cross-Session Memory Extends The Attack Surface
Cross-session prompt injection extends this problem beyond a single conversation. Agents that support persistent memory, saved user profiles, cached tool outputs, or retrieved documents can carry attacker-supplied content forward into sessions that occur days or weeks later. If that stored content is not re-validated at the point it is retrieved and reintroduced into a new prompt, it re-enters the model’s working context with the same authority as system-authored instructions.
This creates a structural exposure distinct from classic prompt injection. The attacker does not need direct access to a future session. They only need to seed content into a memory store, a document that will later be retrieved, or a tool output that will be cached and replayed. Session orchestration layers that pass this content forward without re-screening effectively reintroduce untrusted input into what the model treats as a trusted starting context.
Single-Turn Filtering vs Runtime Enforcement
Single-message filters are necessary but insufficient once agents retain history and memory. The table below contrasts common filtering assumptions with the enforcement posture required for multi-turn and cross-session risk.