DHCP Attacks for Traffic Interception
What you'll learn: How attackers use rogue DHCP servers to trick devices into routing all their traffic through the attacker's machine.
How DHCP Normally Works
When your device joins a network, it broadcasts a "DHCP request" asking for configuration details. A legitimate DHCP server responds with:
- An IP address for your device
- A subnet mask
- A default gateway (the router that handles traffic to the internet)
- DNS servers
The Rogue DHCP Attack
An attacker sets up their own DHCP server on the network that races to respond to these requests before the legitimate server. The rogue server gives victims valid-looking settings with one critical change: it lists the attacker's machine as the default gateway.
Analogy: Imagine a newcomer asking for directions at an airport. A helpful-looking impostor rushes over before legitimate staff and says "All exits go through me" — now they can watch or intercept everyone passing by.
What Happens Next
Once the victim accepts this configuration:
- All their internet-bound traffic routes through the attacker's machine first
- The attacker can read, modify, or block any unencrypted data
- The attacker typically forwards traffic to the real gateway to avoid suspicion
- The victim experiences normal internet access and suspects nothing
Why It's Effective
- DHCP has no built-in authentication
- Devices trust the first (or strongest) response
- Works alongside ARP spoofing techniques you've learned
- Positions the attacker perfectly for man-in-the-middle attacks
Key Takeaway: Rogue DHCP servers exploit the trustful nature of DHCP to position attackers as the network gateway, transparently intercepting all victim traffic without arousing suspicion.