4 Dec 2026Security news updated around the clock

DHCP

How DHCP hands out network settings, how attackers abuse it to intercept traffic and take over Active Directory, and how to defend it.

ProtocolsIntermediateUpdated 24 min read

Overview

The Dynamic Host Configuration Protocol (DHCP) gives devices their network settings when they join a network. A laptop that plugs in or connects to Wi-Fi asks for an IP address, and a DHCP server answers with the address, a subnet mask, a default gateway, and the DNS servers to use.

DHCP has no authentication in normal enterprise use. A new device has no address, no keys, and no way to tell a real server from a fake one. Any device on the same network segment can pretend to be a server, and any device can pretend to be thousands of clients.

That design flaw is the root of most DHCP attacks. This guide covers five areas:

  1. How DHCP works for IPv4 and IPv6, including the relay agents that carry requests across subnets.
  2. Attacks on the local network: exhausting the address pool, running a rogue server, and redirecting traffic around a VPN.
  3. IPv6 takeovers on networks that only use IPv4, which lead to NTLM and Kerberos credential relaying.
  4. Abuse of Windows DHCP servers against Active Directory DNS, including privilege escalation to domain admin.
  5. Code execution bugs in DHCP clients and servers, including Windows DHCP Server flaws fixed in 2026.

A short history

YearMilestoneWhy it matters
1985RFC 951 defines the Bootstrap Protocol (BOOTP)DHCP still uses the BOOTP message format and UDP ports 67 and 68
1993RFC 1531 defines DHCP, revised the same year as RFC 1541Adds leases, so addresses are lent for a time instead of assigned by hand
1997RFC 2131 and RFC 2132 define DHCP for IPv4 and its optionsStill the core standard. Its own security section admits the protocol has no protection against fake servers
2001RFC 3046 adds the Relay Agent Information option (82). RFC 3118 adds DHCP authenticationOption 82 lets switches tag which port a request came from. RFC 3118 authentication was almost never deployed
2002RFC 3442 adds classless static routes (option 121)Lets a server push routes to clients, the feature later abused by TunnelVision
2003RFC 3315 defines DHCPv6IPv6 gets its own, separate DHCP protocol
2006RFC 4702 adds the Client FQDN option (81)Lets DHCP servers register DNS names for clients, the feature later abused against Active Directory
2018mitm6 released (January), DynoRoot disclosed (May), RFC 8415 replaces RFC 3315 (November)IPv6 takeover becomes a standard penetration testing technique, and a rogue server gets root on Red Hat systems
2022Dirk-jan Mollema shows Kerberos relaying over DNS with mitm6DHCPv6 spoofing leads to machine takeover without NTLM
2023CVE-2023-28231 in the Windows DHCPv6 service (April). Akamai's DHCP DNS spoofing research (December)A single packet can corrupt server memory, and an unauthenticated client can overwrite Active Directory DNS records
2024Akamai's DHCP Administrators research (March). TunnelVision, CVE-2024-3661 (May)DHCP admin rights can lead to domain admin, and a rogue server can pull traffic out of a VPN
2026RFC 9915 makes DHCPv6 a full Internet Standard (January). Microsoft fixes critical Windows DHCP Server flaws (August and September)The protocol matures while server code keeps producing critical bugs

Where DHCP shows up in an enterprise

DHCP requests are broadcasts, and broadcasts do not cross routers. So most enterprises run a few central DHCP servers and configure every router or Layer 3 switch as a relay agent that forwards requests to them. That design connects every access port in the company to a handful of servers, often domain controllers.

ComponentWhat it can reachHow it gets attacked
DHCP clients on laptops, servers, phones, and IoT devicesThe device's routing table, DNS settings, proxy settings, and client scriptsA rogue server pushes a fake gateway, DNS server, proxy, or routes, or exploits a parsing bug in the client
Access switchesEvery device on the local VLANFloods of fake requests, and rogue servers on ports where DHCP snooping is off
Routers and Layer 3 switches acting as relay agentsEvery client subnet and the central DHCP serversForged relay messages that target other subnets' address pools or the server's parsing code
Central DHCP servers (Windows Server, ISC Kea, Infoblox, and others)Address pools, audit logs, and Active Directory when installed on a domain controllerPool exhaustion, memory corruption bugs, and abuse of administrative rights
DHCP-driven DNS updatesActive Directory-integrated DNS zonesClients that make the server create or overwrite DNS records

