Security incident response for AI agent attacks is the process of detecting, containing, investigating, and permanently closing out incidents where a caller, chatter, or coordinated campaign deliberately manipulates a production AI agent: prompt injection, social engineering, identity spoofing, data extraction, or unauthorized tool actions. It differs from reliability incident response because nothing is down. The agent is answering calls normally. The incident is what it is being talked into.
This runbook is for security, on-call, and AI platform teams running customer-facing voice or chat agents with access to real data or real actions: account lookups, refunds, scheduling, transfers, PHI, payment flows. If your agent answers public FAQ questions and touches no customer record and no tool, a standard abuse-monitoring process covers you and this level of ceremony is overkill. For outages, latency, and quality failures, use the companion reliability incident response runbook; this page extends it to the adversarial case and does not repeat its diagnosis tables.
The trap teams fall into is running the outage playbook. An outage playbook asks "which component failed?" and the answer here is none: every component worked as built. The attacker exploited the conversation, so the vulnerability is often a prompt version, a model version, or a missing backend authorization check, the evidence is a call recording rather than a memory dump, and the fix is verified by re-attacking the agent, not by watching a health check go green. Teams that treat an agent attack as an outage restore "normal operation" that is still vulnerable, and the attacker comes back the same afternoon.
TL;DR: Respond to an AI agent attack in seven moves: detect and classify by what the attacker got (data exposed, action taken), contain at the conversation layer (tighten tool permissions, require step-up verification, narrow the agent's scope, roll back the prompt or model, route affected intents to humans), preserve the full evidence packet per call (audio, transcript, prompt and model version, tool trace, policy decisions), eradicate the root cause, rerun the exact attack against the fixed agent and record the result, convert the attack into a permanent regression test, and close with a postmortem that a named reviewer signs. Severity follows impact, not attempt volume: one successful cross-account disclosure outranks five hundred failed jailbreak attempts.
Methodology Note: This runbook is based on Hamming's analysis of adversarial testing and production monitoring workflows across 10K+ voice agents (2025-2026). We've tested agents built on LiveKit, Pipecat, ElevenLabs, Retell, Vapi, and custom-built solutions.Use this runbook only for defending systems you own or are authorized to protect, and calibrate severity thresholds and notification duties to your own data classes, tool access, and regulators.
Last Updated: November 2026
Related Guides:
- How Do I Know If My AI Agent Is Being Attacked Right Now? - the detection program that feeds this runbook
- Voice Agent Incident Response Runbook - the reliability case: outages, audio failures, latency
- Voice Agent Prompt Injection Testing Runbook - the pre-launch testing that prevents the incident
- Voice Agent Caller Identity Testing Checklist - the verification controls attackers probe first
- Voice Agent Log Retention and Compliance Checklist - keeping the evidence this runbook depends on
- Continuous Red Teaming vs Point-in-Time Penetration Testing - why the fix must be re-attacked, not just deployed
- Voice Agent CI/CD Testing - where the permanent regression test lives
What is security incident response for AI agent attacks?
Definition: A security incident on an AI agent is any event where a party deliberately manipulates the agent's conversation, context, or tools to expose protected data, trigger an unauthorized action, or bypass a required control, whether or not the attempt fully succeeds. Incident response is the managed process of containing it, preserving the conversational evidence, fixing the root cause, proving the fix by rerunning the attack, and keeping the attack as regression coverage.
NIST SP 800-61r3, finalized in April 2025, superseded the 2012 incident handling guide and reframed incident response as part of continuous cybersecurity risk management, organized as a CSF 2.0 Community Profile: Govern, Identify, and Protect cover preparation and lessons learned, while Detect, Respond, and Recover cover the incident itself. Two of its recommendations matter most here: incidents are categorized and prioritized by risk factors such as data impact and functional impact rather than handled first come, first served (RS.MA-03), and analysis establishes the sequence of events and the root cause, not just the symptom (RS.AN-03). This runbook applies that structure to the case NIST wrote generically: the attacked system is a conversation.
The OWASP GenAI Incident Response Guide 1.0 (July 2025) adds the GenAI-specific point: prompts are both the primary attack vector and a primary source of detection signal, so security teams must analyze the language of user inputs the way they would analyze network traffic, and the blast radius of an AI incident extends to model versions, datasets, and every downstream application that consumes the agent's outputs. MITRE ATLAS catalogs the adversary side from documented real-world incidents and red-team exercises, including prompt injection techniques used for data exfiltration and privilege escalation, which is why the postmortem in this runbook maps the attack to an ATLAS technique: it turns one incident into a searchable class.
Why a conversational attack breaks the standard IR playbook
Standard incident response carries assumptions built for malware, stolen credentials, and exploited CVEs. Each one fails on an agent attack, and each failure changes a step of the runbook.
| Standard IR assumption | What is true in an agent attack | What changes in the runbook |
|---|---|---|
| There is an exploit artifact: malware, a payload, a CVE | The exploit is a conversation. OWASP LLM01:2026 notes injections need not be human-readable or even visible in the rendered interface | Indicators of compromise are language patterns and conversation shapes, and detection runs on call content, not file hashes |
| Evidence is disk images, memory, and network captures | Evidence is audio, transcript, prompt and model version, retrieved context, tool trace, and policy decisions | The evidence packet is per call and must be preserved before logs rotate or models change |
| The vulnerability is a code defect to patch | The vulnerability is often a prompt version, a model version, a retrieval source, or a missing backend authorization check | Containment can be a rollback to a prior prompt or model, which takes minutes, not a patch cycle |
| Containment means isolating hosts and revoking credentials | The agent must usually keep serving legitimate callers | Containment is graduated at the conversation layer: narrow scope, tighten tools, force verification, route to humans |
| A patched system plus a green health check proves recovery | The agent behaves probabilistically, and the fix is a behavior change | Recovery is proven by rerunning the exact attack against the fixed agent and recording the result |
| One alert is one incident | Attacks arrive as campaigns: the same script across many calls, numbers, and days | Scoping must search all traffic for the pattern, not just the call that fired the alert |
This is also why detection is a program, not an alert rule. The signals that put you in this runbook, per-call attack scoring, cross-call campaign correlation, and anomaly detection on tool usage, are covered in the companion piece on detecting attacks in production. This runbook starts the moment that monitoring fires.
Classify severity by what the attacker got
Severity follows two questions: what data was exposed, and what action was taken. A third check covers availability: an attack that degrades or blocks legitimate calls without exposing data classifies on service impact through your standard availability scale, alongside this table. Attempt volume raises urgency but never severity on its own. A thousand failed jailbreaks is a SEV-3 pattern worth studying; one disclosed account record is a SEV-1.
| Severity | Data exposed | Action taken | Category examples | Response posture |
|---|---|---|---|---|
| SEV-1 (Critical) | Another customer's records, bulk data, credentials, PHI, or payment data disclosed | An irreversible or financial action executed: transfer, refund, account change, record deletion | A caller obtained account details belonging to someone else; a claimed supervisor talked the agent past an approval check into executing a transaction | Immediate containment, incident commander assigned, legal and compliance engaged same day, notification clock evaluated |
| SEV-2 (Major) | The caller's own restricted data beyond policy, internal configuration, or system prompt contents disclosed | A reversible unauthorized action, or a required workflow step bypassed without completed harm | The agent skipped a verification step before reading account data to the verified line owner; the agent revealed its tool inventory and internal policies | Containment within hours, security and agent owner engaged, fix and rerun before the control is relaxed |
| SEV-3 (Minor) | No protected data disclosed | No unauthorized action; attack attempts detected and refused | A repeated injection campaign that the agent refused every time; probing of verification questions across many short calls | Track as a campaign, preserve evidence, feed the pattern into red-team scenarios and detection thresholds |
Two rules keep this table honest. First, classify on the worst confirmed call in the campaign, then re-classify as scoping finds more. Second, a successful attempt you cannot yet bound is treated as the higher severity until the evidence bounds it: if you cannot say which records the agent read during the attack window, you do not yet know this is a SEV-2.
The response runbook, phase by phase
Run the phases in order. Containment before preservation is the one ordering teams debate; the answer is to do the cheap preservation first (freeze log retention, snapshot the current prompt and model identifiers) because containment actions like a prompt rollback destroy the live configuration you need to investigate.
| Phase | Actions | Exit criterion |
|---|---|---|
| 1. Detect and classify | Confirm the alert against the call record. Assign severity from the table above. Search all recent traffic for the same pattern (same script, voice, ANI ranges, timing) to scope the campaign. | Severity assigned, campaign window and call list bounded, incident owner named |
| 2. Contain | Pick the narrowest action that stops the harm (table below). Snapshot current prompt, model, and tool configuration identifiers first. | The attack pattern no longer succeeds against the live agent, and legitimate traffic still completes |
| 3. Preserve | Assemble the full evidence packet (checklist below) for every call in the campaign, into storage the production pipeline cannot overwrite. Suspend scheduled deletion for the affected window. | Every campaign call has a complete, hash-recorded packet |
| 4. Eradicate and fix | Root-cause across the full path: the prompt, the model version, retrieval sources, tool schemas, and the backend authorization that should have held regardless of what the model did. Fix the control, not only the phrasing. | A named fix at the layer that failed, deployed to a test environment |
| 5. Rerun the attack | Replay the exact attack conversations, plus variants, against the fixed agent. Record pass or fail with the same evidence packet format. A fix that only blocks the original phrasing fails this phase. | The attack class fails against the fixed agent, and the result is recorded with evidence |
| 6. Regression-test permanently | Add the attack and its variants to the standing suite that runs on every prompt change, model swap, tool addition, and vendor update. Turn every attack and failure into permanent regression coverage. | The attack runs automatically in CI and before every release |
| 7. Postmortem and sign-off | Timeline, root cause, what the attacker got, control changes, detection changes, ATLAS technique mapping. A named reviewer outside the responding team signs it. | Signed postmortem filed with the evidence packets attached |
OCC Bulletin 2026-54's attached examination framework makes the case for phase 5 in the examiner's own words: repeated testing "may provide more useful evidence than a single successful run" (section 2.5), and when a vendor changes its model the bank may "retest the model before or when the changes are made" (section 2.9). The framework is a resource for examiners and does not establish supervisory expectations for banks, but it tells a regulated team what evidence an examiner finds useful: the recorded rerun, not the deploy log. Rerun the attack after the fix and record the result.
Containment options, narrowest first
Containment on an agent is graduated because the agent usually must keep serving real customers. Work down this table only as far as the severity requires.
| Containment action | What it stops | Cost to legitimate callers | When to use |
|---|---|---|---|
| Tighten tool permissions | Unauthorized actions through the agent's tools: revoke write and transaction tools, keep reads | Transactional intents route to humans | First move for any SEV-1 involving an action |
| Require step-up verification | Identity-based attacks: force full verification before any account data, remove verification shortcuts | Longer calls, some abandonment | Cross-account disclosure or verification bypass |
| Narrow the agent's scope | Exposure from affected intents: disable the attacked workflow, keep the rest | One workflow goes to humans | The attack targets one flow, such as address changes |
| Roll back the prompt or model | Regressions introduced by a recent prompt, model, or vendor update that the attack exploits | Loses the update's improvements | The campaign started after a change shipped |
| Route to human | Everything, for the affected population: send matching callers or all callers to agents | Full staffing cost | SEV-1 you cannot bound, or containment above is not holding |
| Take the agent offline | Everything | Full outage | Last resort: active bulk exfiltration or repeated financial actions you cannot stop |
Rollback is a containment action unique to this incident class: the vulnerability is often a prompt or model version, so rolling either back can close the hole in minutes. It requires versioned prompts and pinned model identifiers, which is a preparation item, not something to build during the incident.
Preserve the full evidence packet per call
The packet below is per call, for every call in the campaign. The reason it is this wide: replaying the attacker's words against a different prompt version or model version produces a different outcome and proves nothing about the incident, so the packet must pin every input that shaped the agent's behavior.
| # | Evidence item | Why it is in the packet |
|---|---|---|
| 1 | Call audio, both channels | The transcript normalizes away pacing, interruptions, played audio, and background coaching that shaped the attack |
| 2 | Raw ASR output with confidence scores, plus the final transcript | Shows what the model actually received, and whether transcription uncertainty was part of the exploit |
| 3 | Exact prompt version and full system prompt content | The vulnerability may be this artifact; the rerun in phase 5 needs it verbatim |
| 4 | Model identifier, version, and generation parameters | Behavior is version-specific; an un-pinned model makes the incident unreproducible |
| 5 | Retrieved context: documents, CRM notes, knowledge chunks, with source identifiers | Indirect injection arrives through retrieval; the packet must show what entered the context window |
| 6 | Complete tool trace: calls, parameters, authorization decisions, results | This is the record of what the attacker actually got and did |
| 7 | Policy and guardrail decisions per turn, with the rule version | Shows which control fired, which stayed silent, and why |
| 8 | Caller metadata: ANI, SIP headers, time, channel, session and correlation IDs | Links the call to the campaign and supports fraud referral |
| 9 | Agent configuration snapshot: enabled tools, scopes, routing rules at call time | The blast radius question ("what could this agent reach?") is answered here |
| 10 | Chain of custody: who accessed the packet, when, content hash at capture | The packet may support a regulatory filing, a fraud case, or a legal process |
Three handling rules. Write packets to storage the production pipeline cannot overwrite, with a hash recorded at capture. Suspend scheduled deletion for the campaign window before retention jobs run; the log retention checklist covers the standing policy this exception sits on. And restrict access: the packet concentrates exactly the sensitive data the attack targeted, so an evidence store with broad read access is a second incident waiting.
Who is told what, and when
Notification duties vary by jurisdiction, sector, and data class, and the triggers are defined on the incident's impact, not on the fact that the attacked system was an AI agent. Evaluate them with counsel per incident. One concrete clock as the shape of the duty: under 23 NYCRR Part 500, section 500.17, a NYDFS-covered entity notifies the superintendent as promptly as possible and no later than 72 hours after determining that a cybersecurity incident has occurred at the entity, an affiliate, or a third-party service provider; the regulation's incident definition turns on required notifications to other bodies, a reasonable likelihood of material harm to normal operations, or ransomware deployment. Whether a given agent attack meets a definition like that is a legal determination, which is why legal is in the table below from SEV-2 up.
| Audience | What they are told | When |
|---|---|---|
| Security leadership | Severity, campaign scope, what the attacker got, containment state | At classification, then at every state change |
| Agent owner and engineering | The attack pattern, the suspected layer, the containment in effect | At containment, because they execute the fix |
| Model risk and AI governance | Root cause, affected model and prompt versions, rerun results, control changes | At phase 5, with the evidence packets; this is audit-ready evidence for security, risk and model governance reviews |
| Compliance | Data classes involved, affected-customer count, retention exceptions taken | As scoping bounds them |
| Legal | The full picture, for notification and preservation determinations | Same day for SEV-1, at classification for SEV-2 |
| Regulator | Per the applicable rule, in its form and clock, through the channel it specifies | Only on a confirmed duty, determined with counsel |
| Fraud team or law enforcement referral | Caller infrastructure: numbers, patterns, timing | When the campaign indicates organized fraud |
Keep one person writing the incident narrative as it happens. Every later audience, from the model risk reviewer to a regulator, gets a version of the same timeline, and a timeline reconstructed a week later from chat scrollback is the weakest artifact in the file.
The incident is closed by a rerun, a regression test, and a signature
An agent-attack incident closes on three artifacts: a recorded rerun of the original attack against the fix, a permanent regression test, and a signed postmortem. The standard is continuous red-teaming, not a point-in-time pen test, applied to your own incident: the attack that worked once is now the cheapest, highest-value test scenario you own.
Rerun the attack class, not the phrasing. Replay the preserved conversations against the fixed agent, then run variants: reworded requests, the same pressure over more turns, the same goal through an adjacent intent. A fix that blocks the recorded wording and nothing else is a filter, and filters are what the attacker routed around the first time. Red-team the full path: the agent, its tools and the APIs behind them, because the durable fix is usually the backend authorization check that holds regardless of what the model is talked into.
Then make the test permanent. The attack and its variants join the suite that runs on every prompt change, model swap, tool addition, and vendor update, in the same CI gates as the rest of the security regression suite. This is the step that converts an incident from a cost into coverage.
The postmortem closes it. Timeline, root cause at the layer that failed, exactly what the attacker obtained, the control and detection changes shipped, the rerun results, and the MITRE ATLAS technique mapping so the incident is comparable across time and teams. A named reviewer who did not run the response reads the evidence and signs. For a regulated deployment, that signed postmortem with its attached packets is the artifact every later reviewer asks for first; the bank sign-off guide shows where it fits in the broader evidence file.
Run the preparation drill before you need any of this: pick one past red-team finding, walk it through all seven phases as a tabletop, and time how long phase 3 takes with your current logging. If the evidence packet cannot be assembled for a test incident, it will not exist for a real one.