Skip to content
TARGET$IP10.10.11.42$DOMAINcorp.local$USERsvc_sql$PASS••••••••••filled into every command · stored in your browser only
techniques/ntlm-relay
TECHNIQUE · credential access · ATT&CK T1557.001
NTLM relay
Catch an NTLM authentication and forward it, live, to another machine that accepts it. You end up logged in as the victim without ever cracking a hash. It works wherever SMB, LDAP or HTTP doesn't insist on signing.
WindowsActive Directoryno creds needed
Needs credsNo
Network positionSame broadcast domain
NoiseMedium
Fixed bySigning, EPA
Ports445 389 80 5355
// HOW IT WORKS VICTIM WS031 domain admin logged in YOU 10.10.14.7 responder + ntlmrelayx TARGET :445 10.10.11.42 signing not required 1 · LLMNR: who is \\filesrv? 2 · "that's me" 3 · NTLM auth 4 · same auth, relayed 5 · session as victim you never learn the password — you pass the victim's own handshake along
01

Requirements

all must hold
YOUR SCAN: YES A target without signing

SMB signing not required, or LDAP without channel binding.

check on 445 →
CHECK A way to get auth

LLMNR/NBT-NS poisoning, or coercing a machine to connect to you.

coercion →
CHECK The victim has rights there

Relayed auth is only useful if that account is admin on the target.

02

Do it

your target is filled in
01
List relay targets

Every host on the subnet that doesn't require signing.

command · target filled in
nxc smb $IP/24 --gen-relay-list targets.txt
02
Start the relay

Turn off Responder's own SMB and HTTP servers first so ntlmrelayx can listen.

command · target filled in
ntlmrelayx.py -tf targets.txt -smb2support -socks
03
Poison and wait

When someone mistypes a share name, their authentication is relayed.

command · target filled in
responder -I eth0 -dwv
03

Variants

→ LDAP

Relay to a DC's LDAP to add a computer account or set up resource-based delegation.

→ AD CS (ESC8)

Relay a DC's machine account to the web enrolment endpoint and get its certificate.

04

Detect & harden

Detect
  • LLMNR/NBT-NS answers from non-DNS hosts
  • Logons where the source IP doesn't match the workstation name
Harden
  • Require SMB signing everywhere; LDAP signing and channel binding
  • Disable LLMNR and NBT-NS; turn on EPA for AD CS

Relaying works because NTLM authenticates the client to the server but never binds the handshake to the specific connection it was meant for. Signing (SMB), channel binding (LDAPS) and Extended Protection for Authentication close that gap — which is exactly why the first thing you check on a target is whether they are enforced.

TECHNIQUE ⌘K jump c copy commands t set target l start lab search.deflance.com static · no tracking