NTS: Authenticated Time at Meta

This post details Meta's implementation and open-sourcing of Network Time Security (NTS) for its public time service. It explains the security vulnerabilities of unauthenticated NTP, particularly in the context of modern certificate validation and token expiry requirements. The post describes the two-phase NTS process (NTS-KE and Authenticated NTP), Meta's stateless cookie derivation mechanism using HKDF-SHA256 and epoch day, and the use of Chrony for client configuration. It highlights how NTS prevents man-in-the-middle attacks that could manipulate system clocks to validate expired certificates or extend credential lifetimes, and discusses limitations such as delay attacks and bootstrapping. The open-sourcing of the protocol, server, and client library is a key contribution.
More from the Internet Latency and Network Performance Analysis trail
- Inside Petal: Building the World’s First Petabit-Class Transoceanic Subsea Cable
- ZGateway: Learnings from Putting a Proxy in Front of ZippyDB
- MetaRoCE: A New RDMA Transport Built for AI-Scale Ethernet
- Modernizing the Meta Ads Service With an Open-Source Kernel Scheduler
- Adopting AV1 for Real-Time Communication (RTC) at Scale