LLMNR, NBT-NS and mDNS Name Resolution Poisoning

Hosts fall back to broadcast and multicast name resolution that any device on the network can answer, so an attacker can impersonate servers and capture or relay credentials.

SeverityMedium
CVSS 3.16.8 CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N Open in the calculator
CVSS 4.07.6 CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N Open in the calculator
CWECWE-300: Channel Accessible by Non-Endpoint
OWASP Top 10A07:2025 Authentication Failures
MITRE ATT&CKT1557.001 Name Resolution Poisoning and SMB Relay, T1110.002 Password Cracking
CategorySecurity Misconfiguration

Description

When a Windows host cannot resolve a name through DNS, it falls back to Link-Local Multicast Name Resolution (LLMNR) and NetBIOS Name Service (NBT-NS), sending the query to every host on the local network. Multicast DNS (mDNS) works in a similar way and is used by many operating systems and devices. None of these protocols authenticates the answer, so any host on the same network segment can reply that it holds the requested name.

An attacker on the segment, without any credentials, can answer these queries with tools such as Responder or Inveigh, directing the victim to connect to the attacker's machine instead. Many clients then try to authenticate automatically, so the attacker captures NTLM challenge-response hashes (NetNTLMv1 or NetNTLMv2) for the users and computers that make these lookups. Weak or common passwords can be cracked offline, giving the attacker a valid domain account. Alternatively, the attacker relays the authentication in real time and authenticates as the victim to other servers without cracking anything, which can lead to code execution or administrative access where the victim is privileged and the target does not require SMB or LDAP signing.

The queries come from mistyped or retired server names, stale drive mappings and shortcuts, and automatic lookups such as Web Proxy Auto-Discovery (WPAD), so they occur regularly on typical networks without any deliberate user action. The impact is greater where privileged accounts are used on ordinary workstations and where NTLMv1 is still accepted, and smaller where passwords are long and signing is enforced throughout.

The weakness is identified by listening passively for LLMNR (UDP 5355), NBT-NS (UDP 137) and mDNS (UDP 5353) queries, for example with Responder's analyse mode, and confirmed by answering them and capturing authentication attempts during an agreed test window.

Remediation

  • Disable LLMNR through Group Policy: set Computer Configuration > Administrative Templates > Network > DNS Client > Turn off multicast name resolution to Enabled, which sets the registry value EnableMulticast to 0 under HKLM\Software\Policies\Microsoft\Windows NT\DNSClient.
  • Disable NetBIOS over TCP/IP on every interface: for DHCP clients, with the Microsoft vendor-specific DHCP option 001 (Microsoft Disable Netbios Option) set to 0x2; for hosts with static addresses, in the interface's WINS settings or by setting NetbiosOptions to 2 for each interface under HKLM\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces. Check first that no legacy application depends on it.
  • Disable mDNS where it is not needed: on Windows, set the EnableMDNS DWORD value to 0 under HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters; on Linux and other systems, disable the mDNS responder, such as Avahi, where it serves no purpose.
  • Turn off automatic proxy detection where WPAD is not used, so that hosts stop looking up the WPAD name.
  • Reduce the value of any captured authentication: require SMB and LDAP signing, refuse NTLMv1, and use long passphrases for user and service accounts.

As an interim measure, monitor for poisoning with network detection rules that alert on LLMNR and NBT-NS responses from unexpected hosts. Confirm the fix by listening on each network segment again and checking that hosts no longer send LLMNR, NBT-NS or mDNS queries.

References


Add This Finding to Your Library

In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.

Free trial  ·  No card required

Only need the reporting? Our reporting tool is free and open source, with the same library.


More Internal Networks Findings

Every Internal Networks finding