Containment
Strategies
Learn how security teams isolate threats, reset credentials, and stop lateral movement to limit damage during a cyber incident.
What Is Containment?
When a security breach occurs, the first instinct might be to eliminate the threat entirely. But before eradication, teams must contain the incident: prevent it from spreading to other systems, users, or data while preserving evidence for investigation.
Why Containment Matters
The Incident Response Lifecycle
Containment sits at the centre of the NIST incident response lifecycle. It bridges detection (we know something is wrong) and eradication (we remove the threat). Without effective containment, eradication becomes a moving target.
Core Containment Strategies
The three primary containment approaches are network isolation, credential reset, and system shutdown. Each targets a different attack vector.
Network Isolation Explained
Network isolation prevents a compromised system from communicating with the rest of the network. The goal is to cut off lateral movement while keeping the system powered on for forensic analysis.
Credential Reset Explained
If an attacker has stolen or compromised credentials, isolating the network alone will not stop them. Credential reset invalidates stolen authentication tokens and forces re-authentication with new secrets.
Isolation vs. Credential Reset
| Network Isolation | Credential Reset | |
|---|---|---|
| Primary target | Compromised hosts | Compromised accounts |
| What it stops | Lateral movement, C2 callbacks | Unauthorised access, privilege escalation |
| Speed | Seconds (switch/firewall change) | Minutes (may require directory sync) |
| Side effects | Legitimate services on that host go offline | Users locked out until they reset |
| Evidence impact | Preserves host for forensics | Does not affect host evidence |
| Best used when | Malware or active exploit detected | Phishing, stolen credentials, insider threat |
Short-Term vs. Long-Term
Containment Checklist
Example: Ransomware on a Workstation
Example: Phishing and Credential Theft
Example: Advanced Persistent Threat
An APT actor has been inside the network for weeks, moving laterally across multiple servers. Simple isolation of one host won't suffice: the attacker has footholds on several machines and may have created backdoor accounts.
Additional Techniques
Common Mistakes
Strategy Summary
| Strategy | When to Use | Caution |
|---|---|---|
| VLAN Isolation | Active malware, lateral movement | Services on host go offline |
| Firewall Block | Known attacker IPs, C2 traffic | May block legitimate traffic too |
| Password Reset | Stolen credentials, phishing | User disruption, helpdesk load |
| Token Revocation | Compromised sessions, API abuse | Active workflows interrupted |
| DNS Sinkhole | Malware C2 domains identified | Does not stop IP-based C2 |
| System Shutdown | Last resort: destructive attack in progress | Volatile evidence lost forever |
Question 1 of 5
What is the primary goal of the containment phase in incident response?
Question 2 of 5
A workstation is actively encrypting files with ransomware. Which containment action should be performed first?
Question 3 of 5
After a phishing attack compromises an employee's credentials, which combination of actions best contains the threat?
Question 4 of 5
Why is shutting down a compromised system considered a last-resort containment action?
Question 5 of 5
Analyst A: "We've detected an APT actor with footholds on three servers. We should isolate only those three servers and reset their local admin passwords. That should stop the attacker."
Analyst B: "Isolating three servers isn't enough. The attacker likely has domain-level credentials. We need to segment the entire network, reset ALL privileged accounts across Active Directory, revoke Kerberos tickets, and deploy EDR on every endpoint."
Which analyst's approach is more appropriate for containing an APT, and why?