← All articles
Blog

The incident response lifecycle: NIST and SANS phases, and what the investigation does in each

The incident response lifecycle explained: NIST SP 800-61 and SANS phases, what happens in each, where responses fail, and a real intrusion walked through.

2 December 2026 9 min read

The incident response lifecycle is the sequence of phases an organisation goes through to handle a security incident: getting ready before it happens, detecting and understanding it, containing it, removing the attacker, recovering, and learning from it. The two models most teams use are NIST's, from Special Publication 800-61, and the six steps taught by SANS. They describe the same work in slightly different ways, and both are better understood as a loop than a line.

This article explains both models and how NIST's 2025 revision reframes the lifecycle, then goes phase by phase through what actually happens, what each phase produces, and where responses typically fail, with a two-host intrusion from our lab walked through from detection to lessons learned. If you are writing or updating your own plan, our free incident response plan template is built around the same phases.

The NIST incident response lifecycle

For more than a decade, the reference model has been the four-phase lifecycle in NIST SP 800-61 Revision 2 (2012):

  1. Preparation. Policies, people, tools, logging and contacts in place before anything happens.
  2. Detection and analysis. Recognising that an incident is happening, establishing what it is and how far it goes.
  3. Containment, eradication and recovery. Stopping the damage, removing the attacker and returning to normal operation.
  4. Post-incident activity. Reviewing what happened and improving.

NIST drew arrows back from the third phase to the second, because containing an incident regularly turns up new evidence that sends the team back to analysis, and from the fourth to the first, because lessons learned feed preparation.

In April 2025 NIST published Revision 3, which reframes incident response around the six functions of its Cybersecurity Framework 2.0: Govern, Identify, Protect, Detect, Respond and Recover. Rather than a separate lifecycle, incident response becomes part of the organisation's overall risk management: preparation sits in Govern, Identify and Protect; handling the incident sits in Detect, Respond and Recover; and improvement runs through all of them. The practical work is the same. What changed is the emphasis that incident response is not a one-off procedure owned by the security team but an organisational capability.

The SANS six steps

SANS teaches incident handling as six steps, often remembered by their initials, PICERL:

SANS stepWhat it coversNIST Rev. 2 phase
PreparationPlan, team, tools, logging, trainingPreparation
IdentificationDetecting and confirming the incident, scoping itDetection and analysis
ContainmentShort-term and long-term measures to stop the spreadContainment, eradication and recovery
EradicationRemoving malware, persistence and attacker accessContainment, eradication and recovery
RecoveryRestoring systems and monitoring themContainment, eradication and recovery
Lessons learnedReview, report, improvementsPost-incident activity

The SANS model splits NIST's third phase into three, which is useful in practice because containment, eradication and recovery are often done by different people on different timescales. Neither model is more correct; most organisations use whichever their team trained on, and many plans name both.

What happens in each phase

Preparation

Preparation is everything that decides how the response will go before it starts: who leads and who decides, out-of-hours contacts, an external response firm on retainer, logging that records what investigations need, a tested way to collect evidence, backups that can actually be restored, and a written plan that people have rehearsed.

Where it fails: logging. The most common discovery in the first hours of a real incident is that the record needed to answer a question was never kept. Process creation with command lines and PowerShell script block logging are off by default on Windows, and Security logs often hold only days of history. The Windows event log analysis guide lists what to switch on.

Detection and analysis

An alert, a user report, a call from a partner or a ransom note starts the clock. The first task is confirming that something real is happening; the second, harder task is scoping it: which hosts, which accounts, which data, since when, and whether the attacker is still active.

This is where the investigation does most of its work. Evidence is collected from affected systems, starting with what disappears fastest; logons, executions and persistence are traced; indicators of compromise are recorded and swept across every other host. The output is an evidence-backed picture of the intrusion that the rest of the response depends on.

Where it fails: acting before understanding. Rebooting, reimaging or "cleaning" a host destroys the evidence that would show how the attacker got in and where else they went. Scoping from one host and assuming the rest are clean is the other classic mistake.

Containment

Containment stops the attacker's access and the spread of damage. Short-term containment buys time (isolating hosts from the network, blocking an address, disabling an account); long-term containment holds while eradication is prepared (temporary firewall rules, monitoring, rebuilt credentials for key accounts).

Where it fails: piecemeal action. Resetting one compromised password at a time, as each is found, tells an attacker who is still present that they have been noticed and which access to replace. Containment works best as one planned, coordinated step once the scope is reasonably clear.

Eradication

Eradication removes everything the attacker left: malware, tools, scheduled tasks, services, startup entries, new accounts, added SSH keys, changed group memberships, and the vulnerability or credential that let them in. On badly compromised systems, rebuilding from known-good sources is more reliable than cleaning.

Where it fails: missing one foothold. Attackers usually set up more than one way back in. Every persistence mechanism found on one host is a pattern to search for on all the others.

Recovery

Recovery returns systems to normal use: restoring data from backups taken before the compromise, reconnecting cleaned or rebuilt systems, resetting credentials, and watching closely for the attacker's indicators. It ends when the business decides the systems are trustworthy again.

Where it fails: restoring the compromise. Backups taken after the attacker arrived contain their persistence, and credentials reset before every foothold was removed can be stolen again.

Post-incident activity (lessons learned)

Within a couple of weeks of closing, the team reviews what happened and why, what worked, what slowed the response, and what will change, with owners and deadlines. The report also records the facts the organisation may need later for insurers, regulators or legal proceedings.

