DriftLock

What to Include in Your Prompt Injection Incident Response Plan

A prompt injection incident response plan needs the usual detection, containment, eradication, and recovery phases, plus steps specific to how this attack works: a way to pause or disable the affected AI agent immediately, a log of exactly what actions the agent took and what data it touched before the injection was caught, identification of the content source that carried the instructions (a page, email, document, or calendar invite), and credential rotation for anything the agent could reach — because the damage is done through the agent's own legitimate permissions, not through planted malware.

A prompt injection incident doesn't look like a typical malware incident, and treating it like one misses the parts that matter most. There's usually no malicious file to quarantine and no unusual process to kill — the attack worked by getting a legitimate, authorized AI agent to misinterpret content as an instruction, then act on it using permissions it already had. Your response plan needs to account for that difference explicitly, not just reuse a generic security incident template with "AI" added to the title.

Detection: how these incidents actually surface

Prompt injection incidents are often discovered late and indirectly — an employee notices an email was sent that they didn't write, a file shows up somewhere it shouldn't, a customer flags an odd response, or a routine log review turns up an agent action nobody recognizes. Few companies have real-time detection for this yet, so your plan should explicitly include what reviewers are looking for (unexpected destinations for sent data, unusual file access patterns, actions outside the agent's normal task scope) rather than assuming it'll be obvious the moment it happens.

Containment: pause the agent, not just the device

The first containment step is different from a typical malware response: you need the ability to pause or disable the specific AI agent's access — its API key, its session, its connection to email, CRM, or file storage — quickly, without necessarily taking the whole laptop offline. Define in advance who has the authority to do this and how, because in the moment is the wrong time to be figuring out which admin console controls which tool. If the agent was connected to multiple systems (inbox, shared drive, CRM, internal tools via MCP), each connection needs its own containment step, since the injected instructions could have reached any of them.

Scope assessment: reconstruct what the agent actually did

This is the step a traditional IR plan doesn't anticipate well. With malware, you're usually asking what the malicious code did on the system. With prompt injection, you're asking what the agent did while compromised — and the agent may have taken real, authorized-looking actions: sending an email, modifying a file, submitting a form, approving something. Without a record of the agent's actions leading up to and during the incident, this reconstruction becomes guesswork. Your plan should specify where that action log lives and who has access to pull it quickly, because the time this takes often determines how fast you can assess exposure.

Eradication: find and remove the carrying content

Unlike malware, there's typically no binary to delete — there's a piece of content: a web page, an email, a shared document, a calendar invite, a spreadsheet comment, that carried the instructions. Eradication means identifying that source, removing or blocking it, and checking whether the same content reached other employees or other agents in the company. If it arrived by email, check whether the same message landed in other inboxes. If it was a shared document or a web page an internal tool regularly pulls from, check whether other automated processes touch the same source.

Recovery: rotate what the agent could reach

Anything the compromised agent had access to should be treated as potentially exposed, not just whatever it's confirmed to have touched. That means rotating credentials and API keys reachable from the agent's session, reviewing any changes it made to files, records, or configurations during the exposure window, and confirming with affected systems (CRM, file storage, email) whether any data left the company's control.

Communication and notification

If personal data or customer information was exposed, your existing breach notification obligations apply the same as any other incident — the fact that an AI agent was the mechanism doesn't change the regulatory clock. Build into the plan who assesses whether notification thresholds were met and how quickly that assessment needs to happen.

Lessons learned: close the specific gap, not just "be more careful"

The post-incident review should identify exactly which content type and which agent permission combination made the attack possible — a browser agent that could submit forms without confirmation, a coding agent that could read and act on repository content without review, an assistant connected to an inbox with send permissions — and tighten that specific combination, rather than issuing a general reminder to staff.

A quick reference for the plan itself

Phase Prompt-injection-specific addition
Detection Define what an injected-agent action looks like in logs, not just unusual network activity
Containment Ability to pause a specific agent's access/session, not just isolate a device
Scope Reconstruct the agent's actual actions from an audit trail, not just assume "false output"
Eradication Identify and remove the content source; check for the same content elsewhere
Recovery Rotate everything the agent's session could reach, review changes it made
Communication Treat exposed personal/customer data under existing breach notification timelines

A console that gives you a central, cross-agent audit trail — what each AI tool did, on which machine, touching which files or connections — is what turns the scope-assessment phase from guesswork into a fast lookup, which is usually the difference between a contained incident and one that drags on for weeks.

What to take away

  • Prompt injection incidents are action-based, not file-based — your plan needs an audit trail of agent actions, not just a malware scan.
  • Define containment authority and mechanism for pausing a specific agent's access ahead of time.
  • Eradication means finding the content that carried the instructions and checking where else it landed, not deleting a file.
  • Rotate everything the agent's session could reach during recovery, not just what you've confirmed was touched.
  • Breach notification obligations apply the same way they would for any other incident involving customer or personal data.

Related