Lesson 18: Incident Response: Detect, Contain, Recover, Learn
Sooner or later, something will go wrong: an account will be taken over, a device will be infected, or a school system will be breached, and what happens next matters as much as what happened before. Incident response is the planned, calm way of handling a security incident, and it has four phases: detect, contain, recover and learn. It is a team skill as much as a technical one, because an incident handled badly, with panic, secrecy or blame, causes more harm than the incident itself, while an incident handled well limits the damage and makes the next one less likely. This lesson walks through the four phases, so that you know what to do, and what not to do, when something goes wrong.
Detect: noticing something is wrong
Detection is noticing an incident, and it is harder than it sounds, because attacks often look ordinary at first. The signs include a login from a place you have never been, a password that suddenly stops working, files that change without explanation, a computer that behaves strangely, or a message from a friend saying they received something odd from you. Detection also comes from systems: a school's security tools may flag unusual activity, and a service may email you about a new sign-in. The habit to build is to treat small anomalies seriously: check them, do not dismiss them, and report them quickly, because an attack caught in the first hour is far cheaper than one discovered a month later, and the person who reports a problem is helping, not causing trouble.
Contain: stop it getting worse
Containment means stopping the incident from spreading, and speed matters more than elegance. For a compromised account, containment is changing the password and turning on MFA, and checking whether the attacker changed the recovery email or set up forwarding. For an infected device, it is disconnecting it from the network and not using it for important accounts. For a school system, it is the IT team's job to isolate the affected computers and block the attacker's access, and your job is to follow their instructions and not to interfere, such as by deleting files or trying to investigate on your own, which can destroy evidence. A useful rule is to write down what you did and when, because a clear record helps the people fixing the problem, and because memory under stress is unreliable.
Recover: getting back to normal safely
Recovery is restoring things to a safe, working state, and the key word is safely: restoring from a backup that is itself infected just brings the problem back. For an account, recovery means checking every setting the attacker could have changed, such as the recovery email, the forwarding rules, and any connected apps, and removing anything unfamiliar, then changing the passwords of any accounts that shared the compromised one. For a device, it means scanning it, and if the infection is serious, reinstalling the operating system from a clean source, which is slower but certain. For a school, recovery is planned by the IT team and may take days, and it is better to wait for a clean recovery than to rush back to a system that is still compromised, because a second incident is worse than a slow recovery.
Learn: the phase most people skip
The final phase is learning, and it is the one most people skip, which is why the same incidents keep happening. After an incident, ask what happened, how the attacker got in, what detected it, what worked, what did not, and what will change so it does not happen again. Write the answers down, share them with the people who need to know, and change one thing as a result, such as turning on MFA, fixing a setting, or adding a backup, because a lesson that changes nothing is not a lesson. Blame has no place in this phase: the goal is to fix the system, not to punish the person, because a culture where people hide mistakes is a culture where incidents are discovered late and repeated often. The organisations that handle security best are the ones that treat incidents as something to learn from, openly and without blame.
Key Terms
- Incident
- A security event, such as a compromised account, an infection, or a breach.
- Incident response
- The planned way of handling an incident: detect, contain, recover and learn.
- Detection
- Noticing that an incident has happened, from signs, alerts or reports.
- Containment
- Stopping an incident from spreading, such as by changing a password or disconnecting a device.
- Recovery
- Restoring things to a safe, working state, such as from a clean backup.
- Blameless review
- Learning from an incident by fixing the system, not punishing the person who reported it.
Discussion Questions
- Why is it better to report a small anomaly quickly than to wait until you are sure something is wrong?
- During containment, why should you not delete files or investigate on your own?
- Why does blame make security worse, not better?
Practice Questions
- What are the four phases of incident response?
- What is containment for a compromised account?
- Why must recovery use a clean backup?
- Why should you write down what you did during an incident?
- What is the point of the learn phase?
Show answers
- Detect, contain, recover and learn. Notice the incident, stop it spreading, restore things safely, and change something so it does not happen again.
- Changing the password, turning on MFA, and checking for changes the attacker made. That stops the attacker keeping control of the account.
- Because restoring from an infected backup brings the problem back. Recovery is only safe when the source is known to be clean.
- Because a clear record helps the people fixing the problem, and memory under stress is unreliable. It also shows what worked and what did not.
- To change something so the incident does not happen again. A lesson that changes nothing is not a lesson, and the same incident will repeat.