]> git.friedersdorff.com Git - max/intro_dice_and_pmgmnt.git/blob - slides.rst
e9df0dde972d426efc52154a915fdb6884a20488
[max/intro_dice_and_pmgmnt.git] / slides.rst
1 Surviving phishing
2 ------------------
3 Password reuse, password managers and strong passwords
4 ======================================================
5 Why is Password Reuse a Problem?
6 --------------------------------
7 .. image:: password_reuse_1.png
8    :height: 6.5cm
9
10 Consider the following hypothetical users that reuse a strong password in
11 most places and the following common scenario:
12
13 +------------------+--------------------------+
14 | User             | Password                 |
15 +==================+==========================+
16 | mark1@gmail.com  | QUo5Qt+1Wa/Q1smDJRDbFg== |
17 +------------------+--------------------------+
18 | mark2@gmail.com  | +9Hz+/20rVkSkbcsmgdVFw== |
19 +------------------+--------------------------+
20 | mark3@gmail.com  | wnYkRcbi7Kkh7Fx2uR8EeA== |
21 +------------------+--------------------------+
22
23 #. User registers an account with a careless service, eg Facebook, Yahoo,
24    Google, Equifax etc. etc.
25 #. The service is hacked and the password database is leaked
26 #. The hacker logs in to the email accounts
27 #. The hacker resets passwords on all important accounts tied to that email 
28    address
29
30
31 About password strength
32 -----------------------
33
34 How is strength measured?
35 =========================
36 'Entropy' `s` depends on the size of the alphabet `a` and the length `n` of the 
37 password:
38
39 .. math:: 
40         s = log_2(a^n)
41
42 * 0889234877724602 -> 53 bits
43 * ZeZJieatdH -> 60 bits
44
45 Why are weak passwords problematic?
46 ===================================
47 Weak passwords are trivial to crack in many situations. A password with 53 bits
48 may be cracked by a criminal organisation in less than an hour.
49
50
51 What about strong passwords?
52 ============================
53 They are difficult to remember, a problem especially when you use a different 
54 strong password for every service.  You are also tempted to write them down, or 
55 reuse them.
56
57 It's surprisingly difficult for humans to generate good passwords!
58
59 A strong password, as of 2019, has at least 80 bits of entropy.
60
61 Password Managers to the Rescue!
62 --------------------------------
63 Password managers allow you to create a unique and strong password for every
64 service.
65
66 Additional benefits:
67
68 * Remembers passwords for you
69 * Generates passwords for you
70 * Automagically fills in passwords on websites for you, this is important!
71 * Makes passwords available on all your configured devices
72 * Can store additional related data, usernames, answers to security questions,
73   pins for debit/credit cards
74
75 Any of the mainstream password manager is equivalent in the above respects.
76
77 Can you trust password managers?
78 --------------------------------
79 Yes*
80
81 How do they keep passwords secure?
82 ----------------------------------
83 1. User supplies a password
84 2. A slow function derives an encryption key
85 3. The encryption key is used to encrypt/decrypt your passwords
86
87 Security of the encryption depends on the strengh of your
88 password:  
89
90 +---------+------------------------+
91 | Entropy | Time to crack,         |
92 |         | assuming 1 second per  |
93 |         | attempt per typical    |
94 |         | CPU                    |
95 +=========+========================+
96 | 50b     | < 1 Month              |
97 +---------+------------------------+
98 | 60b     | ~ 50 Years             |
99 +---------+------------------------+
100 | 70b     | ~ 50,000 yers          |
101 +---------+------------------------+
102
103 Generating a Strong Password
104 ----------------------------
105 Passphrases are better than passwords:
106
107 * Tr0ub4dor&3 -> 28 bits of entropy, hard to remember
108 * correct horse battery stable -> 44 bits of entropy, easy to remember
109
110 Use passphrases everywhere you have to remember.
111
112 Generate passphrases with Diceware
113 ==================================
114 1. Roll 5, 6 sided, *physical* dice
115 2. Read the numbers left to right
116 3. Find the word with that number on a list 6^5 (7776) words
117 4. Repeat until desired length is reached.  For a password manager, use at 
118    least 7.
119 5. Write down your passphrase on paper and keep it somewhere secure
120 6. If you are 100% confident that you will not forget the passphrase, destroy
121    the paper by burning
122
123 What about phishing?
124 ====================
125 * A password manager will refuse to fill out a password on a spoofed website, 
126   for instance faceb00k.com vs facebook.com
127 * Using different passwords on every service protects all other services even 
128   if phishing is successful on one of them
129 * Good password managers will navigate to the login page for you, reducing the
130   risk of spoofed websites
131
132
133 Other advice
134 ------------
135 In no particular order:
136
137 * Only log in on webpages that you navigated to by typing in the url yourself,
138   by searching on google, duckduckgo or some other reputable search engine or 
139   from a bookmark.  If after clicking a link in an email you are directed to a 
140   log in page, it's probably a phishing attempt
141 * Only log in to webpages that are protected by SSL/TLS (HTTPS).  Look for a 
142   green address bar, or a green lock icon or similar in your browser
143 * Use two factor or two step authentication everywhere if possible
144 * Turn of automatic image rendering. Better still, disable HTML rendering and 
145   authoring entirely
146 * Be suspicious of *all* emails. Risky things: HTML email, images, unknown 
147   sender, poor spelling/grammer, 'Your email client can't display this email,
148   click here to view in your browser' or similar attempts to coerce you to click
149   on things