Ransomware Containment: Why You Unplug Instead of Power Off
The containment decision in a ransomware incident comes down to one fork: do you disconnect the machine from the network or shut it down?
If you're in IT operations or sysadmin, you probably already know the answer. But the person making this call at 2 AM on a Saturday probably isn't you. Sophos looked at 661 ransomware cases between November 2024 and October 2025 and found 88% of payloads deployed outside business hours. So the containment decision often falls on whoever's closest to the equipment when the alert fires.
What lives in memory that doesn't survive shutdown
When you power off a machine, you lose volatile data:
The running payload and its parent process tree
Network connections showing lateral movement in progress
Credentials cached in LSASS (useful for scoping which accounts are compromised)
Clipboard contents, which sometimes contain attacker commands
Timestamps that tell the forensics team when initial access happened versus when encryption started
That gap between initial access and encryption is critical. Attackers often sit in an environment for days or weeks before deploying the payload. Memory artifacts help reconstruct that timeline. Disk forensics can recover some of it, but it's slower, more expensive, and less complete.
What network disconnection preserves
Pulling the Ethernet cable or disabling the switch port does two things. It stops the machine from reaching other systems on the network, which halts lateral encryption. And it keeps the machine powered on, so volatile memory stays intact for capture.
If you're running VMs, snapshot them before isolating. The snapshot catches memory state. For cloud instances (Azure, AWS), you can snapshot the volume and the memory state together on most instance types.
When shutdown is the right call
There's one scenario where shutdown wins: active encryption where you can't physically reach the network cable or the switch port. If files are being encrypted in real time and the only way to stop it is a hard power-off, that's the trade. You lose memory evidence, but you save whatever files haven't been encrypted yet.
That's a judgment call made in seconds. It's why the decision tree needs to be pre-written.
What not to touch after containment
Once you've isolated the machine, don't:
Reboot it (wipes memory, same as shutdown)
Log into it with a domain admin account (the attacker may be keylogging)
Delete the ransom note (it identifies the strain, which tells the forensics team whether decryptors exist)
Reset passwords yet (not until the environment is confirmed clean, or you're just feeding the attacker new credentials)
Do:
Photograph the ransom note and the screen
Note the encrypted file extensions (they help identify the ransomware family)
Check whether backups are still syncing to the infected machine and pause them if so
Preserve Windows Security logs and firewall logs before they rotate
Precursor malware worth checking for
Before ransomware deploys, the attacker usually had initial access through something else. Common precursors include Bumblebee, Dridex, Emotet, QakBot, and Anchor. If your SIEM or EDR has alerts for any of these in the last 30 days, that's your probable entry point.
The forensics firm will dig into this, but knowing the precursor before they arrive speeds the engagement.
The boring part that matters
None of this is new. The CISA #StopRansomware Guide covers containment and preservation. The FBI wants a report at ic3.gov. CISA takes reports at cisa.gov/report.
The piece that actually fails isn't technical knowledge. It's that the person closest to the equipment at 2 AM doesn't have a decision tree. They freeze, power off because it feels decisive, and lose the evidence.
Print the decision tree. Tape it to the wall. That's the fix.