1 00:00:00,000 --> 00:00:02,140 I'm Jesse Burns from iSEC Partners. 2 00:00:02,380 --> 00:00:04,980 And I'm Peter Eckersley from the Electronic Frontier Foundation. 3 00:00:05,360 --> 00:00:08,960 And we're here to talk about observing the SSL-iverse. 4 00:00:10,260 --> 00:00:15,200 So this is a project that both EFF and iSEC have been working on 5 00:00:15,200 --> 00:00:18,680 thanks to some very generous assistance from the NLNAT Foundation. 6 00:00:19,340 --> 00:00:25,780 What we've done is we've downloaded a set of all the publicly visible HTTPS SSL certificates 7 00:00:25,780 --> 00:00:29,600 and we've built a big database of them 8 00:00:29,600 --> 00:00:32,780 and we're looking through to see what interesting things we can find. 9 00:00:34,060 --> 00:00:36,540 Just a little overview of what we're going to talk about. 10 00:00:36,820 --> 00:00:40,760 Why we need the observatory and then some of the results we found. 11 00:00:41,400 --> 00:00:44,600 We'll talk about conclusions and future work at the end. 12 00:00:46,340 --> 00:00:47,020 Surprising that. 13 00:00:47,420 --> 00:00:53,500 So as you probably realized at this point, HTTPS is a pretty important protocol. 14 00:00:53,780 --> 00:00:55,760 We do almost everything over the web. 15 00:00:55,780 --> 00:00:59,940 And the only hope that the web has to not get completely owned by everything 16 00:00:59,940 --> 00:01:03,120 is to encrypt itself and use SSL. 17 00:01:04,360 --> 00:01:11,520 And HTTPS relies on certificates in order to ensure that the website you're talking to 18 00:01:11,520 --> 00:01:14,340 is actually the website you want to be talking to 19 00:01:14,340 --> 00:01:19,080 and not some person in Bulgaria who's just put up a fake site 20 00:01:19,560 --> 00:01:21,720 that looks a lot like the real one. 21 00:01:22,480 --> 00:01:25,020 And the key component of this infrastructure 22 00:01:25,780 --> 00:01:27,200 for checking who you're talking to 23 00:01:28,640 --> 00:01:30,220 are certificate authorities. 24 00:01:30,660 --> 00:01:33,260 They're these people who go around and they sign certificates saying 25 00:01:33,260 --> 00:01:36,240 this public key really belongs to Google.com. 26 00:01:36,400 --> 00:01:38,860 This public key really belongs to Microsoft.com. 27 00:01:39,020 --> 00:01:41,180 This public key really belongs to your blog. 28 00:01:42,020 --> 00:01:45,380 And as you should imagine, any time you hear the word authority, 29 00:01:46,060 --> 00:01:47,400 you should question it. 30 00:01:49,580 --> 00:01:53,520 The best answer to authority is transparency and accountability. 31 00:01:53,860 --> 00:01:55,760 So we decided to apply that 32 00:01:55,780 --> 00:01:58,900 to the existing state of the CA world. 33 00:01:59,220 --> 00:02:01,620 Now there's a reason why we're doing that as well. 34 00:02:01,820 --> 00:02:04,500 And that is there's been a growing amount of concern 35 00:02:04,500 --> 00:02:08,540 that the way that SSL uses certificate authorities 36 00:02:08,540 --> 00:02:10,560 is inherently problematic. 37 00:02:11,580 --> 00:02:14,700 There's a growing amount of work of this kind. 38 00:02:15,980 --> 00:02:18,860 Chris Seguin and Sid Stamm recently did some. 39 00:02:18,980 --> 00:02:21,120 But then last year there were three instances 40 00:02:21,120 --> 00:02:25,240 in which we observed attacks against HTTPS 41 00:02:25,240 --> 00:02:29,320 that were a result of mistakes or oversights 42 00:02:29,320 --> 00:02:30,380 by certificate authorities. 43 00:02:31,060 --> 00:02:33,200 Now one of those was as simple as saying 44 00:02:33,980 --> 00:02:36,700 we'll give a certificate to anyone who can answer, 45 00:02:36,840 --> 00:02:39,420 show that they answer administrative email at a domain. 46 00:02:39,760 --> 00:02:42,140 And here's a list of 20 email addresses at that domain. 47 00:02:42,420 --> 00:02:47,360 You know, root, admin, administrator, postmaster, etc., etc. 48 00:02:47,640 --> 00:02:49,220 If you can answer any one of these, 49 00:02:49,380 --> 00:02:50,700 then we'll give you a certificate. 50 00:02:51,080 --> 00:02:53,200 And of course, out there on the web, 51 00:02:53,280 --> 00:02:54,400 there are some webmail providers 52 00:02:54,400 --> 00:02:57,060 who haven't reserved all of those names. 53 00:02:59,320 --> 00:03:02,680 But there are more sophisticated attacks. 54 00:03:02,920 --> 00:03:05,440 So there's the attack by Soderov et al. 55 00:03:05,580 --> 00:03:08,760 where they observed that some CAs use MD5 56 00:03:08,760 --> 00:03:11,680 as part of their certification process 57 00:03:11,680 --> 00:03:14,360 and then fail to randomize a serial number. 58 00:03:14,760 --> 00:03:18,700 And so they were able to find an MD5 collision 59 00:03:18,700 --> 00:03:22,020 and also predict the serial number 60 00:03:22,020 --> 00:03:24,380 so that they could make the MD5 collision work in progress. 61 00:03:24,400 --> 00:03:25,340 So there's a lot of practice against the CA. 62 00:03:25,920 --> 00:03:27,480 And when that happens, 63 00:03:27,580 --> 00:03:30,060 it completely breaks HTTPS for everyone. 64 00:03:30,920 --> 00:03:32,240 There was another example 65 00:03:32,240 --> 00:03:34,220 where certificate authorities were found 66 00:03:34,220 --> 00:03:38,020 to be signing certificates that had slash zeros, 67 00:03:38,160 --> 00:03:42,940 zero bytes inside the names of websites. 68 00:03:43,420 --> 00:03:44,140 And then of course, 69 00:03:44,760 --> 00:03:47,700 although the certificates use Pascal strings, 70 00:03:47,880 --> 00:03:49,480 so it's okay to have a zero byte 71 00:03:49,480 --> 00:03:50,860 in the middle of the string somewhere, 72 00:03:51,720 --> 00:03:53,040 browsers, you see. 73 00:03:53,040 --> 00:03:55,760 And so they'd interpret that slash zero 74 00:03:55,760 --> 00:03:56,640 as the end of the string 75 00:03:56,640 --> 00:03:58,300 and add a different semantics. 76 00:04:00,120 --> 00:04:01,760 These attacks, unfortunately, 77 00:04:02,340 --> 00:04:04,160 may pertain only to one CA. 78 00:04:05,560 --> 00:04:07,100 But there are a lot of them 79 00:04:07,100 --> 00:04:09,740 and the security you get for HTTPS 80 00:04:09,740 --> 00:04:11,840 is only as good as your weakest CA. 81 00:04:12,700 --> 00:04:14,540 And so it starts to matter 82 00:04:14,540 --> 00:04:15,660 how many of them there are 83 00:04:15,660 --> 00:04:16,840 and what they're really up to. 84 00:04:16,960 --> 00:04:18,180 And in a sense, our project, 85 00:04:18,340 --> 00:04:19,660 which we're gonna report on today, 86 00:04:19,800 --> 00:04:20,900 or at least initially report on, 87 00:04:21,020 --> 00:04:22,300 is to try and find out 88 00:04:22,300 --> 00:04:24,220 who these CAs are and what they're up to. 89 00:04:25,840 --> 00:04:27,820 So we download everything 90 00:04:27,820 --> 00:04:30,880 and see what we can learn from the results. 91 00:04:34,240 --> 00:04:34,900 All right. 92 00:04:35,040 --> 00:04:37,560 So our observatory 93 00:04:37,560 --> 00:04:38,680 has a little bit of infrastructure. 94 00:04:39,040 --> 00:04:41,260 Actually, we didn't need a lot of stuff to do this, 95 00:04:41,340 --> 00:04:42,560 but we did need a little patience. 96 00:04:42,860 --> 00:04:45,080 So we had three low-end Linux servers 97 00:04:45,080 --> 00:04:46,580 with only two gigs of RAM each, 98 00:04:46,860 --> 00:04:49,620 a good shared 100 megabit network connection 99 00:04:50,300 --> 00:04:51,500 with people that were 100 00:04:53,300 --> 00:04:53,900 very supportive, 101 00:04:54,940 --> 00:04:57,060 Nmap with poor timing settings, 102 00:04:57,500 --> 00:04:58,860 some Python code, 103 00:04:59,060 --> 00:05:00,040 and some time. 104 00:05:00,320 --> 00:05:02,620 So we ran this thing 105 00:05:02,620 --> 00:05:04,300 and we did all the analysis, 106 00:05:04,520 --> 00:05:05,360 or most of the analysis, 107 00:05:05,400 --> 00:05:09,320 on a single-year-old i920 CPU 108 00:05:09,900 --> 00:05:11,440 with a fast disk and a lot of RAM 109 00:05:11,440 --> 00:05:13,040 and two little laptops. 110 00:05:13,280 --> 00:05:16,280 So tying together OpenSSL, 111 00:05:16,340 --> 00:05:18,040 a MySQL database, 112 00:05:18,280 --> 00:05:20,500 and lots of little Python scripts. 113 00:05:21,620 --> 00:05:23,280 Currently, we, unfortunately, 114 00:05:24,200 --> 00:05:26,420 our community contribution is vaporal, 115 00:05:26,940 --> 00:05:28,700 but we intend on making a distribution 116 00:05:28,700 --> 00:05:30,260 of our database. 117 00:05:30,480 --> 00:05:31,720 We have a little problem 118 00:05:31,720 --> 00:05:33,260 where we've uncovered some vulnerabilities 119 00:05:33,260 --> 00:05:35,360 and we need to finish all our disclosure 120 00:05:35,360 --> 00:05:36,960 before we can do that. 121 00:05:37,200 --> 00:05:38,300 Yeah, so put it another way. 122 00:05:38,400 --> 00:05:39,760 Hopefully in a few weeks, 123 00:05:39,880 --> 00:05:42,460 we'll have a website up at EFF, 124 00:05:42,620 --> 00:05:43,640 or a page up at EFF 125 00:05:43,640 --> 00:05:45,440 where you can download 126 00:05:45,440 --> 00:05:47,380 the entire data set that we got here 127 00:05:47,380 --> 00:05:49,080 and see if you can improve on our findings. 128 00:05:49,080 --> 00:05:50,280 It'll be a big BitTorrent download. 129 00:05:50,600 --> 00:05:52,060 And also some little web forms 130 00:05:52,060 --> 00:05:53,800 where you can, say, enter a domain 131 00:05:53,800 --> 00:05:56,120 and see, okay, these are all the certificates 132 00:05:56,120 --> 00:05:59,520 that were observed in weird, shady parts of the internet 133 00:05:59,520 --> 00:06:02,980 that claim to answer for that domain. 134 00:06:06,660 --> 00:06:08,420 So the first thing we did, 135 00:06:08,960 --> 00:06:10,000 we said, well, we need to know 136 00:06:10,000 --> 00:06:11,980 where the SSL servers are. 137 00:06:13,020 --> 00:06:14,400 And so some people in the... 138 00:06:14,400 --> 00:06:16,100 There have been some pre-existing projects 139 00:06:16,100 --> 00:06:17,240 that have gone looking for them 140 00:06:17,240 --> 00:06:18,440 by, say, compiling a list 141 00:06:18,440 --> 00:06:19,680 of the top one million names 142 00:06:19,680 --> 00:06:21,720 and resolving them 143 00:06:21,720 --> 00:06:22,500 and then going to see 144 00:06:22,500 --> 00:06:23,760 if they answer over HTTPS. 145 00:06:24,000 --> 00:06:26,080 We took a sort of more brute force approach. 146 00:06:27,620 --> 00:06:31,000 We contacted every IPv4 address on port 443 147 00:06:31,460 --> 00:06:32,940 using nmap, send it a SYN, 148 00:06:33,500 --> 00:06:35,280 and if it came back with an ACK, 149 00:06:35,360 --> 00:06:36,580 we just jotted down that fact. 150 00:06:37,000 --> 00:06:39,960 We did this with these little work units 151 00:06:39,960 --> 00:06:41,640 of the form, you know, 152 00:06:41,700 --> 00:06:43,680 number.star.star.number. 153 00:06:44,360 --> 00:06:45,600 It's a bit like the work units 154 00:06:45,600 --> 00:06:46,640 you use for SETI at home, 155 00:06:46,720 --> 00:06:48,360 except instead of observing the sky, 156 00:06:48,440 --> 00:06:49,940 we're observing SSL. 157 00:06:50,980 --> 00:06:52,360 You need to do that so that 158 00:06:52,360 --> 00:06:53,820 if something crashes halfway through, 159 00:06:53,940 --> 00:06:55,260 you don't have to start the whole scan 160 00:06:55,260 --> 00:06:56,220 again at the beginning. 161 00:06:56,480 --> 00:06:58,080 So you have the work units you've done 162 00:06:58,080 --> 00:06:59,160 and the ones that are still remaining. 163 00:06:59,640 --> 00:07:02,480 And then once we've seen an IP address reply, 164 00:07:03,460 --> 00:07:05,700 we then jot down that and come back later 165 00:07:05,700 --> 00:07:06,840 with a little Python script 166 00:07:07,280 --> 00:07:10,440 that will send an SSL hello message 167 00:07:10,440 --> 00:07:13,220 and just record the reply that it gets. 168 00:07:15,320 --> 00:07:17,440 One of the things that's kind of nice 169 00:07:17,440 --> 00:07:18,400 about this moment in time, 170 00:07:18,500 --> 00:07:19,040 it's 2010. 171 00:07:19,400 --> 00:07:21,180 It's perhaps the last time 172 00:07:21,180 --> 00:07:22,860 that you can reasonably take this approach. 173 00:07:23,340 --> 00:07:25,480 We're running out of IPv4 address space. 174 00:07:26,020 --> 00:07:27,480 IPv6 is 128 bits. 175 00:07:27,620 --> 00:07:29,320 We're not going to be sending SYNs 176 00:07:29,320 --> 00:07:30,680 to each of those. 177 00:07:30,960 --> 00:07:32,800 And there's these new technologies 178 00:07:32,800 --> 00:07:33,880 that are improving the internet, 179 00:07:34,060 --> 00:07:36,000 like server name indication, 180 00:07:36,660 --> 00:07:39,480 SNI and Spidey and other protocols 181 00:07:39,480 --> 00:07:41,520 that extend SSL and make it so that 182 00:07:41,520 --> 00:07:43,320 when you say hello to a server 183 00:07:43,320 --> 00:07:44,580 and ask it for its certificate chain, 184 00:07:44,740 --> 00:07:45,820 you have to know who it is 185 00:07:45,820 --> 00:07:46,640 that you want to talk to 186 00:07:46,640 --> 00:07:47,840 before it tells you who it is. 187 00:07:48,260 --> 00:07:49,660 That will make our lives harder. 188 00:07:49,740 --> 00:07:50,680 Yeah, another way of saying that 189 00:07:50,680 --> 00:07:52,100 is currently virtual hosting 190 00:07:52,100 --> 00:07:53,720 doesn't really work for HTTPS. 191 00:07:54,020 --> 00:07:55,500 It does work for modern browsers, 192 00:07:55,700 --> 00:07:58,200 but anyone who's deploying a website 193 00:07:58,200 --> 00:08:00,720 needs to support IE7, IE6, 194 00:08:00,820 --> 00:08:02,940 all these legacy browsers. 195 00:08:03,120 --> 00:08:04,000 Until those are gone, 196 00:08:04,200 --> 00:08:06,420 you can't do virtual hosting in SSL. 197 00:08:06,500 --> 00:08:07,900 So in a sense, we're relying on that 198 00:08:08,380 --> 00:08:09,620 in order to make this work. 199 00:08:11,600 --> 00:08:12,140 Extraction certificates. 200 00:08:13,020 --> 00:08:15,180 So maybe what we could have done 201 00:08:15,180 --> 00:08:16,200 would have been 202 00:08:17,220 --> 00:08:18,240 easier if we'd have used 203 00:08:18,240 --> 00:08:18,980 something off the shelf, 204 00:08:19,140 --> 00:08:19,920 but what we decided to do 205 00:08:19,920 --> 00:08:22,000 was write a custom client 206 00:08:22,680 --> 00:08:24,100 with Python and Construct. 207 00:08:24,280 --> 00:08:26,100 And part of the idea there was that 208 00:08:26,100 --> 00:08:27,860 we might have bugs in our understanding 209 00:08:27,860 --> 00:08:28,680 of the TLS protocol, 210 00:08:28,960 --> 00:08:29,960 but we want the bugs, 211 00:08:30,060 --> 00:08:31,120 the parsing errors to be bugs 212 00:08:31,120 --> 00:08:31,880 that we can understand. 213 00:08:32,160 --> 00:08:33,180 That was really important to us. 214 00:08:33,360 --> 00:08:34,820 So we didn't have to implement 215 00:08:34,820 --> 00:08:36,160 all of TLS in order to do this. 216 00:08:36,560 --> 00:08:37,580 Just these little parts 217 00:08:37,580 --> 00:08:38,600 I've outlined here. 218 00:08:38,880 --> 00:08:40,860 And that allows us to detect failures. 219 00:08:41,600 --> 00:08:43,520 We went off the RFC definitions, 220 00:08:43,620 --> 00:08:45,000 and then we just had to kind of 221 00:08:45,000 --> 00:08:45,940 debug it with Wireshark 222 00:08:45,940 --> 00:08:46,620 and some test cases. 223 00:08:46,640 --> 00:08:48,620 Turns out that the RFC 224 00:08:48,620 --> 00:08:49,920 is a little ambiguous here and there, 225 00:08:50,020 --> 00:08:51,600 and you really have to dig around 226 00:08:51,600 --> 00:08:52,920 to find some places that work. 227 00:08:53,420 --> 00:08:54,360 But once we did that, 228 00:08:54,400 --> 00:08:56,700 we were able to collect SSL certificates 229 00:08:56,700 --> 00:08:57,940 without actually having to do 230 00:08:57,940 --> 00:08:58,940 the key agreement part. 231 00:08:59,260 --> 00:09:00,620 So that's very efficient. 232 00:09:00,800 --> 00:09:01,440 You just say hello, 233 00:09:01,600 --> 00:09:03,000 and it sends back some bytes, 234 00:09:03,060 --> 00:09:04,080 and you drop the connection 235 00:09:04,080 --> 00:09:05,680 when you see that they've given you 236 00:09:05,680 --> 00:09:07,360 everything you need to reconstruct 237 00:09:07,360 --> 00:09:08,360 their whole certificate chain. 238 00:09:08,700 --> 00:09:11,240 You don't even need to do 239 00:09:11,240 --> 00:09:12,700 any key agreement stuff at all. 240 00:09:12,860 --> 00:09:13,640 So we can... 241 00:09:13,640 --> 00:09:14,380 Yeah, no crypto math. 242 00:09:14,620 --> 00:09:15,400 Yeah, no crypto. 243 00:09:15,400 --> 00:09:16,700 So it's nice and quick, 244 00:09:16,820 --> 00:09:18,080 and then if we make a mistake, 245 00:09:18,220 --> 00:09:19,320 we can go back after the fact 246 00:09:19,320 --> 00:09:20,080 and reanalyze. 247 00:09:21,500 --> 00:09:23,520 So at the end of this process, 248 00:09:23,640 --> 00:09:25,040 we are left with a big pile 249 00:09:25,040 --> 00:09:26,380 of X.509 certificates. 250 00:09:27,120 --> 00:09:28,980 And as an aside or a reminder, 251 00:09:29,240 --> 00:09:30,940 it's worth dwelling on what 252 00:09:30,940 --> 00:09:33,320 X.509 actually is. 253 00:09:34,820 --> 00:09:35,600 It's a standard, 254 00:09:36,000 --> 00:09:37,340 or at least a recommendation, 255 00:09:37,400 --> 00:09:39,020 that was promulgated by 256 00:09:39,020 --> 00:09:41,200 the International Telecommunications Union, 257 00:09:41,360 --> 00:09:43,300 sort of the international club of telcos, 258 00:09:43,420 --> 00:09:44,420 in the 1980s. 259 00:09:45,320 --> 00:09:47,840 Back before the web existed 260 00:09:47,840 --> 00:09:48,800 and SSL existed. 261 00:09:49,660 --> 00:09:51,020 And the general advantage 262 00:09:51,020 --> 00:09:52,040 that the protocol has 263 00:09:52,040 --> 00:09:53,440 is that it's amazingly flexible 264 00:09:53,440 --> 00:09:54,240 and extensible. 265 00:09:54,640 --> 00:09:55,940 It's completely abstract, 266 00:09:56,140 --> 00:09:56,800 completely general. 267 00:09:56,880 --> 00:09:57,760 You can do anything with it. 268 00:09:58,300 --> 00:10:00,160 These are also its disadvantages. 269 00:10:00,700 --> 00:10:03,680 And so the fact that it was able 270 00:10:03,680 --> 00:10:04,540 to be kind of retrospectively 271 00:10:05,160 --> 00:10:06,320 bolted onto the web 272 00:10:07,320 --> 00:10:08,680 is maybe a testament 273 00:10:08,680 --> 00:10:09,480 to its flexibility 274 00:10:09,480 --> 00:10:12,420 and also perhaps it might not... 275 00:10:12,420 --> 00:10:13,880 We might have been better served 276 00:10:13,880 --> 00:10:17,300 with a lean, narrowly defined way 277 00:10:17,300 --> 00:10:18,480 to do encryption for the web, 278 00:10:18,600 --> 00:10:19,860 but instead what we have 279 00:10:19,860 --> 00:10:23,460 is this complicated infrastructure 280 00:10:24,200 --> 00:10:26,140 that has a lot of security features 281 00:10:26,760 --> 00:10:28,100 that are hard to understand, 282 00:10:28,280 --> 00:10:29,380 especially when you start to take 283 00:10:29,380 --> 00:10:30,640 the intersection of all of them. 284 00:10:31,180 --> 00:10:32,800 So we have these things. 285 00:10:34,240 --> 00:10:35,320 We need to parse them. 286 00:10:35,560 --> 00:10:37,260 And there's no real right way 287 00:10:37,260 --> 00:10:38,700 to parse X.509 certificates. 288 00:10:39,040 --> 00:10:40,780 I mean, there's ways that they say 289 00:10:40,780 --> 00:10:41,600 to do it in the specs, 290 00:10:41,740 --> 00:10:42,720 but one of the things 291 00:10:42,720 --> 00:10:43,840 that we're really interested in 292 00:10:43,840 --> 00:10:45,720 is how maybe two different implementations 293 00:10:46,260 --> 00:10:47,660 might look at an X.509 certificate 294 00:10:47,660 --> 00:10:49,000 and see something different in there, 295 00:10:49,080 --> 00:10:51,300 like the great example of those nulls. 296 00:10:52,720 --> 00:10:59,000 So we didn't want to try 297 00:10:59,000 --> 00:11:00,120 and write it the right way. 298 00:11:00,240 --> 00:11:02,780 What we did was we decided to do it 299 00:11:02,780 --> 00:11:04,260 one of the wrong ways 300 00:11:04,260 --> 00:11:05,100 that was fairly easy 301 00:11:05,100 --> 00:11:06,460 and gave us a lot of data fast, 302 00:11:06,640 --> 00:11:09,860 and that was to use OpenSSL's 303 00:11:09,860 --> 00:11:11,840 X.509 text pretty printer 304 00:11:11,840 --> 00:11:12,700 and then to parse it 305 00:11:12,720 --> 00:11:12,840 and parse that. 306 00:11:13,140 --> 00:11:14,820 And we've actually experimented 307 00:11:14,820 --> 00:11:16,180 with some other ways of doing this 308 00:11:16,690 --> 00:11:18,480 because obviously there's information 309 00:11:18,480 --> 00:11:19,920 that shows up in certificates 310 00:11:19,920 --> 00:11:22,240 that your C client might not be 311 00:11:22,240 --> 00:11:22,960 the best thing to see. 312 00:11:23,320 --> 00:11:24,800 You can use a Java server 313 00:11:24,800 --> 00:11:26,060 or a certificate parser. 314 00:11:26,200 --> 00:11:27,060 You can write your own code 315 00:11:27,550 --> 00:11:31,360 very similar to the OpenSSL verify command 316 00:11:31,360 --> 00:11:33,540 or the OpenSSL X.509 command. 317 00:11:33,720 --> 00:11:34,600 All that source is available. 318 00:11:34,780 --> 00:11:36,240 It's easy to see how they're doing that 319 00:11:36,240 --> 00:11:37,480 and make your own little tweaked versions. 320 00:11:38,360 --> 00:11:40,060 But ideally we want to have different views 321 00:11:40,060 --> 00:11:40,680 of the certificates 322 00:11:40,680 --> 00:11:42,380 and then we can agree on fingerprints, 323 00:11:42,680 --> 00:11:43,660 which is just the hash 324 00:11:43,660 --> 00:11:44,700 of the dir encoded bytes 325 00:11:44,700 --> 00:11:45,440 of the certs, 326 00:11:45,440 --> 00:11:46,160 which should never change. 327 00:11:46,340 --> 00:11:47,620 And we can join all that together 328 00:11:47,620 --> 00:11:51,060 and conduct our analyses 329 00:11:51,060 --> 00:11:53,120 to see maybe which views are different. 330 00:11:55,900 --> 00:11:58,240 So in order to analyze this data 331 00:11:58,240 --> 00:11:59,260 that we just parsed, 332 00:12:00,080 --> 00:12:02,140 we put it all in a gigantic set 333 00:12:02,140 --> 00:12:03,100 of MySQL tables. 334 00:12:03,940 --> 00:12:06,180 And then as we noticed 335 00:12:06,180 --> 00:12:07,180 interesting questions 336 00:12:07,180 --> 00:12:08,200 that we wanted to ask 337 00:12:08,200 --> 00:12:09,700 or interesting properties 338 00:12:09,700 --> 00:12:10,560 we wanted to examine, 339 00:12:10,780 --> 00:12:13,060 like the relationship between domain names. 340 00:12:13,340 --> 00:12:14,640 There might be many certs 341 00:12:14,640 --> 00:12:15,800 that in different ways 342 00:12:15,800 --> 00:12:17,660 claim to be relevant to a particular domain. 343 00:12:18,100 --> 00:12:19,700 You want to build separate tables 344 00:12:19,700 --> 00:12:21,140 to capture those mappings. 345 00:12:21,860 --> 00:12:23,260 And then once you've built 346 00:12:23,260 --> 00:12:24,800 this big MySQL infrastructure, 347 00:12:25,440 --> 00:12:27,540 basically a question that you want to ask 348 00:12:27,540 --> 00:12:29,880 about the state of SSL 349 00:12:29,880 --> 00:12:31,700 turns into a fancy query you can write. 350 00:12:32,200 --> 00:12:33,980 And we have a couple of examples of these 351 00:12:34,600 --> 00:12:35,680 later on in the slides. 352 00:12:35,800 --> 00:12:37,120 And then once we're ready 353 00:12:37,120 --> 00:12:37,960 to publish this data, 354 00:12:38,040 --> 00:12:38,940 hopefully you can all go out 355 00:12:38,940 --> 00:12:39,560 and write your own 356 00:12:40,120 --> 00:12:41,520 queries against this data set. 357 00:12:42,640 --> 00:12:43,520 And in a way, 358 00:12:43,540 --> 00:12:44,480 this approach is sort of, 359 00:12:45,540 --> 00:12:46,800 it gives us the flexibility 360 00:12:46,800 --> 00:12:47,840 that you need to handle 361 00:12:47,840 --> 00:12:49,760 all of the crazy internal complexity 362 00:12:49,760 --> 00:12:51,140 you've got inside X.509. 363 00:12:53,460 --> 00:12:55,060 And then the first thing 364 00:12:55,060 --> 00:12:56,480 that we did with this set of tables 365 00:12:56,480 --> 00:12:57,580 was try to work out 366 00:12:57,580 --> 00:13:01,860 which of the certificates was valid. 367 00:13:02,100 --> 00:13:03,460 And that turned out to be quite tricky. 368 00:13:04,300 --> 00:13:05,120 It's very important 369 00:13:05,120 --> 00:13:06,400 and there are some more, 370 00:13:06,440 --> 00:13:07,300 but perhaps not all 371 00:13:07,300 --> 00:13:08,520 of the gory details later. 372 00:13:08,520 --> 00:13:11,620 But what we found in general was, 373 00:13:11,700 --> 00:13:13,680 okay, there are 16.2 million machines 374 00:13:13,680 --> 00:13:14,380 on the internet, 375 00:13:14,480 --> 00:13:15,280 at least when we scanned, 376 00:13:15,500 --> 00:13:18,720 that replied on port 443 with an ACK. 377 00:13:19,120 --> 00:13:20,300 And then of those, 378 00:13:20,420 --> 00:13:21,800 if you actually looked at 379 00:13:21,800 --> 00:13:22,860 what they said back to you, 380 00:13:23,120 --> 00:13:25,760 10.8 million or thereabouts of them 381 00:13:25,760 --> 00:13:27,640 gave an SSL response. 382 00:13:28,020 --> 00:13:29,400 The others, who knows what they were. 383 00:13:29,520 --> 00:13:30,500 They were random bytes 384 00:13:30,500 --> 00:13:31,500 that they came back with. 385 00:13:32,840 --> 00:13:36,300 And then of the 10.8 SSL handshakes, 386 00:13:36,400 --> 00:13:38,500 4.3 or so, 387 00:13:38,500 --> 00:13:42,000 a million of those had a valid SSL search chain. 388 00:13:42,160 --> 00:13:43,560 The others were self-signed, 389 00:13:43,660 --> 00:13:45,040 expired, invalid in some way. 390 00:13:45,460 --> 00:13:46,860 And then if you look at the valid ones, 391 00:13:47,160 --> 00:13:48,580 a lot of them are the same chain 392 00:13:48,580 --> 00:13:50,240 repeated on multiple IP addresses. 393 00:13:50,480 --> 00:13:53,860 So you get down to 1.3 million valid leaves 394 00:13:54,480 --> 00:13:55,520 if you want to count, 395 00:13:56,420 --> 00:13:59,500 count or throw away the repeated chains. 396 00:14:01,380 --> 00:14:03,320 Which is very close 397 00:14:03,320 --> 00:14:04,500 to the number of valid certificates. 398 00:14:04,760 --> 00:14:08,120 So there's a few extra ones in there. 399 00:14:08,120 --> 00:14:08,740 We'll talk about later. 400 00:14:09,140 --> 00:14:10,980 So a little crash course 401 00:14:10,980 --> 00:14:12,320 on what it means to be a valid 402 00:14:12,920 --> 00:14:14,300 X.509 certificate chain. 403 00:14:15,060 --> 00:14:16,760 When you put up a website 404 00:14:16,760 --> 00:14:18,700 running HTTPS and you just serve up 405 00:14:18,700 --> 00:14:21,880 the certificate you got signed by a CA, 406 00:14:22,040 --> 00:14:23,700 that'll often work because 407 00:14:23,700 --> 00:14:27,360 the trust root chain is already 408 00:14:27,360 --> 00:14:29,180 that chain, the subordinate CA 409 00:14:29,180 --> 00:14:31,240 that signed your browser 410 00:14:31,240 --> 00:14:32,300 or your certificate 411 00:14:32,300 --> 00:14:34,840 is already present in the browser. 412 00:14:35,580 --> 00:14:37,420 Usually, though, you send back a trust chain. 413 00:14:37,420 --> 00:14:39,480 So you send a couple of certificates back 414 00:14:39,480 --> 00:14:41,500 and then the browser orders those 415 00:14:41,500 --> 00:14:45,240 and figures out if this chain 416 00:14:45,240 --> 00:14:46,680 really maps back to a trust root. 417 00:14:46,800 --> 00:14:49,540 The trust root is what grants you the authority. 418 00:14:49,740 --> 00:14:51,660 So this is a really important process 419 00:14:51,660 --> 00:14:53,560 so I just wanted to give you the dirty version of it. 420 00:14:54,220 --> 00:14:56,800 When you check a link in the chain, 421 00:14:56,920 --> 00:14:58,700 you check that the issuer on the certificate 422 00:14:58,700 --> 00:15:01,380 you're looking at matches the subject of its parent. 423 00:15:01,800 --> 00:15:04,960 If there are these authority and subject key IDs 424 00:15:04,960 --> 00:15:06,960 in either of them, then they must match. 425 00:15:06,960 --> 00:15:09,080 You check that the dates are valid 426 00:15:09,080 --> 00:15:11,480 and you check that the key usage is correct. 427 00:15:11,660 --> 00:15:14,240 So this isn't a code signing thing that I'm doing. 428 00:15:14,360 --> 00:15:16,000 This is an SSL chain that I'm verifying. 429 00:15:16,140 --> 00:15:17,880 I don't want to see your code signing certain here. 430 00:15:17,960 --> 00:15:18,180 Thanks. 431 00:15:18,880 --> 00:15:20,760 And then you also have to look and make sure 432 00:15:20,760 --> 00:15:21,900 that there's no critical property, 433 00:15:22,020 --> 00:15:23,380 something flagged in that certificate 434 00:15:23,380 --> 00:15:24,920 that you don't understand what it means. 435 00:15:25,020 --> 00:15:25,920 Because maybe that means, hey, 436 00:15:25,960 --> 00:15:28,340 this certificate isn't valid for you. 437 00:15:29,360 --> 00:15:30,900 And that stops us from 438 00:15:32,920 --> 00:15:35,080 missing important extensions 439 00:15:35,080 --> 00:15:36,300 that we need to be able to rock. 440 00:15:42,560 --> 00:15:46,760 That's a great question. 441 00:15:47,060 --> 00:15:51,020 And it would be a really easy bunch of SQL queries to do. 442 00:15:51,200 --> 00:15:52,680 So either if we, 443 00:15:52,720 --> 00:15:54,420 we're not going to finish this talk early probably, 444 00:15:54,600 --> 00:15:55,780 but if we finish it early, 445 00:15:55,840 --> 00:15:57,540 we could have done the SQL queries for you, 446 00:15:57,580 --> 00:15:58,820 shown you live on the screen. 447 00:16:00,080 --> 00:16:01,680 Failing that, we can come and do it in the, 448 00:16:01,680 --> 00:16:02,980 we can go and do it in the breakout session. 449 00:16:03,320 --> 00:16:05,320 Or once the data set is public, 450 00:16:05,320 --> 00:16:07,700 it'll be pretty easy for you guys to just go 451 00:16:07,700 --> 00:16:09,320 and look at those properties yourself. 452 00:16:09,760 --> 00:16:11,420 He's pretty good at quickly turning those 453 00:16:11,420 --> 00:16:12,080 into pictures too. 454 00:16:15,300 --> 00:16:17,360 So there's a big partition out there 455 00:16:17,360 --> 00:16:19,160 between valid and invalid sets. 456 00:16:19,540 --> 00:16:21,540 And there are a few that we had to, 457 00:16:21,560 --> 00:16:22,980 that were on the gray line in between 458 00:16:22,980 --> 00:16:24,080 that we had to struggle with 459 00:16:24,080 --> 00:16:25,640 as we learned a bit more about this. 460 00:16:25,760 --> 00:16:27,840 One example that we discovered is that 461 00:16:27,840 --> 00:16:28,860 sometimes a certificate, 462 00:16:29,140 --> 00:16:31,820 whether a certificate is valid in Firefox or not, 463 00:16:31,920 --> 00:16:34,200 depends on what other sites you've been to beforehand. 464 00:16:35,380 --> 00:16:36,860 That was non-intuitive, 465 00:16:37,120 --> 00:16:40,320 but what happens is whenever Firefox sees 466 00:16:40,320 --> 00:16:43,440 a subordinate or intermediate CA that it considers valid, 467 00:16:43,640 --> 00:16:44,480 it caches it. 468 00:16:45,340 --> 00:16:48,100 And so, and that's sort of, you know, 469 00:16:48,160 --> 00:16:49,620 like part of the system. 470 00:16:49,800 --> 00:16:50,840 You know, those things are valid 471 00:16:50,840 --> 00:16:52,560 if they're signed by a route you trust, 472 00:16:52,680 --> 00:16:53,400 so you cache them. 473 00:16:54,060 --> 00:16:57,600 And so sometimes a chain will depend on 474 00:16:57,600 --> 00:17:00,220 an intermediate or subordinate CA that it doesn't contain. 475 00:17:00,680 --> 00:17:02,960 And so if you've already cached that, 476 00:17:02,960 --> 00:17:04,380 that middle cert, 477 00:17:04,380 --> 00:17:06,140 when you go to the site, it's valid. 478 00:17:06,440 --> 00:17:08,740 If you haven't already cached it, it isn't. 479 00:17:08,920 --> 00:17:10,340 So there's crazy stuff like this. 480 00:17:10,460 --> 00:17:12,620 But aside from that thin gray line in the middle, 481 00:17:12,640 --> 00:17:14,540 you've got a world of black and white. 482 00:17:14,740 --> 00:17:16,640 And in the black world, the invalid world, 483 00:17:16,820 --> 00:17:18,900 there's all sorts of crazy stuff going on. 484 00:17:19,640 --> 00:17:21,720 There are lots of certs out on the Internet 485 00:17:21,720 --> 00:17:23,200 that claim to be Microsoft, 486 00:17:23,580 --> 00:17:25,420 claim to be Google, claim to be Star. 487 00:17:26,520 --> 00:17:29,200 There are things that look like telcos 488 00:17:29,200 --> 00:17:30,580 in Southeast Asian countries. 489 00:17:32,240 --> 00:17:34,040 Man in, maybe, maybe, maybe 490 00:17:34,040 --> 00:17:35,440 they're man in the middle in the users. 491 00:17:35,600 --> 00:17:37,740 More likely what it is is they have a WAP gateway, 492 00:17:37,980 --> 00:17:40,300 which is, you know, the old mobile Internet thing, 493 00:17:40,400 --> 00:17:42,460 and those require you to... 494 00:17:43,540 --> 00:17:43,940 Impersonate? 495 00:17:44,100 --> 00:17:45,640 Yeah, to impersonate the server 496 00:17:45,640 --> 00:17:48,140 because they didn't have proper infrastructure for TLS in there. 497 00:17:49,360 --> 00:17:50,980 So there's all this crazy stuff out there. 498 00:17:52,600 --> 00:17:55,060 But most of this talk, unless otherwise noted, 499 00:17:55,260 --> 00:17:56,520 is about the white certs, 500 00:17:56,520 --> 00:17:58,380 the certs that are valid that check out 501 00:17:58,380 --> 00:18:00,520 when you go to them with a modern Firefox or IE, 502 00:18:00,640 --> 00:18:02,720 and they give you the little lock icon. 503 00:18:05,200 --> 00:18:07,260 And what kind of questions do we want to ask about them? 504 00:18:08,260 --> 00:18:09,920 How many are there? Who are they? 505 00:18:10,380 --> 00:18:11,240 What do they sign? 506 00:18:12,080 --> 00:18:13,580 Is anyone impersonating anyone? 507 00:18:14,400 --> 00:18:18,140 So the number of trusted CAs is kind of a tricky question. 508 00:18:18,400 --> 00:18:21,560 So if we're going to figure out who browsers trust, 509 00:18:21,760 --> 00:18:23,120 we want to know what the trust routes are. 510 00:18:23,440 --> 00:18:25,600 And if you just fire up those browsers, 511 00:18:25,720 --> 00:18:27,060 maybe you look in your Mozilla trust route, 512 00:18:27,160 --> 00:18:28,800 you see 124 trust routes 513 00:18:28,800 --> 00:18:30,180 representing around 60 organizations. 514 00:18:31,180 --> 00:18:32,660 That's, you know, some indication. 515 00:18:32,660 --> 00:18:35,280 When you fire up Windows 7 and open up IE, 516 00:18:35,400 --> 00:18:37,180 you see 19 trust routes. 517 00:18:37,400 --> 00:18:39,520 And you think, oh, wow, those guys have really tightened that down. 518 00:18:40,740 --> 00:18:43,680 Except what Microsoft actually does is 519 00:18:43,680 --> 00:18:46,080 when you're going to a website 520 00:18:46,660 --> 00:18:49,740 and your browser doesn't instantly check out, 521 00:18:49,840 --> 00:18:52,380 it doesn't check out the route isn't in your list of 19, 522 00:18:53,580 --> 00:18:55,940 IE actually goes and pings Microsoft and says, 523 00:18:56,140 --> 00:18:58,720 so should I really trust this route CA? 524 00:18:58,940 --> 00:19:01,500 And Microsoft has a list of about 300 525 00:19:01,500 --> 00:19:03,700 of these search that they might give you. 526 00:19:04,020 --> 00:19:08,180 And they come from 100 or so controlling organizations. 527 00:19:08,660 --> 00:19:11,060 So one really nasty thing about this user interface 528 00:19:11,060 --> 00:19:12,720 is if you care about who you trust 529 00:19:12,720 --> 00:19:14,840 and you go and look at the IE list, 530 00:19:15,320 --> 00:19:16,660 you don't get the real list. 531 00:19:16,800 --> 00:19:19,040 You get this little sanitized version of it. 532 00:19:19,460 --> 00:19:21,360 And so we had to go and get the sorted, 533 00:19:21,480 --> 00:19:23,340 the real, sorted, complete IE list 534 00:19:23,340 --> 00:19:25,200 and use that as the... 535 00:19:25,200 --> 00:19:27,800 Although, to be fair, they do document this whole process 536 00:19:27,800 --> 00:19:30,740 and actually provide a lot of insight as to what they'll do 537 00:19:31,500 --> 00:19:34,700 if, say, breaks like the break that just happened last year 538 00:19:34,700 --> 00:19:35,640 happens to SHA-1. 539 00:19:35,780 --> 00:19:37,940 They have a whole plan for what they're going to do 540 00:19:37,940 --> 00:19:41,480 with eliminating certificate authorities, say, 541 00:19:41,540 --> 00:19:43,900 that don't bother to randomize their serial number. 542 00:19:44,140 --> 00:19:47,560 So they'll invalidate them long before they'll invalidate 543 00:19:47,560 --> 00:19:49,400 people that properly invalidate them. 544 00:19:49,480 --> 00:19:50,880 I didn't mean to call Microsoft sorted. 545 00:19:53,340 --> 00:19:55,060 So how many of these things are there? 546 00:19:55,300 --> 00:19:57,480 I mean, obviously, you've got this set of routes 547 00:19:57,480 --> 00:20:00,920 that Microsoft and Firefox trust explicitly. 548 00:20:00,920 --> 00:20:04,180 But then, of course, because so many of these are delegated 549 00:20:04,180 --> 00:20:06,400 and have the power to create new CA certificates, 550 00:20:06,980 --> 00:20:09,440 there's actually a larger set that we found. 551 00:20:10,160 --> 00:20:15,320 There are 1,482 that were valid for either Windows and Firefox. 552 00:20:15,760 --> 00:20:17,940 Now, remember, these are often multiple certs 553 00:20:17,940 --> 00:20:18,960 controlled by one organization, 554 00:20:19,260 --> 00:20:21,480 so the large number in and of itself 555 00:20:21,480 --> 00:20:24,120 isn't necessarily, you know, damning. 556 00:20:24,160 --> 00:20:26,960 In fact, it's good practice to keep your most powerful keys 557 00:20:26,960 --> 00:20:30,900 off the Internet and then have one that has a shorter expiry date 558 00:20:30,920 --> 00:20:32,760 perhaps on a server somewhere 559 00:20:32,760 --> 00:20:34,140 where you're actually signing things. 560 00:20:35,360 --> 00:20:38,020 But if you say how many issuer strings, 561 00:20:38,240 --> 00:20:40,680 which is the kind of magic thing that you look up the cert by, 562 00:20:40,820 --> 00:20:42,440 are there, there are 1,100. 563 00:20:42,820 --> 00:20:44,900 And if you look inside the issuer, 564 00:20:45,000 --> 00:20:46,780 there's a field that says organization. 565 00:20:48,000 --> 00:20:49,220 And if you... Sometimes. 566 00:20:49,480 --> 00:20:52,120 Sometimes. If you count those plus, you know, 567 00:20:52,140 --> 00:20:55,400 some fallback options, you get about 650 organizations 568 00:20:55,920 --> 00:20:58,560 that have the power to create, to sign a cert 569 00:20:58,560 --> 00:21:00,160 that your browser will trust 570 00:21:00,920 --> 00:21:01,620 to be google.com. 571 00:21:03,120 --> 00:21:06,160 Now, some of those organizations might be owned by some of the others, 572 00:21:06,980 --> 00:21:09,560 and the jurisdictions that they work in might overlap. 573 00:21:09,740 --> 00:21:10,180 It's complicated. 574 00:21:10,560 --> 00:21:12,740 But the general principle that you should remember 575 00:21:12,740 --> 00:21:16,060 underlying all of this is that if a CA cert can sign one domain, 576 00:21:16,220 --> 00:21:17,780 it can sign every domain on the Internet. 577 00:21:21,720 --> 00:21:23,760 So, each CA has many certificates, 578 00:21:24,000 --> 00:21:27,200 but the combination of the issuer and the authority key ID, 579 00:21:27,380 --> 00:21:30,260 which is actually the subject key ID 580 00:21:30,260 --> 00:21:32,880 in the issuer's cert, that's a unique combination. 581 00:21:33,340 --> 00:21:37,240 So, you can look at the top CAs that we found in use on the Internet. 582 00:21:37,420 --> 00:21:39,400 These are valid signatures. 583 00:21:39,760 --> 00:21:42,180 We found one GoDaddy cert. 584 00:21:42,420 --> 00:21:44,080 This is its fingerprint here. 585 00:21:44,240 --> 00:21:48,780 It signed 300,000 different certificates. 586 00:21:49,980 --> 00:21:51,960 The next biggest one was Equifax. 587 00:21:52,120 --> 00:21:54,140 They signed 244,000. 588 00:21:54,360 --> 00:21:55,560 When you get down to thought, 589 00:21:55,720 --> 00:21:58,380 you find one that doesn't have a subject key ID in it, 590 00:21:58,460 --> 00:22:00,240 which means that when you're looking at it, 591 00:22:00,260 --> 00:22:03,480 you have to look for every certificate in your trust route 592 00:22:03,480 --> 00:22:04,480 that has that issuer name, 593 00:22:04,680 --> 00:22:06,020 and that can take a lot of time 594 00:22:06,020 --> 00:22:07,900 because you need to try, you know, 595 00:22:07,920 --> 00:22:08,980 if there's multiple keys in there, 596 00:22:09,060 --> 00:22:11,560 you have to do expensive PKI or public key operations 597 00:22:11,560 --> 00:22:14,540 for each of those to validate that it's true. 598 00:22:14,660 --> 00:22:17,220 And if one isn't correct, maybe the next one is. 599 00:22:17,300 --> 00:22:18,020 So, you have to keep trying. 600 00:22:18,580 --> 00:22:20,180 And then, you know, 601 00:22:20,180 --> 00:22:23,300 85,000 plus from user trusts for certs, 602 00:22:23,300 --> 00:22:24,500 all with the same SCID, 603 00:22:24,600 --> 00:22:25,960 which is kind of a strange thing. 604 00:22:26,480 --> 00:22:28,820 It's possible that when you're doing certificate revocation, 605 00:22:29,020 --> 00:22:29,920 you might want to, 606 00:22:30,260 --> 00:22:30,520 you know, 607 00:22:30,520 --> 00:22:31,460 have kind of different domains. 608 00:22:32,020 --> 00:22:34,440 It's really a weird kind of world 609 00:22:34,440 --> 00:22:36,460 to see which ones have unique keys 610 00:22:36,460 --> 00:22:39,040 and which ones have unique SCIDs. 611 00:22:39,320 --> 00:22:42,920 So, one of the things about these validity assumptions here 612 00:22:42,920 --> 00:22:44,620 is that we're doing this with OpenSSL 613 00:22:45,120 --> 00:22:48,260 and a version of OpenSSL that isn't too fussy about, 614 00:22:49,160 --> 00:22:50,260 you know, MD5. 615 00:22:50,740 --> 00:22:51,760 It's a little bit older. 616 00:22:52,060 --> 00:22:55,640 And ones that are valid based on the Firefox trust routes 617 00:22:55,640 --> 00:22:57,860 or on all the IE ones that you get. 618 00:22:57,980 --> 00:22:59,640 And you can just download those 619 00:22:59,640 --> 00:23:01,740 and we have a contributor who did that. 620 00:23:04,460 --> 00:23:05,280 Oh, SCID. 621 00:23:05,600 --> 00:23:07,500 SCID is the subject key identifier. 622 00:23:07,820 --> 00:23:09,660 It's an X509v3 option. 623 00:23:09,960 --> 00:23:12,120 They showed up in like 1998. 624 00:23:12,660 --> 00:23:14,080 I'll talk about them a little more later, 625 00:23:14,160 --> 00:23:15,940 but it's one of the things that if it's present, 626 00:23:16,020 --> 00:23:16,640 they have to match. 627 00:23:16,760 --> 00:23:17,420 If it isn't present, 628 00:23:17,560 --> 00:23:18,620 they don't have to match. 629 00:23:18,740 --> 00:23:20,520 And it should be the key's identifier. 630 00:23:20,820 --> 00:23:22,000 In fact, there's a suggestion 631 00:23:22,000 --> 00:23:24,060 that maybe it's the SHA-1 hash of the key, 632 00:23:24,160 --> 00:23:25,340 but it doesn't have to be. 633 00:23:26,580 --> 00:23:26,980 Yeah. 634 00:23:27,300 --> 00:23:28,180 How do you know 635 00:23:28,180 --> 00:23:30,480 that you know all of the Microsoft ones? 636 00:23:30,740 --> 00:23:32,040 Maybe they have a few secret ones. 637 00:23:33,100 --> 00:23:34,720 Yeah, that's a great question, actually. 638 00:23:34,920 --> 00:23:37,420 So, yeah, that's a really great question. 639 00:23:37,960 --> 00:23:38,920 The question was, 640 00:23:39,020 --> 00:23:40,680 how do you know that we have all the Microsoft ones? 641 00:23:40,780 --> 00:23:41,480 Maybe they have secret ones. 642 00:23:41,720 --> 00:23:45,280 So, you know, there's a lot of stuff going on here 643 00:23:45,280 --> 00:23:48,160 where certificate, like, trust routes sign subordinates. 644 00:23:48,480 --> 00:23:50,860 And those subordinates have the same powers, basically, 645 00:23:50,860 --> 00:23:51,680 as the route, right? 646 00:23:51,780 --> 00:23:53,160 They can sign anything they want. 647 00:23:53,280 --> 00:23:54,700 They can sign other subordinates. 648 00:23:55,700 --> 00:23:58,160 You know, you can, you know, 649 00:23:58,160 --> 00:24:00,680 you can see how sometimes trust routes will actually say 650 00:24:00,680 --> 00:24:01,080 when you ask them, 651 00:24:01,160 --> 00:24:03,240 oh, could you tell us all of your subordinates 652 00:24:03,240 --> 00:24:03,740 that you've signed? 653 00:24:03,840 --> 00:24:05,040 Oh, that's private information. 654 00:24:05,760 --> 00:24:07,420 You know, that's sort of... 655 00:24:07,420 --> 00:24:08,420 So maybe a better, 656 00:24:08,560 --> 00:24:10,100 a different interpretation 657 00:24:10,100 --> 00:24:11,640 of what you might have meant to ask. 658 00:24:12,920 --> 00:24:14,940 What we did is we, like, 659 00:24:15,100 --> 00:24:17,120 one of, actually, an ISEC intern 660 00:24:17,540 --> 00:24:18,720 got a version of XP, 661 00:24:18,960 --> 00:24:20,240 installed all the service packs, 662 00:24:20,440 --> 00:24:24,120 and this was before Windows had completely rolled out 663 00:24:24,120 --> 00:24:26,900 its magic update to the cert. 664 00:24:26,900 --> 00:24:28,560 And so you actually got all the certs, 665 00:24:28,560 --> 00:24:30,280 or a very large list of certs. 666 00:24:30,280 --> 00:24:31,880 We can't be sure that we got all of them. 667 00:24:32,020 --> 00:24:34,000 We got a very large list of certs 668 00:24:34,540 --> 00:24:36,600 that Microsoft would push as updates to Windows XP, 669 00:24:36,860 --> 00:24:39,960 but we can't be sure we've got that entire set. 670 00:24:40,280 --> 00:24:43,000 And it's almost certain that there are some certs 671 00:24:43,000 --> 00:24:45,720 in private domains that we can't see, 672 00:24:45,840 --> 00:24:47,740 and also that Microsoft could indeed, 673 00:24:47,940 --> 00:24:51,960 if they got a court order and decided it was valid, 674 00:24:52,180 --> 00:24:53,400 which is a separate question, 675 00:24:53,560 --> 00:24:56,080 they could add another, silently add another cert. 676 00:24:56,900 --> 00:24:59,800 To their set of trust routes, and we might never know. 677 00:25:00,400 --> 00:25:01,320 You know, actually, 678 00:25:01,460 --> 00:25:03,220 any of these trust routes can do this, though. 679 00:25:03,300 --> 00:25:04,100 That was my point, right? 680 00:25:04,240 --> 00:25:05,440 You don't have to worry about Microsoft. 681 00:25:05,680 --> 00:25:07,720 You can worry about, you know, 682 00:25:07,740 --> 00:25:10,280 this funny company in the UAE that has one, right? 683 00:25:10,400 --> 00:25:11,320 They can do the same thing, 684 00:25:11,440 --> 00:25:13,200 and they don't need to add anything to your trust route, 685 00:25:13,280 --> 00:25:14,100 and it's even kind of better 686 00:25:14,100 --> 00:25:15,560 because you don't see it in the trust route there. 687 00:25:15,880 --> 00:25:17,080 If Microsoft added a root cert, 688 00:25:17,200 --> 00:25:18,460 as soon as someone started using it, 689 00:25:18,500 --> 00:25:20,320 it'd become visible in your browser, 690 00:25:20,420 --> 00:25:22,540 and you'd be able to see that's the chain, right? 691 00:25:22,640 --> 00:25:24,820 These intermediate ones are a little bit sneakier. 692 00:25:25,500 --> 00:25:26,880 I think we'd better not take this too seriously 693 00:25:26,900 --> 00:25:27,700 and ask any more questions right now, 694 00:25:27,800 --> 00:25:29,560 because we've got a lot of material to cover. 695 00:25:29,720 --> 00:25:30,540 Not a lot of time. 696 00:25:31,200 --> 00:25:32,620 Just pop this for one second. 697 00:25:32,820 --> 00:25:35,860 This is an example of the top 14 certs 698 00:25:35,860 --> 00:25:38,180 that are actually used to sign leafs on the Internet, 699 00:25:38,360 --> 00:25:40,940 and you can see that a lot of them 700 00:25:40,940 --> 00:25:41,860 are signed by the first two, 701 00:25:41,980 --> 00:25:43,280 and then it kind of trickles off, 702 00:25:43,480 --> 00:25:46,200 and then that big gray area there is the other, 703 00:25:46,320 --> 00:25:48,800 and, you know, it gets kind of messy at the end. 704 00:25:49,180 --> 00:25:50,760 So a different way of breaking that down, 705 00:25:50,820 --> 00:25:52,720 this was literally which certs 706 00:25:52,720 --> 00:25:54,300 were sort of immediately signing things. 707 00:25:54,540 --> 00:25:55,960 This is counting by, 708 00:25:56,900 --> 00:25:57,940 like, root CAs. 709 00:25:58,120 --> 00:26:01,200 So not just what is signed directly by the root CA, 710 00:26:01,300 --> 00:26:04,380 but what is signed by the entire tree of things following it, 711 00:26:04,400 --> 00:26:07,000 and the 340 or so that are... 712 00:26:07,000 --> 00:26:09,980 343 that exist between Firefox and Windows. 713 00:26:10,340 --> 00:26:12,640 And so you see this extremely skewed distribution. 714 00:26:12,900 --> 00:26:14,780 In fact, you can't really see what's going on in this graph, 715 00:26:14,920 --> 00:26:16,520 so we made a log version of it 716 00:26:16,520 --> 00:26:18,120 and cheated a little bit. 717 00:26:18,200 --> 00:26:19,840 Actually, that's zero and not one, 718 00:26:19,940 --> 00:26:21,620 but you can't have zero on a log scale. 719 00:26:23,620 --> 00:26:25,660 And so what you can see here is that 720 00:26:25,660 --> 00:26:29,580 about half of these root CAs aren't signing anything. 721 00:26:30,380 --> 00:26:32,820 That might be because they're code signing certs 722 00:26:32,820 --> 00:26:35,480 that aren't used for signing SSL leaf nodes, 723 00:26:35,620 --> 00:26:37,860 and so when you look at the SSL everse, 724 00:26:38,060 --> 00:26:39,060 that's not what you see. 725 00:26:39,480 --> 00:26:42,760 But some of them are definitely SSL signing certs. 726 00:26:42,960 --> 00:26:43,700 Yeah, so some of these, 727 00:26:43,820 --> 00:26:45,440 and some of them might be new certs 728 00:26:45,440 --> 00:26:46,260 that are about to be deployed, 729 00:26:46,380 --> 00:26:47,260 but generally speaking, 730 00:26:47,380 --> 00:26:50,860 half of the certs we trust don't sign anything, 731 00:26:51,040 --> 00:26:52,140 and then there's another small group 732 00:26:52,140 --> 00:26:54,380 that sign one, two, three, four, up to ten, 733 00:26:54,380 --> 00:26:56,380 and then gradually you start to get certs 734 00:26:56,380 --> 00:26:56,900 that are significant. 735 00:26:58,760 --> 00:27:01,140 So we don't want to provide specific interpretation 736 00:27:01,140 --> 00:27:02,020 for this graph yet, 737 00:27:02,060 --> 00:27:04,480 but it is quite interesting that it has this shape. 738 00:27:06,700 --> 00:27:08,480 We just actually talked about some of these. 739 00:27:08,520 --> 00:27:10,000 Yeah, I'll blow through this quick, 740 00:27:10,100 --> 00:27:13,320 but there's this good case for a leaf to be unused, 741 00:27:13,660 --> 00:27:15,880 which is that when you have a more secure certificate, 742 00:27:16,100 --> 00:27:17,020 you need to push it out there. 743 00:27:17,840 --> 00:27:19,620 So I've got this new trust root. 744 00:27:19,700 --> 00:27:21,960 It's signed with a bigger key than the old one. 745 00:27:22,060 --> 00:27:23,620 It's got a nice late expiration date. 746 00:27:23,620 --> 00:27:24,660 I'm going to put it out there. 747 00:27:24,800 --> 00:27:26,180 I'm not going to sign anything with it 748 00:27:26,180 --> 00:27:27,600 until it's been widely adopted 749 00:27:27,600 --> 00:27:28,860 by all the different browser vendors. 750 00:27:29,080 --> 00:27:30,720 That's totally a legitimate case, 751 00:27:30,800 --> 00:27:32,960 and it actually improves the overall security of the system. 752 00:27:33,580 --> 00:27:35,180 So you can't just say, 753 00:27:35,260 --> 00:27:36,440 oh, this isn't used, it's bad. 754 00:27:37,140 --> 00:27:39,020 Also, you might need a backup root, perhaps. 755 00:27:39,480 --> 00:27:40,960 Where it gets a little less legitimate 756 00:27:40,960 --> 00:27:42,840 is when you're thinking about subordinate CAs. 757 00:27:43,080 --> 00:27:45,860 I'm not sure why these would be unused. 758 00:27:46,140 --> 00:27:48,820 It seems like if you've got subordinate CAs, 759 00:27:49,680 --> 00:27:51,660 those are pretty easy to get reissued, 760 00:27:51,700 --> 00:27:53,160 as evidenced by the... 761 00:27:53,620 --> 00:27:54,860 hundreds of them that have been issued. 762 00:27:55,560 --> 00:27:58,680 It seems like that backup planning revocation 763 00:27:58,680 --> 00:28:00,040 should be an easier story for those. 764 00:28:00,220 --> 00:28:02,240 So if anyone has any good arguments for that, 765 00:28:02,320 --> 00:28:03,180 I'd love to hear it in questions. 766 00:28:07,060 --> 00:28:07,980 So do you want to... 767 00:28:08,480 --> 00:28:09,060 Yeah, sure, sure. 768 00:28:10,400 --> 00:28:12,840 So many valid CA certs share keys. 769 00:28:13,180 --> 00:28:14,340 So this is a funny thing. 770 00:28:14,420 --> 00:28:15,160 You've got this cert. 771 00:28:15,280 --> 00:28:16,200 It gives some authority. 772 00:28:16,300 --> 00:28:17,140 Maybe it's a CA cert. 773 00:28:17,340 --> 00:28:19,220 It's good for a period of time, 774 00:28:19,300 --> 00:28:20,240 and it's got some power, 775 00:28:20,300 --> 00:28:22,400 like it can be used for signing SSL certificates. 776 00:28:23,740 --> 00:28:25,540 And you've got another one right beside it, 777 00:28:25,660 --> 00:28:26,700 and, oh, that's funny. 778 00:28:26,780 --> 00:28:27,820 They have the same key, 779 00:28:28,000 --> 00:28:30,080 which means if you break Certificate A, 780 00:28:30,240 --> 00:28:32,060 you broke Certificate B, right? 781 00:28:32,140 --> 00:28:33,760 You can impersonate one with the other. 782 00:28:34,060 --> 00:28:37,200 So fortunately, we didn't see any valid CA keys 783 00:28:37,200 --> 00:28:39,220 that were used in non-CA keys, 784 00:28:39,460 --> 00:28:41,360 because that would be terrifying. 785 00:28:41,640 --> 00:28:43,640 It would imply that some little edge 786 00:28:43,640 --> 00:28:46,160 sitting on a web server somewhere 787 00:28:46,160 --> 00:28:50,200 was sitting with a real CA cert, 788 00:28:50,340 --> 00:28:51,960 and all you'd have to do is pop that thing, 789 00:28:52,020 --> 00:28:52,640 and you'd be... 790 00:28:52,640 --> 00:28:55,340 be in a good spot to do some harm. 791 00:28:55,580 --> 00:28:57,620 We identified 80 distinct keys 792 00:28:57,620 --> 00:28:59,340 that were used in multiple CA certs, 793 00:28:59,340 --> 00:29:01,220 and the most widely reused one 794 00:29:01,220 --> 00:29:03,120 was this VeriSign key from 2006. 795 00:29:03,560 --> 00:29:05,700 It's a strong 2048-bit key. 796 00:29:06,880 --> 00:29:09,440 The certs all share a subject, 797 00:29:09,640 --> 00:29:12,260 and they lack subject or authority IDs. 798 00:29:12,820 --> 00:29:14,920 Four of them, there's only... 799 00:29:15,780 --> 00:29:19,080 Yeah, four of these keys all expire simultaneously in 2021, 800 00:29:19,420 --> 00:29:21,920 but one of them doesn't expire until 2036. 801 00:29:22,640 --> 00:29:23,960 So when you look at that, you think, like, 802 00:29:25,360 --> 00:29:26,740 what is going on here? 803 00:29:26,800 --> 00:29:28,420 Why is it okay for these first ones 804 00:29:28,420 --> 00:29:30,300 to last only until 2021, 805 00:29:30,540 --> 00:29:32,100 but that last one until 2036? 806 00:29:32,380 --> 00:29:34,160 You see a lot of interesting behavior like that. 807 00:29:37,360 --> 00:29:40,480 So another place we looked at this was... 808 00:29:40,480 --> 00:29:42,880 You know, here's just another example of this phenomenon. 809 00:29:43,160 --> 00:29:46,600 So these keys were shared between an organization. 810 00:29:46,900 --> 00:29:49,700 So we see Certificate 1 and Certificate 2. 811 00:29:50,120 --> 00:29:51,780 Certificate 2 is... 812 00:29:52,640 --> 00:29:54,520 a Komodo cert from the UK, 813 00:29:54,760 --> 00:29:57,940 and Certificate 1 is an Optimum SSL cert 814 00:29:57,940 --> 00:29:58,900 from the United States. 815 00:29:59,180 --> 00:30:01,000 And these two separate entities, 816 00:30:01,080 --> 00:30:02,440 or two separate organizations, 817 00:30:02,840 --> 00:30:05,200 have the same key in their cert. 818 00:30:05,320 --> 00:30:06,840 So maybe they own each other. 819 00:30:07,140 --> 00:30:08,820 They have simultaneous expiration, 820 00:30:09,140 --> 00:30:10,880 so it seems like they're designed 821 00:30:10,880 --> 00:30:13,400 to kind of be considered valid for the same period of time. 822 00:30:13,580 --> 00:30:15,200 The business interests of these entities 823 00:30:15,200 --> 00:30:16,580 are obviously intimately aligned 824 00:30:16,580 --> 00:30:18,000 because they're sharing key material. 825 00:30:18,280 --> 00:30:21,400 So they have the same skids, nakeds, and key usages. 826 00:30:21,400 --> 00:30:23,240 It's a really weird thing. 827 00:30:23,440 --> 00:30:24,740 Whenever you have two countries 828 00:30:24,740 --> 00:30:27,520 or two organizations with one public key, 829 00:30:27,640 --> 00:30:29,680 it's kind of a fun example to look at 830 00:30:29,680 --> 00:30:32,080 because you know that there's something going on here. 831 00:30:32,480 --> 00:30:35,200 And the issuing authority here is a user trust. 832 00:30:35,720 --> 00:30:37,520 So obviously, whoever that is, 833 00:30:37,560 --> 00:30:39,000 they're cool with those two people 834 00:30:39,000 --> 00:30:40,780 sharing their private keys. 835 00:30:41,700 --> 00:30:43,020 So here's another example 836 00:30:43,020 --> 00:30:47,900 where we've got three different certificates 837 00:30:47,900 --> 00:30:48,920 all sharing a key. 838 00:30:50,020 --> 00:30:51,380 The 2-shall-1 key 839 00:30:51,400 --> 00:30:51,660 and the 2-shall-1 fingerprints 840 00:30:51,660 --> 00:30:55,200 of the certificates in question are... 841 00:30:56,060 --> 00:30:56,840 Oh, yeah, sorry. 842 00:30:56,940 --> 00:30:58,840 So those 2-shall-1s are just the shaw of the dirn coding, 843 00:30:59,020 --> 00:30:59,760 so you can look them up. 844 00:31:00,200 --> 00:31:01,560 You've got two different countries here 845 00:31:02,440 --> 00:31:05,280 and two organizations with one public key. 846 00:31:06,740 --> 00:31:09,040 The issuing authority is, interestingly enough, 847 00:31:09,080 --> 00:31:09,740 user trust again, 848 00:31:09,880 --> 00:31:13,500 and so we've got this positive software in Komodo now 849 00:31:13,500 --> 00:31:15,920 sharing stuff across countries with their light SSL. 850 00:31:16,540 --> 00:31:17,860 The neat thing about this 851 00:31:17,860 --> 00:31:20,320 is that certificates 1 and 2 expire in 2020, 852 00:31:21,600 --> 00:31:24,920 and number 3 expires 10 months earlier. 853 00:31:25,620 --> 00:31:27,820 2 and 3 actually share start dates, 854 00:31:28,040 --> 00:31:31,660 but over 44,000 certs are using this key ID. 855 00:31:34,180 --> 00:31:37,700 So some CAs are using these shared keys 856 00:31:37,700 --> 00:31:39,580 to delay the expiration of their certificates. 857 00:31:40,220 --> 00:31:42,040 So just looking from number 2 here, 858 00:31:42,120 --> 00:31:44,120 you can tell that this short key has been used before 859 00:31:44,740 --> 00:31:47,060 and how long it's been available to attackers. 860 00:31:48,360 --> 00:31:50,300 VeriSign had a 1,024-bit key 861 00:31:50,320 --> 00:31:51,660 shared by 4 certs 862 00:31:51,660 --> 00:31:53,600 with a total lifetime of 7,000 days. 863 00:31:54,000 --> 00:31:56,040 When extensions were created for that key, 864 00:31:56,200 --> 00:31:57,440 the new key was kept, 865 00:31:58,080 --> 00:31:59,660 like at the old start time, 866 00:31:59,840 --> 00:32:01,260 so that examining trust routes 867 00:32:01,260 --> 00:32:02,880 would give the user an accurate understanding 868 00:32:02,880 --> 00:32:05,940 of how long the attackers have had to brute force this key. 869 00:32:06,180 --> 00:32:07,260 It's not a very strong key. 870 00:32:07,380 --> 00:32:08,340 It's only 1,024 bits. 871 00:32:08,620 --> 00:32:10,680 The key start date is from 1997, 872 00:32:11,100 --> 00:32:13,500 which is before Akids and Skids 873 00:32:13,500 --> 00:32:16,500 started showing up those key identifiers 874 00:32:16,500 --> 00:32:17,800 that make validation more efficient. 875 00:32:18,860 --> 00:32:20,520 So this little trick here 876 00:32:20,520 --> 00:32:22,520 is adding 2,392 days 877 00:32:22,520 --> 00:32:24,300 to this key's lifetime, 878 00:32:25,200 --> 00:32:27,900 which was only supposed to be 6,000 days originally. 879 00:32:28,560 --> 00:32:31,180 So I don't know if that's bad, 880 00:32:31,440 --> 00:32:32,460 but it's interesting. 881 00:32:32,860 --> 00:32:34,540 And it's a policy decision 882 00:32:34,540 --> 00:32:37,780 that you can only sort of start thinking about 883 00:32:37,780 --> 00:32:39,140 when you look at all the different keys 884 00:32:39,140 --> 00:32:39,640 that are out there 885 00:32:39,640 --> 00:32:40,800 and all the subordinate keys. 886 00:32:41,060 --> 00:32:44,300 And the subordinate keys aren't always visible to you 887 00:32:44,300 --> 00:32:45,380 because when you look at the trust routes, 888 00:32:45,440 --> 00:32:46,980 it doesn't tell you what all the subordinates are. 889 00:32:48,820 --> 00:32:49,380 All right. 890 00:32:50,080 --> 00:32:51,220 I want to do this one, too. 891 00:32:51,320 --> 00:32:53,940 So one of my little bugbears 892 00:32:53,940 --> 00:32:56,700 is that when you're using SSL, 893 00:32:56,760 --> 00:32:57,480 you've got this idea. 894 00:32:57,720 --> 00:33:00,180 You've got a user that wants to connect to something. 895 00:33:00,400 --> 00:33:01,680 And they should know kind of what that is, 896 00:33:01,780 --> 00:33:03,160 like maybe I want to talk to Google 897 00:33:03,160 --> 00:33:05,060 or maybe I want to talk to EFF or to Peter. 898 00:33:06,140 --> 00:33:07,820 So there's a meeting of minds, though, 899 00:33:07,860 --> 00:33:08,500 between me, 900 00:33:08,640 --> 00:33:10,080 between the certificate authority 901 00:33:10,080 --> 00:33:12,640 that asserts that Peter is who he says he is, 902 00:33:12,700 --> 00:33:14,040 and Peter, right? 903 00:33:14,120 --> 00:33:15,120 So I connect to him. 904 00:33:17,940 --> 00:33:19,920 And I'm going to buy a我要 passe 905 00:33:23,760 --> 00:33:26,440 And I'm going to buy a我要 passe. 906 00:33:27,480 --> 00:33:29,140 And I'm going to borrow a我要 passe. 907 00:33:29,140 --> 00:33:34,440 And I'm going to borrow a want to know 908 00:33:34,440 --> 00:33:36,880 how he does that kind of business. 909 00:33:37,120 --> 00:33:38,360 And I'm going to be shocked 910 00:33:38,380 --> 00:33:38,440 But what I can do is 911 00:33:38,440 --> 00:33:41,540 I can to put what I like in the time that I want to. 912 00:33:41,540 --> 00:33:41,960 So again, 913 00:33:42,020 --> 00:33:43,340 what is actually testing 914 00:33:43,340 --> 00:33:47,760 and is died a lot of research 915 00:33:47,760 --> 00:33:47,780 what do I want to do 916 00:33:47,800 --> 00:33:50,460 77.76.108.82. 917 00:33:50,720 --> 00:33:52,400 So you might not have known all that. 918 00:33:52,800 --> 00:33:59,400 Anyway, I think, you know, that's a terrible thing when you see people signing IP addresses 919 00:33:59,400 --> 00:34:00,340 that are in reserved spaces. 920 00:34:00,900 --> 00:34:03,960 They also signed on qualified names and that's kind of cute. 921 00:34:04,260 --> 00:34:12,000 We found one CA was signing, Komodo signed like 6,000 of these local host certs. 922 00:34:12,000 --> 00:34:16,660 And this is actually the most common valid certificate on the internet by name, local 923 00:34:16,660 --> 00:34:17,040 host. 924 00:34:17,320 --> 00:34:24,580 And some CAs like Cybertrust, Entrust, Equifax and Microsoft and Verisign actually only signed 925 00:34:24,580 --> 00:34:27,300 one cert that we saw with the name local host. 926 00:34:27,600 --> 00:34:30,640 Almost like they kept track of the names that they were assigning. 927 00:34:31,340 --> 00:34:35,120 Which means these other ones are obviously ‑‑ Yeah, of course, in addition to local host 928 00:34:35,120 --> 00:34:39,820 you've got mail and, you know, lots of other kind of natural LAN names that shouldn't really 929 00:34:39,820 --> 00:34:40,240 be here. 930 00:34:41,500 --> 00:34:41,980 Yeah. 931 00:34:41,980 --> 00:34:42,720 The subjective sets. 932 00:34:42,960 --> 00:34:46,880 So, yeah, this is ‑‑ Oh, yeah, some countries aren't even using 933 00:34:46,880 --> 00:34:47,460 their own CAs. 934 00:34:47,560 --> 00:34:53,300 So we found that Macau has its own 2,048‑bit CA that's in XP. 935 00:34:53,500 --> 00:34:54,500 But it doesn't use them. 936 00:34:54,640 --> 00:34:56,780 It doesn't even use a Chinese or Portuguese CA. 937 00:34:57,000 --> 00:35:01,960 It signs its government's websites with commercial certificates from U.S. and U.K. companies. 938 00:35:04,940 --> 00:35:08,060 So ‑‑ There are some funny wake sets out there. 939 00:35:08,580 --> 00:35:11,660 There are some that have 500‑night‑bit cards. 940 00:35:11,660 --> 00:35:12,560 RSA keys. 941 00:35:13,640 --> 00:35:14,840 Just a couple of those. 942 00:35:15,060 --> 00:35:15,760 But they were valid. 943 00:35:15,920 --> 00:35:18,160 Those are the fingerprints or at least portions of them. 944 00:35:19,200 --> 00:35:22,680 And there are some vulnerabilities and other weird things. 945 00:35:23,700 --> 00:35:31,940 So the biggest thing we found, what we did is got a table of the black list of keys that 946 00:35:31,940 --> 00:35:33,900 resulted from the Debian open SSL bug. 947 00:35:34,180 --> 00:35:39,460 Debian had this bug that was present from 2006 to 2008 where their random number generator 948 00:35:39,460 --> 00:35:41,340 in SSL wasn't functioning correctly. 949 00:35:41,460 --> 00:35:41,640 Because it was not working. 950 00:35:41,660 --> 00:35:44,400 Because of an attempt to fix a bug that wasn't really there. 951 00:35:45,460 --> 00:35:51,580 The end result was that only 15 to 17 bits of entropy in open SSL's keys on that platform 952 00:35:51,580 --> 00:35:55,820 at that time, which means that those private keys are not private. 953 00:35:56,060 --> 00:35:57,620 You can just go and make a list of them all. 954 00:35:57,740 --> 00:35:59,000 They're public private keys. 955 00:35:59,240 --> 00:36:04,060 So if you see one of these keys in use on the Internet, it means that anyone can just 956 00:36:04,060 --> 00:36:07,380 go and jump into that SSL session and start messing around. 957 00:36:07,800 --> 00:36:10,940 And so here's a little query effectively that tells you. 958 00:36:10,940 --> 00:36:15,020 You know, select subject from certs, join against the black list, you know, where the 959 00:36:15,020 --> 00:36:19,220 SHA1 of your cert is the same as the hash in the black list. 960 00:36:19,820 --> 00:36:21,040 And what do you find? 961 00:36:21,220 --> 00:36:26,640 Well, there are 28,000 certificates on the Internet that have this bug in them. 962 00:36:26,940 --> 00:36:30,120 28,000 certificates where the private key isn't private. 963 00:36:31,580 --> 00:36:35,300 Fortunately, only 500 of those 28,000 are actually valid. 964 00:36:35,540 --> 00:36:38,020 So we're not talking about quite as much of a problem. 965 00:36:38,180 --> 00:36:39,880 But of the other 28,000. 966 00:36:39,940 --> 00:36:40,920 12,000 of those. 967 00:36:43,580 --> 00:36:49,240 So unfortunately, probably what's going on with some of those is that they're being used 968 00:36:49,240 --> 00:36:51,280 for private PKI's inside organizations. 969 00:36:53,380 --> 00:36:58,880 And those organizations need to really replace their infrastructure really well two years 970 00:36:58,880 --> 00:36:59,140 ago. 971 00:36:59,460 --> 00:37:01,260 It's sort of bad that this is still happening. 972 00:37:01,480 --> 00:37:06,400 And really, okay, people can be excused for messing up and using an old version of something 973 00:37:06,400 --> 00:37:07,040 on their machines. 974 00:37:07,300 --> 00:37:10,920 But CAs cannot be excused for private PKI's. 975 00:37:10,920 --> 00:37:15,840 They can't be excused for signing certificates for known weak keys. 976 00:37:16,420 --> 00:37:20,940 And they can't be excused for failing to revoke the certificates they've signed when they 977 00:37:20,940 --> 00:37:22,920 have a straightforward list that they could check against. 978 00:37:23,580 --> 00:37:26,380 Now there are some CAs that did okay by this measure. 979 00:37:27,320 --> 00:37:32,320 Starfield, five out of five, revoked the certificates that had the black list keys. 980 00:37:32,780 --> 00:37:35,060 Komodo got 29 out of 30. 981 00:37:35,260 --> 00:37:36,860 I don't know what happened to that 30th one. 982 00:37:37,320 --> 00:37:39,180 It's actually kind of an important server. 983 00:37:39,380 --> 00:37:40,900 I'm not going to say anything about what it is. 984 00:37:40,920 --> 00:37:42,140 But until it's fixed. 985 00:37:42,240 --> 00:37:45,060 But it's kind of bad that that 30th is there. 986 00:37:45,900 --> 00:37:46,940 User trust, similarly. 987 00:37:48,120 --> 00:37:50,000 And some CAs did a really bad job. 988 00:37:50,240 --> 00:37:53,700 Equifax, none out of 140 of the weak keys were revoked. 989 00:37:54,460 --> 00:37:58,820 Cyber trust got four out of 125, which presumably means they were revoked for reasons other 990 00:37:58,820 --> 00:38:01,460 than the weakness of the key, et cetera, et cetera. 991 00:38:02,640 --> 00:38:07,320 So we just discovered this a day or two ago as we were finally cramming our slides together. 992 00:38:07,500 --> 00:38:10,900 Once we've had time to contact the people who need to sign. 993 00:38:10,920 --> 00:38:11,660 Switch out these keys. 994 00:38:12,240 --> 00:38:14,260 Then we'll be ready to actually publish the database. 995 00:38:14,420 --> 00:38:17,260 We don't want to do that before that's done. 996 00:38:18,360 --> 00:38:22,740 There are also some other weird kinds of certificates out there if you go looking. 997 00:38:22,940 --> 00:38:25,440 Like all sorts of other queries you can ask and you get something strange. 998 00:38:25,820 --> 00:38:27,140 So here's an example of one. 999 00:38:27,320 --> 00:38:31,160 This is a slight stylization of the SQL query, but it's approximately how it works. 1000 00:38:31,220 --> 00:38:35,540 And what it's asking is it's saying, do valid certificates agree? 1001 00:38:36,000 --> 00:38:39,640 There are two parts of a certificate that pertain to whether it's a CA or not. 1002 00:38:39,840 --> 00:38:40,520 Actually more. 1003 00:38:40,520 --> 00:38:42,540 I'm simplifying when I say there are only two parts. 1004 00:38:42,860 --> 00:38:46,140 But there's one part that says, am I a CA, true or false? 1005 00:38:47,200 --> 00:38:50,300 And there's another part that says, what is this key used for? 1006 00:38:50,540 --> 00:38:54,840 And one of the flags that can be in the key usage field is signing certificates. 1007 00:38:55,520 --> 00:38:57,760 And so these two fields should agree. 1008 00:38:59,360 --> 00:39:04,480 There is precisely one valid certificate on the internet where they do not agree. 1009 00:39:07,020 --> 00:39:09,940 It's a certificate that's marked as not a CA. 1010 00:39:09,940 --> 00:39:14,480 And yet when you look inside the key usage field, it says it's allowed to sign certificates. 1011 00:39:14,980 --> 00:39:18,820 Now I have no idea whether all clients process the certificate correctly. 1012 00:39:19,060 --> 00:39:20,000 Perhaps they do. 1013 00:39:20,460 --> 00:39:22,680 But it should never have been signed in the first place. 1014 00:39:22,860 --> 00:39:27,360 It was signed by Quivatus, the CA based in Bermuda. 1015 00:39:27,520 --> 00:39:30,040 And I guess they do things liberally in Bermuda. 1016 00:39:33,880 --> 00:39:39,580 So we decided also to create some pretty pictures of the set of CAs. 1017 00:39:39,940 --> 00:39:43,420 And which ones sign subordinate and intermediate CAs for each other. 1018 00:39:43,520 --> 00:39:44,940 What does that look like? 1019 00:39:45,720 --> 00:39:50,580 And so feed all of that data set into Graphviz and you get this. 1020 00:39:51,320 --> 00:39:52,080 That's not pretty. 1021 00:39:52,320 --> 00:39:52,980 It's not pretty. 1022 00:39:53,020 --> 00:39:54,260 And it's kind of hard to see on this screen. 1023 00:39:54,360 --> 00:39:55,480 So maybe we can try to zoom in. 1024 00:39:56,460 --> 00:39:58,440 That's not even a root CA. 1025 00:39:58,560 --> 00:40:00,680 That's an intermediate CA that signed a lot of things. 1026 00:40:00,780 --> 00:40:03,880 Mostly universities in Germany, 247 of them. 1027 00:40:05,000 --> 00:40:06,500 But you still can't see very much. 1028 00:40:06,580 --> 00:40:09,320 You couldn't see what that name was from this graph. 1029 00:40:09,420 --> 00:40:09,920 But you keep zooming in. 1030 00:40:10,700 --> 00:40:12,040 It's hard to see what's going on. 1031 00:40:12,520 --> 00:40:16,220 So if we have time, which we probably won't, maybe in the breakout session, we can let 1032 00:40:16,220 --> 00:40:19,040 you zoom in and fly around this graph and see all the gory details. 1033 00:40:20,760 --> 00:40:21,140 Yeah. 1034 00:40:21,240 --> 00:40:22,820 There's a lot of complicated things here. 1035 00:40:22,940 --> 00:40:24,580 And it's not very instructional, unfortunately. 1036 00:40:25,120 --> 00:40:30,100 But we can sit back and take a look at some of the more interesting subordinate CAs. 1037 00:40:32,060 --> 00:40:35,640 Some of the ones that we saw that we thought were kind of cool was I didn't know that 1038 00:40:35,640 --> 00:40:37,840 the DHS had a subordinate CA cert. 1039 00:40:38,120 --> 00:40:39,560 And it, you know. 1040 00:40:39,560 --> 00:40:40,020 It does. 1041 00:40:40,120 --> 00:40:40,760 And that's, you know. 1042 00:40:40,800 --> 00:40:42,080 It operates an organization. 1043 00:40:42,340 --> 00:40:43,600 I'm sure they signed up all the paperwork. 1044 00:40:43,760 --> 00:40:46,300 And we didn't see them doing anything abusive with it, for sure. 1045 00:40:47,080 --> 00:40:49,440 But you know, it's interesting that they had that. 1046 00:40:49,500 --> 00:40:50,800 I didn't know that I was trusting them. 1047 00:40:52,720 --> 00:40:53,080 CCNIC. 1048 00:40:54,120 --> 00:40:55,840 I mean, I know that I trust them. 1049 00:40:55,920 --> 00:40:58,620 But I didn't know I was trusting them in my browser. 1050 00:40:58,940 --> 00:40:59,300 Yes. 1051 00:40:59,300 --> 00:40:59,500 Yes. 1052 00:40:59,940 --> 00:41:00,780 That's what I meant to say. 1053 00:41:01,240 --> 00:41:03,540 Then there's also the CNNIC, which there's a. 1054 00:41:04,140 --> 00:41:04,500 Sorry. 1055 00:41:04,900 --> 00:41:05,660 It is CNNIC. 1056 00:41:05,680 --> 00:41:06,340 That's mistyped. 1057 00:41:06,480 --> 00:41:06,740 That's right. 1058 00:41:07,620 --> 00:41:09,220 That had the subordinate CA. 1059 00:41:09,560 --> 00:41:14,220 But in 2009, that got added to the trust route and a lot of people got excited about 1060 00:41:14,220 --> 00:41:14,400 it. 1061 00:41:14,580 --> 00:41:16,080 And it turns out that we found a. 1062 00:41:16,580 --> 00:41:19,900 So it had been signed by a subordinate CA in 2007. 1063 00:41:20,220 --> 00:41:23,380 So you already trusted it before you had the whole fight over whether or not you were going 1064 00:41:23,380 --> 00:41:23,820 to trust it. 1065 00:41:23,880 --> 00:41:24,380 So that's good. 1066 00:41:25,920 --> 00:41:32,140 And then there's this company, which is a company in the United Arab Emirates. 1067 00:41:32,220 --> 00:41:33,420 This is not a discovery at all. 1068 00:41:33,480 --> 00:41:37,100 You know, thanks at least to Chris Segoyan and maybe other people before that for observing. 1069 00:41:37,280 --> 00:41:37,980 This company. 1070 00:41:37,980 --> 00:41:44,460 This company was known to have installed malware on the BlackBerrys of 100,000 of its customers. 1071 00:41:45,180 --> 00:41:51,220 And yet it's trusted by all of the world's browsers to sign any domain. 1072 00:41:53,440 --> 00:41:55,320 And it's not trusted explicitly. 1073 00:41:55,680 --> 00:41:58,200 It's trusted indirectly because other people have signed it. 1074 00:41:58,700 --> 00:42:02,760 So you sign a little malware and then people keep bugging you about it for years. 1075 00:42:02,940 --> 00:42:03,720 It's terrible. 1076 00:42:03,840 --> 00:42:04,140 Poor guys. 1077 00:42:04,660 --> 00:42:05,220 Anyway. 1078 00:42:05,700 --> 00:42:09,540 UAE doesn't otherwise have any CAs operating in its country, too. 1079 00:42:09,680 --> 00:42:12,640 So that's its court's, like, little wedge on signing stuff. 1080 00:42:12,880 --> 00:42:13,540 So, great. 1081 00:42:13,860 --> 00:42:14,540 Booz Allen Hamilton. 1082 00:42:16,020 --> 00:42:20,080 I like them because I met a cool guy there at a conference and he was giving a great 1083 00:42:20,080 --> 00:42:24,640 talk about how you can use web attacks because he does that for his work. 1084 00:42:24,800 --> 00:42:25,860 And it's good. 1085 00:42:25,960 --> 00:42:26,360 But don't worry. 1086 00:42:26,460 --> 00:42:28,440 He's doing it for the government so it's all legal. 1087 00:42:29,300 --> 00:42:29,740 Gemini. 1088 00:42:30,560 --> 00:42:31,620 They're an observatory. 1089 00:42:31,820 --> 00:42:34,420 And hey, I want a CA cert. 1090 00:42:34,580 --> 00:42:35,200 That would be great. 1091 00:42:35,200 --> 00:42:35,300 That would be cool. 1092 00:42:36,500 --> 00:42:37,780 And then lots of... 1093 00:42:37,780 --> 00:42:38,720 We're an observatory, too. 1094 00:42:38,920 --> 00:42:39,260 Yeah. 1095 00:42:39,320 --> 00:42:39,560 Yeah. 1096 00:42:39,620 --> 00:42:39,960 Totally. 1097 00:42:40,240 --> 00:42:40,760 Come on. 1098 00:42:42,400 --> 00:42:47,360 So companies, Dell, Ford, Google, Marks & Spencer, Vodafone, some of those, you know, it makes 1099 00:42:47,360 --> 00:42:48,900 a lot of sense that Google has a CA cert. 1100 00:42:49,020 --> 00:42:50,140 They have a lot of stuff on the internet. 1101 00:42:52,260 --> 00:42:54,840 But Ford, I was a little surprised by that one. 1102 00:42:55,160 --> 00:42:56,320 And then there's hundreds more. 1103 00:42:56,620 --> 00:42:57,700 It's kind of fun. 1104 00:42:59,180 --> 00:43:00,360 So subordinate CAs. 1105 00:43:00,480 --> 00:43:01,600 Countries with valid CAs. 1106 00:43:01,760 --> 00:43:05,100 We saw about 46 countries with valid CAs. 1107 00:43:05,100 --> 00:43:10,400 The most prominent by CAs were the United States, South Africa, because of thought, 1108 00:43:10,900 --> 00:43:14,140 the UK, Belgium, Japan, Germany, the Netherlands, and Israel. 1109 00:43:14,780 --> 00:43:19,980 Those top ten countries each had over 10K valid certificates that we saw that were signed 1110 00:43:19,980 --> 00:43:20,560 with their certs. 1111 00:43:21,120 --> 00:43:27,020 Through subordinate CAs, the following countries didn't appear to have a root CA, but they 1112 00:43:27,020 --> 00:43:27,860 kind of gained a CA. 1113 00:43:28,060 --> 00:43:33,640 So the UAE doesn't have a CA for its country, a root CA, but it has a subordinate CA in 1114 00:43:33,640 --> 00:43:34,200 its jurisdiction. 1115 00:43:34,200 --> 00:43:39,460 So maybe its courts can ask them to give them a little spying permission or something. 1116 00:43:39,840 --> 00:43:44,480 Same with Iceland, Luxembourg, Macedonia, Malaysia, and the Russian Federation. 1117 00:43:46,260 --> 00:43:46,660 Yeah. 1118 00:43:46,820 --> 00:43:49,220 So 64 roots didn't include a country. 1119 00:43:49,460 --> 00:43:51,020 Most of those are probably U.S.-based. 1120 00:43:51,640 --> 00:43:54,540 If you have a big company in the U.S., maybe they don't feel like they have to say what 1121 00:43:54,540 --> 00:43:56,720 country they're in because, you know, they're big. 1122 00:43:57,000 --> 00:44:00,320 And then a little bit about the unwashed self-signed masses. 1123 00:44:00,580 --> 00:44:02,800 So some people choose to use self-signed certs. 1124 00:44:02,800 --> 00:44:04,100 And it's arguably quite reasonable. 1125 00:44:04,200 --> 00:44:07,440 If you don't need a trusted introducer, why pay for it? 1126 00:44:07,540 --> 00:44:11,720 And then adopt all that complexity of the CA infrastructure. 1127 00:44:12,220 --> 00:44:14,500 The cost and complexity of the model should then be lower. 1128 00:44:14,740 --> 00:44:19,560 And it's already widely used for SSH, which is what we use to install our certs. 1129 00:44:19,600 --> 00:44:23,940 So in principle, it kind of reduces your attack surface by eliminating the risk of random 1130 00:44:23,940 --> 00:44:27,080 subordinates or trust roots asserting that they're your web mail server. 1131 00:44:27,340 --> 00:44:29,240 In practice, though, it's a lot trickier. 1132 00:44:29,520 --> 00:44:31,700 For one, certificates can have multiple names. 1133 00:44:32,000 --> 00:44:34,180 And we wouldn't want to have to ‑‑ or don't want to have to have to have multiple 1134 00:44:36,600 --> 00:44:37,160 names. 1135 00:44:37,160 --> 00:44:42,500 Modern browsers like IE Firefox and Chrome all track what sites self-signed certs were 1136 00:44:42,500 --> 00:44:43,160 approved for. 1137 00:44:43,620 --> 00:44:48,680 So even if subject alternate names also want to approve start up Google.com or some other 1138 00:44:48,680 --> 00:44:51,040 sensitive domain, the cert won't be accepted for those. 1139 00:44:51,540 --> 00:44:56,060 Firefox even provides this nice UI that lets you go through and see those. 1140 00:44:56,480 --> 00:45:01,580 And that might make you think that you could start implementing some of this tofu or persistence 1141 00:45:01,580 --> 00:45:02,060 of key. 1142 00:45:02,260 --> 00:45:02,460 Sorry. 1143 00:45:04,700 --> 00:45:06,600 It's kind of like the SSH security model. 1144 00:45:07,900 --> 00:45:12,880 But unfortunately, even in that browser, when you go to a site, you say, yeah, this is 1145 00:45:12,880 --> 00:45:14,620 the cert I want to use to identify it. 1146 00:45:14,620 --> 00:45:15,180 I accept that. 1147 00:45:15,340 --> 00:45:16,180 Permanently store it. 1148 00:45:16,420 --> 00:45:22,060 And then someone serves up a different certificate with a trust ‑‑ a name that validates 1149 00:45:22,060 --> 00:45:24,980 to a trust root, it lets that replace it. 1150 00:45:25,160 --> 00:45:32,100 So it means you're ‑‑ you better not have self‑signed certs for mail or 192.168.1.2. 1151 00:45:32,180 --> 00:45:32,580 Okay. 1152 00:45:32,960 --> 00:45:36,500 So hackers with real CA sign certs, which they can get anywhere they want, could easily 1153 00:45:36,500 --> 00:45:37,040 impersonate them. 1154 00:45:38,860 --> 00:45:40,960 So there's a big picture question here. 1155 00:45:41,320 --> 00:45:45,940 Which is, okay, we've seen that there is far too much trust, far too much promiscuous 1156 00:45:45,940 --> 00:45:48,860 trust out there in the SSL universe. 1157 00:45:50,880 --> 00:45:56,460 And it obviously leads you to ask, so is HTTPS fundamentally broken here? 1158 00:45:56,640 --> 00:45:57,900 Like what's going on? 1159 00:45:59,700 --> 00:46:02,840 And I don't want to reach for that easy answer to say yes. 1160 00:46:02,840 --> 00:46:10,040 Actually, despite all the Baroque complexity, this system seems to be working surprisingly 1161 00:46:10,040 --> 00:46:11,700 well for how bad it is. 1162 00:46:13,500 --> 00:46:19,480 In particular, we went looking for ‑‑ we used one method to look for server impersonation 1163 00:46:19,480 --> 00:46:23,480 or you're a man in the middle and other kinds of server impersonation attacks. 1164 00:46:23,860 --> 00:46:27,920 The method we used was, okay, if you see a name that has multiple certs signing for 1165 00:46:27,920 --> 00:46:32,560 it, like Google.com, is there sometimes a case where one of the certs signing for it 1166 00:46:32,560 --> 00:46:34,600 is an obscure one that hardly signs for anything? 1167 00:46:35,480 --> 00:46:39,640 And certainly some of those exist, but none of them look obviously like they're malicious. 1168 00:46:40,060 --> 00:46:43,080 They might be, but we haven't tested that. 1169 00:46:43,220 --> 00:46:51,320 So if there is CA certified server impersonation stuff going on, either it's being done with 1170 00:46:51,320 --> 00:46:57,620 the same kinds of widely used CA keys that everyone is using, that small tail that signs 1171 00:46:57,620 --> 00:47:02,540 a lot of stuff, and certainly there is going to be some that's like that, or it's being 1172 00:47:02,560 --> 00:47:04,280 deployed in a nonpublic way. 1173 00:47:04,560 --> 00:47:10,220 You can't just go and see it happening by pinging port 443 on a public IP address. 1174 00:47:10,560 --> 00:47:14,260 You have to be on the right private network and then it happens so you see the magic cert 1175 00:47:14,260 --> 00:47:14,820 at that moment. 1176 00:47:15,940 --> 00:47:19,620 And talk more about what we're planning to do to try and see some of that, get a window 1177 00:47:19,620 --> 00:47:20,960 into some of that stuff in the future. 1178 00:47:21,620 --> 00:47:23,780 But the question is, can we do any better? 1179 00:47:23,940 --> 00:47:26,900 And that's ‑‑ it's not clear yet that we can. 1180 00:47:27,880 --> 00:47:32,040 In particular, there are other systems that seem to work pretty well. 1181 00:47:32,040 --> 00:47:32,900 Like SSH. 1182 00:47:33,180 --> 00:47:37,900 But the fundamental thing about SSH is when a server's key changes, if you have a shell 1183 00:47:37,900 --> 00:47:42,140 on that machine, you should have some way of finding out why the key changed and whether 1184 00:47:42,140 --> 00:47:42,900 the new one is correct. 1185 00:47:43,120 --> 00:47:44,140 Maybe you're the admin. 1186 00:47:44,480 --> 00:47:50,140 Or maybe you can call the admin at least and say, hey, is that key changing? 1187 00:47:50,400 --> 00:47:51,640 Or you know that the machine crashed. 1188 00:47:52,200 --> 00:47:57,500 So that model, the TOEFL model works for SSH and other kind of small world deployments. 1189 00:47:57,560 --> 00:48:01,240 It's not clear that it works if you're trying to visit a website on the other side of the 1190 00:48:01,240 --> 00:48:01,380 world. 1191 00:48:01,740 --> 00:48:06,400 You're in Nigeria and you're a legitimate user of an online shopping site in the United 1192 00:48:06,400 --> 00:48:06,780 States. 1193 00:48:06,880 --> 00:48:07,060 Whatever. 1194 00:48:08,200 --> 00:48:14,160 And similarly, there are other protocols like OTR instant messaging does great key authentication. 1195 00:48:15,000 --> 00:48:17,500 But it's hard to see how you could use that for the web. 1196 00:48:19,400 --> 00:48:23,840 So what we want to do in the future, certainly as soon as we've done disclosure, we're going 1197 00:48:23,840 --> 00:48:29,300 to be releasing the data set we've got this far, we're thinking about adding Firefox ‑‑ 1198 00:48:29,300 --> 00:48:31,220 adding functionality to various files. 1199 00:48:31,220 --> 00:48:35,640 Firefox extensions to spot unusual or unseen certificates. 1200 00:48:36,220 --> 00:48:40,960 In particular, something like Tor button or something like HTTPS everywhere could have 1201 00:48:40,960 --> 00:48:45,420 an option you can turn on that says, hey, in the background, check all my certs through 1202 00:48:45,420 --> 00:48:45,780 Tor. 1203 00:48:45,940 --> 00:48:50,080 Go through Tor and see if I'm seeing the publicly visible cert or not. 1204 00:48:50,220 --> 00:48:55,080 And if I'm not, then go back through Tor again and send an anonymous report with this cert 1205 00:48:55,080 --> 00:48:55,880 to our observatory. 1206 00:48:56,500 --> 00:48:58,760 So we're thinking about implementing stuff like that. 1207 00:48:58,860 --> 00:49:00,740 And who knows what we'll find. 1208 00:49:01,220 --> 00:49:03,020 Maybe that will be a DEF CON talk next year. 1209 00:49:05,140 --> 00:49:12,100 And then maybe we could put together some metrics to get a better picture of CA importance. 1210 00:49:12,880 --> 00:49:17,400 There's a few legitimate reasons to have minimally used CAs. 1211 00:49:17,520 --> 00:49:23,720 But I'd like to maybe explain to people why they can cut one or why they can cut many. 1212 00:49:24,740 --> 00:49:27,100 So do we have time for, like, one or two questions? 1213 00:49:27,500 --> 00:49:30,180 We do have a question from set three from 1.13. 1214 00:49:30,260 --> 00:49:30,740 All right. 1215 00:49:30,740 --> 00:49:33,160 So questions will be in room 1.13.