Access Control



tải về 2.19 Mb.
trang3/15
Chuyển đổi dữ liệu01.03.2024
Kích2.19 Mb.
#56689
1   2   3   4   5   6   7   8   9   ...   15
Lecture 04 Access control new (1)

Attacks on Passwords

  • Attacker could…
    • Target one particular account
    • Target any account on system
    • Target any account on any system
    • Attempt denial of service (DoS) attack
  • Common attack path
    • Outsider  normal user  administrator
    • May only require one weak password!

Password Retry

  • Suppose system locks after 3 bad passwords. How long should it lock?
    • 5 seconds
    • 5 minutes
    • Until SA restores service
  • What are +’s and -’s of each?

Password File?

  • Bad idea to store passwords in a file
  • But we need to verify passwords
  • Solution? Hash passwords
    • Store y = h(password)
    • Can verify entered password by hashing
    • If Trudy obtains the password file, she does not (directly) obtain passwords
  • But Trudy can try a forward search
    • Guess x and check whether y = h(x)

Dictionary Attack

  • Trudy pre-computes h(x) for all x in a dictionary of common passwords
  • Suppose Trudy gets access to password file containing hashed passwords
    • She only needs to compare hashes to her pre-computed dictionary
    • After one-time work of computing hashes in dictionary, actual attack is trivial
  • Can we prevent this forward search attack? Or at least make it more difficult?

Salt

  • Hash password with salt
  • Choose random salt s and compute
  • y = h(password, s)

    and store (s,y) in the password file

  • Note that the salt s is not secret
    • Analogous to IV
  • Still easy to verify salted password
  • But lots more work for Trudy
    • Why?

Password Cracking: Do the Math

  • Assumptions:
  • Pwds are 8 chars, 128 choices per character
    • Then 1288 = 256 possible passwords
  • There is a password file with 210 pwds
  • Attacker has dictionary of 220 common pwds
  • Probability 1/4 that password is in dictionary
  • Work is measured by number of hashes

tải về 2.19 Mb.

Chia sẻ với bạn bè của bạn:
1   2   3   4   5   6   7   8   9   ...   15




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương