Rogue DHCP and Gateway Attacks
What you'll learn: How attackers deploy fake DHCP servers to redirect all your network traffic through their machine.
The Concept
When your device connects to a network, it typically asks "Hey, what IP address should I use, and where's the gateway to the internet?" using a protocol called DHCP (Dynamic Host Configuration Protocol). A legitimate DHCP server responds with these settings.
A rogue DHCP attack occurs when an attacker runs their own malicious DHCP server on the network. When your device broadcasts that DHCP request, both the legitimate server and the attacker's fake server may respond—but if the attacker's response arrives first, your device trusts it.
How It Works
The attacker configures their rogue DHCP server to hand out poisoned network settings:
- Their own IP as the default gateway
- Valid-looking IP addresses for victims
- Sometimes malicious DNS servers too
Now every packet you try to send to the internet goes through the attacker's machine first. They've positioned themselves as a man-in-the-middle without needing ARP spoofing—victims voluntarily route all traffic through the attacker's system.
The Analogy
Imagine asking for directions to the highway. A helpful stranger (legitimate DHCP) gives you the real route, but a con artist (rogue DHCP) shouts louder and faster, directing you through their toll booth first. You think it's the official way, so you hand over everything passing through.
Why It's Dangerous
Unlike ARP spoofing that targets existing connections, rogue DHCP affects new devices joining the network. The attacker intercepts, inspects, and can modify all routed traffic—credentials, emails, downloads—everything.
Key Takeaway: Rogue DHCP servers trick devices into using the attacker as their gateway, routing all internet-bound traffic through the attacker's machine for interception and manipulation.