Ntp Security: Authentication and Trusted Time References

NTP (Network Time Protocol) synchronises networksrecommends that a hardware source is used as a
to a single time source using timestamps to representtiming reference as Internet sources can't be
the current time of the day, this is essential for timeauthenticated.
sensitive transactions and many system applicationsNTP is vital in keeping networks synchronised but
such as email.equally important is keeping systems secure. Whilst
NTP is therefore vulnerable to security threats,network administrators spend thousands in anti-viral
whether from a malicious hacker who wants to altermalware software many fail to spot the vulnerability in
the timestamp to commit fraud or a DDoS attacktheir time servers.
(Distributed Denial of Service - normally caused byMany network administrators still entrust Internet
malicious malware that floods a server with traffic)sources for their time reference. Whilst many do
that blocks server access.provide a good source for UTC time (Coordinated
However, being one of the Internet's oldest protocolsUniversal Time - the international standard of time),
and having been developed for over 25 years, NTP issuch as nist.gov, the lack of authentication means the
equipped with its own security measures in the formnetwork is open to abuse.
of authentication.Other sources of UTC time are more secure and can
Authentication verifies that each timestamp has comebe utilized with relatively low cost equipment. The
from the intended time reference by analysing a set ofeasiest method is to use a specialist NTP server that
agreed encryption keys that are sent along with thecan connect to a GPS antenna and receive an
time information. NTP, using Message Digestauthenticated timestamp by satellite.
encryption (MD5) to un-encrypt the key, analyses itGPS time servers can provide accuracy to UTC time
and confirms whether it has come from the trustedto within a few nanoseconds as long as the antenna
time source by verifying it against a set of trustedhas a good view of the sky. They are relatively cheap
keys.and the signal is authenticated providing a secure time
Trusted authentication keys are listed in the NTPreference.
server configuration file (ntp.conf) and are normallyAlternatively there are several national broadcasts that
stored in the ntp.keys file. The key file is normally verytransmit a time reference. In the UK this is broadcast
large but trusted keys tell the NTP server which set ofby the National Physics Laboratory (NPL) in Cumbria.
subset of keys is currently active and which are not.Similar systems operate in Germany, France and the
Different subsets can be activated without editing theUS. Whilst this signal is authenticated, these radio
ntp.keys file using the trusted-keys config command.transmissions are vulnerable to interference and have
Authentication is therefore highly important in protectinga finite range.
a NTP server from malicious attack; however thereAuthentication for NTP has been developed to
are many time references were authentication can'tprevent malicious tampering with system
be trusted.synchronisation just as firewalls have been developed
Microsoft, who has installed a version of NTP in theirto protect networks from attack but as with any
operating systems since Windows 2000, stronglysystem of security it only works if it is utilised.