Slide 1

Slide 1 text

2FA, WTF?

Slide 2

Slide 2 text

HACKERS

Slide 3

Slide 3 text

ARE

Slide 4

Slide 4 text

EVERYWHERE

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

Phil Nash @philnash http:/ /philna.sh [email protected] @philnash

Slide 9

Slide 9 text

2FA, WTF?

Slide 10

Slide 10 text

PART 1 THE HORRIFYING REALITY OF PASSWORD SECURITY

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

nash

Slide 13

Slide 13 text

I WAS HACKED

Slide 14

Slide 14 text

YOUR ACCOUNT IS ONLY AS SECURE AS YOUR WEAKEST PASSWORD

Slide 15

Slide 15 text

https:/ /twitter.com/TheTimeCowboy/status/287536855828795393 @philnash

Slide 16

Slide 16 text

STRONGER PASSWORDS

Slide 17

Slide 17 text

ARE HARDER TO REMEMBER

Slide 18

Slide 18 text

REUSE

Slide 19

Slide 19 text

ASHLEY MADISON

Slide 20

Slide 20 text

TOP 5 PASSWORDS

Slide 21

Slide 21 text

5) 123456789

Slide 22

Slide 22 text

4) DEFAULT

Slide 23

Slide 23 text

3) password

Slide 24

Slide 24 text

2) 12345

Slide 25

Slide 25 text

1) 123456

Slide 26

Slide 26 text

Ashley Madison Top 10 Passwords 1. 123456 - 120,511 users 2. 12345 - 48,452 users 3. password - 39,448 users 4. DEFAULT - 34,275 users 5. 123456789 - 26,620 users 6. qwerty - 20,778 users 7. 12345678 - 14,172 users 8. abc123 - 10,869 users 9. NSFW - 10,683 users 10. 1234567 - 9,468 users Source: http:/ /qz.com/501073/the-top-100-passwords-on-ashley-madison/ @philnash

Slide 27

Slide 27 text

MARK ZUCKERBURG

Slide 28

Slide 28 text

dadada

Slide 29

Slide 29 text

I WAS HACKED

Slide 30

Slide 30 text

@philnash

Slide 31

Slide 31 text

Compromised sites • Adobe • Yahoo • LinkedIn • Tumblr • MySpace • DropBox • Bitly • Disqus @philnash

Slide 32

Slide 32 text

@philnash

Slide 33

Slide 33 text

@philnash

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

YOUR USERS ARE ONLY AS SECURE AS THEIR WEAKEST PASSWORD

Slide 36

Slide 36 text

PART 2 SMS, SS7, OTP, 2FA

Slide 37

Slide 37 text

2FA

Slide 38

Slide 38 text

TWO FACTOR AUTHENTICATION

Slide 39

Slide 39 text

Two Factor Authentication 2FA is a security process in which a user provides two different forms of identification in order to authenticate themself with a system. The two forms must come from different categories. Normally something you know and something you have. @philnash

Slide 40

Slide 40 text

SMS, TOKENS, PUSH

Slide 41

Slide 41 text

SMS

Slide 42

Slide 42 text

2FA const randomNum = Math.floor(Math.random() * 1000000); const code = randomNum.toString().padStart(6, "0"); user.update('loginCode', code); 01. 02. 03. @philnash

Slide 43

Slide 43 text

2FA const twilio = require('twilio'); const client = new twilio(config.accountSid, config.authToken); client.messages.create({ from: config.yourNumber, to: user.phoneNumber, body: `Your login code is ${code}` }); 01. 02. 03. 04. 05. 06. 07. @philnash

Slide 44

Slide 44 text

SMS: Pros Almost everyone in the world can receive SMS messages @philnash

Slide 45

Slide 45 text

SMS: Cons Costs per message Requires signal SMS is broken @philnash

Slide 46

Slide 46 text

PART 2.1 THE HORRIFYING REALITY OF SMS SECURITY

Slide 47

Slide 47 text

SOCIAL ENGINEERING

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

IF YOU CAN ACCESS AN ACCOUNT WITH JUST ONE FACTOR IT'S NOT 2FA

Slide 50

Slide 50 text

SS7

Slide 51

Slide 51 text

2FA OVER SMS IS STILL BETTER THAN JUST PASSWORDS

Slide 52

Slide 52 text

TOKENS

Slide 53

Slide 53 text

HOTP + TOTP

Slide 54

Slide 54 text

@philnash

Slide 55

Slide 55 text

HOTP HOTP(K,C) = Truncate(HMAC(K,C)) & 0x7FFFFFFF HOTP-Value = HOTP(K,C) mod 10d @philnash

Slide 56

Slide 56 text

notp > const notp = require('notp'); > const hotp = notp.hotp; > hotp.gen('hello', { counter: 1 }) '825147' > hotp.gen('hello', { counter: 2 }) '676217' 01. 02. 03. 04. 05. 06. @philnash @philnash

Slide 57

Slide 57 text

notp > hotp.verify('825147', 'hello', { counter: 1 }) { delta: 0 } > hotp.verify('676217', 'hello', { counter: 1 }) { delta: 1 } 01. 02. 03. 04. @philnash @philnash

Slide 58

Slide 58 text

notp > const totp = notp.totp; > totp.gen('hello') '748003' Some time later... > totp.gen('hello') '691780' 01. 02. 03. 01. 02. @philnash @philnash

Slide 59

Slide 59 text

notp > totp.verify('748003', 'hello') { delta: 0 } Some time later... > totp.verify('748003', 'hello') { delta: -1 } 01. 02. 01. 02. @philnash @philnash

Slide 60

Slide 60 text

https:/ /github.com/guyht/notp @philnash

Slide 61

Slide 61 text

SHARING SECRETS

Slide 62

Slide 62 text

QR code otpauth:/ /TYPE/LABEL?PARAMETERS otpauth:/ /totp/2FAWTF:[email protected]? secret=JBSWY3DPEHPK3PXP&issuer=2FAWTF @philnash

Slide 63

Slide 63 text

Tokens: Pros Free to use Works offline @philnash

Slide 64

Slide 64 text

Tokens: Cons Requires a smart phone Needs backup codes to recover account QR codes can be intercepted @philnash

Slide 65

Slide 65 text

PUSH

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

Push: Pros Much better user experience Most secure @philnash

Slide 68

Slide 68 text

Push: Cons Requires a smart phone Requires a native app Requires more work on your web application Can't use offline @philnash

Slide 69

Slide 69 text

https:/ /twitter.com/status_updates/status/656435611289653248 @philnash

Slide 70

Slide 70 text

SUMMARY

Slide 71

Slide 71 text

USERS ARE BAD WITH PASSWORDS

Slide 72

Slide 72 text

OTHER WEBSITES ARE BAD WITH PASSWORDS

Slide 73

Slide 73 text

2FA CAN BE PUSH, TOKEN OR SMS

Slide 74

Slide 74 text

2FA IS FOR YOUR USERS

Slide 75

Slide 75 text

No content

Slide 76

Slide 76 text

2FA, WTF?

Slide 77

Slide 77 text

2FA, FTW!

Slide 78

Slide 78 text

THANKS!

Slide 79

Slide 79 text

Thanks! @philnash http:/ /philna.sh [email protected] @philnash