• No results found

ch03.ppt

N/A
N/A
Protected

Academic year: 2020

Share "ch03.ppt"

Copied!
26
0
0

Loading.... (view fulltext now)

Full text

(1)

Computer Security:

Computer Security:

Principles and Practice

Principles and Practice

First Edition First Edition

by William Stallings and Lawrie Brown by William Stallings and Lawrie Brown

Lecture slides by Lawrie Brown Lecture slides by Lawrie Brown

Chapter 3 –

(2)

User Authentication

User Authentication

fundamental security building block

fundamental security building block

 basis of access control & user accountabilitybasis of access control & user accountability

is the process of verifying an identity

is the process of verifying an identity

claimed by or for a system entity

claimed by or for a system entity

has two steps:

has two steps:

 identification - specify identifieridentification - specify identifier

 verification - bind entity (person) and identifierverification - bind entity (person) and identifier

(3)

Means of

Means of

User Authentication

User Authentication

four means of authenticating user's identity

four means of authenticating user's identity

based one something the individual

based one something the individual

 knows - e.g. password, PINknows - e.g. password, PIN

 possesses - e.g. key, token, smartcardpossesses - e.g. key, token, smartcard

 is (static biometrics) - e.g. fingerprint, retinais (static biometrics) - e.g. fingerprint, retina  does (dynamic biometrics) - e.g. voice, sign does (dynamic biometrics) - e.g. voice, sign

can use alone or combined

can use alone or combined

(4)

Password

Password

Authentication

Authentication

widely used user authentication method

widely used user authentication method

 user provides name/login and passworduser provides name/login and password

 system compares password with that saved system compares password with that saved

for specified login for specified login

authenticates ID of user logging and

authenticates ID of user logging and

 that the user is authorized to access systemthat the user is authorized to access system  determines the user’s privilegesdetermines the user’s privileges

(5)

Password Vulnerabilities

Password Vulnerabilities

offline dictionary attack

offline dictionary attack

specific account attack

specific account attack

popular password attack

popular password attack

password guessing against single user

password guessing against single user

workstation hijacking

workstation hijacking

exploiting user mistakes

exploiting user mistakes

(6)

Countermeasures

Countermeasures

 stop stop unauthorized access to password fileunauthorized access to password file  intrusion detection measuresintrusion detection measures

 account lockout mechanismsaccount lockout mechanisms

 policies against using common policies against using common

passwords but rather hard to guess passwords but rather hard to guess

passwords passwords

 training & enforcement of policiestraining & enforcement of policies  automatic workstation logoutautomatic workstation logout

(7)
(8)

UNIX Implementation

UNIX Implementation

original scheme

original scheme

 8 character password form 56-bit key8 character password form 56-bit key

 12-bit salt used to modify DES encryption into 12-bit salt used to modify DES encryption into

a one-way hash function a one-way hash function

 0 value repeatedly encrypted 25 times0 value repeatedly encrypted 25 times

 output translated to 11 character sequenceoutput translated to 11 character sequence

now regarded as woefully insecure

now regarded as woefully insecure

 e.g. supercomputer, 50 million tests, 80 mine.g. supercomputer, 50 million tests, 80 min

(9)

Improved Implementations

Improved Implementations

have other, stronger, hash/salt variants

have other, stronger, hash/salt variants

many systems now use MD5

many systems now use MD5

 with 48-bit saltwith 48-bit salt

 password length is unlimitedpassword length is unlimited

 is hashed with 1000 times inner loopis hashed with 1000 times inner loop

 produces 128-bit hashproduces 128-bit hash

OpenBSD uses Blowfish block cipher

OpenBSD uses Blowfish block cipher

based hash algorithm called Bcrypt

based hash algorithm called Bcrypt

(10)

Password Cracking

Password Cracking

dictionary attacks

dictionary attacks

 try each word then obvious variants in large try each word then obvious variants in large dictionary against hash in password file

dictionary against hash in password file

rainbow table attacks

rainbow table attacks

 precompute tables of hash values for all saltsprecompute tables of hash values for all salts  a mammoth table of hash values a mammoth table of hash values

 e.g. 1.4GB table cracks 99.9% of e.g. 1.4GB table cracks 99.9% of

alphanumeric Windows passwords in 13.8 alphanumeric Windows passwords in 13.8

secs secs

(11)

Password Choices

Password Choices

users may pick short passwords

users may pick short passwords

 e.g. 3% were 3 chars or less, easily guessede.g. 3% were 3 chars or less, easily guessed  system can reject choices that are too shortsystem can reject choices that are too short

users may pick guessable passwords

users may pick guessable passwords

 so crackers use lists of likely passwordsso crackers use lists of likely passwords

 e.g. one study of 14000 encrypted passwords e.g. one study of 14000 encrypted passwords

guessed nearly 1/4 of them guessed nearly 1/4 of them

 would take about 1 hour on fastest systems to would take about 1 hour on fastest systems to

