Docsity

User Authentication: Password Security and Implementations, Slides of Computer Security

Partial preview of the text

Download User Authentication: Password Security and Implementations and more Slides Computer Security in PDF only on Docsity!

Lecture 5

User Authentication

RFC 2828: user authentication

“The process of verifying an identity claimed by

or for a system entity.”

User Authentication

the four means of authenticating user

identity are based on:

  • password, PIN, answers to prearranged questions - smartcard, electronic keycard, physical key - fingerprint, retina, face (^) • voice pattern, handwriting, typing rhythm

Password Authentication

  • widely used line of defense against intruders
    • user provides name/login and password
    • system compares password with the one stored for that specified login
  • the user ID:
    • determines that the user is authorized to access the system
    • determines the user’s privileges
    • is used in discretionary access control

Countermeasures

  • controls to prevent unauthorized access to password file
  • intrusion detection measures
  • rapid reissuance of compromised passwords
  • account lockout mechanisms
  • policies to inhibit users from selecting common passwords
  • training in and enforcement of password policies
  • automatic workstation logout
  • policies against similar passwords on network devices

Use of Hashed

Passwords

  • prevents duplicate passwords from being visible in the password file.
  • greatly increases the difficulty of offline dictionary attacks. For a salt of length b bits, the number of possible passwords is increased by a factor of 2b.
  • becomes nearly impossible to find out whether a person with passwords on two or more systems has used the same password on all of them. Docsity.com

Improved Implementations

  • much stronger hash/salt schemes available for Unix
  • recommended hash function is based on MD
    • salt of up to 48-bits
    • password length is unlimited
    • produces 128-bit hash
    • uses an inner loop with 1000 iterations to achieve slowdown
  • OpenBSD uses Blowfish block cipher based hash algorithm called Bcrypt - most secure version of Unix hash/salt scheme - uses 128-bit salt to create 192-bit hash value

Password Cracking

  • dictionary attacks
    • develop a large dictionary of possible passwords and try each against the password file
    • each password must be hashed using each salt value and then compared to stored hash values
  • rainbow table attacks
    • pre-compute tables of hash values for all salts
    • a mammoth table of hash values
    • can be countered by using a sufficiently large salt value and a sufficiently large hash length

Passwords Cracked from a Sample Set of 13,797 Accounts

Compiled 3M dictionary words and their variations.

The more words that need to be tested for a match, the lower the cost/benefit ratio.