Pcornel
Security · Incident Response

Containment

Cheat sheet · https://pcornel.dk/topic.php?topic=4967

Back to the Topic

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

BoundaryEstablishDoes not establish
Signal / declarationWhy activity met incident criteria and who owns responseFinal scope, root cause or impact
Analysis / evidenceSupported facts, hypotheses, timeline and confidenceComplete visibility or deterministic attribution
Containment / eradicationSpecific malicious capability or enabling condition was restricted/removedAll footholds, persistence or stolen data are gone
RecoveryService and controls pass defined tests in restored stateFuture safety or trust outside tested scope
ClosureEvidence, decisions, verification and corrective actions are recordedLessons 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

Confirmation

Confirm action

Continue?