password managers · frank chen | spring 2017 cs 88s password, authentication, password managers...

47
Frank Chen | Spring 2017 Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Upload: others

Post on 29-May-2020

36 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017Frank Chen | Spring 2017

CS 88S

Password, Authentication, Password ManagersWeek 4

LastPass, a Password Manager Application

Page 2: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Agenda● Review last week’s material● Some Definitions● Password in the Cloud● How Password Cracking Works● Password Managers

Page 3: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

DemonstrationThe power of

Google Analytics

Page 4: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Agenda● Review last week’s material● Some Definitions● Password in the Cloud● How Password Cracking Works● Password Managers

Page 5: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Phishing

Def: The activity of defrauding an online

account holder of financial information by

posing as a legitimate company

C

I

A

Page 6: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Social Engineering

Def: Psychological manipulation of people

into performing actions or divulging

confidential information

C

I

A

Page 7: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Malwares● Adware● Bot● Ransomware● Rootkit

● Spyware● Trojan Horse● Virus● Worm

C

I

A

Page 8: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Spam Email Classification

OR

Our "Magical" Classifier

ModelNew, unlabeled email

*Slide content credit to Prof. Ameet Talwalkar

Page 9: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Anti-Virus Software

Def: computer software used to prevent, detect and remove malicious software.

Page 10: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Agenda● Review last week’s material● Some Definitions● Password in the Cloud● How Password Cracking Works● Password Managers

Page 11: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Password

Def: word or string of characters

used to prove identity or gain

access to a resource

Page 12: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Examples

Source: http://bit.ly/2epzvkE

Page 13: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

PlaintextDef: Unencrypted text that is not

computationally tagged, specially

formatted, or written in code.

We don't want passwords to be

stored in plaintext!

Page 14: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

HashingDef: The process of turning your password

into a long string of letters and numbers to

keep it hidden.

Hashing is a one way street.

Page 15: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

3 Properties of Hashing1. The same data will always produce the same hash

2. It’s impossible to reverse it back to the original

data given knowledge of only the hash

3. It’s infeasible to create another string of data that

will create the same hash

Page 16: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Hash FunctionsDef: Mathematical algorithm that maps data

of arbitrary size to a bit string of a fixed size.

MD5http://bit.ly/2pbzecq

SHA-1http://bit.ly/2przKUs

SHA-2http://bit.ly/2q5dDzB

For a list of hash functionshttp://bit.ly/2pbAADN

Page 17: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Example: MD5 Hash

Source: http://bit.ly/2pVq5pb

MD5("The quick brown fox jumps over the lazy dog")

= 9e107d9d372bb6826bd81d3542a419d6

MD5("The quick brown fox jumps over the lazy dog.")

= e4d909c290d0fb1ca068ffaddf22cbd0

Page 18: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Agenda● Review last week’s material● Some Definitions● Password in the Cloud● How Password Cracking Works● Password Managers

Page 19: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

AuthenticationDef: The act of confirming the truth

of an entered piece of data

Page 20: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

A typical Authentication Session

LOGIN SCREEN

Username: fc1995Password: earl123

PASSWORD STORED ONLINE

(SHA-1 HASH)

fc1995: 4cf39465730e75ebbec21

c67facaba7a08d82f0f

AUTHENTICATED!

Proceed to your personal information/profile

Hash the Input

Password

Do the two match?

If YES

DENIED!

Try again.

If NO

Page 21: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Additional Precautions● Timeout

● 2 Factor Authentication

● Different Device Notifications

Page 22: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

A lot of headlines...

Source: http://bit.ly/2hylQcc

Source: http://bit.ly/1O1Md2G

Source: http://tcrn.ch/2lLC3Pv

Page 23: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Agenda● Review last week’s material● Some Definitions● Password in the Cloud● How Password Cracking Works● Password Managers

Page 24: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Password CrackingDef: The process of recovering passwords

from data that have been stored in or

transmitted by a computer system

Page 25: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Examples (Revisited)

Source: http://bit.ly/2epzvkE

Page 26: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

What makes a Password Strong?

Source: http://bit.ly/2epzvkE

A STRONG password resists guessing.

The less that your password resembles regular

English word patterns, the longer it will take for

a repetition tool to guess it.

Page 27: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Dictionary AttackDef: an attempted illegal entry to a

computer system that uses a dictionary

list to generate possible passwords.

Page 28: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

A typical Dictionary AttackPASSWORD

FROM DICTIONARY

...Dog, Dogs, Dogcatcher, Dogcatchers, Dogberry,

Dogberries, Dogma, Dogmatic, Dogmatized,

Dog1. Dog2, Dog3, Dog4...

PASSWORD File (SHA-1 HASH)

fc1995: 4cf39465730e75ebbec21

c67facaba7a08d82f0f

RETRIEVED THE PASSWORD

Proceed to use the password to login to your

account

Hash the Input

Password

Do the two hashes match?

If YES

CONTINUE!

Dictionary Attacks can submit up to 1000 attempts

per minute

If NO

Page 29: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

John the RipperPassword Cracker

Page 30: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Rainbow TablesDef: a table of precomputed hashes so an

attacker does not need to perform hashing

on every dictionary attack attempt

Page 31: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Solution: Add SaltDef: salt is random data that is used as an

additional input to a one-way function that

hashes a password or passphrase. Salt is

added to the front of the password

Page 32: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017Source: http://bit.ly/2p24ytZ

Page 33: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Case Study: eHarmony

Page 34: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

What does the leak mean?

eHarmony password hash (md5 unsalted): http://bit.ly/2nsJOZl

● Most leaked files are hashed● Some are in plaintext!?● Others are hashed and salted

Page 35: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Dictionary Attack on CrackStation1,493,677,782

medium dictionary entries

15,171,326,912 huge dictionary entries

Page 36: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Result of eHarmony Brute Force Attack275,860

(18.2%) of the passwords retrieved

23.47 Hours

Source: http://bit.ly/2nsJOZl

Page 37: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

How long would it take if the hashes were salted ?

over 30 yearsSource: http://bit.ly/2nsJOZl

Page 38: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Let's look at some Math!

Source: http://bit.ly/2oFNxTn

Page 39: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017Source: http://bit.ly/1M88D3U

Page 40: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Tools

Source: https://www.aircrack-ng.org/

Source: https://hashcat.net/hashcat/

Source: http://www.openwall.com/john/

Page 41: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Agenda● Review last week’s material● Some Definitions● Password in the Cloud● How Password Cracking Works● Password Managers

Page 42: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Password ManagerDef: Software application or hardware that

helps a user store and organize passwords.

Password managers usually store passwords

encrypted, requiring the user to create a

master password

Page 43: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

Lastpass

Password Managers can be hacked! http://bit.ly/2q38isq

Page 44: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

1Password

Source: https://1password.com/

Page 45: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

PROS

● Balance of convenience and security

● Portability● Secure Storage● Not just for passwords

Source: http://bit.ly/2pZCcPc

CONS

● Single point of failure● Trusting in the Cloud● Not necessary for some

people

Should you use a Password Manager?

Page 46: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

S f C T

Manage your

password well!

https://haveibeenpwned.com/

Page 47: Password Managers · Frank Chen | Spring 2017 CS 88S Password, Authentication, Password Managers Week 4 LastPass, a Password Manager Application

Frank Chen | Spring 2017

The Keybase app helps you perform secure operations with people you know on the Internet via asymmetric key cryptography

Next Week...