name resolution poisoning

term

securityhacking

Kept in this browser · My desk

Answering a host's multicast or broadcast name queries (LLMNR, NBT-NS, mDNS) with the attacker's own address, so that the host connects to the attacker and typically offers it an NTLM authentication that can be cracked offline or relayed.

MITRE ATT&CK records it as T1557.001, Name Resolution Poisoning and SMB Relay; CISA and NSA's 2023 list of common misconfigurations names LLMNR and NBT-NS left enabled. It needs no exploit, only a segment where the fallbacks are on, which is why it is routine in penetration tests and appears in intrusions attributed to named groups. The defence is to switch the fallbacks off, make DNS answer for internal names, configure proxies explicitly, require SMB signing and reduce NTLM.

What it is. When DNS cannot resolve a name (a mistyped server, a retired shortcut, a single-label name with a wrong suffix list), Windows and other systems fall back to asking the whole link through LLMNR (UDP 5355), the NetBIOS Name Service (UDP 137) or mDNS (UDP 5353). Whoever answers first is believed. Name resolution poisoning is answering those questions deliberately. RFC 4795 described the opening itself in 2007: 'If an LLMNR query is sent for an off-link host, spoofing a response in a timely way is not difficult, since a legitimate response will never be received', and multicast means the attacker sees the query ID and need not guess it.

How it unfolds. The victim's host resolves fileserv to the attacker's address and connects, for example to a file share over SMB or to a web proxy over HTTP. If the service asks for authentication, Windows answers with NTLM on the user's behalf. MITRE's description: 'If the requested host belongs to a resource that requires identification/authentication, the username and NTLMv2 hash will then be sent to the adversary controlled system'. Two uses follow. The challenge-response can be attacked offline to recover a weak password; or it can be relayed in real time to another service as the user, which against SMB servers that do not require signing gives access, as CISA and NSA put it, 'without needing to capture and crack any hashes'.

History. The WPAD variant made it an infrastructure problem: browsers looking for a proxy configuration asked for the name wpad, Windows fell back to NetBIOS and LLMNR when DNS had no answer, and the poisoner supplied the proxy and collected automatic authentication. Microsoft's MS16-077 (June 2016) moved WPAD lookups to DNS only and stopped automatic credentials, according to Fox-IT's summary; Fox-IT's mitm6 (2018) then reached the same chain by taking over the host's DNS through DHCPv6. MITRE's T1557.001 (created February 2020, version 2.0 of May 2026) lists procedure examples from published reports: the Lazarus Group ran Responder on a compromised host to harvest credentials and move laterally (Kaspersky, February 2021), and Wizard Spider used the Inveigh cmdlets (October 2020). Tools named in the record include Responder (Laurent Gaffié), Inveigh (Kevin Robertson), NBNSpoof and modules of Metasploit and Impacket.

Defences. Disable LLMNR with the policy 'Turn off multicast name resolution' and NetBIOS name resolution by policy or the DHCP vendor option, after the assessment CISA's countermeasure CM0053 describes; make internal DNS authoritative for internal names and keep suffix lists correct, so few questions fall through; configure the proxy location explicitly instead of WPAD auto-detection; require SMB signing, which MITRE notes 'can stop NTLMv2 relay attacks', and move authentication to Kerberos. Detection: LLMNR or NBT-NS answers from hosts that are not servers, one host answering many names, any lookup for wpad where WPAD is not used, and authentication from users towards a workstation's address.

What goes wrong. Disabling one fallback and not the others; leaving mDNS answering for non-.local names; and treating poisoning as harmless because passwords are strong, when relay needs no password at all.

How the advisories describe the payoff. CISA and NSA's 2023 advisory follows the chain to its end: the poisoned target 'will send the user's username and hash to the actor-controlled system', and 'The actors then collect the hash and crack it offline to obtain the plain text password' (MITRE T1110.002); separately, because SMB's default configuration 'does not require signing network messages', actors 'can combine a lack of SMB signing with the name resolution poisoning issue' to reach remote systems. Detection has public signatures too: Fox-IT released Snort and Suricata rules in 2018 for rogue DHCPv6 advertisements and for WPAD answers over IPv6, the DHCPv6 route to the same position. RFC 4795's own advice is to log name conflicts, since a poisoner necessarily claims names that others also use.

Neighbours. LLMNR, NetBIOS Name Service, mDNS, WPAD, NTLM, SMB signing, Kerberos, and the DHCPv6 takeover that reaches the same chain.

Also known as: llmnr/nbt-ns poisoning, nbt-ns poisoning, multicast name poisoning, t1557.001, envenenamento de resolução de nomes

Sources

← Back to N Back to the glossary