Where it fails: not happening. When an incident is over, everyone returns to their backlog. The improvements that would have made the next incident shorter are the ones never made.

A real intrusion, phase by phase

Our Halden Freight lab case is a two-workstation intrusion we built and investigated. Walking it through the lifecycle shows what each phase looks like in practice:

PhaseIn the Halden case
PreparationProcess creation with command lines and PowerShell logging were on, which is why the investigation could rebuild every step. The local accounts relied on passwords alone, with no lockout, and a notes file on a.berg's desktop was among the first things the attacker read after searching the user's files for the word "password".
Detection and analysis35 failed network logons from 10.211.55.2 in under two minutes, then a success for a.berg and a Remote Desktop take-over of that account's logged-on session. Analysis traced persistence (a Run key, a service, a scheduled task and a new administrator account), an archive of finance files and an upload attempt, a hop to the second workstation over RDP, and clean-up. The AI investigator's first pass produced 39 malicious findings and 16 indicators in about 15 minutes.
ContainmentOne coordinated step: isolate both workstations, disable a.berg, m.lund and svc_backup together, block 10.211.55.2, and stop RDP from the internal network until it could be restricted.
EradicationRemove the Run key HFUpdate, the service HFUpdateSvc and the task HFUpdateCheck on HF-WS01, the task on HF-WS02, the script in ProgramData on both, and the svc_backup account; or rebuild both workstations.
RecoveryRestore from backups taken before 22:02 UTC on the day; reset every password that could have been in a.berg's files; monitor for 10.211.55.2 and the indicator list.
Lessons learnedPassword guessing succeeded against local accounts with no lockout; searching a user's files for saved passwords was part of the attack, so credentials kept in files must be treated as exposed; whether the upload completed could not be determined from host evidence alone, which argues for network logging.

The order matters. Every containment and eradication item in that table came from the analysis. A team that had reset a.berg's password at the first alert would have missed svc_backup, the second host and the three persistence mechanisms, and the attacker would have come back through any of them.

Who does what in each phase

The lifecycle only works if each phase has an owner. In a small organisation one person may hold several of these roles; what matters is that everyone knows which they hold before the incident.

PhaseTypically led bySupported by
PreparationHead of IT or securityManagement, who approve the plan and budget
Detection and analysisThe incident lead, with whoever does the investigation (DFIR staff, the IT lead or an external firm)Owners of the affected systems
ContainmentThe IT leadThe decision-maker, for anything that affects the business
Eradication and recoveryThe IT lead and system ownersBackup and application owners
Lessons learnedThe incident leadEveryone involved, and management for the actions

Evidence handling cuts across all of them: from the first collection to the final report, a record of who collected what, when, and with which hash keeps the findings defensible. Our free chain of custody form is a simple way to keep that record, and the incident response tools guide maps the tools teams use at each phase.

Measuring the lifecycle

Teams that want to improve track a few times for each incident: when the compromise began (from the investigation), when it was detected, when it was contained and when it was closed. The gap between compromise and detection is dwell time; the gap between detection and containment shows how fast the team understood enough to act. Both shrink with better logging, faster evidence collection and practice.

Frequently asked questions

What are the phases of the incident response lifecycle?

In NIST SP 800-61 Revision 2: preparation; detection and analysis; containment, eradication and recovery; and post-incident activity. SANS uses six steps: preparation, identification, containment, eradication, recovery and lessons learned.

What is the difference between the NIST and SANS incident response models?

They describe the same work. NIST groups containment, eradication and recovery into one phase; SANS separates them, and calls detection "identification". NIST's 2025 revision also places incident response within the six functions of the Cybersecurity Framework 2.0.

What changed in NIST SP 800-61 Revision 3?

Published in April 2025, it replaces the standalone four-phase lifecycle with a model built on the Cybersecurity Framework 2.0 functions (Govern, Identify, Protect, Detect, Respond, Recover), treating incident response as part of overall cybersecurity risk management.

What is the most important phase of incident response?

Preparation decides how every other phase goes, and detection and analysis decides whether containment and eradication are aimed at the right things. Most failed responses trace back to missing logs or acting before the scope was understood.

What are the 7 steps of incident response?

Some frameworks add a seventh step to the SANS six, usually a separate "detection" step before identification or a "test and update" step after lessons learned. The work covered is the same: prepare, detect and analyse, contain, eradicate, recover and improve.

How we wrote this

Drafted with AI from evidence in our own lab, with Laura Pompeu responsible for the article. The evidence comes from Halden Freight office intrusion (Windows, two hosts), built and investigated in our lab, so every example can be checked against real records.

Sources

  1. NIST SP 800-61 Revision 2: Computer Security Incident Handling Guide (2012), NIST
  2. NIST SP 800-61 Revision 3: Incident Response Recommendations and Considerations for Cybersecurity Risk Management (2025), NIST
  3. SANS: Incident Handler's Handbook, SANS Institute
  4. NIST Cybersecurity Framework 2.0 (2024), NIST
Photo of Laura Pompeu
Laura Pompeu
Marketing Manager & Cybersecurity Content Strategist, Proven Data

Laura Pompeu is a Marketing Manager and Cybersecurity Content Strategist with 10+ years of experience across journalism, SEO, and digital marketing. She produces expert-level content on ransomware, incident response, and data recovery for technical and business audiences, and has led multinational content teams across global markets.

LinkedIn

See it on your own evidence. Free for 7 days.

Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.

Request a trial