Capturing a NetNTLMv2 response is only half of what an attacker on your network can do. A machine in the middle can pass the exchange to another server and be logged in as the user without learning the password. Test only networks and systems you own or are authorised to assess.
Why relaying is not cracking
Responder poisoning ends with a captured response that must be guessed offline, and a strong password defeats that. Relaying skips the guessing. The attacker accepts the victim’s authentication attempt, opens its own connection to a target, hands the target’s challenge to the victim and returns the victim’s reply. MITRE ATT&CK tracks this as T1557.001 and lists ntlmrelayx.
What limits a relay
Four controls shape what works.
First, signing. SMB signing adds a signature, built from the session key and cipher suite, to each message (Microsoft Learn). The key comes from the user’s password-derived key (MS-NLMP), which a relaying host does not have. Where the target requires signing, the relay cannot continue past authentication.
Second, reflection. Relaying a victim back to itself over SMB was first closed by MS08-068, which changed how SMB authentication replies are validated. It is not settled: ntlmrelayx 0.13.1 labels --remove-sign-seal as exploiting CVE-2025-33073, a Windows SMB flaw published in June 2025, so patch and require signing.
Third, the message integrity code. In NTLM, a MIC covers the three messages, and the client flags its presence in MsvAvFlags (MS-NLMP, AV_PAIR). A server that sees the flag must reject a message that does not match, so a relay cannot edit the client’s flags, such as its request for signing. impacket’s --remove-mic option targets CVE-2019-1040, a flaw in that check fixed in June 2019.
Fourth, channel binding. MsvAvChannelBindings carries a hash of the TLS channel, so authentication captured on one connection fails on another. Microsoft says TLS alone leaves LDAP open to relay without it (LDAP channel binding). IIS-hosted endpoints use Extended Protection for Authentication (EPA) for the same purpose.
Finding relay targets
NetExec records signing per host, and its --gen-relay-list option appends each Windows host that does not require it to the file you name. The NetExec: Network and Active Directory Assessment course covers building and reading these scans.
MultiRelay then, ntlmrelayx now
Responder ships its own relay, tools/MultiRelay.py, version 2.5 at v3.2.2.0. It relays to one SMB target (-t) and must run as root.
impacket‘s ntlmrelayx.py is the maintained general tool. It listens on SMB, HTTP and other servers, and relays to SMB, LDAP, MSSQL, IMAP, SMTP, HTTP, RPC and WinRM targets. -t names one target and -tf a file of targets (every host in it is relayed to, so list only lab hosts); a bare host is treated as smb://. -smb2support is off by default. -c runs a command on an SMB target and, with none given, the tool dumps the target’s local SAM hashes; both need the relayed user to be an administrator there. -i opens an interactive shell on a local port, and -socks keeps sessions open behind a SOCKS proxy.
Beyond SMB: LDAP and AD CS
Relaying to LDAP turns a captured logon into directory actions, subject to that account’s rights. It succeeds only where the domain controller does not require signing (port 389) or channel binding (LDAPS) for that session. ntlmrelayx warns that this fails when the client asked for signing, usual for logons arriving over SMB.
Relaying to AD CS web enrolment is the case Will Schroeder and Lee Christensen of SpecterOps named ESC8 in Certified Pre-Owned. The HTTP enrolment interfaces accept NTLM, so a relayed logon can request a certificate for the victim that outlives a password reset. ntlmrelayx has an --adcs option for it. The Network and Active Directory Ultimate Course covers vulnerable templates in GOAD with Certipy.
A lab sequence
Use a lab you own: a Windows client, a member server with signing not required, and the attacker host on one segment.
- Scan the lab range with NetExec and write the relay list.
- In
Responder.conf, setSMB,HTTP,SQL,RDP,DCERPCandWINRMtoOff. At v3.2.2.0 they listen on 445, 80, 1433, 3389, 135, 5985 and 5986, the ports of ntlmrelayx’s default servers, so Responder only poisons and ntlmrelayx takes the logons. A clash printsError starting TCP server on port. - Start ntlmrelayx against the single lab target, then start Responder so the poisoning feeds it.
- Trigger a lookup from the client for a name that does not exist, as in the poisoning article.
- Read what the relay logged. Then require signing on the target, repeat, and note that the relay now fails.
Commands
Checked against impacket 0.13.1 (tag impacket_0_13_1), Responder v3.2.2.0 and NetExec v1.5.1.
nxc smb 192.0.2.0/24 --gen-relay-list relay.txt
ntlmrelayx.py -t 192.0.2.20 -smb2support
ntlmrelayx.py -t 192.0.2.20 -smb2support -i
ntlmrelayx.py -t 192.0.2.20 -smb2support -socks
ntlmrelayx.py -t ldaps://dc01.corp.lab.example --no-da --no-acl
sudo python3 Responder.py -I eth0192.0.2.20stands for the single lab target;relay.txtonly lists candidates, so check it before using-tf. Start ntlmrelayx first. Run Responder last with the six servers from step 2 off; it poisons every name on the segment by default, so use an isolated lab segment only.-Iis the only required option on Linux.- The first ntlmrelayx line dumps local SAM hashes where the relayed user is an administrator. The
-iform prints the local port of an SMB shell;-sockslistens on127.0.0.1:1080by default. - The last line relays to LDAP over TLS.
--no-daand--no-aclskip adding a user to a privileged group and changing ACLs, so it only dumps domain information. It needs a logon that did not ask for signing.
Detection and defence
The policies named here are under Security Options in Local Policies.
Require signing. On Windows 11 24H2 Enterprise, Pro and Education, SMB signing is required in both directions, and Windows Server 2025 requires outbound only (Control SMB signing behavior). Domain controllers already require it through the Default Domain Controller Policy (server signing policy). Elsewhere, enable Microsoft network server: Digitally sign communications (always) or run Set-SmbServerConfiguration -RequireSecuritySignature $true.
Protect LDAP. New Windows Server 2025 deployments require LDAP signing, and channel binding defaults to When supported; Windows Server 2022 and earlier accept unsigned binds by default (LDAP signing). Set Domain controller: LDAP server signing requirements to Require signing. After auditing, set Domain controller: LDAP server channel binding token requirements to Always, because When supported still admits clients without channel binding support.
Protect AD CS. KB5005413 recommends enabling EPA, set to Required, for Certificate Authority Web Enrollment and the Certificate Enrollment Web Service, and disabling HTTP. It also recommends restricting NTLM with Network security: Restrict NTLM: NTLM authentication in this domain.
Watch for it. Directory Service events 2887, 2888 and 2889 summarise and identify unsigned binds; 3039 reports an LDAPS bind failing channel binding and needs the policy at When supported or Always plus, like 2889, diagnostic level 2. On a relay target, compare the Workstation Name and Source Network Address of event 4624, where filled in, with where the account should log on from, as Microsoft advises; this is a weak hunting signal, not a relay indicator. Network security: Restrict NTLM: Audit incoming NTLM traffic and Network security: Restrict NTLM: Audit NTLM authentication in this domain log NTLM use in the Microsoft\Windows\NTLM operational log. Reducing poisoning (Responder article) removes the usual source of victims.
Where to go next
The Network and Active Directory Ultimate Course goes from the relay list above to detecting and stopping credential theft. For the wider workflow from first scan to report, see Penetration Testing Field Notes.
This article replaces the KSEC ARK notes first published in 2019.
More from this author
- One capture, three questions2 December, 2026
- Payload channels versus timing channels2 December, 2026
