What is Dynamic Host Configuration Protocol?
The service that hands a device its IP address and network settings when it joins a network. DHCP lease logs show which machine held which address at what time, which is often how an investigation turns an IP into a device.
When a laptop joins a network it broadcasts a request, and a DHCP server leases it an IP address along with the gateway, DNS servers and other settings, for a limited time. Leases are why the same address can belong to different machines on different days. In an investigation that matters a great deal: an alert names an IP, and the DHCP logs, matched on the alert's timestamp, name the device (by MAC address and hostname) that held it then. DHCP is also an attack surface. A rogue DHCP server on a local network can hand out its own gateway or DNS server and quietly sit in the middle of traffic.
Source: IETF RFC (RFC 2131).
Practice it in a lab
Free, hands-on labs that teach Dynamic Host Configuration Protocol.
- Watch DHCP Hand Out Your IP Address (the DORA Exchange) (beginner, ~35 min)
- Plan subnets with CIDR math, then hand out addresses with a dnsmasq DHCP server (intermediate, ~60 min)
- Reconcile DHCP, EDR and CMDB records to find unmanaged devices (intermediate, ~45 min)
- Set up a pfSense firewall in a lab (a real network gateway you own) (intermediate, ~2 hours (mostly two VM installs running in the background))
Related terms
Related
- Watch DHCP Hand Out Your IP Address (the DORA Exchange)
- Plan subnets with CIDR math, then hand out addresses with a dnsmasq DHCP server
- Reconcile DHCP, EDR and CMDB records to find unmanaged devices
- Set up a pfSense firewall in a lab (a real network gateway you own)
- Firewall
- Internet Protocol
- Cybersecurity glossary
- Free cyber labs