1 00:00:00,000 --> 00:00:01,800 Well, without much ado, Chris Hanlon, everyone. 2 00:00:07,940 --> 00:00:10,380 I'm here to talk about Swiss cheese, 3 00:00:10,700 --> 00:00:12,800 holes in the foundation of modern security. 4 00:00:13,200 --> 00:00:19,100 This has been submitted to CERT under VU 919801. 5 00:00:19,540 --> 00:00:23,000 It's basically how I intercepted password reset tokens 6 00:00:23,000 --> 00:00:26,160 or requested the tokens, bypassed email encryption, 7 00:00:26,820 --> 00:00:27,900 intercepted the tokens, 8 00:00:27,900 --> 00:00:32,400 and exfiltrated confidential data from my own test accounts. 9 00:00:32,880 --> 00:00:34,800 If anyone wants to try this at home, 10 00:00:34,940 --> 00:00:36,020 I don't want you getting arrested, 11 00:00:36,360 --> 00:00:38,340 so please do it on your own test accounts. 12 00:00:40,360 --> 00:00:42,880 Before I get into the details of the attack, 13 00:00:43,020 --> 00:00:44,560 I'd like to cover a little bit about myself. 14 00:00:44,880 --> 00:00:48,860 I've been configuring and protecting desktops and servers since 1998. 15 00:00:49,540 --> 00:00:52,880 I've been self-employed as an IT consultant since 2004, 16 00:00:53,180 --> 00:00:55,220 and I've had a few accepted vulnerabilities. 17 00:00:55,640 --> 00:00:57,280 Started with the Linux kernel VOM. 18 00:00:57,900 --> 00:00:59,840 Then some proprietary software VOMs, 19 00:00:59,940 --> 00:01:02,180 and then a couple Google Apps VOMs. 20 00:01:02,320 --> 00:01:06,760 The second Google Apps VOM got me into the Google Security Hall of Fame. 21 00:01:08,860 --> 00:01:11,260 The vulnerabilities that we're talking about today 22 00:01:11,260 --> 00:01:16,080 were reported to the International Computer Emergency Response Team, 23 00:01:16,700 --> 00:01:21,500 and there's actually five separate weaknesses involved. 24 00:01:21,860 --> 00:01:26,240 They're often referred to as CWEs or Common Weakness Enumerations. 25 00:01:27,140 --> 00:01:27,740 Number two, 26 00:01:27,900 --> 00:01:28,100 287, 27 00:01:28,360 --> 00:01:29,520 improper authentication. 28 00:01:30,240 --> 00:01:34,060 So the person sending the password reset token 29 00:01:34,060 --> 00:01:36,200 doesn't authenticate who's getting it. 30 00:01:37,360 --> 00:01:38,000 291, 31 00:01:38,120 --> 00:01:40,180 reliance on an IP address for authentication. 32 00:01:40,680 --> 00:01:42,480 Is there anyone here who builds apps? 33 00:01:44,320 --> 00:01:46,980 Do any of you rely on IP addresses for authentication? 34 00:01:48,340 --> 00:01:50,660 But most of the systems to reset passwords 35 00:01:50,660 --> 00:01:53,180 are effectively relying on IP addresses 36 00:01:53,180 --> 00:01:57,740 to authenticate who they're sending, 37 00:01:57,900 --> 00:01:58,580 the token to. 38 00:02:00,060 --> 00:02:01,940 Missing encryption on sensitive data. 39 00:02:02,140 --> 00:02:04,260 In many cases, it's both usernames 40 00:02:04,260 --> 00:02:05,780 and password reset tokens 41 00:02:05,780 --> 00:02:07,120 that are being sent without encryption, 42 00:02:07,900 --> 00:02:09,520 and both of those are sensitive. 43 00:02:09,640 --> 00:02:10,980 Most people don't want that broadcast 44 00:02:10,980 --> 00:02:12,440 over the internet unencrypted. 45 00:02:13,320 --> 00:02:14,740 Clear text transmission. 46 00:02:15,360 --> 00:02:18,180 I don't know why that's a separate CWE, 47 00:02:18,400 --> 00:02:20,400 but they've decided to separate it out. 48 00:02:20,560 --> 00:02:23,240 And weak password recovery mechanisms. 49 00:02:23,720 --> 00:02:26,400 I would say that sending a password reset token 50 00:02:26,400 --> 00:02:27,640 over an unencrypted connection, 51 00:02:27,900 --> 00:02:28,860 is quite weak. 52 00:02:30,820 --> 00:02:31,460 So, 53 00:02:32,300 --> 00:02:34,160 all of these tie into 54 00:02:34,160 --> 00:02:36,340 use of email to reset passwords. 55 00:02:37,800 --> 00:02:39,080 RFC 3207 56 00:02:39,080 --> 00:02:41,360 is the foundation of modern email security. 57 00:02:42,140 --> 00:02:43,380 The first draft 58 00:02:43,380 --> 00:02:45,400 was released in 1998, 59 00:02:45,680 --> 00:02:47,620 and then it became an official RFC 60 00:02:47,620 --> 00:02:48,880 in 2002. 61 00:02:49,680 --> 00:02:51,580 It has quite a few options 62 00:02:51,580 --> 00:02:53,440 on how the sending server 63 00:02:53,440 --> 00:02:55,440 implements TLS. 64 00:02:55,740 --> 00:02:57,800 They get to choose, 65 00:02:57,900 --> 00:03:01,440 how picky they are about sending emails. 66 00:03:02,480 --> 00:03:03,860 In many cases, 67 00:03:03,880 --> 00:03:06,040 vendors use separate email servers 68 00:03:06,040 --> 00:03:08,380 for sending out reset links 69 00:03:08,380 --> 00:03:10,000 than their day-to-day email. 70 00:03:10,200 --> 00:03:12,320 But none of those seem to be configured. 71 00:03:12,580 --> 00:03:14,080 I tested over 30. 72 00:03:14,240 --> 00:03:15,180 None of them were configured 73 00:03:15,180 --> 00:03:16,600 to require TLS. 74 00:03:19,320 --> 00:03:19,880 So, 75 00:03:20,620 --> 00:03:21,700 this isn't new 76 00:03:21,700 --> 00:03:23,260 that email can be intercepted. 77 00:03:23,280 --> 00:03:25,980 You've probably been hearing for as long as you can remember, 78 00:03:26,100 --> 00:03:27,880 not to send credit card intercepts. 79 00:03:27,900 --> 00:03:28,760 But, 80 00:03:28,760 --> 00:03:28,840 this is a new technology 81 00:03:29,140 --> 00:03:29,400 And, 82 00:03:30,100 --> 00:03:32,420 researchers at Google back in 2015 83 00:03:34,320 --> 00:03:36,600 covered four common ways 84 00:03:36,600 --> 00:03:38,500 that could be used to intercept emails. 85 00:03:39,820 --> 00:03:42,060 Strip TLS attacks are the most basic. 86 00:03:42,260 --> 00:03:44,480 It's a machine on route to the mail server 87 00:03:44,480 --> 00:03:46,360 that sends back an error saying, 88 00:03:46,500 --> 00:03:48,080 sorry, the server doesn't support encryption. 89 00:03:48,640 --> 00:03:49,240 And, 90 00:03:49,240 --> 00:03:52,240 in every situation that I tested, 91 00:03:52,460 --> 00:03:54,240 the server sent the email anyway. 92 00:03:54,780 --> 00:03:55,760 They also, 93 00:03:55,780 --> 00:03:58,120 typically don't check the security certificate. 94 00:03:58,540 --> 00:03:59,540 So I used, 95 00:03:59,640 --> 00:04:01,100 I tried testing again using 96 00:04:01,100 --> 00:04:03,920 the certificate for colonadivorcelawyer.com 97 00:04:03,920 --> 00:04:05,780 instead of pandozzi.ca 98 00:04:05,780 --> 00:04:08,160 So they have absolutely nothing in common. 99 00:04:08,280 --> 00:04:10,720 But it happily delivered the emails 100 00:04:10,720 --> 00:04:12,300 to the server with the wrong certificate. 101 00:04:12,720 --> 00:04:14,780 The other two are DNS based. 102 00:04:15,140 --> 00:04:17,120 And they might look like the same thing. 103 00:04:17,300 --> 00:04:19,140 One of them is spoofing an MX record. 104 00:04:19,140 --> 00:04:21,060 And the other one is spoofing an A record. 105 00:04:21,380 --> 00:04:27,160 The big difference is that often 106 00:04:27,160 --> 00:04:29,180 the MX record will be 107 00:04:29,180 --> 00:04:31,040 through a different provider 108 00:04:31,040 --> 00:04:32,120 than the A record. 109 00:04:32,380 --> 00:04:34,400 So if anyone uses Office 365, 110 00:04:34,840 --> 00:04:37,440 it's your own name server for your domain 111 00:04:37,440 --> 00:04:39,140 that says send it to 112 00:04:39,140 --> 00:04:41,180 outlook.office365.com 113 00:04:41,180 --> 00:04:41,980 whereas 114 00:04:42,940 --> 00:04:44,920 it's Microsoft's DNS server 115 00:04:44,920 --> 00:04:46,920 that says what IP address 116 00:04:46,920 --> 00:04:48,300 corresponds to that name. 117 00:04:50,040 --> 00:04:52,220 This is a real world problem. 118 00:04:52,400 --> 00:04:54,000 It's not just theoretical. 119 00:04:54,440 --> 00:04:56,020 Going back to 2014, 120 00:04:56,300 --> 00:04:57,840 we saw a US wireless provider 121 00:04:57,840 --> 00:05:00,620 where every single TLS connection 122 00:05:00,620 --> 00:05:02,900 was having TLS stripped. 123 00:05:03,440 --> 00:05:04,080 Similarly, 124 00:05:04,260 --> 00:05:06,940 we saw two large ISPs in Thailand 125 00:05:06,940 --> 00:05:08,400 around the same time. 126 00:05:08,880 --> 00:05:10,900 It's believed that both ISPs 127 00:05:10,900 --> 00:05:11,540 were compromised 128 00:05:11,540 --> 00:05:12,960 and that someone was primarily 129 00:05:12,960 --> 00:05:14,880 using this to steal credentials. 130 00:05:15,960 --> 00:05:16,860 That they, 131 00:05:17,020 --> 00:05:18,360 because people were connecting 132 00:05:19,140 --> 00:05:20,940 to their home SMTP servers, 133 00:05:21,220 --> 00:05:23,500 they would send a 134 00:05:23,500 --> 00:05:24,780 doesn't support encryption 135 00:05:24,780 --> 00:05:26,500 and hope to get the person's password. 136 00:05:29,240 --> 00:05:31,020 This is continuing today. 137 00:05:31,120 --> 00:05:33,060 We saw earlier this year 138 00:05:33,060 --> 00:05:33,660 the AWS 139 00:05:34,940 --> 00:05:35,960 man in the middle attack 140 00:05:35,960 --> 00:05:37,140 that hijacked DNS 141 00:05:37,140 --> 00:05:39,220 and redirected my Ether wallet 142 00:05:39,220 --> 00:05:40,420 to a phishing site 143 00:05:40,420 --> 00:05:41,700 that stole about $20 million 144 00:05:41,700 --> 00:05:43,840 of cryptocurrency in about four hours. 145 00:05:45,660 --> 00:05:47,680 And one of the other researchers 146 00:05:49,140 --> 00:05:49,300 in Quebec, 147 00:05:49,580 --> 00:05:51,380 her research showed 148 00:05:51,380 --> 00:05:54,040 about over 11,000 149 00:05:54,040 --> 00:05:55,360 routers on the internet 150 00:05:55,360 --> 00:05:56,520 that were stripping TLS. 151 00:05:57,320 --> 00:05:58,900 Some of those were believed 152 00:05:58,900 --> 00:06:00,320 to be for espionage purposes, 153 00:06:00,680 --> 00:06:02,240 but there's a lot of other reasons 154 00:06:02,240 --> 00:06:02,960 why it happens. 155 00:06:03,200 --> 00:06:05,520 And that includes over 3,000 156 00:06:05,520 --> 00:06:07,360 routers stripping TLS 157 00:06:07,360 --> 00:06:08,280 here in the USA. 158 00:06:10,380 --> 00:06:12,220 So one of the major factors 159 00:06:12,220 --> 00:06:13,640 that came up in Google's research 160 00:06:13,640 --> 00:06:14,940 was that 161 00:06:21,580 --> 00:06:27,020 a lot of the firewalls 162 00:06:27,020 --> 00:06:28,120 that you can use to 163 00:06:30,400 --> 00:06:31,480 scan emails 164 00:06:31,480 --> 00:06:32,740 don't warn the users 165 00:06:32,740 --> 00:06:34,660 when you set it up this way, 166 00:06:34,780 --> 00:06:36,120 it's going to turn off 167 00:06:36,120 --> 00:06:37,160 email encryption 168 00:06:37,160 --> 00:06:38,120 and all the email 169 00:06:38,120 --> 00:06:39,340 coming into your domain 170 00:06:39,340 --> 00:06:40,620 or all of your customers 171 00:06:40,620 --> 00:06:41,860 in the case of an ISP 172 00:06:41,860 --> 00:06:43,180 is going to end up 173 00:06:43,180 --> 00:06:44,280 coming through unencrypted. 174 00:06:46,220 --> 00:06:47,400 I believe that 175 00:06:48,080 --> 00:06:49,120 there's critical evidence 176 00:06:49,140 --> 00:06:50,480 and Chris Kubeka's work 177 00:06:50,480 --> 00:06:52,700 showed evidence of government 178 00:06:52,700 --> 00:06:54,260 espionage being a part of it. 179 00:06:54,400 --> 00:06:56,800 We see interception of confidential data 180 00:06:57,620 --> 00:06:58,920 because many people 181 00:06:58,920 --> 00:06:59,740 trust their email 182 00:06:59,740 --> 00:07:01,760 to send financial emails 183 00:07:01,760 --> 00:07:02,700 and 184 00:07:04,420 --> 00:07:06,140 there's the password reset attacks. 185 00:07:06,880 --> 00:07:08,700 I expect that 186 00:07:09,920 --> 00:07:11,240 one of the best 187 00:07:11,240 --> 00:07:12,680 phishing attacks you could do 188 00:07:12,680 --> 00:07:14,420 would be to take a legitimate email 189 00:07:14,920 --> 00:07:16,400 and then modify the content 190 00:07:16,400 --> 00:07:17,700 to send someone somewhere else. 191 00:07:19,140 --> 00:07:19,260 If you're redirecting 192 00:07:19,260 --> 00:07:20,580 a money transfer from you 193 00:07:20,580 --> 00:07:21,900 and you redirect them 194 00:07:21,900 --> 00:07:24,600 to a different server 195 00:07:24,600 --> 00:07:26,040 that looks just like 196 00:07:26,040 --> 00:07:27,140 where they're supposed to go, 197 00:07:27,280 --> 00:07:29,140 I haven't seen those in practice 198 00:07:29,140 --> 00:07:30,180 but the weaknesses 199 00:07:30,180 --> 00:07:32,140 of how email is being handled 200 00:07:32,140 --> 00:07:33,160 definitely leave room 201 00:07:33,160 --> 00:07:34,080 for that to happen. 202 00:07:36,880 --> 00:07:39,080 So if you wanted to do this 203 00:07:39,080 --> 00:07:40,560 you would need control 204 00:07:40,560 --> 00:07:42,260 over a router, a switch, 205 00:07:42,560 --> 00:07:44,380 a DNS server or a mail server 206 00:07:49,140 --> 00:07:49,840 I believe... 207 00:07:49,840 --> 00:07:52,840 I'm gonna try adjusting my mic a little. 208 00:07:56,940 --> 00:07:58,120 I'm wondering if that... 209 00:07:58,120 --> 00:07:58,900 Oh, that's worse. 210 00:08:00,060 --> 00:08:01,700 It's fine? Okay. 211 00:08:01,960 --> 00:08:02,900 Let's keep going. 212 00:08:04,160 --> 00:08:05,660 I think most attackers 213 00:08:05,660 --> 00:08:06,900 would probably use 214 00:08:06,900 --> 00:08:09,360 scriptable SMTP proxies. 215 00:08:09,500 --> 00:08:11,280 Those give them a lot of flexibility 216 00:08:11,280 --> 00:08:13,420 they can pass through some of the emails 217 00:08:13,420 --> 00:08:14,460 but not others. 218 00:08:14,720 --> 00:08:17,260 So typically they'd want to pass through 219 00:08:19,140 --> 00:08:19,280 the email server 220 00:08:19,280 --> 00:08:21,080 but they wouldn't want to pass through 221 00:08:21,080 --> 00:08:23,760 the emails where they had requested it 222 00:08:23,760 --> 00:08:25,840 and they would use filters in that script 223 00:08:25,840 --> 00:08:26,500 to do that. 224 00:08:27,120 --> 00:08:29,340 Those tools are quite commonly used 225 00:08:29,340 --> 00:08:31,680 by red teamers, the scriptable proxies 226 00:08:31,680 --> 00:08:33,440 so if you know any red teamers 227 00:08:33,440 --> 00:08:34,360 they can probably give you 228 00:08:34,360 --> 00:08:36,640 a more detailed look on that one. 229 00:08:38,160 --> 00:08:39,260 Another factor is that 230 00:08:39,260 --> 00:08:40,600 the term man in the middle 231 00:08:40,600 --> 00:08:41,500 can be a little confusing. 232 00:08:41,800 --> 00:08:43,980 First of all, it doesn't need to be carried out by a man 233 00:08:43,980 --> 00:08:45,080 but secondly, 234 00:08:45,260 --> 00:08:47,160 you don't actually have to be in the middle. 235 00:08:47,220 --> 00:08:49,000 If you look over at the graph 236 00:08:49,000 --> 00:08:50,960 the traditional route from 237 00:08:50,960 --> 00:08:53,760 Cisco servers that are actually in AWS 238 00:08:54,820 --> 00:08:55,460 to 239 00:08:55,880 --> 00:08:57,760 the Tuscany hotel where I'm staying 240 00:08:58,460 --> 00:09:00,020 goes all the way to 241 00:09:00,020 --> 00:09:01,760 Atlanta, then to San Diego 242 00:09:01,760 --> 00:09:04,080 then through Los Angeles 243 00:09:04,080 --> 00:09:05,340 and here to Vegas. 244 00:09:06,760 --> 00:09:08,120 And most people 245 00:09:08,120 --> 00:09:09,880 don't consider Atlanta in the middle 246 00:09:09,880 --> 00:09:11,800 as Seattle and Vegas. 247 00:09:12,860 --> 00:09:13,960 Fortunately I'm not 248 00:09:13,980 --> 00:09:15,020 running a mail server 249 00:09:15,020 --> 00:09:16,420 in the Tuscany hotel 250 00:09:16,420 --> 00:09:19,020 but when you 251 00:09:19,680 --> 00:09:21,540 hear about the BGP 252 00:09:22,560 --> 00:09:23,840 redirects, like what happened 253 00:09:23,840 --> 00:09:25,100 with the Amazon attack 254 00:09:25,100 --> 00:09:27,740 it's basically a router 255 00:09:27,740 --> 00:09:29,840 that successfully sends out a message 256 00:09:29,840 --> 00:09:31,700 send that traffic here through Idaho 257 00:09:31,700 --> 00:09:33,620 or Oregon. It's going to be faster 258 00:09:33,620 --> 00:09:34,500 it's going to be cheaper 259 00:09:34,500 --> 00:09:37,940 and you'll get there the same way. 260 00:09:38,140 --> 00:09:39,780 And sometimes they're able to convince 261 00:09:39,780 --> 00:09:41,960 sending servers to send 262 00:09:41,960 --> 00:09:43,480 the traffic over a different route. 263 00:09:43,980 --> 00:09:45,880 And then that's part of how they do 264 00:09:45,880 --> 00:09:46,360 their attacks. 265 00:09:48,040 --> 00:09:49,680 So before I set everything up 266 00:09:49,680 --> 00:09:51,940 I did a quick 267 00:09:51,940 --> 00:09:53,580 check to make sure my mail server 268 00:09:53,580 --> 00:09:55,860 was working properly. I wanted to make sure 269 00:09:55,860 --> 00:09:57,680 that there was valid 270 00:09:57,680 --> 00:09:59,760 TLS, had a valid certificate 271 00:09:59,760 --> 00:10:01,660 and that it met modern security standards. 272 00:10:02,200 --> 00:10:03,660 If you're wanting to check your 273 00:10:03,660 --> 00:10:05,880 servers, you can do the same thing 274 00:10:05,880 --> 00:10:07,240 at CheckTLS.com 275 00:10:10,140 --> 00:10:11,660 So my upstream router 276 00:10:11,660 --> 00:10:13,880 was a Ubuntu Linux virtual 277 00:10:13,980 --> 00:10:15,160 machine running 278 00:10:16,200 --> 00:10:18,200 Ubuntu Linux 16.4 279 00:10:18,200 --> 00:10:19,240 long term stable. 280 00:10:20,580 --> 00:10:21,900 Took very little 281 00:10:21,900 --> 00:10:23,800 to get it to intercept emails that were 282 00:10:23,800 --> 00:10:25,740 passing through to machines 283 00:10:25,740 --> 00:10:27,920 after it. We installed Exum 284 00:10:27,920 --> 00:10:28,600 with one command, 285 00:10:29,700 --> 00:10:31,800 edited the config file, changed 286 00:10:31,800 --> 00:10:33,560 three lines in the config file. 287 00:10:33,760 --> 00:10:35,760 One of them was to have it 288 00:10:35,760 --> 00:10:37,380 run as an internet mail server. 289 00:10:37,760 --> 00:10:38,880 Basically means 290 00:10:40,560 --> 00:10:42,080 accept incoming email 291 00:10:42,080 --> 00:10:43,860 because the default configuration only 292 00:10:43,980 --> 00:10:45,540 accepts mail 293 00:10:45,540 --> 00:10:47,800 locally. To accept 294 00:10:47,800 --> 00:10:50,040 all host names and to listen 295 00:10:50,040 --> 00:10:51,840 on all interfaces, which if you were 296 00:10:51,840 --> 00:10:53,500 doing any kind of spying you'd probably 297 00:10:53,500 --> 00:10:54,840 want to listen on all interfaces 298 00:10:54,840 --> 00:10:56,880 and accept all host names. 299 00:10:58,200 --> 00:10:59,920 We then activate the config 300 00:10:59,920 --> 00:11:02,060 file and we use ifconfig 301 00:11:02,060 --> 00:11:02,760 to take over 302 00:11:03,580 --> 00:11:05,380 the destination IP address 303 00:11:05,980 --> 00:11:07,200 and restart Exum. 304 00:11:08,780 --> 00:11:09,840 Before I requested 305 00:11:09,840 --> 00:11:11,360 any of the password reset links 306 00:11:11,800 --> 00:11:13,860 I checked to make sure that it 307 00:11:13,980 --> 00:11:15,400 really was being intercepted. 308 00:11:15,500 --> 00:11:17,280 And this seems like a dead giveaway 309 00:11:17,280 --> 00:11:19,780 that we've got no TLS, 310 00:11:19,840 --> 00:11:21,500 no certificate and 311 00:11:21,500 --> 00:11:23,620 the vendor could have logged 312 00:11:23,620 --> 00:11:25,620 at the time of sign up or at the time of 313 00:11:25,620 --> 00:11:27,740 previous email, hey this server 314 00:11:27,740 --> 00:11:29,560 supports TLS. But 315 00:11:29,560 --> 00:11:31,900 they still seem to ignore that 316 00:11:31,900 --> 00:11:33,380 and keep sending the links. 317 00:11:35,800 --> 00:11:37,820 So we got into a lot using this 318 00:11:37,820 --> 00:11:39,880 approach. Probably the most interesting 319 00:11:39,880 --> 00:11:41,500 one is Cisco Meraki 320 00:11:41,500 --> 00:11:43,700 firewalls and switches. Because 321 00:11:43,980 --> 00:11:45,160 once you get into that control panel 322 00:11:45,160 --> 00:11:47,740 you can change the VLAN rules, you can 323 00:11:47,740 --> 00:11:49,980 forward ports in from the outside 324 00:11:49,980 --> 00:11:51,800 and it greatly expands 325 00:11:51,800 --> 00:11:52,680 your attack surface. 326 00:11:53,120 --> 00:11:55,700 The next interesting one was Google Nest 327 00:11:55,700 --> 00:11:57,920 security cameras. When we got in there 328 00:11:57,920 --> 00:11:59,760 we were able to remotely turn on the microphone. 329 00:12:00,120 --> 00:12:01,920 We were also able to download 330 00:12:01,920 --> 00:12:03,420 the last 30 days of recordings 331 00:12:04,300 --> 00:12:05,820 and the list went 332 00:12:05,820 --> 00:12:07,480 on and on and on. 333 00:12:07,840 --> 00:12:09,780 Windows desktops now recommend you 334 00:12:09,780 --> 00:12:11,740 use a Microsoft account. They make it 335 00:12:11,740 --> 00:12:13,960 a little hard to not use a Microsoft account. 336 00:12:13,980 --> 00:12:15,900 And even 337 00:12:15,900 --> 00:12:18,040 once you've set up 338 00:12:18,040 --> 00:12:19,800 the account as a local account, they'll prompt 339 00:12:19,800 --> 00:12:21,800 you over and over again to use these 340 00:12:21,800 --> 00:12:23,960 Microsoft accounts. They let you 341 00:12:23,960 --> 00:12:25,820 if you can man in the middle 342 00:12:25,820 --> 00:12:27,760 the email, you can reset 343 00:12:27,760 --> 00:12:29,880 the password remotely. Even if 344 00:12:29,880 --> 00:12:31,820 the machine's BitLocker encrypted, you 345 00:12:31,820 --> 00:12:33,960 can then log in whereas most other 346 00:12:33,960 --> 00:12:35,920 password reset attacks, you can't log 347 00:12:35,920 --> 00:12:37,160 in to the machine. 348 00:12:38,140 --> 00:12:39,920 You can't use like a bootable 349 00:12:39,920 --> 00:12:41,180 password reset 350 00:12:41,760 --> 00:12:43,780 if you have BitLocker encrypted. It got 351 00:12:43,980 --> 00:12:45,680 worse because the machine started 352 00:12:45,680 --> 00:12:47,080 prompting for 353 00:12:49,580 --> 00:12:51,800 people to upload their BitLocker key to 354 00:12:51,800 --> 00:12:53,620 OneDrive. So even if the machine 355 00:12:53,620 --> 00:12:55,740 was totally dead, you could 356 00:12:55,740 --> 00:12:57,800 remotely download the BitLocker 357 00:12:57,800 --> 00:12:59,840 key and then decrypt their 358 00:12:59,840 --> 00:13:00,240 volumes. 359 00:13:02,460 --> 00:13:03,760 Through that same Microsoft 360 00:13:03,760 --> 00:13:05,580 account, we got into their Skype message 361 00:13:05,580 --> 00:13:07,840 history. We were able to impersonate them and 362 00:13:07,840 --> 00:13:09,680 send messages to their contacts, 363 00:13:09,880 --> 00:13:11,760 get into their Hotmail, their 364 00:13:11,760 --> 00:13:13,860 OneDrive. The same type of 365 00:13:13,980 --> 00:13:15,520 approach worked on Dropbox, 366 00:13:16,260 --> 00:13:17,560 Amazon Web Services, 367 00:13:17,900 --> 00:13:18,600 Oracle Cloud, 368 00:13:19,960 --> 00:13:21,640 my own online medical 369 00:13:21,640 --> 00:13:23,820 records. So I'd gone 370 00:13:23,820 --> 00:13:25,720 to an online medical clinic that 371 00:13:25,720 --> 00:13:27,120 referred me out to a specialist. 372 00:13:28,080 --> 00:13:29,880 I had someone else set 373 00:13:29,880 --> 00:13:31,800 the password and then I reset it. 374 00:13:31,900 --> 00:13:33,920 I was able to log in and check my 375 00:13:34,940 --> 00:13:35,700 sleep study. 376 00:13:35,940 --> 00:13:37,400 For me, it's not a big deal. 377 00:13:37,580 --> 00:13:39,840 I mean, anyone breaks in, they can find out that 378 00:13:39,840 --> 00:13:41,020 I snore pretty loudly. 379 00:13:42,920 --> 00:13:43,880 And they 380 00:13:43,980 --> 00:13:45,920 did it. I believe it was 381 00:13:45,920 --> 00:13:47,800 about 30 times an hour I was 382 00:13:47,800 --> 00:13:49,680 struggling to breathe in my sleep, which 383 00:13:49,680 --> 00:13:51,900 isn't very good. But I think 384 00:13:51,900 --> 00:13:53,300 you can imagine more sensitive 385 00:13:53,300 --> 00:13:55,640 information. Many 386 00:13:55,640 --> 00:13:57,560 people, if they had an STD or something, 387 00:13:57,680 --> 00:13:59,060 they wouldn't want that out in public. 388 00:13:59,300 --> 00:14:01,540 And it's something where there's a history 389 00:14:01,540 --> 00:14:03,740 of people being blackmailed over 390 00:14:03,740 --> 00:14:05,680 their medical records. So it needs 391 00:14:05,680 --> 00:14:06,740 to meet a higher standard. 392 00:14:07,460 --> 00:14:09,780 Similarly, we were able to get into LogMeIn 393 00:14:10,640 --> 00:14:11,600 and the 394 00:14:11,600 --> 00:14:13,660 list. Oh, we got into three major 395 00:14:13,980 --> 00:14:15,020 online backup providers. 396 00:14:15,700 --> 00:14:17,280 And those ones were awesome. 397 00:14:17,560 --> 00:14:19,360 Because once you get into the online backup 398 00:14:19,360 --> 00:14:21,640 provider, you're able to download 399 00:14:21,640 --> 00:14:23,900 their password lists. Because multiple 400 00:14:23,900 --> 00:14:25,780 web browsers and email 401 00:14:25,780 --> 00:14:27,700 clients stored the passwords 402 00:14:27,700 --> 00:14:29,440 in a place that was being backed up. 403 00:14:29,780 --> 00:14:31,820 You download that, and then 404 00:14:31,820 --> 00:14:33,640 you have a couple options. A, 405 00:14:33,900 --> 00:14:35,940 if you're only man in the middle in certain 406 00:14:35,940 --> 00:14:37,520 connections to their mail server, 407 00:14:37,740 --> 00:14:38,580 you can 408 00:14:40,580 --> 00:14:41,840 get into all their 409 00:14:41,840 --> 00:14:43,640 email and get at even more of their 410 00:14:44,300 --> 00:14:45,480 password reset links. 411 00:14:45,720 --> 00:14:47,620 The next trick is you get into password 412 00:14:48,120 --> 00:14:49,920 reuse attacks. How many other 413 00:14:49,920 --> 00:14:51,720 sites are those passwords used on? 414 00:14:56,440 --> 00:14:58,020 There's a guy at Microsoft who came up 415 00:14:58,020 --> 00:14:58,460 with the quote, 416 00:14:59,660 --> 00:15:01,860 attackers think in graphs, defenders 417 00:15:01,860 --> 00:15:02,660 think in lists. 418 00:15:04,080 --> 00:15:05,760 And when we look at it, once you 419 00:15:05,760 --> 00:15:07,940 are able to reset someone's password, 420 00:15:08,800 --> 00:15:09,820 you can get into 421 00:15:09,820 --> 00:15:11,760 other systems. And it just expands and 422 00:15:11,760 --> 00:15:13,880 expands and expands. This is a small version 423 00:15:13,980 --> 00:15:15,860 of the graph. The graph would fill up 424 00:15:15,860 --> 00:15:17,540 the whole room if we looked at how many 425 00:15:17,540 --> 00:15:19,840 places you could get in from man in the 426 00:15:19,840 --> 00:15:21,260 middle in a single 427 00:15:21,900 --> 00:15:22,420 mail server. 428 00:15:25,320 --> 00:15:25,800 Then, 429 00:15:26,520 --> 00:15:27,480 even more fun, 430 00:15:27,680 --> 00:15:29,320 I left the interception server online. 431 00:15:29,980 --> 00:15:31,540 And when it was online, 432 00:15:31,840 --> 00:15:33,740 I wasn't expecting this, but I kept 433 00:15:33,740 --> 00:15:35,200 getting emails from the vendors. 434 00:15:37,640 --> 00:15:39,860 So even if you didn't know which domains 435 00:15:39,860 --> 00:15:41,400 were on the other side of the router you 436 00:15:41,400 --> 00:15:43,900 had broken into, you'd start getting 437 00:15:43,980 --> 00:15:45,460 these emails telling you about 438 00:15:46,480 --> 00:15:48,060 accounts and domains 439 00:15:48,060 --> 00:15:49,820 that email was going to. 440 00:15:50,160 --> 00:15:51,880 And as those came in, especially 441 00:15:51,880 --> 00:15:53,540 if you were using one of those scriptable 442 00:15:53,540 --> 00:15:55,760 proxies, you would be able to 443 00:15:56,500 --> 00:15:57,800 reset those passwords 444 00:15:57,800 --> 00:15:59,240 as you found out they existed. 445 00:16:00,600 --> 00:16:02,040 We had some fun ones, 446 00:16:02,140 --> 00:16:03,140 like LinkedIn. 447 00:16:03,980 --> 00:16:05,100 LinkedIn encouraged 448 00:16:05,960 --> 00:16:07,400 my test account 449 00:16:07,820 --> 00:16:09,960 to add me as a 450 00:16:09,960 --> 00:16:11,780 contact, probably because we were on the same IP 451 00:16:11,780 --> 00:16:13,260 range. Similarly, 452 00:16:13,980 --> 00:16:15,380 Adam Bennett works with me, 453 00:16:15,480 --> 00:16:17,660 so I'm guessing that's also tied to the 454 00:16:17,660 --> 00:16:19,740 IP range. And I don't know who 455 00:16:19,740 --> 00:16:21,620 the third person is they recommended, 456 00:16:22,440 --> 00:16:23,780 but it's someone 457 00:16:23,780 --> 00:16:25,840 in our area who is in the same 458 00:16:25,840 --> 00:16:26,240 industry. 459 00:16:28,240 --> 00:16:30,040 A single compromised host 460 00:16:30,040 --> 00:16:31,560 shouldn't expose services 461 00:16:31,560 --> 00:16:32,860 on hundreds of systems. 462 00:16:33,400 --> 00:16:35,340 And that's a big problem right now, 463 00:16:35,440 --> 00:16:37,160 because it doesn't matter if it's 464 00:16:37,160 --> 00:16:38,920 an admin's email account, 465 00:16:39,140 --> 00:16:40,560 or a 466 00:16:42,800 --> 00:16:43,380 router 467 00:16:43,980 --> 00:16:45,880 that the client does not 468 00:16:45,880 --> 00:16:47,860 control, because most people only control 469 00:16:47,860 --> 00:16:50,020 at most one upstream router from them. 470 00:16:54,060 --> 00:16:55,740 So there were three services 471 00:16:55,740 --> 00:16:57,760 that we can take some inspiration from. They blocked 472 00:16:57,760 --> 00:16:59,420 the attacks, at least to some extent. 473 00:17:00,400 --> 00:17:01,680 Apple, right away, 474 00:17:01,760 --> 00:17:03,520 as soon as you try and reset a password, 475 00:17:03,640 --> 00:17:04,940 it puts a push notification 476 00:17:04,940 --> 00:17:06,640 on the person's phone. 477 00:17:07,020 --> 00:17:08,820 If their phone is 478 00:17:10,440 --> 00:17:11,480 offline, you 479 00:17:11,480 --> 00:17:11,960 can 480 00:17:13,980 --> 00:17:15,520 if the phone's offline 481 00:17:15,520 --> 00:17:17,760 and you can't get it back 482 00:17:17,760 --> 00:17:19,740 online quickly, Apple will give you an option to 483 00:17:19,740 --> 00:17:21,660 send you an email at a random 484 00:17:21,660 --> 00:17:23,520 time within the next 24 hours. 485 00:17:23,880 --> 00:17:25,440 And that approach is popular 486 00:17:26,080 --> 00:17:27,880 because it means even if you borrowed 487 00:17:27,880 --> 00:17:30,000 someone's phone, you couldn't reset 488 00:17:30,000 --> 00:17:31,900 their password. Which is a 489 00:17:31,900 --> 00:17:33,860 little bit of a risk. You ask someone, hey, can I use 490 00:17:33,860 --> 00:17:35,900 your phone to take a picture? And 491 00:17:36,760 --> 00:17:37,960 if you can keep their phone 492 00:17:37,960 --> 00:17:39,900 a little longer, you can start getting into their other 493 00:17:39,900 --> 00:17:41,840 accounts. Same with a 494 00:17:41,840 --> 00:17:43,960 single compromised computer. If someone 495 00:17:43,980 --> 00:17:45,620 's desktop is compromised 496 00:17:45,620 --> 00:17:47,720 and it accesses an email account 497 00:17:47,720 --> 00:17:49,860 that links go to, you can 498 00:17:49,860 --> 00:17:51,800 request those links and get at 499 00:17:51,800 --> 00:17:52,720 them via the computer. 500 00:17:54,020 --> 00:17:55,780 Azure had some great approaches. 501 00:17:56,240 --> 00:17:57,720 Well, a very simple one. 502 00:17:57,840 --> 00:17:59,680 They have mandatory two-factor authentication. 503 00:18:00,400 --> 00:18:01,840 If you try to reset 504 00:18:01,840 --> 00:18:04,060 a password on an account 505 00:18:04,060 --> 00:18:05,600 that doesn't have two-factor, 506 00:18:05,780 --> 00:18:07,760 you will have, it just tells 507 00:18:07,760 --> 00:18:09,340 you, sorry, you need a second recovery 508 00:18:09,980 --> 00:18:10,360 technique. 509 00:18:11,520 --> 00:18:13,460 They don't even tell you contact support. 510 00:18:13,980 --> 00:18:16,000 You're just out of luck. But they do push 511 00:18:16,000 --> 00:18:17,600 very hard for adding that 512 00:18:17,600 --> 00:18:18,820 second recovery technique. 513 00:18:20,680 --> 00:18:21,720 Gmail had good 514 00:18:21,720 --> 00:18:23,940 security questions, but only when 515 00:18:23,940 --> 00:18:25,780 you were logging in from a new machine on a 516 00:18:25,780 --> 00:18:27,900 new network. So at first it looked like 517 00:18:27,900 --> 00:18:29,260 it was really easy to get into Gmail. 518 00:18:29,960 --> 00:18:31,860 But as soon as you go to a 519 00:18:31,860 --> 00:18:33,260 different network and a different machine, 520 00:18:33,480 --> 00:18:35,500 they ask you when you created the account, 521 00:18:36,180 --> 00:18:36,620 which 522 00:18:38,080 --> 00:18:39,460 if you're off by a little, 523 00:18:39,520 --> 00:18:41,720 it gives you an option to talk to support. 524 00:18:42,020 --> 00:18:43,560 But you also have to say the last 525 00:18:43,980 --> 00:18:44,520 password you remember. 526 00:18:46,300 --> 00:18:47,120 So if, 527 00:18:47,820 --> 00:18:49,860 I don't know how many passwords they keep back, 528 00:18:50,020 --> 00:18:51,700 but I'm thinking it's in the neighborhood of your 529 00:18:51,700 --> 00:18:53,700 last ten passwords. So even 530 00:18:54,320 --> 00:18:55,520 it's very hard 531 00:18:55,520 --> 00:18:57,640 to reset these ones. There are some dumped 532 00:18:57,640 --> 00:18:59,260 passwords, so I'd be curious 533 00:19:00,040 --> 00:19:01,760 how well people can do at getting 534 00:19:01,760 --> 00:19:03,680 past this. But it really slows 535 00:19:03,680 --> 00:19:05,860 people down, and I'd like to see more providers 536 00:19:05,860 --> 00:19:08,000 use one or all of these approaches. 537 00:19:11,020 --> 00:19:11,900 Now, LogMeIn 538 00:19:11,900 --> 00:19:13,120 was a really scary one. 539 00:19:13,980 --> 00:19:15,380 People think they're setting up two-factor 540 00:19:15,380 --> 00:19:17,120 authentication that 541 00:19:17,780 --> 00:19:19,520 goes to their phone. 542 00:19:20,220 --> 00:19:21,500 But down at the bottom, 543 00:19:21,640 --> 00:19:23,680 if you don't get the email, 544 00:19:23,800 --> 00:19:26,000 or if you don't get the two-factor via the phone, 545 00:19:26,160 --> 00:19:27,860 you can just click get the code via 546 00:19:27,860 --> 00:19:28,280 email. 547 00:19:30,340 --> 00:19:31,780 Which means it's not 548 00:19:31,780 --> 00:19:33,040 really two-factor authentication. 549 00:19:33,500 --> 00:19:35,640 It's more a one-factor authentication 550 00:19:35,640 --> 00:19:37,780 because you can reset the password 551 00:19:37,780 --> 00:19:39,640 via email, and you can get the token 552 00:19:39,640 --> 00:19:40,240 via email. 553 00:19:44,420 --> 00:19:45,860 So, if you're 554 00:19:45,860 --> 00:19:47,340 a developer, I hope 555 00:19:47,980 --> 00:19:49,740 that you're 556 00:19:49,740 --> 00:19:51,860 tracking what's going on with password reset 557 00:19:51,860 --> 00:19:53,520 attempts. If you have a bunch of reset 558 00:19:53,520 --> 00:19:55,820 attempts from the same IP address or IP 559 00:19:55,820 --> 00:19:56,860 range, I'd be suspicious. 560 00:19:57,300 --> 00:19:59,920 If you have a bump in the 561 00:19:59,920 --> 00:20:01,800 number of password 562 00:20:01,800 --> 00:20:03,720 reset attempts, it's worth 563 00:20:03,720 --> 00:20:05,000 responding to. 564 00:20:05,700 --> 00:20:07,380 All resets should have 565 00:20:07,780 --> 00:20:09,520 some form of verification question 566 00:20:09,520 --> 00:20:11,680 or a second form of authentication. 567 00:20:12,120 --> 00:20:12,720 ... 568 00:20:13,980 --> 00:20:14,460 ... 569 00:20:16,260 --> 00:20:17,620 The secure 570 00:20:17,620 --> 00:20:19,400 email standard has been out for 571 00:20:19,400 --> 00:20:21,860 17 years. It's time 572 00:20:21,860 --> 00:20:23,720 to require TLS, 573 00:20:24,040 --> 00:20:25,280 especially on 574 00:20:25,980 --> 00:20:27,680 sensitive emails like password 575 00:20:27,680 --> 00:20:28,340 reset links. 576 00:20:29,640 --> 00:20:29,860 ... 577 00:20:31,600 --> 00:20:32,280 ... 578 00:20:34,840 --> 00:20:35,820 That seemed 579 00:20:35,820 --> 00:20:37,420 to go a lot faster than I expected. 580 00:20:37,840 --> 00:20:39,500 Does anyone have any questions? 581 00:20:40,320 --> 00:20:40,480 ... 582 00:20:40,480 --> 00:20:41,840 Yeah? 583 00:20:43,980 --> 00:20:44,300 ... 584 00:20:49,240 --> 00:20:51,720 Yeah. So I contacted 585 00:20:51,720 --> 00:20:53,840 quite a few virtual machine 586 00:20:53,840 --> 00:20:55,920 vendors. And one of them was willing 587 00:20:55,920 --> 00:20:57,640 to configure it so I'd have 588 00:20:57,640 --> 00:20:59,540 one router or one 589 00:20:59,540 --> 00:21:01,620 server that was upstream 590 00:21:01,620 --> 00:21:03,880 from the others. Linux has built-in routing 591 00:21:03,880 --> 00:21:06,000 functionality. So I just turn 592 00:21:06,000 --> 00:21:07,880 that on. And then there's 593 00:21:07,880 --> 00:21:09,440 kind of a switch on the second interface. 594 00:21:10,180 --> 00:21:11,460 A virtual switch. 595 00:21:11,760 --> 00:21:13,800 ... So it's just a simulated attack. 596 00:21:13,800 --> 00:21:35,280 tech? Yeah. Yeah. Yeah. So Meraki, I'm not aware of any Meraki devices that use iOS. 597 00:21:37,460 --> 00:21:43,360 Okay, the Meraki, we got into the Meraki dashboard, at which point you control it through the web. 598 00:21:50,040 --> 00:21:58,160 I didn't check, but I got into the dashboard. The dash, I mean, the dashboard had multiple routers 599 00:21:58,160 --> 00:22:09,220 and at multiple switches. Yes, because that's the purpose of the dashboard. What was that? 600 00:22:11,480 --> 00:22:13,780 Okay. Are you a system? 601 00:22:13,800 --> 00:22:23,820 Cisco? Okay. Then I'm happy to talk. Are there any other questions? 602 00:22:31,320 --> 00:22:33,140 Doesn't look like there's any other questions. 603 00:22:35,740 --> 00:22:38,540 Oh, shoot. There was, yep. 604 00:22:57,120 --> 00:23:05,300 Exactly. And it looks like I had my slides a little bit out of order, 605 00:23:05,380 --> 00:23:07,960 and that's why it was finished a little sooner than I expected. 606 00:23:10,980 --> 00:23:13,700 So we've got what you can do to, 607 00:23:13,700 --> 00:23:14,320 to protect yourself. 608 00:23:19,800 --> 00:23:27,500 So the EFF, after I submitted, they added a option to register your domain with them as one that requires TLS. 609 00:23:27,920 --> 00:23:31,980 If you register right now, I don't think it helps all that much, 610 00:23:32,100 --> 00:23:35,880 but as more and more vendors start looking to that database, 611 00:23:36,160 --> 00:23:41,140 they'll be able to see, hey, this is a domain that's supposed to have TLS. 612 00:23:41,280 --> 00:23:42,780 Why isn't it getting here? 613 00:23:43,700 --> 00:23:48,120 I would say, just like the CIS top 20 talks about inventorying your software, 614 00:23:48,380 --> 00:23:51,240 I think it's a good idea to inventory your service providers. 615 00:23:52,020 --> 00:23:55,780 Keep track of which ones have confidential information on them 616 00:23:55,780 --> 00:24:00,800 and what practices they're using to reset passwords. 617 00:24:01,800 --> 00:24:04,660 There's probably a few people here who use single sign-on services, 618 00:24:04,920 --> 00:24:08,120 where everything ties into their Active Directory or another service. 619 00:24:08,640 --> 00:24:13,360 When you do that, as long as your Active Directory doesn't support these resets, 620 00:24:13,360 --> 00:24:13,680 When you do that, as long as your Active Directory doesn't support these resets, 621 00:24:13,680 --> 00:24:15,440 you're making your system a lot more secure. 622 00:24:16,480 --> 00:24:22,880 And I don't think that's being advertised right now by the vendors that support the single sign-on, 623 00:24:22,980 --> 00:24:25,920 but I think it's a huge benefit at this time. 624 00:24:29,480 --> 00:24:31,940 And if you're requiring two-factor, 625 00:24:32,060 --> 00:24:36,420 I've even seen some of the physical token two-factors that will downgrade to email. 626 00:24:36,720 --> 00:24:41,300 So it's really important to know whether both the email and the token, 627 00:24:41,460 --> 00:24:43,460 or both the password and the token, 628 00:24:43,680 --> 00:24:45,100 can be accessed via email. 629 00:24:47,480 --> 00:24:49,080 I am looking for new projects. 630 00:24:49,420 --> 00:24:52,640 I'm open to projects as short as a day or as long as 40 years. 631 00:24:53,480 --> 00:24:54,120 Thank you.