Security Objective
Incident response for prompt injection is the coordinated, evidence-driven process used when suspicious or confirmed model influence may have affected a workflow, tool action, data flow, credential, resource, agent or sub-agent, or downstream system. Its objective is to establish what actually happened, stop ongoing effects with the narrowest reliable control, repair the failed control boundary, restore known-good operation and feed lessons back into prevention.
Threat Model
The response process assumes that some injected content will reach model context, that model behavior is variable, and that probabilistic detectors will miss some events and flag some benign ones. It also assumes that telemetry may be incomplete, that model-influenced state can persist beyond one run, and that delegated agents and third-party connectors extend the scope of any event.
User sessions, agent runs, sub-agent tasks and their correlation identifiers.
Tool grants, connector identities, scoped tokens and provider-side audit records.
Classified resources read or written, and destinations data may have reached.
Caches, memory, vector stores, files, queued jobs and shared workspaces.
Model, prompt, policy, tool and connector versions in effect during the event.
Defense Control, Not the Incidents Database
This page describes an operational defense control: how a team responds to its own prompt-injection-related security events. The top-level Incidents area is different. It catalogs publicly documented real-world cases, research demonstrations and advisories with their sources and classifications. Nothing on this page is a case record, and the scenarios below are fictional.
Boundaries With Other Controls
| Control | Contribution | What it does not establish |
|---|---|---|
| Prompt Injection Detection, Plan Drift Detection, Tool-Chain Analysis | Signals and evidence that trigger or support triage | Compromise or impact by themselves |
| Agent Authorization, Human-in-the-Loop | Decisions on whether an action could proceed | What happened after a decision; IR handles that |
| Data Provenance | Which content, tool output, user, source, tenant and retrieval path influenced a run | Whether that content was malicious |
| Sandboxing / Containment | Caps on ongoing effects | Evidence preservation or recovery |
| Network / Egress Restrictions, Information Flow Control, Least Privilege | Blast-radius controls that can be tightened during response | Proof of maliciousness when tightened |
| Output Validation | Structural validity of outputs | Trust or safety of content |
See Prompt Injection Detection, Plan Drift Detection, Tool-Chain Analysis, Data Provenance, Agent Authorization, Human-in-the-Loop, Sandboxing / Containment, Network / Egress Restrictions, Information Flow Control, Least Privilege and Output Validation.
Evidence States
Evidence states describe what the record shows, from weakest to strongest. Each state needs its own evidence; a higher state is never inferred from a lower one.
- 01Suspicious content observed
Instruction-like or anomalous content was present in context or input.
- 02Model or plan influence observed
Model output or plan changed in a way attributable to that content.
- 03Policy or control violation
A proposal or behavior violated a policy, or a control decision was triggered.
- 04Action proposed
The model proposed a tool call or action.
- 05Action attempted or submitted
The application submitted the request to a tool or service.
- 06Action executed
The tool or service reports that it executed the request.
- 07Data disclosed or modified
Downstream evidence shows data was sent, received, changed or deleted.
- 08Credential exposure
A credential was observed in output, a log or a request, or was confirmed used.
- 09Persistence or cross-run impact
Influenced state was stored and consumed by a later run or another user.
- 10Confirmed downstream impact
An external system confirms an unintended effect.
Security Event Versus Confirmed Incident
A security event is any observation worth triage, for example a detector alert on retrieved content. An incident, in this engineering model, is an event where evidence shows a policy or control violation with actual or credibly possible security impact. A confirmed incident impact requires evidence of execution and effect. Organizations should align these terms with their own incident policy; the definitions here are engineering guidance.
Severity and Triage
Severity follows actual or credibly possible impact, not detector confidence. A high-confidence alert on content that reached no tool is usually lower severity than a low-confidence signal next to an executed privileged action.
| Dimension | Question |
|---|---|
| Privileges involved | Which identities, grants and tools were available to the run |
| Data classification | What classification of data was readable, sent or modified |
| Tool and resource scope | Which resources the tools could reach |
| Destination | Were external or unapproved destinations involved |
| Tenant and user scope | One user, many users, one tenant, several tenants |
| Persistence | Did influenced state outlive the run |
| Credential exposure | Was a credential present, accessible, observed or used |
| External side effects | Did anything change outside the application |
| Containment status | Is the effect ongoing or stopped |
| Evidence completeness | Which stages are observed and which are unobserved |
Preparation
Most response quality is decided before the event. Teams that cannot correlate a model output with the tool request it produced cannot scope an incident.
Preparation baseline
- Correlation IDs across session, run, sub-agent task, tool request and downstream audit record
- Provenance records for retrieved content, tool outputs and user inputs
- Authorization and human-approval decision records with policy version
- Tool request and response evidence, or references to provider audit records
- Model, configuration, prompt and policy versions per run
- Connector identities and scoped token identifiers (never token values in logs)
- Retrieval source identifiers and index versions
- Sandbox, egress and information-flow decisions as structured events
- Synchronized clocks and normalized timestamps
- Retention periods that match investigation needs and privacy rules
- Escalation contacts, on-call ownership and written playbooks
Evidence Preservation
Preserve evidence before destructive cleanup such as resetting memory, rotating logs or redeploying workers. Once a cache is flushed, lineage for affected runs may be gone.
Prompts and assembled context where policy permits retention.
The content that entered context, with provenance.
Plans, reasoning summaries if recorded, and proposals.
Proposed actions with parameters and destinations.
Authorization and human-approval records.
Submitted requests, responses and downstream audit evidence.
Sandbox, egress and flow-control decisions.
Relevant files with hashes.
Identities, grants and token identifiers in effect.
Policies and configuration at event time.
Timeline Reconstruction
For each action, record whether it was proposed, attempted, executed, succeeded, failed or unobserved. A proposal in a transcript is not evidence of a request; a submitted request is not evidence of a completed effect.
Scoping
| Dimension | Scope question |
|---|---|
| User, session, run | Which runs consumed the relevant content or state |
| Agent and sub-agent | Which delegated tasks were involved |
| Tool and connector | Which grants were used |
| Resource | Which records, files or systems were touched |
| Destination | Where data or requests went |
| Tenant | Whether any evidence crosses tenant boundaries |
| Workflow and version | Which workflow, model and configuration versions were active |
| Cross-run state | Whether state crossed runs or users |
Scope grows with evidence. Do not declare other users or tenants affected without evidence that they consumed the relevant content or state.
Containment Options
| Option | Scope | Typical trigger |
|---|---|---|
| Pause one run or session | Narrow | Ongoing suspicious run |
| Disable a tool or connector | Tool-wide | Tool path implicated across runs |
| Revoke or rotate a scoped token | Credential | Confirmed or credible exposure |
| Remove a network path | Destination | Unapproved destination reached |
| Tighten information flow | Data class | Data class moving where it should not |
| Isolate a worker | Execution | Worker state untrusted |
| Block artifact export | Release gate | Artifacts may carry influenced content |
| Quarantine a workflow or version | Workflow | Defect tied to a configuration version |
Prefer the narrowest control that reliably stops ongoing impact, and escalate scope when evidence warrants it. Tightening a control during response is a precaution, not a finding of malicious intent.
Credentials, Tokens and Secrets
| State | Meaning | Typical response |
|---|---|---|
| Present in context or runtime | The credential existed where the run executed | Review scope and design |
| Potentially accessible | The run could have read it | Assess risk; rotate if credible |
| Observed in output, log or request | The value appeared where it should not | Revoke or rotate; scope use |
| Confirmed used | Provider records show use | Revoke, scope actions taken, coordinate with provider |
Rotate or revoke when exposure is confirmed or credible risk justifies it. Do not claim exposure merely because a secret existed somewhere in the environment, and do not skip rotation for a credential that was credibly exposed.
Data Exposure and Modification
Distinguish readable, accessed, sent, received, modified and deleted. "Readable" means a permission existed; "accessed" needs a read record; "sent" needs a request record; "received" needs destination-side evidence; "modified" and "deleted" need downstream audit evidence where available. Claims of completed transfer or change should rest on the strongest available evidence.
Persistence and State
Model-influenced content can persist in caches, memory, vector stores, tool state, files, queued jobs, stored agent plans and shared workspaces. Treat retained model-influenced state as untrusted input until it is reviewed or reset, and trace which later runs consumed it.
Multi-Agent and Delegated Workflows
Trace delegation through parent and child task IDs, inherited capabilities, returned results and cross-agent provenance. A finding in a sub-agent does not automatically establish compromise of the parent, and a parent finding does not automatically implicate every child. Each link in the delegation chain needs its own evidence.
Third-Party, SaaS and Connector Coordination
Request provider audit data, revoke specific grants where needed and preserve provider-side identifiers such as request IDs. Do not assume a provider-side event without evidence, and do not assume the provider has no records of relevance.
Eradication and Remediation
Remove unsafe content and state, fix the broken trust or control boundary, and update policy, configuration, credentials and integrations as required.
Recovery
Staged recovery
- Restore from known-good configuration and state
- Re-enable tools, connectors and workflows in stages
- Validate authorization, egress, information flow and containment before widening
- Run regression tests for the failed boundary
- Monitor for recurrence with defined review windows
- Document residual risk and its owner
Communications and Escalation
Use factual language tied to evidence states: affected scope, what is known and unknown, actions taken, and customer or user impact where verified. Avoid "breach", "exfiltration" or "compromise" unless evidence supports them. Legal and regulatory notification decisions belong to the responsible owners under the organization's policy.
Post-Incident Analysis
Map the root cause to the failed or missing control planes: provenance, authorization, privilege, information flow, egress, containment, detection, output handling or human approval. Record contributing conditions such as missing telemetry, stale grants or unclear ownership.
Lessons Learned and Control Updates
Turn findings into detection rules, regression tests, playbook updates, policy changes, data-handling guidance and vendor follow-up. Fix deterministic controls where possible rather than only adding prompts or classifiers.
Evidence and Reason Codes
The following codes are engineering guidance for consistent records, not a standard.
| Code | Meaning |
|---|---|
| SUSPICIOUS_CONTENT_OBSERVED | Instruction-like content present |
| MODEL_INFLUENCE_OBSERVED | Output or plan changed attributably |
| ACTION_PROPOSED | Model proposed an action |
| ACTION_ATTEMPTED | Application submitted the request |
| ACTION_EXECUTED | Tool reports execution |
| DOWNSTREAM_EFFECT_CONFIRMED | External evidence confirms an effect |
| CREDENTIAL_EXPOSURE_POSSIBLE | Credential was accessible |
| CREDENTIAL_EXPOSURE_CONFIRMED | Credential observed or used |
| DATA_TRANSFER_CONFIRMED | Transfer confirmed by request or destination evidence |
| WORKFLOW_QUARANTINED | Workflow or version quarantined |
| TOKEN_REVOKED | Scoped token revoked or rotated |
| STATE_RESET | Persistent state reset |
| EVIDENCE_INCOMPLETE | One or more stages unobserved |
| NO_IMPACT_OBSERVED | No impact found in available evidence |
NO_IMPACT_OBSERVED should be paired with EVIDENCE_INCOMPLETE when telemetry gaps exist.
Worked Scenarios
All scenarios use fictional systems and data.
A: Detector Alert Without Changed Behavior
Instruction-like text appears in a retrieved page and a detector alerts. Plan and actions are unchanged. Triage as a suspicious event, preserve provenance for the source and review whether the source should stay eligible for retrieval. Outcome: SUSPICIOUS_CONTENT_OBSERVED, no confirmed incident impact.
B: Plan Drift Blocked Before Submission
The plan drifts and proposes a privileged cross-tool action. Authorization denies it before submission. Preserve plan, proposal and decision records and investigate the source and why the proposal arose. Outcome: MODEL_INFLUENCE_OBSERVED and ACTION_PROPOSED; no downstream action occurred.
C: Executed Request With Confirmed External Change
An allowed tool request executes and the downstream audit log confirms an unintended external change. Contain the workflow and tool grant, preserve request, response and audit evidence, scope affected runs, remediate the boundary and recover in stages. Outcome: ACTION_EXECUTED and DOWNSTREAM_EFFECT_CONFIRMED; confirmed impact.
D: Scoped Token in an Outbound Request
A scoped token is present in a worker, and logs show it was included in an outbound request to an unapproved destination. Treat this as confirmed exposure and transfer evidence for that token: revoke and rotate it, remove the egress path and scope any use with the provider. Other secrets are not declared exposed without their own evidence. Outcome: CREDENTIAL_EXPOSURE_CONFIRMED, DATA_TRANSFER_CONFIRMED, TOKEN_REVOKED.
E: Influenced State in a Shared Store
Model-influenced content persisted in a shared vector memory and affected a later run. Quarantine or reset that state, scope runs and users that consumed it, preserve lineage and restore known-good state. Unrelated tenants are not called affected without evidence. Outcome: persistence and cross-run impact confirmed for the traced runs; STATE_RESET.
What the Scenarios Prove and Do Not Prove
| Scenario | Proves | Does not prove |
|---|---|---|
| A | Suspicious content reached context | Manipulation, violation or impact |
| B | Influence and a blocked proposal | Any executed action or malicious intent |
| C | An executed request caused an external change | Impact on runs outside the traced scope |
| D | That specific token was exposed and sent | Exposure of other secrets |
| E | Persisted state affected traced later runs | Impact on unrelated tenants or users |
Testing and Tabletop Exercises
Safe defensive exercises
- Evidence capture: can the team reconstruct a synthetic run end to end
- Containment decisions: choose the narrowest effective control for a scenario
- Credential rotation: rotate a test credential and confirm dependent services
- Staged recovery: re-enable a workflow with validation gates
- Missing telemetry: practice reporting unobserved stages honestly
- Cross-team escalation: engineering, security, privacy, legal and vendor contacts
To practice classifying evidence states on synthetic records, try the Incident Investigation lab.
For systematic, authorized testing of your own system beyond tabletop exercises, see Adversarial Testing.
Metrics
| Metric | Denominator | Caveat |
|---|---|---|
| Time to acknowledge, triage, contain, recover | Per event, by severity | Clock start definitions must be consistent |
| Evidence completeness | Required stages per event | Unobserved stages count against it |
| Affected runs with full correlation | All runs in scope | Scope itself may be incomplete |
| Credential revocation time | Events where rotation was required | Not all events require rotation |
| Containment success | Containment actions taken | Success means effect stopped, verified |
| Recovery validation coverage | Re-enabled components | Tests cover known boundaries only |
| Recurrence rate | Closed incidents per period | Depends on detection coverage |
| False incident escalation rate | Escalated events | Conservative escalation can be intended |
| Post-incident action closure | Actions assigned | Closure is not effectiveness |
These are operational measures, not proof of security.
Common Mistakes
Avoid
- Treating a detector hit as confirmed compromise
- Destroying evidence before preserving it
- Rotating everything without scope
- Failing to rotate credibly exposed credentials
- Prompt-only remediation after a deterministic control failed
- Concluding without downstream evidence
- Confusing a proposal with an execution
- Overclaiming exfiltration
- Leaving persistent or shared state contaminated
- Restoring before the control boundary is fixed
- Unbounded shutdown where narrow containment would suffice
- Incomplete incident records
Implementation Checklist
Readiness
- Evidence states and reason codes defined and recorded
- End-to-end correlation from source to downstream effect
- Preservation step precedes cleanup in every playbook
- Containment options mapped to scope with owners
- Credential inventory with rotation procedures
- Persistent state stores listed with reset and lineage procedures
- Provider contacts and audit data paths documented
- Staged recovery with validation gates
- Communication templates using evidence-state language
- Tabletop exercises scheduled and reviewed
Standards and Sources
Standards and guidance referenced
- NIST
- SP 800-61 Rev. 3 Incident Response Recommendations and Considerations for Cybersecurity Risk Management, SP 800-53 Rev. 5 IR-4 Incident Handling, IR-5 Incident Monitoring, IR-6 Incident Reporting, IR-8 Incident Response Plan
- OWASP
- Top 10 for Agentic Applications 2026 (risk context), LLM01:2026 Prompt Injection
Source scope: NIST SP 800-61 Rev. 3 is general incident-response guidance integrated with cybersecurity risk management; it is not specific to prompt injection or AI systems. The NIST SP 800-53 IR controls are cited only for general control orientation. The OWASP agentic list provides agent and tool risk context, and LLM01:2026 is prompt-injection risk context only. No cited source defines this prompt-injection incident response model as a complete standard. Evidence states, severity dimensions, reason codes, scenarios and metrics on this page are engineering guidance.
Frequently Asked Questions
Is a detector alert an incident?
Not by itself. It is a security event that needs triage.
Does a blocked action prove an attack?
No. It proves a control decision. Intent is not inferred from a block.
When must a credential be rotated?
When exposure is confirmed or credible risk justifies it, not merely because it existed in the environment.
Is changing the system prompt enough remediation?
Not when a deterministic control failed. Fix that control.
How does this page relate to the Incidents area?
This page is a response process. The Incidents area catalogs documented public cases.
References
- NIST SP 800-61 Rev. 3, Incident Response Recommendations and Considerations for Cybersecurity Risk ManagementNIST · Standard · 2025-04Reviewed 2026-09-27
- NIST SP 800-53 Rev. 5, Security and Privacy Controls for Information Systems and Organizations (IR-4, IR-5, IR-6, IR-8)NIST · StandardReviewed 2026-09-27
- OWASP Top 10 for Agentic Applications for 2026OWASP GenAI Security Project · Guidance · 2025-12Reviewed 2026-09-27
- OWASP GenAI LLM Top 10 2026 (LLM01:2026 Prompt Injection)OWASP GenAI Security Project · GuidanceReviewed 2026-09-27