rfc-8573

Message Authentication Code for the Network Time Protocol

A. Malhotra, S. Goldberg
date2019-06 streamIETF areaint wgntp statusPROPOSED STANDARD pages5 canonicalhttps://www.rfc-editor.org/rfc/rfc8573 doi10.17487/RFC8573
The Network Time Protocol (NTP), as described in RFC 5905, states that NTP packets should be authenticated by appending NTP data to a 128-bit key and hashing the result with MD5 to obtain a 128-bit tag. This document deprecates MD5-based authentication, which is considered too weak, and recommends the use of AES-CMAC as described in RFC 4493 as a replacement.

updated by

updates

Extracted elements (8)

design-rationale §4

AES-CMAC was chosen over alternatives because it is immune to nonce-reuse vulnerabilities (it does not use a nonce), has good performance in latency and throughput, benefits from native hardware support (e.g., Intel AES-NI), and is widely supported in open source implementations.

ntp, crypto, security

interoperability-note §3

Old NTP implementations that do not support AES-CMAC will not accept and will not send packets authenticated with an AES-CMAC key, meaning migration requires coordinated key updates.

ntp, crypto, security

normative-requirement §3 MUST

Hosts wishing to use NTP authentication MUST implement AES-CMAC and share the corresponding symmetric key out of band.

ntp, crypto, security

normative-requirement §3 MUST

If NTP authentication is implemented, AES-CMAC as specified in RFC 4493 MUST be computed over all fields in the NTP header and any extension fields present in the NTP packet.

ntp, crypto, security

normative-requirement §2 MUST

MD5-based MAC for NTP authentication, as defined in RFC 5905, MUST be deprecated because it is not a secure MAC.

ntp, crypto, security

normative-requirement §3 MUST

The MAC key for NTP MUST be an AES-128 key that is 128 bits in length, and the resulting MAC tag MUST be at least 128 bits in length.

ntp, crypto, security

protocol-element §3

A symmetric key for NTP authentication is a triplet of ID, type (e.g., MD5 or AES-CMAC), and the key itself; all three must match for successful packet authentication between two hosts.

ntp, crypto, security

security-consideration §7

The document refers to NIST SP 800-38B for CMAC mode authentication recommendations and to RFC 4493 Security Considerations for security guarantees of AES-CMAC. MD5-based authentication is deprecated as it is not a secure MAC per analysis in [BCK] and RFC 6151.

ntp, crypto, security