Skip to content

Intermediate · Logs, SIEM and incident response · topic 22 of 43 · 40 min

The incident response lifecycle (NIST SP 800-61)

Explanation

Incident response is the planned way a team handles a security incident. NIST SP 800-61 Rev. 2 describes four phases: preparation; detection and analysis; containment, eradication and recovery; and post-incident activity (lessons learned). Rev. 3 (2025) places the same work inside the NIST Cybersecurity Framework 2.0. Following a plan keeps people calm, protects evidence and speeds recovery.

Why a plan

An incident is an event that harms, or threatens to harm, the confidentiality, integrity or availability of systems or data, like ransomware, a stolen admin account or a data leak. In the first hours, people panic: someone switches servers off and destroys evidence, someone emails the attacker, nobody tells the regulator in time. A written, practised plan prevents this.

The four phases (NIST SP 800-61 Rev. 2)

NIST (the US National Institute of Standards and Technology) published SP 800-61 Rev. 2, the "Computer Security Incident Handling Guide". Its lifecycle is the most widely taught model:

PhaseWhat happensExamples
1. PreparationGet ready before anything happensPlan, contact list, playbooks, tools, logging, backups, training, practice drills
2. Detection and analysisNotice and understand the incidentAlert triage, scoping which systems and accounts are affected, severity, timeline
3. Containment, eradication and recoveryStop the spread, remove the cause, restore safelyIsolate hosts, disable accounts, remove malware, patch, restore from clean backups, monitor closely
4. Post-incident activityLearn and improveLessons-learned meeting, report, fix root causes, update playbooks and detections

The phases loop: lessons learned feed back into preparation, and detection and containment often go back and forth as you find more affected systems.

In April 2025 NIST published SP 800-61 Rev. 3, "Incident Response Recommendations and Considerations for Cybersecurity Risk Management". It maps incident response onto the six functions of the NIST Cybersecurity Framework 2.0: Govern, Identify, Protect, Detect, Respond and Recover. The four-phase model above is still the common language in SOCs and exams, so learn both. A similar six-step model from SANS is called PICERL: Preparation, Identification, Containment, Eradication, Recovery, Lessons learned.

Containment choices

Containment means stopping the damage from spreading. It is a decision, not a reflex:

  • Short-term: isolate the laptop from the network using EDR, block an IP at the firewall, disable a compromised account, reset its sessions.
  • Long-term: rebuild servers, move services to clean systems, add temporary extra monitoring.
  • Trade-off: cutting off a server stops the attacker but also stops the business. Agree in advance who can make that call.

Evidence

  • Preserve before you clean: collect memory and disk images, or at least key logs, before wiping a machine.
  • Order of volatility: collect the most short-lived data first (memory, running processes, network connections) and the most lasting last (disk, backups).
  • Chain of custody: a record of who collected each piece of evidence, when, and who has handled it since. Needed if the case goes to court or a regulator.
  • Hashes: hash evidence files when collected, so you can later prove they were not changed.

Communication and reporting

Incidents involve more than the SOC: managers, legal, PR, sometimes customers and regulators. In India, CERT-In's 2022 directions require listed types of cyber incidents to be reported to CERT-In within 6 hours of noticing them, and the DPDP Act adds duties for personal data breaches (Module 8). Your plan must include who reports, to whom, and how.

Careful: Do not use a possibly compromised email system to discuss the incident. Attackers who are inside often read incident emails. Use an agreed out-of-band channel, such as phone calls or a separate chat.

Common mistakes

  • Wiping and rebuilding at once, destroying evidence of how the attacker got in, so they come back the same way.
  • Containing one machine while the attacker still has a stolen admin password.
  • Restoring from backups that are themselves infected. Check backups before restoring.
  • Skipping the lessons-learned meeting because everyone is tired.

Need help?

Stuck on a word or an idea? Search this course, or every course, and jump straight to the explanation or a worked question.

Try:

