Security Incident Response for AI Agent Attacks: A Runbook for When the Caller Is the Attacker

Sumanyu Sharma
Sumanyu Sharma
Founder & CEOAn industry expert reviewed this article for accuracy and quality., Voice AI QA Pioneer

Hamming protects 10K+ voice agents in production.

· Updated · 18 min read

Security Incident Response for AI Agent Attacks: A Runbook for When the Caller Is the Attacker

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:

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 assumptionWhat is true in an agent attackWhat changes in the runbook
There is an exploit artifact: malware, a payload, a CVEThe exploit is a conversation. OWASP LLM01:2026 notes injections need not be human-readable or even visible in the rendered interfaceIndicators of compromise are language patterns and conversation shapes, and detection runs on call content, not file hashes
Evidence is disk images, memory, and network capturesEvidence is audio, transcript, prompt and model version, retrieved context, tool trace, and policy decisionsThe evidence packet is per call and must be preserved before logs rotate or models change
The vulnerability is a code defect to patchThe vulnerability is often a prompt version, a model version, a retrieval source, or a missing backend authorization checkContainment can be a rollback to a prior prompt or model, which takes minutes, not a patch cycle
Containment means isolating hosts and revoking credentialsThe agent must usually keep serving legitimate callersContainment is graduated at the conversation layer: narrow scope, tighten tools, force verification, route to humans
A patched system plus a green health check proves recoveryThe agent behaves probabilistically, and the fix is a behavior changeRecovery is proven by rerunning the exact attack against the fixed agent and recording the result
One alert is one incidentAttacks arrive as campaigns: the same script across many calls, numbers, and daysScoping 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.

SeverityData exposedAction takenCategory examplesResponse posture
SEV-1 (Critical)Another customer's records, bulk data, credentials, PHI, or payment data disclosedAn irreversible or financial action executed: transfer, refund, account change, record deletionA caller obtained account details belonging to someone else; a claimed supervisor talked the agent past an approval check into executing a transactionImmediate 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 disclosedA reversible unauthorized action, or a required workflow step bypassed without completed harmThe agent skipped a verification step before reading account data to the verified line owner; the agent revealed its tool inventory and internal policiesContainment within hours, security and agent owner engaged, fix and rerun before the control is relaxed
SEV-3 (Minor)No protected data disclosedNo unauthorized action; attack attempts detected and refusedA repeated injection campaign that the agent refused every time; probing of verification questions across many short callsTrack 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.

PhaseActionsExit criterion
1. Detect and classifyConfirm 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. ContainPick 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. PreserveAssemble 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 fixRoot-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 attackReplay 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 permanentlyAdd 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-offTimeline, 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 actionWhat it stopsCost to legitimate callersWhen to use
Tighten tool permissionsUnauthorized actions through the agent's tools: revoke write and transaction tools, keep readsTransactional intents route to humansFirst move for any SEV-1 involving an action
Require step-up verificationIdentity-based attacks: force full verification before any account data, remove verification shortcutsLonger calls, some abandonmentCross-account disclosure or verification bypass
Narrow the agent's scopeExposure from affected intents: disable the attacked workflow, keep the restOne workflow goes to humansThe attack targets one flow, such as address changes
Roll back the prompt or modelRegressions introduced by a recent prompt, model, or vendor update that the attack exploitsLoses the update's improvementsThe campaign started after a change shipped
Route to humanEverything, for the affected population: send matching callers or all callers to agentsFull staffing costSEV-1 you cannot bound, or containment above is not holding
Take the agent offlineEverythingFull outageLast 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 itemWhy it is in the packet
1Call audio, both channelsThe transcript normalizes away pacing, interruptions, played audio, and background coaching that shaped the attack
2Raw ASR output with confidence scores, plus the final transcriptShows what the model actually received, and whether transcription uncertainty was part of the exploit
3Exact prompt version and full system prompt contentThe vulnerability may be this artifact; the rerun in phase 5 needs it verbatim
4Model identifier, version, and generation parametersBehavior is version-specific; an un-pinned model makes the incident unreproducible
5Retrieved context: documents, CRM notes, knowledge chunks, with source identifiersIndirect injection arrives through retrieval; the packet must show what entered the context window
6Complete tool trace: calls, parameters, authorization decisions, resultsThis is the record of what the attacker actually got and did
7Policy and guardrail decisions per turn, with the rule versionShows which control fired, which stayed silent, and why
8Caller metadata: ANI, SIP headers, time, channel, session and correlation IDsLinks the call to the campaign and supports fraud referral
9Agent configuration snapshot: enabled tools, scopes, routing rules at call timeThe blast radius question ("what could this agent reach?") is answered here
10Chain of custody: who accessed the packet, when, content hash at captureThe 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.

