beginner

Incident Response Fundamentals

What to do when something goes wrong: the incident response lifecycle (prepare, detect and analyse, contain, eradicate, recover, learn), roles and communication, evidence handling and digital forensics basics, ransomware and account-compromise playbooks, severity levels, and blameless post-incident reviews.

50 min

Every organisation will have an incident

Prevention and detection reduce incidents but never eliminate them. What separates a contained problem from a company-ending crisis is how well and how fast you respond. People who have never practised respond badly: they panic, delete evidence, tell the wrong people, or make costly decisions without facts. Incident response (IR) is the structured approach to handling a security incident so that damage is limited, recovery is fast and the organisation learns.

Definitions

  • An event is any observable occurrence (a login, a firewall block).
  • An incident is an event (or series) that violates or threatens security policy or causes harm: ransomware, a compromised account, a data leak, a DDoS, insider misuse, a lost laptop with data.
  • A breach is an incident where data was accessed or disclosed without authorisation. Many incidents are not breaches, but a breach usually carries legal and notification duties.

The lifecycle

NIST’s incident handling guidance (SP 800-61) and similar frameworks describe a cycle:

graph LR P[1. Preparation] --> D[2. Detection and analysis] D --> C[3. Containment] C --> E[4. Eradication] E --> R[5. Recovery] R --> L[6. Lessons learned] L --> P

1. Preparation

Most of the success is decided before the incident:

  • An approved incident response plan and policy: what counts as an incident, who can declare one, who leads.
  • A named incident response team (CSIRT) with roles and deputies, and contact lists (including out-of-hours numbers, legal counsel, the cyber-insurance hotline, regulators, law enforcement, key suppliers, PR).
  • Tooling and access: central logs, EDR, the ability to isolate machines, forensic imaging tools, a clean investigation workstation, a secure communication channel that does not depend on the compromised systems.
  • Playbooks for common scenarios (below).
  • Backups and recovery procedures that have been tested.
  • Training and exercises: tabletop discussions and technical drills a few times a year.
  • Visibility: you can only respond to what you can see (the logging lesson).

2. Detection and analysis

Incidents are found through alerts (SIEM, EDR, IDS), user reports (“I clicked a link”), supplier or law-enforcement notices, or unusual behaviour.

  1. Validate: is it real? Many alerts are false positives. Gather the first evidence quickly.
  2. Scope: which systems, accounts and data are involved? Is it still active? What is the earliest sign?
  3. Classify and prioritise with a severity scale, for example:
Severity Description Example Response
Low Minor, contained, no sensitive data A single endpoint adware infection Handle in normal operations
Medium Limited impact, possible spread Compromised user account with no admin rights Same-day response by IR team
High Significant impact or sensitive data at risk Malware on a server, confirmed data exfiltration Immediate response, management informed
Critical Business-threatening Ransomware across the network, compromised identity provider All hands, executives and legal engaged, crisis management
  1. Record everything: a running incident log of times, observations, decisions and who did what.
  2. Build a timeline and form hypotheses: initial access, what the attacker did next, what they reached. Use the ATT&CK matrix to describe behaviours.

3. Containment

Stop the damage from growing without destroying evidence.

  • Short-term containment: isolate affected hosts (EDR network isolation, VLAN quarantine, unplug), disable or reset compromised accounts, revoke tokens and sessions, block malicious addresses and domains, take an infected service offline.
  • Preserve evidence before changing things where possible: memory capture for running malware, disk images, copies of logs, snapshots of cloud instances.
  • Long-term containment: temporary fixes that let the business run while you prepare eradication (segmentation, extra monitoring, restricted access).
  • Decide with the business: containment can cause downtime (taking the payment system offline). Make the trade-off explicit and agreed.
  • Beware tipping off a sophisticated attacker before you are ready to remove them everywhere. In serious intrusions, containment is often done in a coordinated action.

4. Eradication

Remove the cause and all footholds:

  • Delete malware and persistence (scheduled tasks, services, registry run keys, web shells, rogue accounts and keys).
  • Fix the vulnerability that allowed entry (patch, close the exposed service, correct the misconfiguration).
  • Reset credentials broadly if there was credential theft: passwords, API keys, certificates, service accounts, Kerberos krbtgt in a domain compromise.
  • Rebuild from known-good images rather than “cleaning” systems you cannot trust.
  • Hunt for the attacker elsewhere (other hosts with the same indicators).

5. Recovery

  • Restore systems from clean backups or rebuilds, and verify integrity before reconnecting.
  • Return services in a planned order (critical first), with heightened monitoring for signs the attacker returns.
  • Validate that business processes work and data is correct.
  • Declare the incident closed only when the threat is removed and services are stable.

6. Lessons learned (post-incident review)

Within about two weeks hold a blameless review: what happened, the timeline, what worked, what did not, root cause, and concrete actions with owners and dates. Update playbooks, detections and controls. Share a summary with leadership. This is how the organisation actually gets stronger.

Roles

Role Responsibility
Incident commander / manager Leads the response, makes decisions, coordinates, owns the timeline
Technical leads / analysts Investigate, contain, eradicate, recover
Communications Internal updates, customers, media, regulators (one voice)
Legal and compliance Privilege, regulatory duties, contracts, law enforcement
HR Insider cases
Business owners Impact decisions, priorities
Scribe Keeps the incident log
Executive sponsor Authority and resources

In small organisations people wear several hats, but name the roles in advance. Use a dedicated war room (a chat channel or bridge) and short, regular status updates with a fixed format.

Evidence and digital forensics basics

