Before the incident
An incident is an event that harms, or is about to harm, the confidentiality, integrity or availability of data or systems, or breaks security policy. Here a criminal has a staff member's password and is signed in to their account.
Response starts before any attack. The team writes a playbook (who does what, who to call), keeps logs and monitoring running, keeps clean backups, and has a place to record every action. Here that record is a Python list.
Detect and analyse
At 09:00 monitoring raises an alert: this account signed in from a new country, minutes after a sign-in at the office. The team opens the incident and logs the first entry. The timeline now holds one item.
Analysis, or triage, asks: is this a real incident, what does it touch, and how serious is it? The logs show the account reading and changing files on the server and a hidden rule forwarding its email out. Severity: high.
Contain, eradicate, recover
Containment stops the damage growing. The team disables the account and ends all its signed-in sessions, so the attacker is thrown out, and takes the laptop off the network. Containing first, before cleaning up, limits harm.
Before anything is wiped, the team copies the evidence: memory first (it is lost at power-off), then the disk and the sign-in logs. A chain of custody records who handled each copy, and when. Then the facts cannot be lost.
Eradication removes what the attacker left and the weakness they used. The team deletes the forwarding rule, resets the password, and turns on phishing-resistant MFA, so a stolen password alone is not enough again.
Recovery brings things back safely. Two files the attacker changed are restored from the clean backup, the account is switched back on, and monitoring watches it closely for a while in case the attacker returns.
Learn and improve
A few days later everyone involved reviews the timeline: what worked, what was slow, and what to change. The aim is fixing the system, not blaming a person. The fixes go back into the playbook, monitoring and training.
NIST SP 800-61 Rev. 3 ties this to the Cybersecurity Framework 2.0. Govern, Identify and Protect prepare. Detect finds the incident. Respond analyses, contains and removes it. Recover restores. Lessons learned improve all of them.
What happens
;; step 1/10 · incident
incident an event that harms (or is about to harm)
confidentiality, integrity or availability,
or breaks the rules (security policy)
here a stolen password: the attacker is signed in
as a staff member, near the company files
response the planned work of stopping and fixing it
The incident and its times are made up to show the order of the work. Real incidents can take hours or months, and teams often go back and forth between analysis, containment and eradication as they learn more. The phase names follow NIST SP 800-61 Rev. 2 and CISA's playbooks. Rev. 3 (2025) keeps the same work but files it under the six CSF 2.0 functions instead of one life cycle.