SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · Idea

Needham-Schroeder protocol

The Needham-Schroeder protocols are authentication protocols from Roger Needham and Michael Schroeder's paper "Using Encryption for Authentication in Large Networks of Computers", published in Communications of the ACM in December 1978 1. The paper presents protocols for establishing authenticated connections between principals on different machines, for authenticated one-way communication such as mail, and for signed communication. It gives versions based on conventional encryption and a version based on public-key encryption 1.

The paper states its threat model up front. It assumes that an intruder can interpose a computer in all communication paths, and so can alter or copy parts of messages, replay messages, or emit false material. The authors add that this may seem an extreme view, but it is the only safe one when designing authentication protocols. They also assume each principal has a secure environment in which to compute 1. They close with a warning that protocols of this kind are prone to extremely subtle errors that are unlikely to be detected in normal operation, and they urge the development of techniques to verify them 1.

The public-key protocol is the version most often discussed today. In Gavin Lowe's seven-step description, A asks a trusted key server S for B's public key, and S replies with a signed message; A then sends B a message containing a nonce Na (a random number used once) and A's name, encrypted under B's public key. B obtains A's key from the server in the same way, and replies with Na and a new nonce Nb encrypted under A's key. A then returns Nb encrypted under B's key. Messages 1, 2, 4 and 5 fetch keys, and messages 3, 6 and 7 do the authentication 2. The intended reasoning is that only B could decrypt message 3 and learn Na, so A should be assured that it is talking to B, and only A could decrypt message 6 and learn Nb, so B should be assured it is talking to A 2.

That reasoning proved wrong. In 1995 Lowe showed that an intruder who is a legitimate user of the network can impersonate A to B, so the public-key protocol does not guarantee authentication 2. He then analysed it with the CSP refinement checker FDR, which found the attack, and showed that a corrected protocol is secure for a small system and then, by a further result, for systems of arbitrary size 3. The correction is to include the responder's identity in message 6 2. The details are on the page for Lowe's attack.

Source · Using Encryption for Authentication in Large Networks of Computers (opens in a new tab) · Communications of the ACM

References

  1. Using Encryption for Authentication in Large Networks of Computers (opens in a new tab) · Roger M. Needham and Michael D. Schroeder, Communications of the ACM 21(12) · December 1, 1978 ↩ ↩ ↩ ↩
  2. An Attack on the Needham-Schroeder Public-Key Authentication Protocol (opens in a new tab) · Gavin Lowe, University of Oxford (author's preprint; Information Processing Letters 56(3)) · August 22, 1995 ↩ ↩ ↩ ↩
  3. Breaking and Fixing the Needham-Schroeder Public-Key Protocol using FDR (opens in a new tab) · Gavin Lowe, Oxford University Computing Laboratory ↩

Research articles

See what connects to it on the map of ideas →

See also