Skip to Content
LLMNR and NBT-NS poisoning attack on Windows network

LLMNR and NBT-NS Poisoning

Poisoning LLMNR and NBT-NS on Windows networks to capture and relay NTLM authentication, plus detection and remediation.

Sep 29, 2025
Updated Nov 22, 2026
9 min read

Description

Link-Local Multicast Name Resolution (LLMNR) and NetBIOS Name Service (NBT-NS) are legacy name resolution protocols. Windows falls back to them when DNS cannot resolve a hostname. Neither protocol authenticates responses, so anyone on the same segment can answer.

When DNS fails, the host multicasts an LLMNR query and broadcasts an NBT-NS query to the local segment, asking whether anyone knows the name. An attacker who answers first can:

  • poison the response and claim to be the requested host,
  • capture the NTLMv1 or NTLMv2 authentication that follows and crack it offline,
  • relay that authentication to another system,
  • sit in the middle of the connection and intercept traffic.

Typos in share paths, stale drive mappings and WPAD lookups generate these queries all day on a typical network, so there is usually something to catch within minutes.

On by default

Poisoning LLMNR and NBT-NS is one of the most reliable ways to get a first credential on an internal test. Both protocols are enabled by default and almost no modern network needs them.

Impact

  • Captured NTLMv1/NTLMv2 hashes can be cracked offline.
  • Captured authentication can be relayed to other systems without cracking anything.
  • Cracked or relayed domain credentials open up lateral movement to other hosts.
  • Catching a query from a privileged user gives you that user's access.
  • The attacker can impersonate SMB, HTTP, LDAP and other services to the victim.
  • Responses reveal hostnames, services and usernames on the segment.

In Active Directory one captured domain credential usually works on many systems, which is what makes this worth running early.

Technical details

LLMNR

PropertyValue
TransportUDP 5355
ScopeMulticast to 224.0.0.252 (IPv4) and FF02::1:3 (IPv6)
When usedAfter DNS resolution fails
AuthenticationNone

NBT-NS

PropertyValue
TransportUDP 137
ScopeBroadcast to the local segment
Why it existsCompatibility with older Windows systems
AuthenticationNone

Attack flow

  1. The attacker listens for LLMNR and NBT-NS queries.
  2. The attacker answers a query, claiming to be the requested host.
  3. The victim connects and tries to authenticate to the attacker's service.
  4. The attacker captures the NTLM challenge/response.
  5. The hash is cracked offline or relayed to another system.

Common attack scenarios

Credential harvesting with Responder

# Basic LLMNR/NBT-NS poisoning with Responder
responder -I eth0 -A

# Targeted poisoning with specific protocols
responder -I eth0 -A -f -w -r -d -P

NTLM relay

# Relay captured authentication to SMB shares
ntlmrelayx.py -tf targets.txt -smb2support

# Relay to specific services
ntlmrelayx.py -tf targets.txt -smb2support -c "whoami"

Inveigh (PowerShell)

# PowerShell LLMNR/NBT-NS poisoning
Invoke-Inveigh -ConsoleOutput Y -LLMNR Y -NBNS Y -mDNS Y -Proxy Y

Detection

Network monitoring

Traffic analysis:

  • Watch for unusual LLMNR queries (UDP 5355).
  • Track NBT-NS broadcast traffic (UDP 137).
  • Flag queries that get more than one response.
  • Flag response patterns that don't match normal hosts.

DNS:

  • Log failed DNS lookups.
  • Watch for odd hostname patterns.
  • Track how often hosts fall back to LLMNR or NBT-NS.

Event log analysis

Windows event logs:

# Monitor for NTLM authentication events
Get-WinEvent -FilterHashtable @{LogName='Security'; ID=4624,4625}

# Check for unusual authentication patterns
Get-WinEvent -FilterHashtable @{LogName='System'; ID=8021,8022}

Event IDs to watch:

  • 4624: successful logon (look for unusual sources)
  • 4625: failed logon
  • 4648: logon with explicit credentials

Detection tooling

An example SIEM rule:

# Example SIEM rule for LLMNR poisoning
rule: LLMNR_Poisoning_Detection
condition:
  - protocol: UDP
  - destination_port: 5355
  - response_count > 2
  - source_diversity: true
action: alert_high_priority

Network IDS/IPS signatures can catch LLMNR and NBT-NS anomalies, and EDR can flag Responder-style tools and their network behaviour.

Remediation

Disable the legacy protocols

Group Policy:

Computer Configuration → Administrative Templates → Network → DNS Client
- "Turn off multicast name resolution": Enabled

That policy covers LLMNR only. Disable NBT-NS with the registry value or the per-adapter PowerShell below.

Registry:

# Disable LLMNR
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient]
"EnableMulticast"=dword:00000000