How DHCP works

DHCP for IPv4 (DHCPv4) and DHCP for IPv6 (DHCPv6) solve the same problem with different protocols. Both run over UDP, and neither authenticates its messages in normal use.

DHCPv4: the DORA exchange

A DHCPv4 client gets its address in four steps, often called DORA: Discover, Offer, Request, and Acknowledge. Clients send from UDP port 68, and servers listen on UDP port 67.

sequenceDiagram
  participant C as Client
  participant R as Relay agent
  participant S as DHCP server
  C->>R: DISCOVER broadcast from 0.0.0.0
  R->>S: Forwarded as unicast with giaddr set
  S->>R: OFFER with a proposed address
  R->>C: OFFER delivered on the local link
  C->>R: REQUEST naming the chosen server
  R->>S: Forwarded REQUEST
  S->>R: ACK confirming the lease
  R->>C: ACK delivered, client configures itself
  1. Discover. The client has no address yet, so it sends from 0.0.0.0 to the broadcast address 255.255.255.255. Every device on the VLAN receives it.
  2. Offer. Each server that hears the request reserves an address and offers it. If the server is on another subnet, the local router relays the request. The relay writes its own interface address into the giaddr field, so the server knows which subnet's pool to use.
  3. Request. The client picks an offer, usually the first one to arrive, and broadcasts a request naming that server. The broadcast also tells the other servers their offers were declined.
  4. Acknowledge. The chosen server confirms the lease with an ACK, or refuses with a NAK if the address is no longer available.

The client accepts whichever offer arrives first. Nothing proves that the offer came from the organization's real server. A rogue server on the same VLAN usually answers faster than a real server behind a relay.

The DHCPv4 packet

A DHCPv4 message keeps the fixed 236-byte header from BOOTP, followed by a 4-byte "magic cookie" (0x63825363) and a list of options. The header fields that matter for security:

FieldSizePurposeSecurity note
op1 byte1 for a client request, 2 for a server replyNone
xid4 bytesTransaction ID that matches replies to requestsSent in clear text, so anyone on the VLAN can read it and forge a matching reply
flags2 bytesThe broadcast flag asks the server to broadcast its replyNone
ciaddr4 bytesThe client's current address, when renewingNone
yiaddr4 bytes"Your" address, the one the server assignsNone
giaddr4 bytesThe relay agent's addressDecides which subnet's pool the server uses, so forged values target other subnets
chaddr16 bytesThe client's hardware (MAC) addressFreely chosen by the client, which is what makes starvation attacks easy

Options follow a type, length, value format. The ones that matter most:

OptionNameWhy attackers care
3Router (default gateway)A rogue value sends all traffic through the attacker
6DNS serversA rogue value lets the attacker answer every name lookup
12Host nameUsed in Windows DHCP audit logs and DNS registration
53DHCP message typePresent in every message: DISCOVER (1), OFFER (2), REQUEST (3), ACK (5), NAK (6), and others
54Server identifierNames the server the client chose
61Client identifierAnother client-controlled identity, randomized in starvation attacks
81Client FQDNTells the server which DNS name to register for the client
82Relay agent informationLets switches tag the port a request came from
121Classless static routesPushes routes that can override a VPN's routes
252Proxy auto-discovery (WPAD)Points Windows clients to a proxy configuration file

DHCPv6: SARR, DUIDs, and relays

DHCPv6 is a separate protocol, defined today by RFC 9915. IPv6 routers send Router Advertisements that tell hosts whether to build their own addresses (stateless address autoconfiguration, or SLAAC) or ask a DHCPv6 server. Even hosts that use SLAAC often use DHCPv6 to learn their DNS servers.

Clients use UDP port 546, and servers and relays use UDP port 547. There are no broadcasts. Clients send from their link-local address to the multicast address ff02::1:2, which every DHCPv6 server and relay on the link listens to.