Watch the lesson

The incident response lifecycle (NIST SP 800-61) · 1/8

Plan before panic

An incident threatens the confidentiality, integrity or availability of systems or data. A plan keeps people calm.

Prefer a video by a teacher? Find free videos on “NIST incident response lifecycle 800-61 explained” on YouTube ↗

In real life: Ransomware at a city co-operative bank

Preparation: the bank had offline backups and a phone tree. Detection and analysis: EDR alerts showed mass file renames on two branch servers at 01:40; analysts confirmed ransomware and found the entry point, a VPN account without MFA. Containment: the VPN was shut, the account disabled, and affected servers isolated. Eradication: malware removed, all admin passwords reset, VPN patched and MFA added. Recovery: servers rebuilt and data restored from checked offline backups. CERT-In was informed within 6 hours. Post-incident: the lessons-learned meeting led to MFA on every remote access path and quarterly restore tests.

Practice (0/4 done)

Task 1 · Question

Isolating an infected laptop from the network belongs to which phase?

Task 2 · Code · Python

Build an incident timeline. events is a list of dicts with "time" (an ISO string like "2026-03-14T01:40:00") and "what". Write timeline(events) that returns a list of strings "TIME WHAT" (two spaces between), sorted by time, earliest first.

Task 3 · Question

Why collect memory before shutting down an infected server?

Task 4 · Practice

Write a one-page incident response plan outline for a 50-person company. Use the four NIST phases as headings and list 3–4 concrete items under each.

Quick quiz

Question 1

1.Which is the first phase of the NIST SP 800-61 Rev. 2 lifecycle?

Question 2

2.What is chain of custody?

Question 3

3.Restoring from backups belongs to…

Question 4

4.Why use an out-of-band channel during an incident?

Question 5

5.NIST SP 800-61 Rev. 3 (2025) organises incident response around…

Read more (free)

Open a question to see the answer and why. The first ones are this topic's own quiz, so try the quiz above before you peek.

Which is the first phase of the NIST SP 800-61 Rev. 2 lifecycle?

Answer: Preparation

Preparation comes before any incident.

What is chain of custody?

Answer: A record of who collected and handled each piece of evidence, and when

It proves evidence was not tampered with.

Restoring from backups belongs to…

Answer: Recovery (containment, eradication and recovery phase)

Recovery returns systems to normal operation.

Why use an out-of-band channel during an incident?

Answer: Attackers may be reading the normal email system

Assume the attacker can see your normal communications.

NIST SP 800-61 Rev. 3 (2025) organises incident response around…

Answer: The NIST Cybersecurity Framework 2.0 functions

Rev. 3 maps response activities to CSF 2.0: Govern, Identify, Protect, Detect, Respond, Recover.

Before restarting a stuck process during an incident, what should you try to do?Related

Answer: Save logs or a memory dump, because the restart wipes evidence

Capture evidence first, so the root cause can still be found later.

From Incident management

CERT-In primarily…Related

Answer: Responds to incidents and issues advisories and rules in India

It is the national incident-response and advisory body.

From India: CERT-In and the legal landscape

Which function was added in NIST CSF 2.0?Related

Answer: Govern

CSF 2.0 (2024) added Govern to the original five functions.

From GRC and risk management

Within how many hours must listed incidents be reported to CERT-In?Related

Answer: 6

The April 2022 directions require reporting within 6 hours of noticing.

From India: the DPDP Act 2023 and CERT-In directions

Pass the quiz (60% or more) or mark this topic as done when you are ready.

Your progress is saved on this device only.

Next steps

  1. 1 more topic in “Logs, SIEM and incident response” before its exam: A SOC analyst's day and playbooks.
  2. Module 5 exam: Logs, SIEM and incident response · 13 questions · 25 min, without help. 4 topics of this module still to finish first.
  3. Then the next module, Malware and web security. 43 topics left in the course before the final exam.

← Previous: SIEM and alert triage