NTLM Relay Conditions
Before setting up a relay attack, confirm which targets are viable. SMB relay requires SMB signing to be disabled on the target. LDAP relay requires signing and channel binding to be unenforced on the DC. WebDAV opens a relay path over HTTP even when SMB signing is enforced everywhere. Each condition is independently checkable and determines what the relay can reach.
SMB signing
SMB signing prevents relay to SMB. If signing is enforced on a host, relayed authentication to that host over SMB will be rejected. Domain controllers enforce signing by default. Workstations and member servers typically do not. For detailed signing detection methodology, see SMB Signing Not Required Detection.
SMB 10.10.10.20 445 WS01 signing: False SMBv1: False SMB 10.10.10.30 445 WS02 signing: False SMBv1: False SMB 10.10.10.10 445 DC01 signing: True SMBv1: False
Hosts listed in targets.txt are the viable SMB relay targets. DCs always enforce signing and will never appear in this list. Workstations and application servers are the primary targets.
LDAP signing and channel binding
LDAP relay to a DC allows modifying AD objects as the relayed account. Two protections block this: LDAP signing (prevents relay over plaintext LDAP) and LDAP channel binding / Extended Protection for Authentication (prevents relay over LDAPS). Both must be absent for a relay to LDAP to succeed. The ldap-checker module checks both. For the service-level check, see LDAP Signing and Channel Binding.
LDAP 10.10.10.10 389 DC01 LDAP Signing NOT Enforced LDAP 10.10.10.10 389 DC01 Channel Binding: None LDAP 10.10.10.10 389 DC01 Signing and Binding: Vulnerable to LDAP relay
If LDAP signing is enforced but channel binding is absent, relay to LDAPS (ldaps://) still works. ntlmrelayx handles this automatically when targeting ldaps://. If both are enforced, LDAP relay is blocked entirely — fall back to SMB or ADCS relay.
WebDAV — relay over HTTP
When the WebClient service is running on a Windows host, that host will attempt WebDAV connections over HTTP before falling back to SMB. This means you can coerce HTTP-based NTLM authentication from that host even when SMB signing is enforced — because the relay goes over HTTP, not SMB. The arriving authentication can be relayed to LDAP or ADCS.
WebClient runs on workstations by default in some environments and can be started remotely if the host is reachable. Check whether it is already running before attempting to enable it.
SMB 10.10.10.20 445 WS01 WebClient is running SMB 10.10.10.30 445 WS02 WebClient is NOT running
Relay target summary
Use the findings from each check to decide what your relay setup targets. SMB signing absent on workstations means ntlmrelayx can relay to those hosts for command execution. LDAP signing unenforced means you can relay to the DC for object modification. WebDAV running means coercion over HTTP works regardless of SMB signing state.
For the relay setup and attack execution see NTLM Relay in Active Directory.
References
-
NetExec (nxc) — GitHubgithub.com/Pennyw0rth/NetExec (opens in new tab)
--gen-relay-list, ldap-checker, webdav module reference
Was this helpful?
Your feedback helps improve this page.