← Back to blog
Published November 18, 20266 min read

Security Incident Postmortems: How to Stop the Same Attack Working Twice

Incident ResponsePostmortemLessons LearnedNIST

The incident is closed. Systems are back, the attacker is out, and everyone wants to get back to their real job. That is exactly the moment most security teams lose the most valuable part of the incident: the lessons. Two months later the same misconfiguration, the same missing alert or the same slow escalation shows up again, and the team handles it as if it were new.

A good postmortem is how you stop that cycle. This guide explains what a security incident postmortem is, when to run one, what it should contain, and how to make sure its action items actually get done.

What a postmortem is (and what it is not)

Google's Site Reliability Engineering book defines a postmortem as "a written record of an incident, its impact, the actions taken to mitigate or resolve it, the root cause(s), and the follow-up actions to prevent the incident from recurring." It is not a status report and it is not a trial. Its job is to explain why the incident was possible and what will change so it is less likely, or less damaging, next time.

In security, the term overlaps with what NIST calls a lessons-learned meeting or an after-action report. The name matters less than the output: a shared, written understanding of what happened and a short list of owned improvements.

Why "blameless" is not optional

The same SRE guidance says a postmortem must focus on contributing causes "without indicting any individual or team for bad or inappropriate behavior," and that it "assumes that everyone involved in an incident had good intentions." John Allspaw made the same argument for Etsy in 2012: if engineers expect punishment, they stop giving the details you need to understand what really happened.

This matters even more in security incidents, where the trigger is often a human action: someone clicked, approved an MFA prompt or exposed a test server. If the conclusion is "user error," the system that let one click become a breach stays exactly as it was. The useful questions are different:

  • What made the malicious action look legitimate?
  • Which control should have stopped or detected it, and why didn't it?
  • What did responders not know, and where could they have found it?

When to run one

Do not wait for a headline breach. Google suggests writing a postmortem for criteria such as data loss of any kind, a resolution time above a threshold, or "a monitoring failure (which usually implies manual incident discovery)." Translated to security, good triggers are:

  • Any confirmed compromise of an account, host or application.
  • Any incident at your top severity levels (see incident severity levels).
  • Any incident discovered by a third party, a customer or by chance, instead of by your own detection.
  • Any incident that took longer than your target to contain.
  • Near misses that would have been serious if one more control had failed.

Agree on these triggers before you need them, so nobody has to argue that "their" incident deserves a review.

What NIST Revision 3 changed

NIST SP 800-61 Revision 3, published in April 2025, replaced the old four-phase life cycle that ended in "post-incident activity." It maps incident response to the CSF 2.0 Functions, and lessons learned flow into the Improvement category (ID.IM) inside Identify. Subcategory ID.IM-03 says improvements are identified from the execution of operational processes, which NIST notes "includes all incident response and recovery efforts," and ID.IM-04 asks that incident response plans be established, communicated, maintained and improved.

The practical shift is timing. Revision 3 says lessons learned "should often be shared as soon as they are identified" instead of being delayed until recovery concludes. A postmortem is still the place to consolidate them, but you should be capturing notes during the incident, not reconstructing them from memory a month later. Our guide to the NIST incident response plan covers the rest of the framework.

What to include

Keep a fixed template so every postmortem is comparable:

  1. Summary. Three or four sentences a director can read.
  2. Impact. Systems, data and users affected, and for how long. Separate what is confirmed from what is still unknown.
  3. Timeline. First malicious activity, first signal, detection, escalation, containment, eradication and recovery, in UTC, with the source of each timestamp.
  4. How the attacker got in and moved. The initial access vector, the vulnerabilities or misconfigurations used, and the path between assets.
  5. What worked. Detections that fired, decisions that saved time. These are worth keeping on purpose.
  6. Contributing factors. Usually several, not one root cause: an unpatched edge device, a missing log source, an unclear owner, a slow approval.
  7. Action items. Each one with an owner, a due date and a ticket.

Measure the gaps, not just the incident

Three intervals tell you where to invest: time from first malicious activity to first signal (visibility), from first signal to a human looking at it (triage), and from confirmation to containment (response). If the first one is long, more playbooks won't help; you need better logging (see security logging for incident investigation).

Turning findings into action

The postmortem fails if the action items live in a document nobody reopens. Treat them like any other remediation work:

  • Put them in the same queue as vulnerabilities. A vulnerability that was actually exploited in your environment deserves to jump ahead of thousands of theoretical findings.
  • Look for siblings. If the attacker used one exposed, unpatched VPN, check every asset with the same weakness, not only the one that was hit.
  • Assign owners by asset, not by meeting attendance. The person who must fix it may not have been in the room.
  • Review open items at a fixed cadence. A short monthly review of overdue postmortem actions is often more valuable than another tabletop exercise.
  • Feed detection back. Every incident should leave behind at least one new or improved detection rule.

Common mistakes

  • Stopping at "user error" or "zero-day." Both are true sometimes, but neither tells you what to change.
  • Writing it too late. Logs rotate and memories fade. Aim for a draft within days, not weeks.
  • Too many action items. Ten vague tasks get ignored; three owned, specific ones get done.
  • Keeping it secret from the people who fix things. Redact sensitive details if needed, but share the lessons with the teams that own the systems.
  • Never checking whether it worked. The real test is whether the same path is still open. Re-test it.

How priorIQ.ai helps

A postmortem produces two kinds of work: fixing the weaknesses that were exploited and finding the same weaknesses elsewhere. SentinelIQ keeps a searchable history of confirmed incidents with their context, so the timeline doesn't have to be rebuilt from scratch, and confirmed incidents raise the remediation priority of the affected hosts. ScannerIQ and CloudIQ find the same weakness on other endpoints and cloud resources, and PriorIQ Core puts it all in one prioritized queue with an owner for each action, so lessons learned turn into closed tickets. Request a demo.