Break-Glass Enterprise Ransomware Containment & Forest Isolation Procedure
Before you begin
- Applies to:Emergency enterprise response to confirmed widespread ransomware or lateral credential abuse.
- Where to start:Activate the organizationβs emergency response process through the authorized incident lead before isolating systems.
- What you need:Have an incident record, documented activation authority, an independent communication channel, and access to the approved containment controls.
Guide tools
Scope, Activation Authority & Escalation Criteria
This emergency runbook outlines the immediate, drastic containment actions required when active, widespread ransomware execution, lateral credential abuse, or mass volume shadow copy deletion is confirmed within the enterprise.
Immediate Activation Criteria:
Execution of this procedure is authorized IMMEDIATELY without awaiting Change Advisory Board approval upon confirmation of ANY of the following triggers:
- Two or more servers report encrypted files or ransom notes (e.g.,
.locked,README_DECRYPT.txt). - Detection of unauthorized mass domain-wide commands executing
vssadmin delete shadows /all /quietorwbadmin delete catalog. - Simultaneous unauthorized administrative logins detected across all Tier-0 Domain Controllers.
Containment Sequence Matrix
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β PHASE 1: NETWORK AIR-GAP (Minutes 0 - 5) β β - Drop Perimeter Firewall WAN Uplinks β β - Sever Core Switch Inter-VLAN Routing & Trunks β βββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ βΌ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β PHASE 2: STORAGE QUENCH & IMMUTABILITY (Mins 5 - 10) β β - Set ZFS / SAN Datasets to READ-ONLY β β - Disconnect Hypervisor iSCSI / NFS Mounts β βββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ βΌ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β PHASE 3: IDENTITY & KERBEROS FREEZE (Mins 10 - 20) β β - Reset KRBTGT Password TWICE (Invalidate all TGTs) β β - Sever Entra ID Sync & Revoke Refresh Tokens β βββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ βΌ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β PHASE 4: CLEAN-ROOM RESTORATION (Mins 20+) β β - Spin up Isolated Clean-Room Recovery Network β β - Restore from Immutable Backups (SOP-SYS-062) β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββPhase 1: Immediate Network Air-Gap (Minutes 0 β 5)
Sever external command-and-control communication and prevent lateral infection spread across VLANs.
Drop All Firewall WAN Interfaces
Air-GapExecute on perimeter firewalls to instantly cut inbound/outbound Internet connectivity, severing actor C2 control and preventing ongoing data exfiltration.
# FortiGate CLI:config system interface edit "wan1" set status down next edit "wan2" set status down nextend
# pfSense / OPNsense Console:# Select Option 2 (Set interface IP address) or pull physical WAN patch cables.Sever Inter-VLAN Core Routing
Switch Air-GapAccess the core switch via dedicated Out-Of-Band (OOB) console or physical serial and administratively shut down all internal VLAN interfaces (except OOB management).
core-switch# configure terminal! Shut down inter-VLAN routing interfaces immediatelyinterface vlan 20 shutdowninterface vlan 30 shutdowninterface vlan 40 shutdowninterface vlan 50 shutdown! DO NOT shut down Out-Of-Band Management VLAN 99endPhase 2: Storage Quench & Immutability Lock (Minutes 5 β 10)
Force ZFS Datasets to Read-Only
Storage QuenchAccess the storage controller directly and enforce read-only properties across all production storage pools to immediately prevent active payload file encryption.
# Set root storage pool to read-only immediatelyzfs set readonly=on tank-fast-vmszfs set readonly=on tank-backup
# Verify write-lock statuszfs get readonly tank-fast-vmsSever Hypervisor Shared Datastores
Hypervisor DetachOn VMware ESXi and Proxmox VE nodes, unmount or disable network datastores to cut off malicious guest virtual machine disk I/O.
# On Proxmox:pvesm set ceph-vm-pool --disable 1pvesm set tank-iscsi --disable 1
# On VMware ESXi:# esxcli storage filesystem unmount -u <Volume-UUID>Phase 3: Identity & Kerberos Forest Freeze (Minutes 10 β 20)
Reset the krbtgt Account Password TWICE
Golden Ticket PurgeExecute on the PDC Emulator Domain Controller. Resetting the password once invalidates active Ticket Granting Tickets (TGTs); resetting a second time clears password history, invalidating all Kerberos Golden Tickets.
# Reset 1: Invalidates currently issued TGTsSet-ADAccountPassword -Identity krbtgt -NewPassword (ConvertTo-SecureString -AsPlainText "TempBreakGlassPwd!2026#Alpha" -Force) -Reset
# Replicate to partner DCsrepadmin /syncall /AdeP
# Reset 2: Invalidates previous password hash, destroying forged Golden TicketsSet-ADAccountPassword -Identity krbtgt -NewPassword (ConvertTo-SecureString -AsPlainText "TempBreakGlassPwd!2026#Beta" -Force) -Resetrepadmin /syncall /AdePRevoke Active Directory Federation & Entra ID Sync
Cloud IsolationStop and disable directory synchronization services to prevent corrupted credentials, compromised objects, or ransomware encryption from propagating to Microsoft 365.
# Stop Entra Connect Sync ServiceStop-Service -Name "ADSync"Set-Service -Name "ADSync" -StartupType DisabledEvict All Active SMB and RDP Sessions
Session EvictionForcefully terminate all remote file sharing connections and active remote desktop interactive sessions across domain controllers and member servers.
# Evict all remote SMB connectionsGet-SmbSession | Close-SmbSession -Force
# Terminate all active RDP user sessionsqwinsta | ForEach-Object { $line = $_.Trim() -split '\s+' if ($line[1] -match '^\d+$') { rwinsta $line[1] }}Phase 4: Clean-Room Environment & Recovery Roadmap
Provision Clean-Room Recovery VLAN & Restore
RecoveryEstablish an isolated recovery segment with no access to production, mount immutable backup repositories, preserve forensic samples, and rebuild core domain controllers from clean media.
1. Provision Clean-Room Recovery VLAN (e.g., VLAN 888) with no external routing.2. Mount Linux Hardened Immutable Repository or Proxmox Backup Server (per SOP-SYS-062).3. Validate backup snapshots created prior to initial compromise timestamp.4. Capture live volatile RAM and triage logs from sample machines before wiping (per SOP-SEC-001).5. Clean-Room OS Rebuild: Re-deploy Domain Controllers from known clean images.Phase 5: Controlled De-escalation, Rollback & Incident Sign-Off
Controlled De-escalation & Phased Reconnection
RollbackWhen containment is verified, restore storage write capabilities and bring up networking incrementally while monitoring SIEM dashboards for abnormal authentication spikes.
# 1. Restore TrueNAS Storage Write Capabilitieszfs set readonly=off tank-fast-vms
# 2. Re-enable Core Switch Inter-VLAN Routing One Subnet at a Time# core-switch(config)# interface vlan 10# core-switch(config-if)# no shutdown
# 3. Monitor Wazuh SIEM Dashboard for beaconing or authentication spikes before WAN reconnectionIncident Command Verification & Closeout Sign-Off
Incident Sign-offVerify that each emergency stage received mandatory operational authorization and log the Incident Commander sign-off.
INCIDENT COMMAND SIGN-OFF:[β] Emergency Containment Order: Authorized by Lead SysAdmin / CISO[β] Storage Read-Only Lock: Executed and verified by Systems Admin Team[β] Double KRBTGT Password Reset: Executed by Tier-0 Domain Administrator[β] Clean-Room Recovery Authorize: Sign-off granted by Incident CommanderYour feedback keeps these production procedures accurate and battle-tested.