Best tips for risk management


Using MD5 Keys to Authenticate a NTP Time Server

The Network Time Protocol (NTP) is anLinux NTP installations store keys in a file
Internet protocol designed to propagate'ntp.keys'. Each record in the file describes
accurate time around a computer network. NTPan authentication key in the format:
utilises UDP over TCP/IP to synchronise'key-number' 'encryption-code' 'key'. The
network time clients to an accurate time'key-number' is a reference to the key. The
reference. This article describes the'encryption code' describes the encryption
security aspects of the NTP protocol andalgorithm in use, usually 'M' for MD5
specifically using MD5 keys to authenticate aencryption. The 'key' field is the agreed key
time  server.that is to be encrypted by the encryption
algorithm. A subset of 'trusted keys' may be
The Network Time Protocol may be used tospecified in the NTP configuration file
synchronise many time critical processes on'ntp.conf'. This allows a reduced subset of
distributed computers across a network. Thekeys to be utilised by the server. Allowing
NTP protocol is therefore a potentialcompromised keys to be easily excluded from
security risk. Hackers or malicious usersuse. Trusted keys are specified using the
could attempt to disrupt system'trusted-keys' command followed by a
synchronisation by attempting to modify orspace-delimited  list  of  key  references.
replicate  NTP  time  stamps.
Many CISCO routers utilise secure MD5
Luckily, NTP has an integral security featureauthentication in the installed
to thwart attempts to tamper with system timeimplementation of NTP. To enable a Cisco
synchronisation. NTP can use MD5 encryptedrouter to perform MD5 authentication you must
keys to authenticate time stamps receivedfollow a number of steps. Firstly, enable NTP
from a time server. Network time clients andauthentication with the 'ntp authenticate'
devices can utilise secure keys tocommand. Secondly, define an NTP
authenticate time stamps and ensure theirauthentication key using the 'ntp
source  of  origin.authentication-key' command. A unique
reference number identifies each NTP key. The
NTP implements authentication by utilising ankey reference number is supplied as the first
agreed set of keys between a server andparamater to the 'ntp authentication-key'
client that are encrypted in time stamps. Acommand. Thirdly, use the 'ntp trusted-key'
NTP time server passes a timestamp to acommand to tell the router which keys are
client with one of a selection of keysvalid. The command's only argument is the
encrypted and appended to the message. When areference number of the key defined in the
timestamp is received by the client, theprevious  step
security key is un-encrypted and checked
against the list of stored secure keys. InThe Windows 2000\2003\XP operating systems
this manner the client can ensure that theadopt a SNTP (Simple Network Time Protocol)
received timestamp originated from theapplication for time synchronisation. The
expected  time  source.implementation used by Microsoft does not
include  authentication  keys.
The Network Time Protocol utilises MD5
(Message Digest Encryption 5) encrypted keys.To summarise, MD5 key authentication can be
MD5 is a widely used secure encryptionutilised to overcome potential security risks
algorithm that utilises a 128-bitwhen implementing the NTP protocol. Network
cryptographic hash function. The algorithmtime clients can be sure that timestamps have
outputs a fingerprint of the supplied key,indeed emanated from the expected time
which  is  appended  to  the  timestamp.reference and have not been intercepted for
malicious purposes.



1 A B C D 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112