Home › The Stash

The Incident Response Lifecycle: What Happens When the Alert Fires

TrainingOctober 8, 2026

Training
Blue team
Level Beginner
Written lesson · companion lab coming

Most security training teaches you how to find trouble. This lesson is about what you do once trouble finds you. The incident response lifecycle is the repeatable set of beats a team runs from the first odd alert to the final write-up — so decisions get made on evidence instead of adrenaline.

StashGrid collects detection tools the way other people collect open browser tabs. Plenty of ways to spot the fire. This is the one about what you do when it is actually lit. — Nyx

Why it matters: tools tell you something happened. The lifecycle is how you turn that into a contained, understood, recovered-from incident — and it is the part our labs have been quietest about. Learn these six beats and every real incident becomes a variation on one song. Honest note: this is a written lesson, not a hands-on lab yet — the companion self-scoring tabletop lab is next. Spot something wrong? Tell us.

The six beats

Names vary by framework, but the beats do not: Prepare, Identify, Contain, Eradicate, Recover, Lessons. The first one happens before anything is on fire; the last one is what stops you fighting the same fire twice.

1. Prepare — the boring work that decides everything

Almost every incident goes well or badly based on decisions made months earlier. Before an alert ever fires, you want clear answers to: who is actually allowed to pull a system offline or disable an account at 2am? Where is the inventory that says which assets exist, who owns them, and how critical they are? Which logs — identity, endpoint, DNS, firewall, cloud, email — actually reach your SIEM, and how long are they kept? Who do you call: legal, privacy, HR, comms, key vendors? And are your backups immutable and tested, not just scheduled? If those are vague now, they will be vague when it counts.

2. Identify — spot it, then call it

Identification is two moves, not one. First you detect the earliest observable signal. Then someone has to declare it an incident — a named decision that starts the clock and the response. Teams lose hours in the gap between “huh, that is weird” and “this is an incident, go.” Part of identifying is scoping: what is affected, what is merely suspected, and what you genuinely cannot see yet.

3. Contain — stop the spread without burning the evidence

Containment buys time. The trap is doing it so aggressively that you destroy the evidence you will need later, or break a business function you did not have to. Good containment is reversible and recorded. And it is not done until it is proven: if you cut off an attacker’s access but the malicious activity keeps going, containment failed — hunt for the alternate session, token, or path you missed.

4. Eradicate — pull every key, not just the first one

Eradication is removing the attacker’s ways back in. The rookie version deletes the one obvious malware file. The real version assumes the attacker made copies of the keys: stolen credentials, active session cookies, API tokens, new service accounts, scheduled tasks, mail rules, added SSH keys. You rotate secrets, kill sessions, and remove persistence — everywhere, not just where you first looked.

5. Recover — back to known-good, and prove it works

Recovery is restoring service from something you trust — a known-good image or backup — and then validating that the business actually works again, while watching closely for the attacker trying to walk back in. Restoring from a backup that was taken after the compromise just reinstalls the problem, which is why “known-good” is the whole phrase.

6. Lessons — the question that actually improves things

The closing beat is not a blame meeting. The useful questions are: which assumption failed first? What piece of evidence changed the decision? What could the team not see — and what one fix would most reduce the chance or the impact next time? Write it down with a residual-risk note for anything you could not fully resolve. That note is what makes the next incident shorter.

The clock: four numbers worth knowing

Response gets measured, and these four show up on job descriptions and on the Security+ / CySA+ exams:

  • MTTD — mean time to detect: from the earliest compromise to noticing. If the start is unknown, report it as a bounded unknown, not a guess.
  • MTTA — mean time to acknowledge: from the alert to a human owning it.
  • MTTC — mean time to contain: from declaration to the spread being stopped (and proven).
  • MTTR — mean time to recover: back to validated normal operation.

Shrinking the gaps between these is most of what a SOC is actually optimising.

Where you practise this

The lifecycle is a thinking tool; you build the muscle in a lab. Generate safe, realistic activity and watch whether your detections fire:

Interview quick-fire

  • Q: Walk me through the incident response lifecycle. A: Prepare, Identify, Contain, Eradicate, Recover, Lessons — and why Prepare and Lessons are the two people skip.
  • Q: You contained the host but activity continues. What now? A: Treat containment as unproven; hunt for an alternate session, token, or access path, and verify effective state rather than assuming.
  • Q: Why not just restore from last night’s backup? A: It has to be known-good — a backup taken after the compromise can reinstall the attacker.
  • Q: What is MTTD, and what if you do not know when it started? A: Mean time to detect; if the start is unknown, report a bounded unknown instead of substituting a number.

Takeaway in one line: tools tell you what is; the lifecycle tells you what to do. Learn the six beats and you can run the room. — Nova