Lateral Movement Containment: Stopping Adversary Spread Through Your Network
Lateral movement is where attackers turn a single compromised endpoint into full domain compromise. Once they have initial access, adversaries pivot through your network using legitimate admin tools—PsExec, WMI, RDP, or stolen credentials. Your ability to detect and contain this movement determines whether you're dealing with a single incident or a network-wide breach.
Start with correlation. Pull Windows Security Event 4624 (successful logon) across all hosts. Look for Type 3 (network) and Type 10 (remote interactive) logons from unusual source IPs. Cross-reference with process creation events for psexec.exe, wmiprvse.exe spawning suspicious children, or mstsc.exe connections. EDR telemetry showing credential dumping (lsass access) followed by remote authentication is a red flag. Network flow data helps map the attack path—which hosts talked to which, and when.
Containment must be immediate and surgical. Reset passwords for all compromised accounts. Disable affected user accounts until you've verified no persistence. If the attacker used a service account, rotation becomes critical. Network segmentation buys you time—VLAN isolation or firewall rules to block lateral traffic between compromised and clean zones.
Evidence collection: preserve Windows Security, System, and Application logs from every affected host. Capture EDR process trees, file system timelines, and registry snapshots. Network flow logs (NetFlow, Zeek) show lateral connections. Memory dumps from compromised hosts may reveal injected code or credential material in lsass.
Cleanup requires methodical host remediation. Remove scheduled tasks, services, WMI event subscriptions, and registry run keys the attacker planted. Rotate local administrator passwords on every affected machine. This is where LAPS (Local Administrator Password Solution) proves its value—unique, randomized local admin passwords per host prevent attackers from reusing NTLM hashes across your fleet.
Lesson learned: lateral movement containment is a race. The faster you identify the scope, isolate affected systems, and rotate credentials, the smaller your blast radius. Implement LAPS before the incident, not after.
#IncidentResponse #DFIR