Forensics is the careful collection and analysis of digital evidence. Even if you never go to court, good habits make your findings reliable.

  • Order of volatility: collect the most fleeting data first: CPU and memory contents, running processes, network connections, then disk, then logs and backups.
  • Work on copies: make a forensic image of a disk (a bit-for-bit copy, verified with a hash such as SHA-256) and analyse the copy, not the original. Use write blockers for physical media.
  • Chain of custody: record who collected each item, when, how it was stored, and every transfer. Without it, evidence may be inadmissible.
  • Hash everything so you can show it was not altered.
  • Document commands and tools used.
  • Know your limits: serious or legally sensitive cases need qualified forensic specialists. A well-meant cleanup by an amateur can destroy the evidence you need.
  • Time: note time zones and clock offsets of every source.

Common artefacts: authentication logs, EDR and process-creation events, web and proxy logs, DNS, email headers, browser history, registry and prefetch (Windows), shell history and cron entries (Linux), cloud audit logs, memory dumps.

Playbooks for common incidents

A playbook is a checklist of steps tailored to a scenario, so responders do not improvise under stress.

Compromised account (phishing)

  1. Confirm: unusual sign-ins, mail rules, MFA changes.
  2. Contain: reset the password, revoke sessions and tokens, require MFA re-registration, disable the account if needed.
  3. Investigate: sign-in logs (location, device, application), inbox rules and forwarding, sent mail, files accessed, OAuth consents granted.
  4. Scope: other recipients of the phishing email, other accounts used from the same IP, internal phishing sent from the account.
  5. Remove the email from all mailboxes, block the sender and URLs.
  6. Recover and notify affected users, and consider data-breach duties if sensitive data was accessed.
  7. Improve: phishing-resistant MFA, conditional access, training.

Ransomware

  1. Isolate affected machines immediately (network isolation), and protect backups (disconnect and verify they are intact). Do not shut down machines unless advised; memory may hold the encryption keys.
  2. Declare a critical incident, assemble the team, involve legal and insurers early.
  3. Identify the strain, the scope and the entry point; check whether data was stolen (double extortion).
  4. Contain lateral movement: disable compromised accounts, block command-and-control traffic, segment.
  5. Decide on any contact with the attacker with legal, insurance and law-enforcement advice. Paying is not guaranteed to work and may be restricted.
  6. Eradicate and rebuild from clean images; restore data from tested backups; reset credentials (especially domain admin).
  7. Notify regulators and affected parties as required.
  8. Review and fix the cause (remote-access MFA, patching, backup immutability).

Data leak or suspected breach

  1. Establish what data, how many people, what sensitivity, and whether it is still exposed (a public bucket: close it now).
  2. Preserve logs showing who accessed what.
  3. Involve legal and the data-protection officer to assess notification duties.
  4. Notify authorities and individuals within the required time, with accurate, plain-language information (see the data protection lesson).

Lost or stolen device

Check whether it was encrypted and managed; remotely lock or wipe; revoke its tokens and certificates; assess what data it held; report to police and, if personal data was at risk and unencrypted, assess notification.

DDoS

Confirm it is an attack and not a traffic surge, engage the upstream provider or a scrubbing service, enable rate limiting and CDN protection, communicate status, and review capacity and architecture.

Communication

  • Internal: regular, factual updates to leadership and affected teams. Do not speculate.
  • External: customers, partners, regulators and media get accurate, approved statements. Decide in advance who may speak.
  • Legal duties: many laws require notifying regulators (and sometimes individuals) within a set time after becoming aware of a personal-data breach, often 72 hours (for example under the GDPR and the Nigeria Data Protection Act 2023, which creates duties to notify the Nigeria Data Protection Commission). Contracts and sector regulators can add their own rules. Take legal advice for the exact requirements.
  • Use an out-of-band channel if email or chat may be compromised, and be careful about what you write in writing before facts are clear.

Practise

  • Tabletop exercises: a facilitator walks the team through a scenario (“it is 2 a.m. and the file server is encrypting”) and they talk through decisions. Cheap, and excellent at exposing gaps in contacts, authority and playbooks.
  • Technical drills: practise isolating a machine, restoring from backup, revoking credentials, imaging a disk.
  • Red/purple team exercises: simulate real attackers to test detection and response.
  • Measure time to detect, contain and recover, and improve each exercise.
You find that a server has a web shell uploaded through a vulnerable web application. The team wants to delete the file and restart the service. What should you do before and beyond that?

Preserve evidence first (copy the web shell, web and system logs, and consider a snapshot or memory capture), then contain (restrict access, block the attacker’s addresses). Look for other persistence and for what the attacker did with the access (data accessed, credentials on the host, movement to other systems). Eradicate properly by patching the vulnerable application, rebuilding or verifying the server from a clean image, and resetting any credentials stored on it. Finish with monitoring and a review. Deleting one file leaves the root cause and other footholds in place.

Can You Explain It?

Close the lesson and answer these without looking back. The goal isn't the wording — it's whether you've formed a usable mental model.

  • Name the phases of the incident response lifecycle and give one key action for each.
  • Explain the difference between containment and eradication, and why evidence preservation matters.
  • What should a tabletop exercise reveal, and who should take part?

🧪 Want to practise this on your own computer? See how to set up your lab →

🤖

Need clarification? Ask GT

Hi, I'm GT — your AI tutor for Incident Response Fundamentals. What would you like to know?
📝

Knowledge Check

1 of 4

What is the correct order of the main incident response phases?

Report a problem

About: /lessons/incident-response-fundamentals