Pcornel
Security · Common Attacks

DHCP Spoofing

Cheat sheet · https://pcornel.dk/topic.php?topic=4953

Back to the Topic

Answer

DHCP spoofing runs a rogue DHCP server that hands out a malicious gateway or DNS server. DHCP snooping on switches allows DHCP offers only from trusted ports.

Remember

  • Rogue DHCP can set a malicious gateway or DNS.
  • DHCP snooping allows offers only from trusted ports.
  • It also builds bindings for DAI.

First checks

  • show ip dhcp snooping binding — bindings
  • show ip dhcp snooping statistics — drops
  • Rogue DHCP detection (dhcp_probe/nmap broadcast-dhcp-discover) — unknown servers

Commands

show ip dhcp snooping binding
ip dhcp snooping trust

Verify in this order

rogue DHCP offer → dropped on untrusted port

Where it usually breaks

First mismatch in signal/report → evidence preservation → scoping/analysis → containment → eradication → recovery → validation/lessons learned; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4953

Confirmation

Confirm action

Continue?