Defense control

Incident Response

How defenders prepare for, investigate, contain, remediate, recover from and learn from prompt-injection-related security events, while keeping attempted influence, manipulation, control violations, execution and confirmed impact as separate evidence states.

By Norbert HofmannPublished: 2026-09-27Last reviewed: 2026-09-27Level: AdvancedAudience: Security Engineers, Developers, AI Engineers
Control family
Containment and recovery
Control type
Recovery / limiting / governance
Enforcement
Hybrid: human-led process backed by deterministic containment actions
Core question
What actually happened, what is affected, and how is it stopped and repaired
Level
Advanced
Table of contents

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.

01
AssetRuns and sessions

User sessions, agent runs, sub-agent tasks and their correlation identifiers.

02
AssetTools and connectors

Tool grants, connector identities, scoped tokens and provider-side audit records.

03
AssetData and destinations

Classified resources read or written, and destinations data may have reached.

04
AssetPersistent state

Caches, memory, vector stores, files, queued jobs and shared workspaces.

05
AssetConfiguration

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

What other controls contribute to incident response
ControlContributionWhat it does not establish
Prompt Injection Detection, Plan Drift Detection, Tool-Chain AnalysisSignals and evidence that trigger or support triageCompromise or impact by themselves
Agent Authorization, Human-in-the-LoopDecisions on whether an action could proceedWhat happened after a decision; IR handles that
Data ProvenanceWhich content, tool output, user, source, tenant and retrieval path influenced a runWhether that content was malicious
Sandboxing / ContainmentCaps on ongoing effectsEvidence preservation or recovery
Network / Egress Restrictions, Information Flow Control, Least PrivilegeBlast-radius controls that can be tightened during responseProof of maliciousness when tightened
Output ValidationStructural validity of outputsTrust 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.

Evidence states for a prompt-injection event
  1. 01
    Suspicious content observed

    Instruction-like or anomalous content was present in context or input.

  2. 02
    Model or plan influence observed

    Model output or plan changed in a way attributable to that content.

  3. 03
    Policy or control violation

    A proposal or behavior violated a policy, or a control decision was triggered.

  4. 04
    Action proposed

    The model proposed a tool call or action.

  5. 05
    Action attempted or submitted

    The application submitted the request to a tool or service.

  6. 06
    Action executed

    The tool or service reports that it executed the request.

  7. 07
    Data disclosed or modified

    Downstream evidence shows data was sent, received, changed or deleted.

  8. 08
    Credential exposure

    A credential was observed in output, a log or a request, or was confirmed used.

  9. 09
    Persistence or cross-run impact

    Influenced state was stored and consumed by a later run or another user.

  10. 10
    Confirmed 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.

Triage dimensions
DimensionQuestion
Privileges involvedWhich identities, grants and tools were available to the run
Data classificationWhat classification of data was readable, sent or modified
Tool and resource scopeWhich resources the tools could reach
DestinationWere external or unapproved destinations involved
Tenant and user scopeOne user, many users, one tenant, several tenants
PersistenceDid influenced state outlive the run
Credential exposureWas a credential present, accessible, observed or used
External side effectsDid anything change outside the application
Containment statusIs the effect ongoing or stopped
Evidence completenessWhich 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.

01
EvidenceContext snapshots

Prompts and assembled context where policy permits retention.

02
EvidenceRetrieved and tool content

The content that entered context, with provenance.

03
EvidenceModel outputs and plans

Plans, reasoning summaries if recorded, and proposals.

04
EvidenceTool call proposals

Proposed actions with parameters and destinations.

05
EvidenceDecisions

Authorization and human-approval records.

06
EvidenceActual requests

Submitted requests, responses and downstream audit evidence.

07
EvidenceBoundary events

Sandbox, egress and flow-control decisions.

08
EvidenceArtifacts

Relevant files with hashes.

09
EvidenceIdentities and grants

Identities, grants and token identifiers in effect.

10
EvidencePolicy versions

Policies and configuration at event time.

Timeline Reconstruction