# Disable NBT-NS
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters]
"NodeType"=dword:00000002

PowerShell:

# Disable LLMNR via PowerShell
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name "EnableMulticast" -Value 0 -PropertyType DWord

# Disable NetBIOS over TCP/IP
$adapters = Get-WmiObject Win32_NetworkAdapterConfiguration | Where-Object {$_.IPEnabled -eq $true}
foreach ($adapter in $adapters) {
    $adapter.SetTcpipNetbios(2)  # 2 = Disable NetBIOS over TCP/IP
}

Network segmentation

  • Split the network into VLANs to shrink broadcast domains.
  • Use micro-segmentation where software-defined networking is available.
  • Require 802.1X network access control so unknown devices cannot join the segment.

SMB hardening

Require SMB signing. This stops relay to SMB, though captured hashes can still be cracked.

# Require SMB signing for clients
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters]
"RequireSecuritySignature"=dword:00000001

# Require SMB signing for servers
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters]
"RequireSecuritySignature"=dword:00000001

The same setting in Group Policy:

Computer Configuration → Windows Settings → Security Settings → Local Policies → Security Options
- "Microsoft network client: Digitally sign communications (always)": Enabled
- "Microsoft network server: Digitally sign communications (always)": Enabled

Authentication

MFA:

  • Require MFA for privileged accounts.
  • Use Azure AD Conditional Access policies.
  • Roll out FIDO2 or Windows Hello for Business.

Passwords:

  • Enforce long passwords so captured NetNTLMv2 hashes don't crack.
  • Rotate service account passwords.
  • Use Group Managed Service Accounts (gMSA).

Prevention

DNS infrastructure

Most LLMNR and NBT-NS traffic comes from names DNS cannot resolve, so reliable DNS cuts the noise:

  • Run redundant DNS servers.
  • Use DNS forwarders and conditional forwarding.
  • Monitor DNS resolution success rates.

DNS security:

  • Deploy DNSSEC where possible.
  • Filter and monitor DNS.
  • Use DNS over HTTPS (DoH) or DNS over TLS (DoT).

Network architecture

Zero trust networking, where every connection is verified and access is least-privilege, limits what a poisoned credential can reach.

Check which hosts still listen on the relevant ports:

# PowerShell script for network monitoring
Get-NetTCPConnection | Where-Object {$_.LocalPort -eq 445 -or $_.LocalPort -eq 139}
Get-NetUDPEndpoint | Where-Object {$_.LocalPort -eq 137 -or $_.LocalPort -eq 5355}

Staff training

  • Teach IT staff why LLMNR and NBT-NS are a problem and how to configure networks without them.
  • Have an incident response procedure for credential capture on the internal network.

Verification

Test the configuration

Confirm the protocols are off:

# Check LLMNR status
Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" -Name "EnableMulticast"

# Check NetBIOS configuration
Get-WmiObject Win32_NetworkAdapterConfiguration | Where-Object {$_.IPEnabled -eq $true} | Select-Object Description, TcpipNetbiosOptions

Test from the network. nslookup only sends DNS queries, so use Resolve-DnsName -LlmnrOnly on a Windows host to force an LLMNR query:

# Test for LLMNR responses (a single-label name that does not exist)
Resolve-DnsName -Name nonexistenthost -LlmnrOnly
# Check for NBT-NS responses
nmblookup -A <target_ip>

Security assessment

  • Include LLMNR/NBT-NS poisoning in penetration tests.
  • Run Responder in red team exercises.
  • Use those exercises to test whether the blue team detects and responds.

Advanced mitigations

Application control

Windows Defender Application Control (WDAC) works as an allowlist. There is no rule option that blocks poisoning tools by category. An enforced policy that allows only approved publishers and paths stops unapproved binaries such as Inveigh from running on managed hosts. It does nothing about a Responder instance on an attacker's own machine.

AppLocker:

  • Block known attack tools.
  • Allowlist executables.
  • Monitor for policy violations.

Network-level protection

802.1X:

  • Use port-based network access control.
  • Prefer certificate-based authentication.
  • Deploy Network Access Protection (NAP).

DHCP:

  • Turn on DHCP snooping.
  • Use DHCP reservations for critical systems.
  • Watch for rogue DHCP servers.

References

MITRE ATT&CK techniques

CWE

Microsoft documentation

Tools

  • Responder - LLMNR/NBT-NS/MDNS poisoning tool
  • Inveigh - PowerShell-based network poisoning
  • hashcat - Password recovery tool for captured hashes

Next steps

If you capture hashes through LLMNR or NBT-NS during a test:

  • Recommend disabling both protocols on every Windows system.
  • Recommend requiring SMB signing to block relay.
  • Report the captured accounts so their passwords get reset.
  • Consider related Windows security issues:

On this page