Technical Guide

Prompt Injection Kill Chain: Stages, Detection Points, and Runtime Controls

A prompt injection kill chain describes the sequence by which manipulated input progresses from initial ingestion through context manipulation, privilege abuse, tool-call execution, and impact. Breaking the chain into discrete stages lets security teams place detection and enforcement controls at each point rather than relying on a single input filter, since indirect injection via documents, retrieved context, or tool outputs can bypass front-door defenses entirely.

Five Stages of a Prompt Injection Attack Chain

Each stage represents a distinct point where manipulated input can be detected or an attack can be interrupted before it reaches a connected system.

Stage 1

Delivery and Ingestion

Malicious instructions reach the model via direct input or indirect content such as documents or tool output.

Stage 2

Context Manipulation

Injected text is treated as trusted instruction within the prompt context.

Stage 3

Privilege Abuse

Manipulated context attempts to invoke functionality beyond intended scope.

Stage 4

Tool-Call Execution

Linguistic manipulation converts into an actual API call, file access, or action.

Stage 5

Impact

Data exfiltration, unauthorized system change, or downstream compromise occurs.

Why a Staged Model Matters

Treating prompt injection as a single event obscures where defenses actually need to operate. In practice, an attack moves through a sequence of stages, and each stage presents a different opportunity for detection or enforcement. A staged model lets security teams reason about coverage explicitly: which stages have controls, which stages are unprotected, and where a compensating control might be needed because an earlier stage was missed.

Stage 1: Delivery and Ingestion

This is the point where an attacker's instructions first enter the system, whether through a user prompt, a retrieved document, a web page summarized by the agent, or output returned from a prior tool call. Indirect delivery through non-user-controlled content is what makes this stage difficult to secure with input filtering alone, since the model may never see a suspicious direct prompt at all.

Stage 2: Context Manipulation

Once injected content is ingested, it can be interpreted by the model as legitimate instruction rather than untrusted data. This happens when system instructions, user input, and retrieved content are merged into a single undifferentiated prompt with no structural separation between what is trusted and what is not.

Stage 3: Privilege Abuse

With manipulated context established, an attack attempts to invoke functionality outside its intended scope, such as requesting access to data or actions that the current session or role should not be able to reach. This stage depends on how narrowly agent permissions are scoped in the first place.

Stage 4: Tool-Call Execution

This is the stage where a linguistic manipulation converts into a system-level action: an API call, a file write, a database query, or an external request. It is the highest-impact point in the chain because it is where text-based manipulation becomes a real effect on connected systems, assuming authorization checks do not intervene.

Stage 5: Exfiltration and Impact

If the tool call succeeds without interception, the result is data exfiltration, an unauthorized system change, or a downstream compromise that propagates to other systems or users. At this point, the practical response shifts from prevention to detection, audit review, and containment.

Control Placement by Stage

Recommended controls mapped to each stage of the kill chain
StageRecommended control
Delivery and ingestionValidate user input and retrieved or tool-output content separately, since they are distinct injection surfaces.
Context manipulationSegregate trusted system instructions from untrusted retrieved content rather than merging them into a single undifferentiated prompt.
Privilege abuseScope agent permissions explicitly per role or session rather than granting broad default access.
Tool-call executionEnforce policy checks, parameter validation, and allow-lists before any tool call reaches a backend system.
Impact containmentRequire human approval for high-impact or irreversible actions, and log all tool-call activity for post-hoc review.

Governance as a Structural Control

No single stage-level fix substitutes for a governance layer that spans the entire chain. Enforcing policy at the tool-call boundary, scoping agent identity and permissions, and maintaining an audit trail across all stages turns the kill chain from a theoretical model into an operational set of checkpoints that a runtime system can actually enforce.

Frequently Asked Questions

Is prompt injection the same as jailbreaking?

They overlap but are not identical. Jailbreaking typically refers to bypassing a model's safety constraints through direct prompting. Prompt injection, particularly the indirect variant, involves malicious instructions embedded in external content the model processes, which can occur without the attacker interacting with the model's input interface at all.

Can input filtering alone stop prompt injection?

No single control is sufficient. Input filtering addresses the delivery stage but does not address privilege scoping or tool-call authorization. Indirect injection through retrieved documents or tool outputs can bypass filters applied only to direct user input, which is why staged controls across the chain are necessary.

Why is tool-call execution considered the highest-impact stage?

It is the point where a linguistic manipulation converts into a system-level action, such as an API call or file access. Earlier stages involve manipulated text within the model's context; this stage involves an actual effect on connected systems if authorization checks fail.

Enforce Controls at Every Stage of the Kill Chain

Trussed AI provides runtime governance for enterprise AI agents, including tool-call policy enforcement, agent identity and permission scoping, and audit logging designed to intercept manipulation before it becomes unauthorized action.

Explore Runtime Governance