Topic 4 of 4 · 5 min read
AI incident postmortems and vulnerability disclosure
Goal: Write a postmortem that names the root cause, the missing control and a regression test, and decide whether to report to a vendor.
A good AI incident postmortem names a root cause in the system, the control that was missing, and a regression test that fails if the incident could happen again; it blames no person and no "the model" as an excuse. Then you decide who else should hear about it.
Check yourself · 1 of 3
Which root cause statement is best for an incident where an agent emailed private data after reading a poisoned page?
Why it matters
The Google SRE book describes a blameless postmortem as writing down what happened, its impact, the causes, and the actions that stop it recurring, without pointing at individuals. People hide mistakes when they fear blame, and then the real cause stays hidden. For AI systems there is an extra trap. "The model hallucinated" or "the model was tricked" is a description, not a cause. Models will always be fallible, so the useful question is which control should have limited the damage.
The parts of a postmortem
- Summary and impact. What happened, for how long, who was affected, what data or money was involved. Use real numbers from the logs.
- Timeline. Detection, containment and recovery times, with timestamps from the audit log.
- Root cause. The chain, in system terms: the agent read an untrusted page, it held a write-capable email tool, and no rule stopped sends to unknown domains.
- Missing controls. Least privilege, human approval, an outbound allowlist, a detection rule, or logging that was absent.
- What went well. The canary fired, the kill switch worked.
- Actions. Each with an owner and a date, and each tied to a cause.
- Regression test. A repeatable check, such as an eval that replays the poisoned page and asserts the agent makes no external send, or a unit test for the allowlist. An action list without a test tends to drift back.
Disclosure and sharing
If the flaw is in someone else's product, such as a model API, an agent framework or a hosted assistant, report it privately to the vendor first. Look for a security contact or a security.txt file, give clear steps to reproduce, impact, and a reasonable time to fix before you publish. The OWASP Vulnerability Disclosure Cheat Sheet describes this process. If the issue affects your own users or regulated data, check your legal duties to notify them. You can also add a sanitised description to the AI Incident Database, so others learn from it. Remove customer data and secrets first.
Before and after
Weak root cause: "The model followed an injected instruction."
Stronger root cause: "The agent had a send tool that accepted any recipient, no approval step for external domains, and no alert for sends after reading external content. Regression test no_external_send_after_untrusted_read now replays the page and fails if a send is attempted."
What goes wrong
- Blame. Naming the engineer who wrote the prompt ends honest reporting.
- Actions with no owner or test. They are never done, or never verified.
- Public posting before the vendor can fix. It hands attackers a working method.
Examples
A short postmortem extract
Impact: 1 finance mailbox, 6 outbound emails to an unknown domain, 41 minutes before containment.
Root cause: Assistant read an external invoice page containing hidden instructions. send_email accepted any recipient and needed no approval.
Missing controls: recipient allowlist, approval for external sends, alert on send after untrusted read.
Actions: allowlist (owner: platform, due in two weeks); detection rule (owner: security); regression eval replaying the invoice page.
Went well: canary alert fired within a minute.
Deciding whether to report
Your team finds that a third-party agent framework renders model-written image links without any filter, which lets a page leak chat data. You wrote a working proof of concept. Because the flaw is in the vendor's code and affects all its users, report it privately through their security contact with the steps, then agree a date. Fix your own deployment in the meantime with an outbound allowlist.
Key points
- A root cause is a system chain ending in a missing control, not 'the model was tricked'.
- Blameless means the postmortem looks at the system and the controls, and names no person as the cause.
- Every action needs an owner, a date and a link to a cause, and the fix needs a regression test such as a replay eval.
- Report flaws in a vendor's product privately first, with reproduction steps, impact and time to fix.
- Share a sanitised version with an incident database after removing customer data and secrets.
Common mistakes
- Writing 'the model hallucinated' or 'the model was tricked' as the root cause.
- Naming a person as the cause, which makes people hide mistakes next time.
- Creating actions with no owner, no date and no regression test.
- Publishing details of a vendor flaw before the vendor has had time to fix it.
Check yourself · 2 of 3
What should every postmortem action item have?
Check yourself · 3 of 3
You find a flaw in a vendor's agent framework. What is the usual first step?
Practice items, not counted towards your mastery.
Start here
- Computer security incident handling guide (NIST SP 800-61 Rev. 3) (opens in a new tab)StandardFree
The reference incident response lifecycle: prepare, detect, respond, recover, and learn from each incident.
- AI Incident Database (opens in a new tab)ToolFree
A public catalogue of real AI failures to search before writing a postmortem and to submit to afterwards.
- Logging Cheat Sheet (OWASP) (opens in a new tab)ArticleFree
What to log, what never to log, and how to protect log integrity; it applies directly to agent logs.
More for this topic
- Postmortem culture: learning from failure (Google SRE book) (opens in a new tab)BookFree
How blameless postmortems work and why they produce action items instead of blame.
- Vulnerability Disclosure Cheat Sheet (OWASP) (opens in a new tab)ArticleFree
How to report a flaw to a vendor responsibly and how to receive reports yourself.