Skip to content

Lesson 6 of 9 · 20m

Containment Decisions: Isolate Fast, but Not Blind

When to isolate a host, disable an account, block an indicator, or watch carefully — and how to avoid tipping off or breaking the business unnecessarily.

Containment is where detection becomes operational risk. Isolate too late and the attacker moves. Isolate blindly and you can destroy evidence, interrupt production, or teach the adversary exactly what you saw. The right answer is rarely "always nuke it"; it is a decision framework used quickly.

Match the action to the confidence and the blast radius

Use a matrix in your head:

  • High confidence, high spread risk: isolate host, revoke sessions, disable credentials.
  • High confidence, low spread risk: contain surgically and preserve evidence.
  • Low confidence, high consequence: increase monitoring, capture evidence, prepare containment.
  • Low confidence, low consequence: tune and close.

Confidence is not a gut adjective. It comes from evidence: execution chain, credential use, command-and-control behavior, second-stage confirmation, or corroborating telemetry.

Know what each action actually does

"Isolate the host" sounds simple until you ask through what control:

# Microsoft Defender for Endpoint example via Graph API
POST https://graph.microsoft.com/v1.0/security/machines/{id}/isolate
{
  "Comment": "IR-2026-118 suspected credential theft",
  "IsolationType": "Full"
}
# Firewall emergency block
sudo nft add rule inet filter output ip daddr 45.155.204.117 drop comment IR-2026-118

Different controls have different evidence effects. Full EDR isolation may preserve the machine but cut your remote acquisition path. Powering off destroys memory. Reimaging before capture eliminates volatile artifacts. Decide whether the priority is stopping spread, preserving evidence, or restoring service — ideally in that order, but say it explicitly.

Identity containment is usually urgent

A compromised identity often matters more than a compromised endpoint. Revoke refresh tokens and sessions, not just passwords:

Revoke-MgUserSignInSession -UserId 9a7d...
Update-MgUser -UserId 9a7d... -AccountEnabled:$false

Exact implementation varies by identity provider, but the principle does not: password reset alone can leave valid tokens alive for hours.

Do not advertise your visibility

Blocking every domain the moment you see it can tell the attacker you are watching. Sometimes that is acceptable because spread risk dominates. Sometimes a short monitoring window reveals additional infrastructure, credentials, or affected hosts. The decision belongs to the incident commander, not whichever analyst happens to be fastest in the firewall console.

Pre-authorize the boring parts

During incidents nobody wants to ask legal whether host isolation is allowed. Get standing authority for standard actions: isolate user workstations, disable obviously compromised accounts, block malicious infrastructure. Document anything outside those rails.

Field notes

  • Capture volatile evidence before irreversible actions when time and risk permit.
  • Record who approved containment, when, and what evidence supported it.
  • Test isolation paths before incidents; "the EDR console is down" is a bad discovery at 03:00.
  • Reverting containment is part of containment — define what proves a host is safe to reconnect.

Was this lesson helpful?

Sign in to rate