This article from Day 28 of an ethical hacking course teaches the practical execution of lateral movement attacks in Active Directory networks by implementing the attack paths identified by BloodHound. It covers four primary lateral movement techniques—PSExec, WMI, WinRM, and DCOM—explaining their operational differences, detection signatures, and appropriate use cases. The material bridges BloodHound's theoretical attack path mapping with hands-on execution, demonstrating how penetration testers traverse compromised network environments while managing detection risk.
- Four lateral movement techniques comparedPSExec uses SMB port 445 to create a Windows service (Event ID 7045) for SYSTEM-level shell execution but generates high detection noise; WMI uses port 135 with no service creation, running as Administrator with medium detection risk; WinRM provides interactive PowerShell over port 5985 with medium noise; DCOM leverages legitimate COM objects on port 135 with the lowest footprint. Each technique leaves distinct Windows Event IDs that EDR solutions monitor.
- BloodHound edges map to execution techniquesThe article explains that each edge type in a BloodHound graph corresponds to specific lateral movement techniques. An AdminTo edge (user has local admin on a machine) can be traversed via PSExec, WMI, WinRM, or DCOM depending on open ports and acceptable detection risk. A HasSession edge (an interesting user is logged onto a machine you control) requires credential dumping before lateral movement can proceed.
- Impacket tools enable credential-based movementimpacket-psexec, impacket-wmiexec, and impacket-secretsdump support both plaintext passwords and NTLM hashes via the -hashes flag. PSExec with hashes provides SYSTEM shell execution; wmiexec with hashes provides Administrator-level execution; secretsdump performs remote credential extraction without requiring an interactive shell. These tools chain together to form the credential dump → move → dump pipeline.
- Evil-WinRM streamlines interactive sessionsEvil-WinRM is a Kali Linux tool providing clean interactive WinRM access with PowerShell tab completion, file upload/download capabilities via upload/download commands, and in-memory script loading via the -s flag. It supports both plaintext passwords and NTLM hashes via the -H flag and operates over port 5985.
- Detection awareness informs technique selectionPSExec's Event ID 7045 (new service creation) is detected by most EDR solutions, making it the noisiest choice. WMI generates 4688 (new process) and 4648 (explicit credential use) events but avoids service creation signatures. WinRM produces WSMan events. Understanding these signatures allows testers to select techniques that balance operational necessity with detection risk during monitored engagements.
- CrackMapExec identifies accessible machinesThe article demonstrates using crackmapexec smb with credentials or hashes to sweep a subnet and identify machines showing (Pwn3d!), indicating the account has local administrative access. This reconnaissance step determines which machines are accessible for lateral movement before attempting shell execution.
- Credential cascade operationalizes network compromiseThe credential dump → move → dump pipeline cycles through: identifying machines with current credentials via CrackMapExec, moving laterally with PSExec/WMI/WinRM, executing secretsdump to extract new credentials, marking progress in BloodHound as Owned, then sweeping the network with new credentials to identify additional accessible machines. This process cascades until the Domain Controller is compromised.
- Practical scenario selection guides technique choiceThe article presents three scenarios demonstrating decision-making: high-EDR monitoring environments favor DCOM or WMI to avoid service creation signatures; NTLM-hash-only scenarios with SMB access use impacket-psexec with -hashes flag for SYSTEM shell; interactive PowerShell requirements on WinRM-enabled machines use Evil-WinRM from Linux workstations. This framework matches professional red team decision-making during live engagements.
Bottom line: Lateral movement execution requires selecting the appropriate technique based on available ports, credential format, desired privilege level, and acceptable detection risk—not simply running one tool repeatedly. The credential dump → move → dump pipeline, operationalized through CrackMapExec sweeps after each new credential set, is the core workflow for cascading through an Active Directory network from initial compromise toward Domain Admin.
FREE
Part of the 100-Day Ethical Hacking Course
🎯 What You’ll Master in Day 28
⏱️ 55 min read · 3 hands-on exercises
📊 Where are you with AD lateral movement?
📋 What You’ll Master — Lateral Movement Techniques 2026
- Lateral Movement Overview — Traversing BloodHound Attack Path Edges
- PSExec Lateral Movement — SMB-Based Remote SYSTEM Shell
- WMI Remote Execution — Stealthy Command Execution Without New Services
- WinRM and Evil-WinRM — Interactive PowerShell Sessions From Kali
- The Credential Dump → Move → Dump Pipeline
- Detection Awareness — Event IDs and EDR Signatures Per Technique
In Day 27 you used BloodHound to identify the shortest attack path from a standard user to Domain Admin. Every edge on that path is a relationship you now need to traverse. In Day 26 you learned Pass the Hash — one traversal technique. Today covers the full suite. These techniques are the practical execution layer of the 100-Day Ethical Hacking Course‘s Active Directory module.
Lateral Movement Overview — Traversing BloodHound Attack Path Edges
Each edge type in a BloodHound graph corresponds to one or more specific lateral movement techniques. The AdminTo edge — your user has local admin on a machine — can be traversed using PSExec, WMI, WinRM, or DCOM depending on which ports are open and which footprint is acceptable. The HasSession edge — an interesting user is logged on to a machine you have admin on — requires credential dumping before the lateral move.
⏱️ Time: 10 minutes · No tools required
and explain your reasoning:
SCENARIO A: Internal penetration test
– Client has a SOC monitoring Windows Event logs via Splunk
– EDR (CrowdStrike) deployed on all endpoints
– You have local admin credentials on a workstation
– You need to move to a file server (ports 445, 5985 open)
– Detection is being monitored and would alert the client team
– Goal: move with the smallest possible EDR footprint
→ Which technique? Why?
SCENARIO B: Red team engagement
– No monitoring or detection concerns for this phase
– You have NTLM hash (no plaintext password)
– Target has SMB port 445 open
– You need a SYSTEM-level shell for privilege escalation
→ Which Impacket tool and flags?
SCENARIO C: Post-compromise enumeration
– You have valid domain credentials (username + password)
– Target machine has WinRM (port 5985) enabled
– You need to run multiple PowerShell commands interactively
– You are working from Kali Linux
→ Which tool gives you the best interactive experience?
📸 Write your technique selections with reasoning and share in your notes.
PSExec Lateral Movement — SMB-Based Remote SYSTEM Shell
PSExec is the most well-known lateral movement technique and the baseline for understanding all others. Impacket’s implementation uploads a small service binary to the target via SMB, creates a Windows service to execute it, runs your command as SYSTEM, and cleans up afterwards. The result is the most privileged shell possible on a Windows machine — SYSTEM, not just Administrator.
WMI Remote Execution — Stealthy Command Execution Without New Services
WMI (Windows Management Instrumentation) is a built-in Windows management framework that has been present in every Windows version since NT4. Impacket’s wmiexec leverages WMI’s process creation capabilities to execute commands on remote machines without creating any new services — leaving a smaller footprint than PSExec while still providing command execution as Administrator.
WinRM and Evil-WinRM — Interactive PowerShell Sessions From Kali
WinRM (Windows Remote Management) is Microsoft’s implementation of the WS-Management protocol — designed for remote management of Windows machines. Evil-WinRM is a Kali Linux tool that provides a clean interactive interface for WinRM sessions, including PowerShell tab completion, file upload/download, and in-memory script loading. It is the preferred tool for WinRM-based lateral movement from Linux.
⏱️ Time: 30 minutes · Free TryHackMe account
(free room — covers all major techniques)
Step 2: Deploy the machines and connect via TryHackMe VPN
Step 3: The room provides credentials for a domain user account
Use CrackMapExec to identify which machines accept those creds:
crackmapexec smb 10.200.x.0/24 -u USER -p PASSWORD
Step 4: For each machine showing (Pwn3d!) — try all three tools:
a) impacket-psexec DOMAIN/USER:PASS@TARGET_IP
b) impacket-wmiexec DOMAIN/USER:PASS@TARGET_IP
c) evil-winrm -i TARGET_IP -u USER -p PASS
Step 5: From the shell gained, run secretsdump to get more hashes:
impacket-secretsdump DOMAIN/USER:PASS@TARGET_IP
Step 6: Use the new hashes to attempt lateral movement to the
next machine in the BloodHound path
Step 7: Document:
– Which ports each tool requires
– Which event IDs appeared in the Windows logs (if viewable)
– Which technique gave the best shell experience
📸 Screenshot shells from at least two different techniques and share in your notes.
The Credential Dump → Move → Dump Pipeline
Detection Awareness — Event IDs and EDR Signatures Per Technique
Understanding which Windows Event IDs each technique generates is not just defensive knowledge — it informs your red team technique selection and helps you write more accurate pentest reports with specific detection recommendations for clients.
⏱️ Time: 20 minutes · Kali + AD lab (or TryHackMe machine)
📸 Screenshot your terminal showing successful movement across two machines and share in your notes
🧠 QUICK CHECK — Day 28
📋 Commands Used Today — Day 28 Reference Card
🏆 Mark Day 28 as Complete
You now have the execution toolkit to traverse every AdminTo and HasSession edge BloodHound identifies. The cascade — credential dump, CME sweep, lateral move, credential dump — is the heartbeat of every Active Directory compromise in professional penetration testing.
❓ Frequently Asked Questions
What is lateral movement in penetration testing?
What is the difference between PSExec, WMI, and WinRM for lateral movement?
What ports must be open for each lateral movement technique?
Do I need local administrator rights for lateral movement?
How do defenders detect lateral movement?
What comes after lateral movement in this course?
Day 27: BloodHound Tutorial 2026
Day 29: Data Exfiltration Techniques 2026
📚 Further Reading
- BloodHound Tutorial 2026 — Day 27 covers BloodHound attack path mapping — the analytical foundation that determines which machines to target and which lateral movement technique to use at each hop.
- Pass the Hash & Pass the Ticket 2026 — Day 26 covers NTLM hash and Kerberos ticket reuse — the credential material that powers every Impacket lateral movement command covered today.
- 100-Day Ethical Hacking Course — The complete course hub with all Active Directory attack days indexed sequentially from enumeration through domain compromise and post-exploitation.
- MITRE ATT&CK — Lateral Movement — The definitive MITRE ATT&CK Lateral Movement tactic page listing all known sub-techniques including PSExec (T1021.002), WMI (T1047), and WinRM (T1021.006) with real-world procedure examples.
- Impacket GitHub Repository — The official Impacket source and documentation covering all tools including psexec, wmiexec, smbexec, secretsdump, and the full AD attack toolkit with usage examples.