The stateful exchange has four messages, often called SARR: Solicit (type 1), Advertise (type 2), Request (type 3), and Reply (type 7). Clients and servers identify themselves with a DHCP Unique Identifier (DUID) instead of a MAC address. DNS servers are delivered in option 23.

When a relay forwards a DHCPv6 message, it wraps the message inside a Relay-forward message (type 12). A message that crosses several relays gets several layers of wrapping. RFC 8415 limits this nesting to 8 relays (the older RFC 3315 allowed 32). The Windows DHCPv6 bug CVE-2023-28231, described below, sat in exactly this unwrapping code.

Windows, macOS, and most Linux distributions enable IPv6 and send DHCPv6 Solicit messages by default, even on networks that only use IPv4. On those networks nobody answers, unless an attacker does.

Attacks on the local network

Every attack in this section needs a foothold on the same network segment as the victims: a compromised laptop, a device plugged into a meeting room port (ATT&CK T1200, Hardware Additions), or a nearby Wi-Fi connection.

DHCP starvation

In a starvation attack, the attacker uses up every address in the server's pool, so real devices cannot join the network. ATT&CK maps this to Endpoint Denial of Service: Service Exhaustion Flood (T1499.002).

The server identifies clients by the chaddr field or the client identifier (option 61), and the client chooses both. So the attacker sends thousands of DISCOVER messages, each with a different random hardware address. The server treats each one as a new device and offers an address. If the attacker also completes each exchange with a REQUEST, the server commits the lease for its full duration, which is often days.

Once the pool is empty, new devices get no answer. Windows clients then assign themselves an address in 169.254.0.0/16, which cannot reach the rest of the network.

Attackers often use starvation as a setup step. With the real server unable to answer, a rogue server faces no competition.

Relayed starvation also works across subnets. A central server decides which pool to use from the giaddr field. An attacker who can send unicast traffic to the server's UDP port 67 can forge relay messages with giaddr values for other subnets, and drain pools for VLANs they are not connected to. Firewall rules that only allow relay agents to reach the DHCP server stop this.

Rogue DHCP servers

A rogue server answers clients before the real one does, and controls the settings they accept. ATT&CK tracks this as Adversary-in-the-Middle: DHCP Spoofing (T1557.003). The underlying weaknesses are Authentication Bypass by Spoofing (CWE-290) and Missing Authentication for Critical Function (CWE-306).

What the attacker does with the offer:

  • Default gateway (option 3). The attacker names their own machine as the gateway, forwards traffic to the real router so nothing looks broken, and reads or changes everything in transit (T1040, Network Sniffing).
  • DNS servers (option 6). The attacker keeps the real gateway but supplies their own DNS server, then answers chosen lookups, such as an internal portal or an update server, with their own address.
  • Proxy auto-discovery (option 252). The attacker points Windows clients to a proxy configuration file they control, so web traffic flows through their proxy and can prompt users for credentials.

TunnelVision: pulling traffic out of a VPN

In May 2024, Dani Cronce and Lizzie Moratti of Leviathan Security Group disclosed TunnelVision (CVE-2024-3661). It shows that a rogue DHCP server can take traffic away from a VPN without breaking the VPN.

Many VPN clients send traffic into the tunnel by installing routes: a default route (0.0.0.0/0) or two half-internet routes (0.0.0.0/1 and 128.0.0.0/1) that point at the tunnel interface. Routing tables always prefer the most specific matching route. Option 121 lets a DHCP server install routes on the physical network adapter. So a rogue server sends routes more specific than the VPN's, and the operating system follows them.

flowchart TD
  A["Rogue DHCP server"] -->|"Option 121 routes more specific than the VPN's"| V["Victim laptop with VPN connected"]
  V -->|"VPN route, less specific"| T["VPN tunnel interface"]
  V -->|"Option 121 route, more specific, wins"| P["Physical network adapter"]
  P -->|"Traffic leaves outside the tunnel"| A

The victim's traffic leaves through the physical adapter, outside the encryption, to the attacker. The VPN client still shows as connected. The researchers reported that the technique works against routing-based VPNs on Linux, Windows, macOS, and iOS. Android was not affected, because its DHCP client does not support option 121.

The researchers stressed that DHCP and option 121 work as their standards define. The weakness is in VPN clients that rely only on routes, without firewall rules that block traffic outside the tunnel.

