Lion Cipher Lab

Keep your clock honest: NTP, UTC, and why a wrong clock breaks security

Why it matters

Almost every security control you will ever touch quietly assumes your computer knows what time it is. A TLS certificate is only valid between two timestamps. A Kerberos ticket is refused if your clock is more than about five minutes off the server's. A one-time code from an authenticator app is derived from the current 30-second window. A forensic timeline that stitches together logs from four machines is worthless if one of them is forty minutes fast — the incident will look like it started on the wrong box. And yet the clock is the one dependency nobody teaches, because it appears to look…

What you'll learn

Steps in this lab

  1. Three different "times", and why your computer keeps all of them
  2. Read every line of `timedatectl` — the whole status in one command
  3. `date` versus `date -u`, and the one timestamp format that never lies
  4. The hardware clock — and the classic dual-boot trap
  5. Set your time zone — and why servers are deliberately left on UTC
  6. What NTP actually does: four timestamps, offset and delay
  7. Stratum — and why a lower number is not automatically better for you
  8. systemd-timesyncd versus chrony: which you already have, and which you'd want
  9. Install chrony and read `chronyc tracking` field by field
  10. `chronyc sources -v`: see exactly who you are trusting
  11. The Windows side: `w32tm /query /status`
  12. Break it on purpose: watch a valid TLS certificate fail
  13. The security payload: skew, timelines, NTS, and a hostile DHCP server
  14. The judgment: when NOT to run your own time server, and what a pro actually does

Open the full interactive lab →