Security & Privacy

Windows laptops face credential risks from legacy name resolution

Windows laptops are vulnerable to credential theft on public Wi-Fi due to legacy LLMNR and NetBIOS protocols. Attackers using the Responder tool can poison name-service queries to capture NetNTLMv2 hashes or relay authentication sessions to impersonate users.

Windows laptops face credential risks from legacy name resolution

The vulnerability in local name resolution

Windows laptops answer name resolution queries from strangers on public Wi-Fi because of a protocol from 2007. Computers translate website names into IP addresses before connecting to them via the network’s DNS, but LLMNR or NetBIOS can act as fallbacks. LLMNR, or Link-Local Multicast Name Resolution, provides a way to resolve names when conventional DNS resolution is unavailable. NetBIOS Name Service, or NBT-NS, also provides a legacy name-resolution mechanism.

Protocol UDP Port
LLMNR 5355
NetBIOS (NBT-NS) 137

Windows configuration can allow parallel queries across network interfaces. Because of this, these mechanisms do not always act as a final fallback step after everything fails. A malicious device can use a tool called Responder to automate name-service poisoning and impersonate network services to collect credentials. This tool responds to a query as if it owns the requested name, which tricks Windows into connecting to an imposter. I find this gap between answering a query and proving ownership extremely dangerous for anyone who uses a coffee shop connection. An attacker needs local-network access to your device to attempt this.

Captured hashes and authentication risks

The attack captures NTLM challenge-response material, known as NetNTLMv2, instead of the underlying password hash stored on your computer. This is not a plaintext password, which means the attacker must still solve the hash. One approach involves offline password guessing, or brute forcing. Because an attacker can run an automated script to test potential passwords against the captured hash without any rate or login limits, a weak password will likely fail very quickly during an offline brute force attempt. The captured NetNTLMv2 material allows attackers to crack the password or relay the session.

An alternative is relaying a live authentication exchange to a different service that accepts it. This method lets an attacker act as the victim without ever knowing the actual password. If the redirected connection uses NTLM authentication, the attacker-controlled service can solicit and capture authentication material, which allows them to potentially use the captured NetNTLMv2 to impersonate the victim on other services. Success with relaying depends on reachable targets and missing protections like SMB signing or Extended Protection for Authentication. The attacker needs a query worth poisoning and a subsequent connection that permits useful authentication. The fact that you share a connection with a stranger does not provide proof that the complete attack chain is possible, as network segmentation settings and traffic filtering can stop the process.

Disabling legacy discovery protocols

I recommend disabling both LLMNR and NetBIOS to protect your device. On supported Windows editions, you can find the Group Policy setting under Computer Configuration, Administrative Templates, Network, DNS Client. You can enable the "Turn off multicast name resolution policy" to disable LLMNR across adapters. Windows Home users lack the Group Policy Editor, so they must create an EnableMulticast value set to 0 under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient.

NetBIOS requires separate attention because disabling LLMNR does not disable the other. Microsoft’s documented DNS-client policy describes disabling resolution on public networks, but that policy entry is marked for Insider Preview. To disable NetBIOS, you must open the IPv4 properties for your adapter, go to Advanced, then the WINS tab, and select "Disable NetBIOS over TCP/IP". You should test network workflows before you deploy these changes broadly to avoid breaking connections for other users.