IPv6 and DHCPv6 Spoofing on “IPv4-only” Windows Networks: Why It Works and How to Fix It

Manish Garg
Manish Garg Associate of (ISC)² · RingSafe
Dec 4, 2026
5 min read
Read as

Windows prefers IPv6 and asks for an IPv6 configuration on every network, even where the organisation only uses IPv4. On networks with no legitimate IPv6, an attacker on the same LAN can answer those requests, make themselves the victims’ DNS server, and redirect traffic, often to capture or relay Windows authentication. Close it by blocking rogue DHCPv6 and router advertisements (on switches and in Windows Firewall), disabling WPAD, enforcing SMB signing and LDAP signing with channel binding, and alerting on unexpected DHCPv6 servers.

“We don’t use IPv6” is one of the most common statements in internal network assessments, and one of the most misleading. Every modern Windows machine has IPv6 enabled, prefers it over IPv4, and regularly asks the local network for IPv6 settings. If nobody legitimate answers, an attacker can. This class of attack has been publicly known since 2018 and still works on a large share of corporate networks.

How the attack works (at a high level)

  1. Windows asks for IPv6 settings. On boot, on reconnecting, and periodically, Windows sends DHCPv6 requests looking for an address and DNS server.
  2. An attacker on the LAN answers. On a network without a real DHCPv6 server, a rogue one responding first gives victims an IPv6 address and sets the attacker as their IPv6 DNS server. Because Windows prefers IPv6, that DNS server is queried first.
  3. DNS answers are spoofed. The attacker can now answer selected DNS queries with their own address, in particular the automatic proxy discovery name WPAD, or internal host names.
  4. Authentication follows. Victims connect to the attacker’s machine and, in many cases, automatically send Windows (NTLM) authentication. That authentication can be relayed to other services such as LDAP on a domain controller, potentially creating accounts or changing permissions, or captured for offline password cracking.

The attacker needs only a foothold on the same broadcast domain: a compromised workstation, a rogue device plugged into a meeting-room port, or access to guest Wi-Fi that is wrongly bridged into the corporate network.

Why it keeps working

  • IPv6 is enabled by default and Microsoft does not recommend fully disabling it, so it stays on, and unmanaged.
  • Network teams monitor IPv4 DHCP and ARP spoofing but rarely look at IPv6 traffic.
  • NTLM is still widely enabled, and SMB signing or LDAP channel binding are often not enforced.
  • WPAD (Web Proxy Auto-Discovery) is still active on many Windows estates despite few organisations using it.

Defences, in priority order

1. Stop rogue IPv6 infrastructure at the switch

Enterprise switches support RA Guard and DHCPv6 Guard (names vary by vendor). These allow router advertisements and DHCPv6 server responses only from trusted uplink ports, the IPv6 equivalent of DHCP snooping. This is the most complete fix because it protects every device, not just Windows.

2. Block DHCPv6 and router advertisements in Windows Firewall

If you genuinely do not use IPv6, you can disable the inbound rules that allow these messages, through Group Policy (Windows Defender Firewall with Advanced Security → Inbound Rules). Create block rules for:

  • Core Networking – Dynamic Host Configuration Protocol for IPv6 (DHCPV6-In)
  • Core Networking – Router Advertisement (ICMPv6-In)

and the matching outbound DHCPv6 rule. Test on a pilot group first.

3. Prefer IPv4 instead of disabling IPv6

Microsoft’s supported way to deprioritise IPv6 is the DisabledComponents registry value. Setting it to 0x20 makes Windows prefer IPv4 over IPv6 while keeping IPv6 functional for components that need it:

reg add "HKLMSYSTEMCurrentControlSetServicesTcpip6Parameters" /v DisabledComponents /t REG_DWORD /d 0x20 /f

A reboot is required. On its own this is a partial mitigation; combine it with the firewall rules or switch protections above.

4. Disable WPAD if you do not use it

  • Configure proxies explicitly (or via a PAC file at a fixed URL) and turn off Automatically detect settings through Group Policy.
  • Add a DNS entry or block for wpad in your internal DNS zone so it cannot be claimed by anyone else.
  • On systems that do not need it, disable the WinHTTP Web Proxy Auto-Discovery Service.

5. Make relayed authentication useless

  • Require SMB signing on all clients and servers (default on newer Windows versions, but check older servers).
  • Enforce LDAP signing and LDAP channel binding on domain controllers, so relayed NTLM cannot be used against LDAP or LDAPS.
  • Enable Extended Protection for Authentication (EPA) on web services that accept Windows authentication (AD CS web enrollment, Exchange, internal IIS apps).
  • Reduce NTLM use over time: audit with the Restrict NTLM audit policies, then block it where possible. Microsoft has announced the gradual deprecation of NTLM in Windows.
  • Set ms-DS-MachineAccountQuota to 0 so ordinary users (and relayed sessions) cannot create computer accounts.

Detection

  • Unexpected DHCPv6 servers or router advertisements: network IDS (Zeek, Suricata) and many switches can alert on DHCPv6 advertise/reply messages from non-infrastructure ports.
  • IPv6 DNS servers configured on clients: endpoint inventory queries showing a link-local or unknown IPv6 DNS server are a red flag on an IPv4-only network.
  • NTLM authentication to unusual destinations: event 4624 with Logon Type 3 and NTLM from workstations to a workstation, or many machine accounts authenticating to one host.
  • LDAP changes by computer accounts: new computer objects, or changes to msDS-AllowedToActOnBehalfOfOtherIdentity (event 5136) that you did not expect.

For Indian organisations

In RingSafe internal assessments, IPv6-based name spoofing combined with NTLM relay remains one of the most reliable routes from “plugged into a LAN port” to domain-level access. The fixes are mostly free configuration changes on switches, Group Policy and domain controllers, and they map directly to network security and identity controls expected by RBI, SEBI CSCRF and ISO 27001 audits.

Want to know if your network is exposed? RingSafe’s internal VAPT tests this safely. Contact us.

Need a real pentest?

Get a VAPT scoping call

Senior practitioner-led VAPT — not a checklist run by juniors. CVSS-scored findings, free retest, attestation letter. India's SMBs and SaaS teams.

Book VAPT scoping call Replies in 4 working hrs · India-only · Senior consultants