AudienceWhat they are toldWhen
Security leadershipSeverity, campaign scope, what the attacker got, containment stateAt classification, then at every state change
Agent owner and engineeringThe attack pattern, the suspected layer, the containment in effectAt containment, because they execute the fix
Model risk and AI governanceRoot cause, affected model and prompt versions, rerun results, control changesAt phase 5, with the evidence packets; this is audit-ready evidence for security, risk and model governance reviews
ComplianceData classes involved, affected-customer count, retention exceptions takenAs scoping bounds them
LegalThe full picture, for notification and preservation determinationsSame day for SEV-1, at classification for SEV-2
RegulatorPer the applicable rule, in its form and clock, through the channel it specifiesOnly on a confirmed duty, determined with counsel
Fraud team or law enforcement referralCaller infrastructure: numbers, patterns, timingWhen 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.

Frequently asked questions

Security incident response for AI agent attacks is the process of detecting, containing, investigating, and permanently closing out incidents where a caller or campaign deliberately manipulates a production AI agent through prompt injection, social engineering, or identity spoofing to expose data or trigger unauthorized actions. Hamming's runbook runs seven phases: detect and classify, contain at the conversation layer, preserve the per-call evidence packet, eradicate the root cause, rerun the attack against the fix, regression-test it permanently, and close with a signed postmortem.

In the common case nothing is down and no code was exploited: the attack is a conversation, so the indicators of compromise are language patterns, the evidence is audio plus transcript plus prompt version plus tool trace, and the vulnerability is often a prompt or model version, which makes rollback a legitimate containment action. Recovery is also proven differently: because the agent behaves probabilistically, Hamming recommends rerunning the exact attack against the fixed agent and recording the result rather than trusting a deploy and a green health check. An agent incident can still involve an outage or an exploited API or code flaw; those paths route through your standard incident playbook alongside this one.

Preserve a full packet per call: both-channel audio, raw ASR output with confidence scores, the final transcript, the exact prompt version and content, the model identifier and parameters, retrieved context with sources, the complete tool trace with authorization decisions, per-turn guardrail decisions, caller metadata, the agent's tool configuration at call time, and a chain-of-custody record with content hashes. Hamming recommends writing packets to storage the production pipeline cannot overwrite and suspending scheduled deletion for the campaign window before retention jobs run.

Use the narrowest conversation-layer action that stops the harm while legitimate callers keep getting served: tighten or revoke tool permissions, require step-up verification before any account data, narrow the agent's scope by disabling the attacked workflow, roll back a recently changed prompt or model, route matching callers to humans, and take the agent offline only as a last resort. Hamming recommends snapshotting the live prompt, model, and tool configuration before any rollback, because containment destroys the configuration the investigation needs.

Notification duties turn on the incident's impact, such as the data classes exposed and the harm to operations, not on the fact that an AI agent was the attacked system, and the rules vary by jurisdiction and sector, so the determination is made with counsel per incident. As one example of the clock involved, NYDFS-covered entities must notify the superintendent under 23 NYCRR 500.17 no later than 72 hours after determining a cybersecurity incident meeting the rule's criteria has occurred (a required notice to another body, a reasonable likelihood of material harm to normal operations, or ransomware deployment); Hamming recommends engaging legal at classification for any incident where protected data was disclosed.

Fix the control at the layer that failed, usually backend authorization rather than prompt wording, then replay the preserved attack and its variants against the fixed agent and record the result: a fix that only blocks the original phrasing is a filter attackers route around. Hamming recommends turning every confirmed attack into a permanent regression test that runs on every prompt change, model swap, tool addition, and vendor update.

Classify by what the attacker got, not attempt volume: disclosure of another customer's data or an executed irreversible action is critical, policy bypasses and internal-configuration disclosure without completed harm are major, and detected attempts the agent refused are tracked as a campaign at minor severity. Hamming recommends classifying on the worst confirmed call in the campaign and treating an unbounded successful attempt as the higher severity until the evidence bounds it.

Yes. NIST SP 800-61r3 (April 2025) frames incident response as part of continuous cybersecurity risk management organized around the CSF 2.0 Functions, and its recommendations to prioritize incidents by risk factors like data impact and to establish root cause apply directly to agent attacks. Hamming's runbook applies that structure to the conversational case, where the exploit is the dialogue and the evidence is the call record.