IPv6 takeover on IPv4 networks

Many enterprises enable DHCP snooping for IPv4 and never configure IPv6, on the assumption that they do not use it. Their endpoints disagree. Windows sends DHCPv6 Solicit messages on every network, and prefers IPv6 DNS servers over IPv4 ones.

mitm6: becoming everyone's DNS server

In January 2018, Dirk-jan Mollema, then at Fox-IT, released mitm6. The tool listens for DHCPv6 Solicit messages and answers them. Its reply gives the victim an IPv6 address and names the attacker as the victim's DNS server in option 23.

Because Windows prefers the IPv6 DNS server, the victim now sends its DNS queries to the attacker first, even though all real corporate traffic still uses IPv4. The attacker combines this DHCP spoofing (T1557.003) with name resolution poisoning and relay attacks (T1557.001):

  • WPAD and NTLM. When the victim looks up the proxy auto-discovery name (wpad), the attacker answers with their own address. The victim connects and authenticates with NTLM, which the attacker captures or relays to another server.
  • Kerberos relaying over DNS. This path, described next, needs no NTLM at all.

Kerberos relaying over DNS

In February 2022, Dirk-jan Mollema showed how to relay Kerberos authentication with mitm6 and his krbrelayx toolkit:

  1. The victim, now using the attacker as its DNS server, tries to register its own name in DNS, as Windows machines do.
  2. The attacker's DNS server refuses the unauthenticated update.
  3. The victim retries with a secure update. It sends a TKEY query carrying a Kerberos service ticket for the DNS service, issued for the victim's own machine account.
  4. The attacker relays that ticket to a service that accepts it, such as the web enrollment page of Active Directory Certificate Services (AD CS).
  5. AD CS issues a certificate for the victim's machine account. With it, the attacker can authenticate as that machine. If the victim is a domain controller, that means control of the domain.

The whole chain starts from the DHCPv6 answer. IPv4 DHCP snooping does nothing to stop it.

Abusing Windows DHCP against Active Directory DNS

These attacks use a correctly configured, legitimate Windows DHCP server. Akamai reported that Microsoft DHCP servers were running in about 40% of the networks it monitors.

DHCP DNS spoofing

Windows DHCP servers can register DNS records for their clients, a feature called DHCP DNS Dynamic Updates. A client puts its desired name in option 81, and the server writes the record into the Active Directory-integrated DNS zone using the server's own credentials. The client is never authenticated.

In December 2023, Akamai researcher Ori David showed how an unauthenticated attacker can abuse this:

  • Creating records. An attacker requests a lease with any name in the domain. The server creates a DNS record for that name, pointing to the attacker's address. Names that do not exist yet, such as a decommissioned server that clients still look for, are easy targets.
  • Overwriting records. Under some configurations, the server will also overwrite existing records. A Windows feature called Name Protection (which adds a DHCID record to tie a name to one client) blocks some of these overwrites.
  • DHCP on a domain controller. When the DHCP server role runs on a domain controller, the server updates DNS with the domain controller's own permissions. Akamai reported that this lets unauthenticated attackers overwrite existing records in the zone, and found DHCP installed on a domain controller in 57% of the networks it monitors.
  • The DNSUpdateProxy group. This built-in group lets several DHCP servers manage the same records. Records created by its members are created without normal ownership protection, which Akamai showed creates further takeover risk.

Akamai's advice was to turn off DHCP DNS Dynamic Updates where they are not needed, stop using the DNSUpdateProxy group, and configure one dedicated DNS update account on every DHCP server instead.

From DHCP Administrators to domain admin

In March 2024, Ori David published a second study, on the DHCP Administrators group. The group is meant for staff who manage DHCP servers. Akamai noted that the technique uses only legitimate rights, so there is no vulnerability to patch. Its research showed those rights reach further than expected:

  1. A DHCP administrator sets the DNS Server option on a scope to an address they control.
  2. They request a lease with option 81, which makes the DHCP server register a DNS record.
  3. The server sends its DNS update to the attacker's machine, because that is now its configured DNS server.
  4. The attacker refuses the unauthenticated update, so the server retries with a secure update and authenticates over Kerberos with its own machine account.
  5. The attacker relays that authentication, for example to AD CS, and takes over the DHCP server's machine account.

