
AI SECURITY · BLOG 12
Part 7 of our AI Security Series: a practical playbook for detecting, containing and learning from AI security incidents.
AI systems are moving from experiments into customer journeys, internal operations and decision-making workflows. That creates a new operational reality: when an AI system gives unsafe advice, exposes sensitive information, or triggers an unauthorised action, the organisation needs more than a model owner and a support ticket. It needs an incident response process.
AI incident response adapts familiar security disciplines—detection, containment, investigation and recovery—to systems that can be probabilistic, connected to sensitive data and capable of taking action through tools or integrations.
What counts as an AI security incident?
An AI security incident is any event where an AI system creates, contributes to or amplifies a security, privacy, compliance or business risk. Examples include:
- A prompt injection causes an assistant to ignore its intended instructions.
- A retrieval system returns confidential information to the wrong user or workflow.
- A model output contains harmful, materially misleading or unsafe guidance.
- An agent calls a tool with excessive permissions or performs an unauthorised action.
- Training, prompt or telemetry data is sent to an unapproved provider.
- A model, connector or third-party AI service changes behaviour without adequate review.
Not every inaccurate answer is a security incident. The important question is whether the event affected confidentiality, integrity, availability, safety, compliance or trust—and whether the same failure could recur.
A four-stage AI incident response playbook
1. Detect and preserve evidence
Start by recording what happened while the evidence is still available. Capture the user request, system and developer instructions, retrieved context, model and version, safety settings, tool calls, outputs, timestamps and relevant identity or access information. Preserve hashes or immutable copies where appropriate, and record who reported the issue.
Keep the evidence proportionate. Redact unnecessary personal or confidential information, but retain enough context to reproduce the failure. A short, structured incident record is more valuable than a long conversation export with no ownership or timeline.
2. Contain the workflow
Containment should reduce harm without destroying evidence. Depending on the scenario, pause the affected agent, disable a risky connector, narrow retrieval scope, revoke a temporary token, switch to human approval, or route requests to a safer fallback.
Use the smallest effective control. If only one tool or data source is involved, isolate that component instead of taking the entire AI service offline. For high-impact workflows, make the fail-safe state explicit: no external action, no irreversible change and no release of sensitive information until a human authorises the next step.
3. Investigate the root cause
Separate the visible symptom from the control failure underneath it. Ask:
- Was the input malicious, accidental or simply ambiguous?
- Did the system retrieve data the user was not authorised to see?
- Were instructions, policies or guardrails incomplete or conflicting?
- Did the model have more tools or permissions than the task required?
- Did monitoring detect the issue quickly enough?
- Was there a change in the model, prompt, connector, data or provider?
Test the suspected failure with safe, synthetic data. Look for variants rather than relying on one successful reproduction. An incident may be caused by a combination of weak access control, over-trusted model output and missing human approval—not by the model alone.
4. Recover and improve
Recovery means restoring a trusted operating state, not simply turning the feature back on. Apply the fix, test normal and adversarial scenarios, review access, and confirm that logging and alerting still work. If the incident affected customers, employees or partners, coordinate communications with the appropriate owners.
Close the incident with a clear record of the cause, impact, decisions, evidence, corrective actions and accountable owners. Feed lessons into model evaluation, change management, access reviews and staff guidance. An incident that produces no control improvement is likely to return in a different form.
Roles that should be clear before an incident
AI response becomes slow and confused when ownership is undefined. Establish a simple responsibility map for:
- Business owner: decides the acceptable business outcome and risk tolerance.
- AI or product owner: understands the workflow, prompts, evaluations and changes.
- Security and privacy: leads containment, evidence handling and risk assessment.
- IT or platform team: controls identities, infrastructure, connectors and logging.
- Communications and legal advisors: support stakeholder notification where required.
One person should have authority to pause the workflow. If everyone can recommend a pause but nobody can make the decision, the control is not operational.
Evidence checklist
A useful AI incident record should answer five questions:
- What happened, and when?
- Which users, data, models, prompts, tools or providers were involved?
- What was the actual or potential impact?
- What was contained, by whom and at what time?
- What must change before the workflow is trusted again?
For recurring workflows, maintain a tested evidence schema so responders do not have to design their own process during a crisis.
Metrics that show readiness
Track a small set of operational measures: time to detect, time to contain, percentage of AI workflows with an owner, percentage with tested rollback or kill-switch controls, rate of high-risk tool calls requiring approval, and time to complete post-incident actions.
Quality matters as much as speed. A fast response that cannot explain what data was exposed or why an action was allowed is not a mature response.
A practical 30-day starting plan
- Week 1: inventory AI use cases, owners, data sources, models and connected tools.
- Week 2: define severity levels, escalation paths, evidence fields and pause criteria.
- Week 3: test one prompt-injection scenario, one data-access scenario and one unsafe-action scenario using synthetic data.
- Week 4: review findings with business, security and platform owners, then track the fixes to completion.
This plan is deliberately small. The goal is to turn AI incident response from a policy document into a repeatable operating habit.
Final thought
Trustworthy AI is not defined by never making a mistake. It is defined by knowing when something has gone wrong, limiting the impact, explaining what happened and improving the system afterwards.
If your organisation is connecting AI to sensitive data or business actions, talk to our team about building a practical AI security and assurance programme.