(12)

Password File Access Control

Password File Access Control

can block offline guessing attacks by

can block offline guessing attacks by

denying access to encrypted passwords

denying access to encrypted passwords

 make available only to privileged usersmake available only to privileged users

 often using a separate shadow password fileoften using a separate shadow password file

still have vulnerabilities

still have vulnerabilities

 exploit O/S bugexploit O/S bug

 accident with permissions making it readableaccident with permissions making it readable  users with same password on other systemsusers with same password on other systems  access from unprotected backup mediaaccess from unprotected backup media

(13)

Using Better Passwords

Using Better Passwords

clearly have problems with passwords

clearly have problems with passwords

goal to eliminate guessable passwords

goal to eliminate guessable passwords

whilst still easy for user to remember

whilst still easy for user to remember

techniques:

techniques:

 user education user education

 computer-generated passwords computer-generated passwords  reactive password checking reactive password checking

(14)

Proactive Password Checking

Proactive Password Checking

 rule enforcement plus user advice, e.g.rule enforcement plus user advice, e.g.

 8+ chars, upper/lower/numeric/punctuation8+ chars, upper/lower/numeric/punctuation  may not sufficemay not suffice

 password crackerpassword cracker

 time and space issuestime and space issues

 Markov ModelMarkov Model

 generates guessable passwordsgenerates guessable passwords

 hence reject any password it might generatehence reject any password it might generate

 Bloom FilterBloom Filter

 use to build table based on dictionary using hashesuse to build table based on dictionary using hashes

(15)

Token Authentication

Token Authentication

object user possesses to authenticate, e.g.

object user possesses to authenticate, e.g.

 embossed cardembossed card

 magnetic stripe cardmagnetic stripe card  memory cardmemory card

(16)

Memory Card

Memory Card

store but do not process data

store but do not process data

magnetic stripe card, e.g. bank card

magnetic stripe card, e.g. bank card

electronic memory card

electronic memory card

used alone for physical access

used alone for physical access

with password/PIN for computer use

with password/PIN for computer use

drawbacks of memory cards include:

drawbacks of memory cards include:

(17)

Smartcard

Smartcard

 credit-card like credit-card like

 has own processor, memory, I/O portshas own processor, memory, I/O ports

 wired or wireless access by readerwired or wireless access by reader

 may have crypto co-processormay have crypto co-processor

 ROM, EEPROM, RAM memoryROM, EEPROM, RAM memory

 executes protocol to authenticate with executes protocol to authenticate with

reader/computer reader/computer

(18)

Biometric Authentication

Biometric Authentication

authenticate user based on one of their

authenticate user based on one of their

physical characteristics

(19)

Operation of

Operation of

a Biometric

a Biometric

(20)

Biometric Accuracy

Biometric Accuracy

never get identical templates

never get identical templates

(21)

Biometric Accuracy

Biometric Accuracy

can plot characteristic curve

can plot characteristic curve

(22)

Remote User Authentication

Remote User Authentication

authentication over network more complex

authentication over network more complex

 problems of eavesdropping, replayproblems of eavesdropping, replay

generally use challenge-response

generally use challenge-response

 user sends identityuser sends identity

 host responds with random numberhost responds with random number

 user computes f(r,h(P)) and sends backuser computes f(r,h(P)) and sends back  host compares value from user with own host compares value from user with own

computed value, if match user authenticated computed value, if match user authenticated

(23)

Authentication

Authentication

Security

Security

Issues

Issues

client attacks

client attacks

host attacks

host attacks

eavesdropping

eavesdropping

replay

replay

trojan horse

trojan horse

(24)
(25)
(26)

Summary

Summary

introduced user authentication

introduced user authentication

 using passwordsusing passwords  using tokensusing tokens

 using biometricsusing biometrics

remote user authentication issues

remote user authentication issues

References

Related documents

The command establishes a unique IDcode and password for each user, plus maximum limits on terminal time and disc storage.. NEW1D

This setting is necessary when the SMTP server which sends e-mails performs authentication using the POP user account..  User Name, Password: Type the user name and Password of

Any domain user who has enrolled into ADSelfService Plus web console by answering validation questions can use the ‘Forgot Password ’ extension (ADSelfService Plus GINA / CP

• Access to your previous provider’s email account, including the Web address you use for checking mail, your previous provider email address, user name and password.. •

Top-Down or Proactive Approach Define SoD Policies & Rule Design Initial Role & User Design Role Build & User Assignment Role & User Access Risk

Checking if the password is expired requires looking up the username (which we now confirmed DOES exist), and checking the appropriate LDAP attribute to see if this user needs

[12] proposed a text-based shoulder surfing resistant graphical password scheme, S3PAS, in which the user has to discover his textual password and then follow a special

[14] proposed a text-based shoulder surfing resistant graphical password scheme, S3PAS, in which the user has to discover his textual password and then follow a special rule