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

Research Library · Idea

Password Security: A Case History

Password Security: A Case History by Robert Morris and Ken Thompson of Bell Laboratories, Communications of the ACM 22(11), November 1979, pages 594 to 597, describes how password protection on the UNIX timesharing system was designed in response to observed attempts to penetrate it. The abstract calls the result a compromise between extreme security and ease of use 1.

UNIX was first implemented with a password file holding the actual passwords, which the authors call unsatisfactory: the file is exposed whenever protection lapses, privileged users can copy it, and backup tapes expose it. They recall an occasion on the CTSS system at MIT when the password file was printed on every terminal at login after two administrators' temporary editor files were interchanged. The first scheme stored only an encrypted form of each password and compared it with the encryption of what the user typed at login 1. They then show that the encrypted form can be attacked by trying candidate passwords. One trial cost about 1.25 milliseconds on a PDP-11/70 once the encryption was recoded for speed, and checking a trial against a whole password file cost essentially nothing extra 1.

In their sample of 3,289 user-chosen passwords, 2,831 (86 percent) fell into simple classes such as very short strings, lower-case words or entries in dictionaries and name lists. A dictionary search that ran in five minutes found about a third of them. A system-assigned scheme at one installation, with eight characters from 36, drew from only a small seed space of a pseudorandom generator, and an attacker found every password in about a minute rather than the 112 years a full search would take 1.

The countermeasures were slow encryption, using DES iterated 25 times in a software implementation, a prompt for longer or more varied passwords, and a 12-bit random salt stored in the password file next to the result, which multiplies the work of testing a string against many entries by 4,096 and defeats a precomputed encrypted dictionary. The authors also discuss the threat of a DES chip, a login routine that leaked whether a user name was valid through response timing, and keeping the encrypted passwords out of sight 1.

Source · Password Security: A Case History (opens in a new tab) · Communications of the ACM 22(11); copy hosted by Cornell University

References

  1. Password Security: A Case History (opens in a new tab) · Communications of the ACM 22(11), pp. 594-597; copy hosted by Cornell University · Morris and Thompson, November 1979; received August 1978, revised August 1979. ↩ ↩ ↩ ↩ ↩

Research articles

See what connects to it on the map of ideas →

See also