When the DHCP server is a domain controller, this gives the attacker the domain. Any account in DHCP Administrators therefore needs the same protection as a domain admin wherever DHCP runs on a domain controller.

Code execution bugs in DHCP software

DHCP clients and servers parse binary data from unauthenticated network packets, and they usually run with high privileges. Parsing mistakes therefore tend to become remote code execution.

DynoRoot: root on Red Hat from a rogue server (CVE-2018-1111)

On May 15, 2018, Red Hat disclosed DynoRoot, found by Felix Wilhelm of Google's security team. The flaw was a command injection (CWE-77) in a NetworkManager dispatcher script, 11-dhclient, shipped with Red Hat Enterprise Linux 6 and 7 and with Fedora.

When the system received a DHCP lease, the script processed the DHCP option values with the shell's eval command without properly escaping them. A rogue DHCP server could put shell commands inside an option value, and the client ran them as root. The victim only had to connect to the attacker's network, such as a hostile Wi-Fi network.

Windows DHCPv6: one packet, 33 layers (CVE-2023-28231)

Microsoft fixed CVE-2023-28231, a heap-based buffer overflow (CWE-122) in the Windows DHCPv6 server service, on April 11, 2023. Guy Lederfein and Lucas Miller of Trend Micro published the technical analysis on the Zero Day Initiative blog in May 2023.

The service's ProcessRelayForwardMessage function set aside room for 32 nested Relay-forward layers, 52 bytes each. It did not stop counting at 32. A single packet to UDP port 547 with more than 32 nested layers wrote past the end of the buffer. An attacker on an adjacent network, with no credentials, could use this to run code as the DHCP service.

The detection follows directly from the bug. Real relay chains are only a few layers deep, so any DHCPv6 message with dozens of nested Relay-forward layers is an attack.

Windows DHCP Server in 2026

Microsoft fixed more critical Windows DHCP Server flaws in 2026:

  • CVE-2026-62823, published August 11, 2026. A heap-based buffer overflow that lets an unauthenticated attacker on an adjacent network run code. Rated CVSS 8.8.
  • CVE-2026-69845, published September 8, 2026. A heap-based buffer overflow with improper input validation (CWE-122 and CWE-20), reachable over the network without authentication. Rated CVSS 9.8. It was not known to be exploited at release, and CISA's assessment rated it automatable with total technical impact.
  • Patch Tuesday coverage of the September 2026 release listed a second 9.8-rated DHCP Server flaw, CVE-2026-72979.

Both published advisories list Windows Server 2012 through Windows Server 2025, plus Windows 10 versions 1607 and 1809, as affected. Microsoft has not published how the flaws are triggered. Treat any statement about the attack path, including whether DHCP snooping or relay filtering helps, as unconfirmed until Microsoft or the researchers say more.

What changed, and what did not

What changedEvidence
DHCP attacks moved from denial of service to Active Directory takeoverAkamai's 2023 and 2024 research turned legitimate Windows DHCP features into DNS spoofing and Kerberos coercion
IPv6 became the easiest interception path on IPv4 networksmitm6 (2018) and Kerberos relaying over DNS (2022) start from unanswered DHCPv6 requests
VPNs stopped being a complete answer on hostile networksTunnelVision (2024) routes traffic around routing-based VPN clients
Critical server bugs kept comingCVE-2023-28231, then several critical Windows DHCP Server flaws in August and September 2026
What did not changeWhy
DHCP is unauthenticated in practiceRFC 3118 authentication needs keys on a device before it has a network, so almost nobody deploys it
The first answer winsClients cannot tell a real server from a rogue one. Only the network, through DHCP snooping and DHCPv6 Guard, can
DHCP keeps running on domain controllersAkamai found it on domain controllers in 57% of the networks it monitors, which gives DHCP flaws and DHCP admin rights a direct path to the domain

Frameworks

