How Name Resolution Fallbacks Get Abused
Windows resolves hostnames in a fixed order: DNS first, then LLMNR (UDP 5355 multicast) if DNS fails, then NBT-NS (UDP 137 broadcast) if that fails too. Both fallbacks date from an early era, and their shared flaw is no authentication — any machine that receives a query may simply answer "I am the host you are looking for".
Responder-style tools exploit exactly this. They listen for LLMNR and NBT-NS queries, race to answer every one, then wait for the victim to connect. Once the victim connects, the tool either demands NTLM authentication (capturing a NetNTLMv2 hash for offline cracking) or stands up a fake SMB/HTTP service to induce authentication.
No exploit is involved anywhere; everything stays within the protocol specification. That is why its impact on corporate networks is chronically underestimated: one stale DNS record or one misspelled hostname is enough for an attacker to harvest a pile of account hashes.
Two Decidable Signals
Signal 1: Multiple competing responders (LLMNR)
A normal LLMNR exchange is one question, one answer: a host broadcasts "who is FILESERVER" and the machine with that name replies once. If the same query (same TxID and name) receives responses from ≥2 distinct source IPs, someone is racing the real owner.
Implementation details:
- Port:
srcPort == 5355counts as a response,dstPort == 5355as a query; - Structure: DNS-style encoding, TxID (2 bytes) + Flags (2 bytes) + QDCOUNT (2 bytes), with the QR bit (
0x8000) set in response flags; - Name encoding: length byte per label followed by characters, terminated by zero.
Trigger: ≥2 distinct source IPs answering the same (TxID, name) pair. Severity 2, confidence 85.
Signal 2: NBT-NS registration conflict
Beyond queries, NBT-NS also handles name registration. A machine at startup broadcasts "I want to be WORKSTATION01"; if another machine already uses that name, a conflict response follows.
A poisoner either sends fake conflict responses or registers a name already in use. Criterion: registrations for the same name from ≥2 distinct IPs. NBT-NS names use half-ASCII encoding — each byte is split into its high and low nibbles mapped onto the characters A through P, with 15 characters representing one name. Decoding makes comparison far more readable than raw bytes.
Severity 2, confidence 80. Confidence is slightly lower than LLMNR because multi-NIC hosts, clusters and legacy devices can produce similar patterns.
How-to: Locate It in a Capture
Step 1: Confirm LLMNR / NBT-NS traffic exists. Filter on udp.port == 5355 or udp.port == 137. Less of this traffic is healthier in modern enterprise networks — frequent appearances mean DNS has gaps.
Step 2: Check the poisoning group in deep-scan results. Findings state the protocol (LLMNR / NBT-NS), the contested name, the responder count and evidence packet numbers. Names often reveal intent directly: attackers race for wpad, fileserver, intranet and similar high-hit-rate names.
Step 3: Locate the attacker. Take the responder's MAC and IP and inspect its other behavior in the capture. Responder usually also runs fake SMB, HTTP and LDAP services, so you may see it accepting connections on 445, 80 and 389 — those connections lead to the victims.
Step 4: Size the impact. Count how many distinct hosts queried that name and subsequently connected to the responder IP. That number is roughly how many hosts may have leaked hashes.
Why a Single Response Is Not Reported
The easiest way to get poisoning detection wrong is to treat normal name resolution as an attack.
A legitimate name owner replying to a query is also "a response received" — just the only one. Reporting on "any response exists" would fire on every machine resolving its own hostname, which is no detection at all.
So the core criterion is not whether a response exists but whether the responder is unique. A single responder is treated as the legitimate owner and not reported; ≥2 distinct sources is required for a poisoning finding.
This has a side benefit: it surfaces duplicate registrations caused by misconfiguration. Two machines sharing a hostname is not an attack, but it is a problem worth fixing, and the report shows it at warn level.
Response and Hardening
- Disable LLMNR and NBT-NS outright: the most effective measure. Disable LLMNR via Group Policy (
Turn off multicast name resolution) and disable NetBIOS over TCP/IP in the adapter settings; - Make DNS resolution complete: fallbacks get used mainly because DNS records are missing. Register internal services in DNS so clients never need the fallback path;
- Identify affected hosts: for hosts that queried during the poisoning window, check whether they subsequently established SMB/HTTP connections to the attacker IP; if so, treat it as credential exposure;
- Require SMB signing: with signing enabled, captured NTLM authentication cannot be relayed;
- Disable NTLM where feasible: eliminating the payoff at the root.
This detection deserves its own article because it exposes a frequently ignored fact: many internal security problems are not misconfigurations but compatibility switches turned on years ago and never turned off. Packet capture quantifies the exposure those switches create.
Related reading: Detecting ARP Spoofing in a Packet Capture, Detecting Lateral Movement.
