Jump to

    Lessons / Lesson 5, Gibson & Shelley, Ch. 3

    DHCP and NTP: the car park attendant and the school bell

    DHCP hands every new device an address the moment it joins a network. NTP makes sure every device’s clock shows exactly the same time.

    Poster: DHCP and NTP. A car park attendant handing out address tickets, a fake attendant being stopped, a town clock and computer screens all showing 10:30, and a detective lining up clues all stamped 10:31.

    Tap any panel to explore it.

    Like you’re 10

    DHCP is the car park attendant. When a car drives in, the attendant gives it a ticket with its own numbered space, and a note saying how long it can stay. Nobody has to argue over spaces, and when a car leaves, its space goes back to the pile for the next car.

    NTP is the school bell. One master clock tells every classroom clock the exact time, so the whole school agrees when lessons start and end. If one clock was ten minutes fast, nobody could work out who was really late.

    Grown-up version

    DHCP (Dynamic Host Configuration Protocol) automatically gives a device an IP address lease and its network settings: subnet mask, default gateway and DNS servers. The exchange has four steps, often remembered as DORA: Discover, Offer, Request, Acknowledge. It runs on UDP 67 and 68.

    NTP (Network Time Protocol) synchronises clocks to a trusted reference source, arranged in levels called strata (stratum 0 is an atomic or GPS clock). It runs on UDP 123.

    Attacks to know:

    AttackWhat happensDefence
    Rogue DHCP serverA fake server hands out settings that route victims through the attackerDHCP snooping on switches
    DHCP starvationAn attacker requests every address until none are leftPort security, limits per port
    NTP amplificationAttackers use badly configured NTP servers to flood a victim with traffic (a type of DDoS)Disable unneeded NTP features, filter traffic
    Time tamperingWrong clocks break logins and make logs useless as evidenceAuthenticated time sources, monitoring for drift

    A real-world example

    When an incident happens, investigators line up logs from firewalls, servers, laptops and cloud services to rebuild what the attacker did, minute by minute. If one system’s clock was out by even a few minutes, the story falls apart. That’s why payment card rules (PCI DSS) explicitly require time synchronisation.

    Why a buyer cares

    • The risk it reduces: attackers hijacking traffic through fake network settings, and investigations that collapse because timestamps don’t agree.
    • Who owns it at a company: the network or infrastructure team. The security operations team depends on the clocks being right.
    • What gets bought: DDI platforms that manage DNS, DHCP and IP addresses together, and network switches with security features such as DHCP snooping.
    • A good discovery question: “If you had to rebuild the timeline of an incident across your firewalls, servers and cloud logs tomorrow, would the timestamps agree?”

    The one thing to remember

    DHCP hands out addresses, NTP hands out the time. Both are boring until an attacker fakes them.

    Buyer score

    3/10

    Invisible until it breaks. Time sync is an audit requirement, but it’s bought as part of network platforms, not on its own.

    Share on LinkedIn
    BudgetIs there a product category companies buy for this?
    1/2.5
    PainDoes it cause breaches or outages people have heard of?
    0.5/2.5
    PressureDo regulators, insurers or auditors demand it?
    1/2.5
    OwnerIs there a clear buyer who is judged on it?
    0.5/2.5

    See every topic ranked by buyer score

    Check yourself

    3 quick questions. Get them all right and this lesson is marked as learned.

    1. 1What are the four steps of DHCP, in order?

    2. 2Which switch feature stops a rogue DHCP server handing out settings?

    3. 3Why does a security team care about NTP?

    Revision cards

    For later: answer out loud first, then check.

    1What does DHCP give a device when it joins a network?

    An IP address for a limited time (a lease), plus settings such as the default gateway and which DNS servers to use.

    2What is a rogue DHCP server, and how is it stopped?

    An unauthorised DHCP server that hands out bad settings, for example pointing devices at an attacker’s gateway or DNS. Switches block it with DHCP snooping, which only trusts DHCP replies from approved ports.

    3Why do security teams care that clocks are synchronised?

    Logs from different systems can only be lined up during an investigation if their timestamps agree. Kerberos login also fails if clocks drift too far apart (5 minutes by default in Active Directory).

    4Which ports do DHCP and NTP use?

    DHCP uses UDP 67 (server) and 68 (client). NTP uses UDP 123.

    Your progress is saved on this device only.

    Tap the image to zoom

    1DHCP: The Car Park Attendant

    DHCP gives each device an IP address lease plus its gateway and DNS settings, in four steps: Discover, Offer, Request, Acknowledge.

    Swipe for panel 2 →

    2Rogue DHCP

    A fake DHCP server can route victims through an attacker. DHCP snooping on switches only trusts the real server.

    Swipe for panel 3 →

    3NTP: The School Bell

    NTP synchronises every clock to a trusted time source, over UDP port 123.

    Swipe for panel 4 →

    4Why Time Matters

    Investigators line up logs from many systems. If the clocks disagree, the timeline falls apart.