
Complete practical lab guide to LLMNR/NBT-NS poisoning, NetNTLMv2 hash cracking with Hashcat rules, NTLM relaying to SMB/LDAP via ntlmrelayx, and Enterprise SIEM detection.
Master Active Directory intra-forest trust exploitation. Learn how child domain compromise leads to full parent forest escalation via SID History injection (ExtraSIDs), Kerberos Golden Ticket
25 min read
A hands-on masterclass covering Active Directory Kerberos delegation attacks: Unconstrained, Constrained (S4U2Self/S4U2Proxy), and Resource-Based Constrained Delegation (RBCD) exploitation, I
In modern Windows Active Directory networks, legacy broadcast and multicast name resolution protocols — specifically Link-Local Multicast Name Resolution (LLMNR) and NetBIOS Name Service (NBT-NS) — remain enabled by default for backward compatibility.
When a user attempts to connect to a network resource (such as a shared folder) and DNS resolution fails, the Windows client broadcasts a request to all nearby devices on the local subnet asking, "Who knows the IP address for this resource?" Because these legacy protocols lack cryptographic authentication, any machine on the subnet can respond to the request.
To understand why this protocol weakness exists, consider how a person looks up directions in an unfamiliar city.
\\filesrver instead of \\fileserver), the traveler stands in the middle of the crowded town square and shouts out loud: "Does anyone know where filesrver is?"When a Windows machine attempts to connect to an SMB file share, it undergoes the NTLM challenge-response authentication process.
[ Victim Client ] [ Target Server / Rogue Listener ]
| |
| ----- (1) Type 1: Negotiate Message ----------------> |
| |
| <---- (2) Type 2: Challenge Message (8-byte nonce) -- |
| |
| ----- (3) Type 3: Authenticate Message -------------> |
| (Encrypted Response using NT Hash) |
All research and testing must take place within an isolated virtual lab environment.
+----------------------------------+
| Attacker Host (Kali / Arch) |
| IP: 192.168.56.20 |
+----------------------------------+
|
================== Isolated L2 Subnet ==================
| | |
v v v
+------------------+ +------------------+ +-------------------+
| DC01 (AD Domain | | WORKSTATION01 | | WORKSTATION02 |
| Controller) | | (Windows 11) | | (Windows 10) |
| IP: 192.168.56.10| | IP: 192.168.56.101 | IP: 192.168.56.102|
+------------------+ +------------------+ +-------------------+
Before auditing broadcast responses, verify which SMB signing and name resolution controls are active across target hosts.
# Nmap scan checking SMB Signing requirements across subnet
nmap -p 445 --script smb-security-mode 192.168.56.0/24
Message signing enabled and required: Host enforces SMB signing. Relaying authentication to this machine will fail.Message signing enabled but not required: Host accepts unsigned SMB connections. This host is vulnerable to NTLM authentication relay attacks.Tools like Responder act as passive rogue listeners, answering incoming LLMNR and NBT-NS queries on the local subnet.
Responder.conf[Responder Core]
; Line 12: Enable LLMNR rogue listener
LLMNR = On
; Line 15: Enable NBT-NS rogue listener
NBT-NS = On
; Line 18: Enable WPAD rogue proxy listener
WPAD = On
; Line 30: Enable Authentication Servers
SMB = On
HTTP = On
LLMNR = On: Configures Responder to listen on UDP port 5355 for multicast name queries.NBT-NS = On: Listens on UDP port 137 for NetBIOS name requests.SMB = On: Spawns a rogue SMB service on TCP port 445 that responds to authentication attempts with an NTLM challenge.Understanding why network security controls block relay or poisoning attempts builds deep security intuition.
| Defensive Control | Impact on Protocol Traffic | Technical Reason |
|---|---|---|
| SMB Signing Required | Blocks NTLM Relay | Each SMB packet must be cryptographically signed using the session key. A relay host lacks the session key, causing the target server to drop unsigned connections. |
| MIC (Message Integrity Code) | Prevents Tampering | Validates that NTLM authentication messages were not modified in transit. |
| EPA (Extended Protection for Auth) | Protects HTTP / Service Binding | Binds NTLM authentication tokens to the TLS channel (Channel Binding Tokens), preventing cross-protocol relay from HTTP to LDAP. |
Eliminating broadcast name resolution vulnerabilities requires disabling legacy protocols across the enterprise via Group Policy Objects (GPO).
gpmc.msc).Computer Configuration -> Administrative Templates -> Network -> DNS Client.# PowerShell command to disable NetBIOS over TCP/IP across all network interfaces
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces\Tcpip_*' -Name NetbiosOptions -Value 2
Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options.Authored by Syed Zada Abrar — Founder & Lead Researcher, Andrax Pentester.
Share this tutorial
25 min read
A comprehensive technical breakdown of Active Directory Certificate Services (ADCS) security architecture, analyzing ESC1/ESC8 misconfigurations, PowerShell auditing, enterprise hardening, an
15 min read
Sign in to leave a comment.