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

Research Library · Idea

Denning-Sacco attack

The Denning and Sacco attack is a replay of a compromised session key against the Needham and Schroeder shared-key protocol. It comes from the paper Timestamps in Key Distribution Protocols by Dorothy Denning and Giovanni Maria Sacco, Communications of the ACM 24(8), August 1981, pages 533 to 536 12.

In the Needham and Schroeder protocol a user A asks an authentication server for a key to share with B. The server replies to A with the new communication key CK and a copy of CK enciphered under B's private key. A forwards that copy to B. A knows the key is fresh because the reply carries an identifier A chose, but B can tell that the copy and later messages are not replays only by remembering all previously used keys or by running a handshake. Needham and Schroeder's own text says as much 3. Their protocol assumes communication keys are never compromised 1.

Denning and Sacco drop that assumption. Suppose a third party C recorded A's old message to B and later obtains the old key CK through negligence or a design flaw, not cryptanalysis. C replays the recorded message to B. B starts a handshake, C answers it using the stolen CK, and thereafter C can impersonate A to B. A can still communicate safely by starting a new conversation, and B can still talk safely to other users. The handshake does not help, because securing a secret handshake function is as hard as securing the keys 1.

Their fix is a timestamp T that the server places inside both encrypted messages. A and B accept a message only if the absolute difference between their local clock and T is less than the sum of an allowance for clock discrepancy and one for network delay. They suggest about one or two minutes for the clock allowance where clocks are set manually. The timestamp also removes the handshake, and the paper applies the same idea to public-key variants 1. It notes that timestamps do nothing about a compromised private key, which is a more serious threat 1. The cost is a dependence on loosely synchronised clocks, and RFC 4120 says the Kerberos model includes the Denning-Sacco modifications and requires loosely synchronised clocks 4.

Source · Timestamps in Key Distribution Protocols (opens in a new tab) · Communications of the ACM 24(8); copy hosted by the University of Wisconsin-Madison

References

  1. Timestamps in Key Distribution Protocols (opens in a new tab) · Communications of the ACM 24(8), pp. 533-536; copy hosted by the University of Wisconsin-Madison · Denning and Sacco, August 1981; full text. ↩ ↩ ↩ ↩ ↩
  2. Timestamps in key distribution protocols (bibliographic record) (opens in a new tab) · Crossref · Confirms authors, venue, volume 24, issue 8, pages 533-536 and August 1981 issue date. ↩
  3. Using Encryption for Authentication in Large Networks of Computers (opens in a new tab) · Communications of the ACM 21(12), pp. 993-999; copy hosted by the University of Washington · Needham and Schroeder, December 1978. ↩
  4. RFC 4120, The Kerberos Network Authentication Service (V5) (opens in a new tab) · IETF · States the Kerberos model rests on Needham and Schroeder with modifications suggested by Denning and Sacco; requires loosely synchronized clocks. ↩

Research articles

See what connects to it on the map of ideas →

See also