Skip to content

Lesson 11 of 14 · 12m

Contain or Observe: The First-Hour Call

Isolation loses volatile evidence and delay spreads damage — the decision matrix is threat-type first, evidence second.

You've confirmed badness on a host. The next decision is the one juniors freeze on: isolate now, or collect volatile state first. Both instincts are defensible and both have a failure mode that costs real incidents. The decision is threat-type first, evidence second — and the order of volatility is the framework that keeps it honest.

The order of volatility

RFC 3227's evidence order runs from most fragile to most durable: registers and cache → running memory → disk state → logs and backups. RAM evaporates on shutdown; Mimikatz credentials, in-memory payloads, and live connection state live there. Disk survives a reboot. This is why "pull the plug" destroys evidence and why "reimage immediately" can cost you the story. But volatility argues both ways: the attacker in memory changes state while you watch — encryption spreads, exfiltrated bytes leave, new persistence lands.

The decision matrix

Isolate now — no collection first:

  • Ransomware indicators: vssadmin delete shadows /all, bcdedit /set {default} recoveryenabled no, wbadmin delete catalog -quiet (T1490 — inhibit system recovery), ransom notes, mass-renamed files. Encryption speed makes every minute of delay expensive; the volatile-evidence trade is a bad trade. MGM's September 2023 outage — about $100M and an 8-K disclosure — is what un-contained ransomware costs at enterprise scale.
  • Active lateral movement in progress: the host is currently producing 4624 type-3/10 events or 4648s against other machines.
  • Confirmed exfil in flight: large outbound transfers right now, per conn.log/sc-bytes/SRUM.

Collect volatile first, then isolate:

  • Stealthy single-host compromise — an infostealer or implant on one workstation with no observed spread — where the memory capture (running processes, netstat -ano, live sessions, injected code) will define what to hunt fleet-wide. The capture answers the scope question; isolating blind leaves it open.
  • Anything where the host's RAM is the only place the payload exists (fileless) — kill the host and the artifact is gone forever.

Observe (rare, deliberate): honeypot/deception hosts, or a sanctioned red-team op. Observe is a decision with a name and a ticket, not a default.

How isolation actually works

EDR isolation — Defender's Isolate device, CrowdStrike's Network Contain, SentinelOne's Network Quarantine — cuts the host's network while keeping sensor reach: you can still pull the file list, run live-response commands, and collect memory through the console. That's the modern answer to the old dilemma: isolate the wire, keep the telemetry. Physical unplug or switch-port shutdown is the fallback when EDR reach is gone — or when you don't trust the endpoint to enforce its own isolation, which is exactly the situation BYOVD and WFP-based egress filtering create.

What to collect before the kill

When threat type says collect first, the fast set: running process list with parents (Sysmon EID 1 or Get-Process), netstat -ano mapped to PIDs, logon sessions, autostart entries (Run keys, services, scheduled tasks), and a memory image if tooling allows — winpmem, Magnet RAM Capture, DumpIt, or the EDR's live-response get/memory commands. Then the durable disk artifacts that survive reboot anyway: Prefetch .pf files, $MFT and USN journal, AmCache/ShimCache, and SRUM — the System Resource Usage Monitor that records per-process network bytes, which answers "did it exfiltrate" even after the process is gone.

The wrong mental models

"Always pull memory first" — ransomware encrypts while you image; the evidence you're preserving is a crime scene that's actively burning. "Always yank the plug" — you lose the in-memory implant, tip the actor that they're burned (watch the C2 pivot), and on a stealthy single-host case you traded the scope answer for a fast close. And the silent failure: reimaging without artifacts — the host is clean and you never learned how it happened, so the vector stays open for next Tuesday.

The practice

Make the call in this order: what is it doing right now (encrypt/exfil/lateral = isolate) versus what will I lose by isolating (the only copy of the payload). Log the decision and its time in the ticket — "isolated via EDR at 14:32 UTC, memory collected via live response at 14:35" — because the containment timeline is the first thing the incident review reads.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.