FrameworkIDNameHow it applies to DHCP
ATT&CKT1557.003Adversary-in-the-Middle: DHCP SpoofingRogue DHCPv4 or DHCPv6 servers, including mitm6 and TunnelVision
ATT&CKT1557.001Adversary-in-the-Middle: Name Resolution Poisoning and SMB RelayThe credential capture and relaying that follows mitm6
ATT&CKT1499.002Endpoint Denial of Service: Service Exhaustion FloodDHCP starvation
ATT&CKT1200Hardware AdditionsA rogue device plugged into an open network port to serve leases
ATT&CKT1040Network SniffingReading traffic after a gateway or route hijack
CWECWE-290Authentication Bypass by SpoofingForged client identities, relay addresses, and server replies
CWECWE-306Missing Authentication for Critical FunctionThe protocol's lack of message authentication
CWECWE-77Command injectionDynoRoot
CWECWE-122Heap-based Buffer OverflowCVE-2023-28231 and the 2026 Windows DHCP Server flaws

Detection engineering

Log sources

SourceWhat it recordsWhat to look for
Zeek dhcp.logDHCPv4 exchanges: client_addr, server_addr, mac, host_name, assigned_addr, lease_time, msg_typesOffers from unknown servers, floods of new hardware addresses, host names of critical servers in client requests
Zeek conn.logAll connections, including UDP 546 and 547DHCPv6 replies from hosts that are not DHCPv6 servers or relays (Zeek's DHCP analyzer covers DHCPv4 only)
Zeek dns.logDNS queries, including TKEYTKEY queries sent to anything other than a domain controller
Switch logsDHCP snooping drops, rate-limit violations, ports disabled for exceeding the DHCP rate limitRogue servers and floods stopped at the edge
Windows DHCP Server event log and audit log (DhcpSrvLog-*.log)Scope warnings (Event 1020 when a scope fills past its threshold), every lease with host name and MAC addressPool exhaustion, and lease requests using the names of domain controllers or other critical servers
Firewalls in front of DHCP serversTraffic to UDP 67 and 547Unicast DHCP or DHCPv6 traffic from anything other than an approved relay agent
Active Directory and AD CS logsDNS record changes, Kerberos events, certificate issuance (Events 4886 and 4887)DNS records changed by the DHCP server for critical names, certificates issued to machine accounts at unusual times

Example detections

Rogue DHCPv4 server, as Sigma-style YAML over Zeek dhcp.log. Replace the addresses with your real DHCP servers and relay agents.

title: DHCP offer or acknowledgment from an unapproved server
logsource:
  product: zeek
  service: dhcp
detection:
  server_reply:
    msg_types|contains:
      - OFFER
      - ACK
  approved:
    server_addr:
      - 10.10.1.50
      - 10.10.2.50
  no_server:
    server_addr: null
  condition: server_reply and not approved and not no_server
falsepositives:
  - Branch routers or lab networks running their own DHCP scopes
  - Consumer routers on guest or lab VLANs
level: high

DHCP starvation, as pseudo-SQL over Zeek dhcp.log. A flood shows up as many new hardware addresses in a short time from one network segment.

SELECT sensor_segment, COUNT(DISTINCT mac) AS new_macs,
       SUM(CASE WHEN host_name IS NULL THEN 1 ELSE 0 END) AS without_host_name
FROM zeek_dhcp
WHERE ts > now() - INTERVAL '1 minute'
  AND msg_types LIKE '%DISCOVER%'
GROUP BY sensor_segment
HAVING COUNT(DISTINCT mac) > 50;

Why normal traffic rarely triggers it: after a power cut, many devices do request addresses at once, but their MAC addresses carry your hardware vendors' prefixes, they send host names that follow your naming standard, and they complete the full exchange. Floods use random prefixes and usually send no host name.

Rogue DHCPv6 server, as pseudo-SQL over Zeek conn.log. Do not alert on traffic to UDP 547. Every Windows machine sends DHCPv6 Solicit messages there by default, so that rule would fire constantly. Alert instead on the reply direction: a host sending from port 547 to a client on port 546.

SELECT id_orig_h AS replying_host, COUNT(DISTINCT id_resp_h) AS clients_answered
FROM zeek_conn
WHERE ts > now() - INTERVAL '1 hour'
  AND proto = 'udp' AND id_orig_p = 547 AND id_resp_p = 546
  AND id_orig_h NOT IN (SELECT ip FROM approved_dhcpv6_servers_and_relays)
GROUP BY id_orig_h;

On a network with no DHCPv6 service, the approved list is empty, so investigate any result immediately. mitm6 typically answers many clients within minutes.

Kerberos relaying over DNS, as Sigma-style YAML over Zeek dns.log. Windows sends TKEY queries during secure DNS updates, and those should only go to domain controllers.

title: DNS TKEY query sent to a host that is not a domain controller
logsource:
  product: zeek
  service: dns
detection:
  tkey:
    qtype_name: TKEY
  domain_controllers:
    id.resp_h:
      - 10.10.1.10
      - 10.10.2.10
  condition: tkey and not domain_controllers
falsepositives:
  - New domain controllers not yet in the list
level: high

DNS spoofing through Windows DHCP. In the Windows DHCP audit log, alert on lease requests whose host name matches a domain controller, the DHCP server itself, or another critical server. Real servers almost never request DHCP leases, so these names should not appear.

CVE-2023-28231 and server-targeting traffic. On firewalls in front of DHCP servers, alert on unicast traffic to UDP 67 or 547 from anything other than an approved relay agent. If you can inspect DHCPv6 payloads, any Relay-forward message with more than a handful of nested layers is hostile.

Prevention and hardening

In order of impact:

  1. Turn on DHCP snooping on every access switch. Leave user ports untrusted, and trust only the uplinks toward real DHCP servers and relay agents. The switch then drops server messages arriving on user ports. On Cisco switches, also set a per-port rate limit (ip dhcp snooping limit rate) to stop starvation floods, and keep MAC address verification on so the frame's source address must match chaddr. Feed the snooping database into Dynamic ARP Inspection and IP Source Guard.
  2. Block rogue IPv6 answers. On switches, enable DHCPv6 Guard to drop Advertise and Reply messages on user ports, and RA Guard to drop rogue Router Advertisements. On Windows networks that do not use IPv6, Fox-IT's guidance with mitm6 is to block three predefined Windows Firewall rules by Group Policy instead of disabling IPv6: (Inbound) Core Networking - Dynamic Host Configuration Protocol for IPv6 (DHCPV6-In), (Inbound) Core Networking - Router Advertisement (ICMPv6-In), and (Outbound) Core Networking - Dynamic Host Configuration Protocol for IPv6 (DHCPV6-Out).
  3. Move DHCP off domain controllers. Run it on dedicated member servers or appliances. This removes the shortest path from a DHCP flaw or a DHCP admin account to the domain.
  4. Lock down DHCP-driven DNS updates. Turn them off on scopes that do not need them, stop using the DNSUpdateProxy group, and configure one dedicated, unprivileged DNS update account on every DHCP server. Turn on Name Protection. Create static DNS records for critical servers.
  5. Treat DHCP Administrators as a privileged group. Keep it small and audited, and protect it like Domain Admins wherever DHCP runs on a domain controller.
  6. Close the relay targets. Require Extended Protection for Authentication and HTTPS on AD CS web enrollment, and require signing on LDAP and SMB. Both the mitm6 and DHCP Administrators chains end in a relay to one of these services.
  7. Restrict who can reach DHCP servers. Allow unicast traffic to UDP 67 and 547 on the DHCP servers only from approved relay agents. This stops relayed starvation and limits who can send crafted packets to the server.
  8. Patch DHCP servers and clients quickly, including the August and September 2026 Windows DHCP Server updates.
  9. Harden VPN clients against TunnelVision. Use VPN clients that enforce firewall rules dropping any traffic that leaves outside the tunnel. On managed Linux laptops, configure the DHCP client to ignore option 121 on untrusted networks.
  10. Control who can connect at all. IEEE 802.1X port authentication keeps unknown devices off the access network, which removes the foothold every local DHCP attack needs.

Incident response

When an alert points to a rogue DHCP server, a starvation flood, or a DNS record changed through DHCP:

  1. Find the source. Look up the rogue server's address and MAC address in your network sensor logs, then on the switches (for example, show mac address-table address on Cisco), to find the physical port or wireless session.
  2. Isolate it. Shut the switch port or remove the wireless client. If the traffic reached the DHCP server directly from a workstation, block that source at the firewall.
  3. Recover the address pool. After starvation, delete the fake leases created during the flood. They usually have no host name and random hardware addresses.
  4. Restore DNS. Review records in the Active Directory-integrated zone that changed during the incident, especially names of servers, and delete or correct any that point to attacker addresses. Check membership of DNSUpdateProxy and DHCP Administrators.
  5. Reset affected clients. Devices keep a rogue gateway, DNS server, or route until their lease ends. Force a renewal (for example, by bouncing the affected switch ports) and clear DNS caches.
  6. Hunt for stolen or relayed credentials. For clients that talked to the rogue server, check domain controller authentication events (4624, 4768, and 4769) and AD CS issuance events (4886 and 4887) during the incident window.
  7. Revoke and rotate. Revoke any certificate issued through a relay. Resetting a machine account's password does not stop an attacker who holds a valid certificate for it. Rotate passwords of user accounts whose credentials may have been captured.
  8. Confirm the controls before closing. Check that DHCP snooping, DHCPv6 Guard, and rate limits are active on every VLAN involved.

Real-world cases

CaseYearCategoryWhat happened
DynoRoot, CVE-2018-11112018Client command injectionA rogue DHCP server could run commands as root on Red Hat Enterprise Linux 6 and 7 and Fedora through a NetworkManager script (Red Hat)
Kerberos relaying over DNS2022IPv6 takeover and relayAnswering DHCPv6 with mitm6 led Windows clients to send Kerberos tickets that could be relayed to AD CS (Dirk-jan Mollema)
CVE-2023-282312023Server memory corruptionMore than 32 nested DHCPv6 relay layers overflowed a heap buffer in the Windows DHCPv6 service (Zero Day Initiative)
DHCP DNS spoofing2023Active Directory DNSUnauthenticated clients could make Windows DHCP servers create, and in some setups overwrite, Active Directory DNS records (Akamai)
DHCP Administrators escalation2024Privilege escalationDHCP admin rights coerced the server's machine account into Kerberos authentication, leading to domain takeover where DHCP ran on a domain controller (Akamai)
TunnelVision, CVE-2024-36612024Route injectionOption 121 routes pulled traffic out of routing-based VPN tunnels (NVD)
Windows DHCP Server flaws2026Server memory corruptionCritical heap overflows fixed in August (CVE-2026-62823) and September (CVE-2026-69845) affecting Windows Server 2012 through 2025 (NVD)

DHCP in the news

News stories tagged with DHCP. This list updates on its own while the page is open.

    No news stories are tagged with this topic yet.

    Frequently asked questions

    Why don't enterprises use DHCP authentication to stop rogue servers?

    RFC 3118 authentication needs a shared key on each device before it requests an address, and DHCP exists to configure devices that have nothing yet. Enterprises protect DHCP at the switch instead, with DHCP snooping, DHCPv6 Guard, and 802.1X.

    Does a VPN protect a laptop from a rogue DHCP server on public Wi-Fi?

    Only if the VPN client blocks traffic outside the tunnel with firewall rules. TunnelVision showed that a VPN relying only on routes can lose traffic to option 121 routes pushed by a rogue server, while still showing as connected.

    Why does DHCPv6 spoofing work on networks that only use IPv4?

    Windows sends DHCPv6 requests on every network and prefers IPv6 DNS servers. If nothing answers those requests and the switches lack DHCPv6 Guard, an attacker can answer them and become every client's DNS server.

    Why is running DHCP on a domain controller risky?

    The DHCP service then acts with the domain controller's permissions. Akamai showed that unauthenticated clients can then overwrite Active Directory DNS records, that DHCP admin rights can lead to domain takeover, and any code execution flaw in the DHCP service becomes code execution on a domain controller.

    How can I tell a starvation attack from a burst of real devices?

    Real devices carry your vendors' MAC address prefixes, send host names that follow your naming standard, and complete the full DISCOVER, OFFER, REQUEST, ACK exchange. Starvation floods use random hardware addresses, usually send no host name, and often come from one switch port.

    References and further reading

    Found a technical error in this entry? Tell us and we will fix it.