Containment
Cheat sheet · https://pcornel.dk/topic.php?topic=4967
Answer
Containment limits ongoing harm or adversary freedom of action while preserving enough evidence and service context to continue analysis; actions may isolate systems, disable sessions, restrict network paths, block indicators or apply temporary compensating controls.
Remember
- Contained ≠ eradicated; access, persistence, credentials or root cause may remain.
- Host isolated ≠ incident contained when identities, cloud sessions, management planes or other footholds remain active.
- Response action ≠ evidence of success; every containment, eradication and recovery change needs an observed result and a rollback or next-step decision.
- Absence of evidence ≠ evidence of absence unless telemetry coverage, retention, query scope and the relevant time window are independently proven.
First checks
- EDR host isolation — containment action
Disable-ADAccount <u>— disable compromised account- Firewall block for C2 — network containment
Verify in this order
scope → containment actions → spread stopped
Where it usually breaks
First mismatch in signal/report → evidence preservation → scoping/analysis → containment → eradication → recovery → validation/lessons learned; preserve identity/policy/pre-state before mutation.
Incident Response → Containment evidence map
| Boundary | Establish | Does not establish |
|---|---|---|
| Signal / declaration | Why activity met incident criteria and who owns response | Final scope, root cause or impact |
| Analysis / evidence | Supported facts, hypotheses, timeline and confidence | Complete visibility or deterministic attribution |
| Containment / eradication | Specific malicious capability or enabling condition was restricted/removed | All footholds, persistence or stolen data are gone |
| Recovery | Service and controls pass defined tests in restored state | Future safety or trust outside tested scope |
| Closure | Evidence, decisions, verification and corrective actions are recorded | Lessons are effective before corrective actions are implemented and retested |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4967