Reconstructed event chain
UntrustedSource
Variable trustContext assembly
Variable trustModel and plan
Variable trustProposed action
SystemAuthorization
SystemEnforcement
TrustedDownstream effect

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

Scope dimensions
DimensionScope question
User, session, runWhich runs consumed the relevant content or state
Agent and sub-agentWhich delegated tasks were involved
Tool and connectorWhich grants were used
ResourceWhich records, files or systems were touched
DestinationWhere data or requests went
TenantWhether any evidence crosses tenant boundaries
Workflow and versionWhich workflow, model and configuration versions were active
Cross-run stateWhether 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

Containment by scope
OptionScopeTypical trigger
Pause one run or sessionNarrowOngoing suspicious run
Disable a tool or connectorTool-wideTool path implicated across runs
Revoke or rotate a scoped tokenCredentialConfirmed or credible exposure
Remove a network pathDestinationUnapproved destination reached
Tighten information flowData classData class moving where it should not
Isolate a workerExecutionWorker state untrusted
Block artifact exportRelease gateArtifacts may carry influenced content
Quarantine a workflow or versionWorkflowDefect 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

Credential evidence states
StateMeaningTypical response
Present in context or runtimeThe credential existed where the run executedReview scope and design
Potentially accessibleThe run could have read itAssess risk; rotate if credible
Observed in output, log or requestThe value appeared where it should notRevoke or rotate; scope use
Confirmed usedProvider records show useRevoke, 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.

Example reason codes
CodeMeaning
SUSPICIOUS_CONTENT_OBSERVEDInstruction-like content present
MODEL_INFLUENCE_OBSERVEDOutput or plan changed attributably
ACTION_PROPOSEDModel proposed an action
ACTION_ATTEMPTEDApplication submitted the request
ACTION_EXECUTEDTool reports execution
DOWNSTREAM_EFFECT_CONFIRMEDExternal evidence confirms an effect
CREDENTIAL_EXPOSURE_POSSIBLECredential was accessible
CREDENTIAL_EXPOSURE_CONFIRMEDCredential observed or used
DATA_TRANSFER_CONFIRMEDTransfer confirmed by request or destination evidence
WORKFLOW_QUARANTINEDWorkflow or version quarantined
TOKEN_REVOKEDScoped token revoked or rotated
STATE_RESETPersistent state reset
EVIDENCE_INCOMPLETEOne or more stages unobserved
NO_IMPACT_OBSERVEDNo 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 conclusions
ScenarioProvesDoes not prove
ASuspicious content reached contextManipulation, violation or impact
BInfluence and a blocked proposalAny executed action or malicious intent
CAn executed request caused an external changeImpact on runs outside the traced scope
DThat specific token was exposed and sentExposure of other secrets
EPersisted state affected traced later runsImpact 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

Operational metrics with denominators
MetricDenominatorCaveat
Time to acknowledge, triage, contain, recoverPer event, by severityClock start definitions must be consistent
Evidence completenessRequired stages per eventUnobserved stages count against it
Affected runs with full correlationAll runs in scopeScope itself may be incomplete
Credential revocation timeEvents where rotation was requiredNot all events require rotation
Containment successContainment actions takenSuccess means effect stopped, verified
Recovery validation coverageRe-enabled componentsTests cover known boundaries only
Recurrence rateClosed incidents per periodDepends on detection coverage
False incident escalation rateEscalated eventsConservative escalation can be intended
Post-incident action closureActions assignedClosure 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

  1. NIST SP 800-61 Rev. 3, Incident Response Recommendations and Considerations for Cybersecurity Risk ManagementNIST · Standard · 2025-04Reviewed 2026-09-27
  2. 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
  3. OWASP Top 10 for Agentic Applications for 2026OWASP GenAI Security Project · Guidance · 2025-12Reviewed 2026-09-27
  4. OWASP GenAI LLM Top 10 2026 (LLM01:2026 Prompt Injection)OWASP GenAI Security Project · GuidanceReviewed 2026-09-27