[00:00.000 --> 00:04.380] This is Dr. Jeremy Galula. He's the tech projects director of the Electronic Frontier Foundation. [00:04.380 --> 00:08.300] He's going to talk with us about kind of the cool encryption internet kind of thingies. [00:08.300 --> 00:11.340] So I'm going to turn it over to him. Let's give him a great big round of applause. [00:11.720 --> 00:17.980] Thanks very much. So yes, apologies if you were looking forward to seeing Shahid Batar. [00:17.980 --> 00:22.560] He is elsewhere at DEF CON but couldn't be here to give this particular talk. [00:22.560 --> 00:27.260] So I'm not going to be talking about NSA spying. I am going to be talking, however, about NSA spying, [00:27.260 --> 00:28.800] but just from a totally different angle. [00:29.020 --> 00:33.640] So first of all, thank you everyone for showing up here bright and early this morning. [00:33.640 --> 00:37.880] I'm amazed that there are more than like two of you in the audience at 10 a.m. on Saturday. [00:38.220 --> 00:41.180] So I will try not to put you back to sleep. [00:41.560 --> 00:45.600] So most people see the EFF like this, like a bunch of lawyers. [00:45.600 --> 00:49.740] So these are a team of lawyers. They're outside the United States Court of Appeals. [00:49.740 --> 00:52.500] And it's true. We have a lot of lawyers. They're awesome. [00:52.740 --> 00:55.880] But EFF also does a lot of other awesome stuff. [00:56.480 --> 00:59.260] Obviously, with lawyers, we petition the government. [00:59.260 --> 01:06.680] This is some comments we wrote to the FCC during the whole net neutrality debacle. [01:07.400 --> 01:11.620] We actually put together comments from Internet engineers, pioneers, and technologists [01:11.620 --> 01:14.840] about the technical flaws in the FCC's proposal. [01:15.400 --> 01:18.060] And so we bring technologists together. [01:18.160 --> 01:21.620] Obviously, we also do a lot of grassroots support, rallying grassroots support. [01:21.620 --> 01:24.120] Some of you might have been at some of these protests. [01:24.120 --> 01:29.980] But nearest and dearest to my heart as tech projects director is that we actually write code. [01:30.140 --> 01:34.360] We have a bunch of technologists on staff at EFF who not only advise the lawyers, [01:34.360 --> 01:39.740] we also write code, we create software that people can use to enhance their privacy and security. [01:39.740 --> 01:42.500] And I'm going to be talking a little bit about that sort of stuff today. [01:43.280 --> 01:47.220] So some of our software projects, some of you may or may not have heard of. [01:47.240 --> 01:49.740] There's HTTPS Everywhere is probably our most well-known. [01:49.740 --> 01:55.780] It's a browser extension you can install to enhance your security online. [01:56.140 --> 01:58.800] I'll be talking a little bit more about that one later. [01:58.800 --> 02:04.100] There's also Privacy Badger. That's another browser extension that's a privacy-focused as opposed to security-focused. [02:04.160 --> 02:08.280] And then Certbot, which some of you may have even used to get yourself a certificate. [02:08.280 --> 02:11.280] And I'll be talking a little bit about these two today. [02:13.080 --> 02:15.800] So EFF has these three different theories of change. [02:15.800 --> 02:18.220] We've got lawyers, activists, and technologists. [02:18.220 --> 02:26.700] And so we get this wonderful sweet spot of being able to pressure the world to make the world a better place from three different angles. [02:28.360 --> 02:31.080] So let's take a trip down memory lane. [02:31.160 --> 02:36.740] And this is sort of how all of this sort of really tech-focused part of EFF started. [02:37.000 --> 02:42.460] So back in 2006, this is way pre-Snowden. [02:43.100 --> 02:49.060] A technician from AT&T literally walked in EFF's front door one day and said, [02:49.060 --> 02:53.920] there's some shady stuff going on at AT&T between the AT&T and the NSA. [02:53.920 --> 02:55.800] And I think you ought to know about it. [02:56.140 --> 03:01.680] And so this was a guy named Mark Klein, who was an AT&T technician. [03:01.680 --> 03:10.020] And he came to EFF and told us about essentially how AT&T was letting the NSA tap the Internet backbone. [03:10.020 --> 03:13.740] There was this secret room in an AT&T facility in San Francisco. [03:13.740 --> 03:15.900] And this was, again, long before Snowden. [03:16.160 --> 03:18.560] And so we said, all right, we've got to do something about this. [03:18.560 --> 03:21.660] This is warrantless mass surveillance, not cool. [03:21.660 --> 03:23.460] Let's try and fix this. [03:24.100 --> 03:25.740] So we tried the courts. [03:26.360 --> 03:29.920] Our first lawsuit was Hefting versus AT&T. [03:29.920 --> 03:41.000] Hefting was an AT&T customer we found who we had reason to believe that their communications had been sucked up by the NSA via AT&T. [03:42.520 --> 03:45.240] Does anyone know how this one turned out? [03:46.920 --> 03:54.960] So the fun fact is it disappeared because Congress, as soon as AT&T got sued, AT&T ran to Congress and said, [03:54.960 --> 03:57.000] Congress, you have to protect us. [03:57.000 --> 03:59.400] We were doing this because the DOJ told us to. [03:59.400 --> 04:01.880] We were doing this because the NSA told us to. [04:02.080 --> 04:07.160] How could we have possibly known that warrantless wiretapping was illegal and we should have challenged it? [04:07.160 --> 04:11.860] And so Congress passed a law granting all of the telcos retroactive immunity. [04:12.320 --> 04:16.340] And so Congress basically said, AT&T, you've got to get out of jail free pass. [04:16.340 --> 04:18.300] And it goes backward in time. [04:18.360 --> 04:19.480] So that went away. [04:19.480 --> 04:25.160] So then we're like, fine, AT&T, we can't sue you, so we'll sue the NSA. [04:25.160 --> 04:27.440] So Joule versus NSA. [04:27.600 --> 04:33.940] Joule was another customer whose, again, communications we had reason to believe had been sucked up by the NSA. [04:34.220 --> 04:40.440] Fun fact, Carolyn Joule is actually a romance author who lives in Northern California. [04:40.440 --> 04:41.460] She's really awesome. [04:41.460 --> 04:44.780] If you're into romance fiction, you should check out her books. [04:45.940 --> 04:50.640] Anyway, so does anyone know how this one turned out? [04:52.360 --> 04:53.820] Didn't disappear. [04:53.820 --> 04:54.740] Good guess. [04:54.740 --> 04:56.060] Excellent guess. [04:56.320 --> 04:57.580] She did not disappear. [04:57.580 --> 04:58.900] She's still around. [04:58.960 --> 05:01.480] And in fact, so is the damn case. [05:01.480 --> 05:07.420] It's been 10 years, and the wheels of justice grind inexorably slowly. [05:08.460 --> 05:14.020] It is still ongoing, just because legal lawsuits take forever. [05:14.020 --> 05:16.080] And they take especially longer. [05:16.080 --> 05:20.360] They take a much longer infinity if you're suing the federal government. [05:20.740 --> 05:21.920] And so this is still ongoing. [05:21.920 --> 05:26.680] We still hope that we will succeed at some point, but it's just taking forever. [05:27.440 --> 05:33.320] And so from our perspective, we're like, well, we don't want to wait for infinity time to get a resolution. [05:33.360 --> 05:35.200] We think we can do something a little better. [05:35.500 --> 05:36.820] So we tried some activism. [05:36.820 --> 05:38.840] How many of you have seen this before? [05:39.220 --> 05:40.060] A couple. [05:40.060 --> 05:41.960] So then I'm happy to show it to you. [05:41.960 --> 05:48.480] So this was a blimp that we flew in partnership with Greenpeace, I think the First Amendment Coalition. [05:48.480 --> 05:49.600] There might have been a couple other groups. [05:49.600 --> 05:51.980] I apologize for not remembering all of them. [05:51.980 --> 05:54.860] And we flew it over the NSA's Utah data center. [05:54.860 --> 06:02.460] So this is out in the middle of Utah where they've got this giant data center, which is presumably storing all of the data they're sucking up. [06:02.520 --> 06:07.900] And we thought people should know that there's some illegal spying going on beneath that. [06:07.900 --> 06:10.760] Of course, that didn't really pressure the NSA to stop. [06:11.760 --> 06:15.540] As you might imagine, they didn't really care about a blimp flying overhead. [06:16.380 --> 06:18.080] So what about technology? [06:18.080 --> 06:21.540] As I said, we've got lawyers, we've got activists, we've got technologists. [06:23.840 --> 06:26.280] So what is the fundamental problem? [06:27.200 --> 06:31.440] To solve it with technology, we have to define what the problem is we're trying to solve. [06:31.700 --> 06:37.080] So this is a slide later released via the Snowden leaks. [06:37.080 --> 06:40.460] But it shows you the sort of thing that the NSA was sucking up. [06:40.460 --> 06:45.040] And in particular, what you're seeing here is the headers from a connection. [06:45.040 --> 06:47.580] And you notice that it's over HTTP. [06:47.780 --> 06:50.140] This whole thing is unencrypted. [06:50.600 --> 06:55.720] So the reason the NSA can suck all of this mass surveillance up is because it's unencrypted. [06:55.720 --> 07:01.940] If it were encrypted, the NSA would not be able to look at everyone's communications. [07:01.960 --> 07:10.160] Even the NSA, as far as I'm concerned, does not have the capacity to break everyone's encryption. [07:10.160 --> 07:13.520] Assuming the encryption is configured correctly and is up to date, etc. [07:13.540 --> 07:17.400] They may still be able to target individuals, but that's no longer mass surveillance. [07:17.400 --> 07:19.200] And so then that's going to be a different problem. [07:20.260 --> 07:25.320] So we said, fine, the solution is to get everyone to use HTTPS. [07:25.320 --> 07:29.560] Well, 10 years ago, none of this was HTTPS. [07:29.560 --> 07:33.640] It's kind of hard to believe that just 10 years ago, Google, Facebook, Wikipedia, Twitter, [07:33.640 --> 07:36.060] none of them were using HTTPS by default. [07:36.740 --> 07:39.120] And so we said, well, let's pressure them. [07:39.120 --> 07:42.900] Because what we want to do is get as much traffic on the web encrypted as possible. [07:42.900 --> 07:46.520] So let's start with the most popular sites, and then we'll work our way down. [07:47.720 --> 07:50.220] So Idea Kitty has a bright idea. [07:50.860 --> 07:52.400] We can fix this. [07:52.400 --> 07:56.400] So we created the HTTPS Everywhere Firefox extension. [07:56.780 --> 08:00.220] So what it is, it's a browser extension for Firefox, now also Chrome. [08:00.220 --> 08:01.940] You can also install it in Opera. [08:02.060 --> 08:05.840] I'm pretty sure it's compatible with Brave, too, although I don't think you need it in Brave. [08:05.840 --> 08:10.880] Because Brave actually incorporates the HTTPS Everywhere list into the browser itself. [08:11.380 --> 08:18.220] And what it does is when a website supports HTTPS, but it is not by default, [08:18.220 --> 08:20.760] HTTPS Everywhere will upgrade your connection automatically. [08:20.760 --> 08:22.920] You don't even have to remember anything. [08:22.920 --> 08:29.080] It will prevent any sort of man-in-the-middle style attacks, any SSL attacks, [08:29.080 --> 08:34.860] because it says, if that website is on my list of websites that support HTTPS, [08:34.860 --> 08:37.860] then I'm only going to let the browser connect over HTTPS. [08:38.540 --> 08:40.040] So we launched that. [08:40.160 --> 08:42.240] It was in June of 2010. [08:43.300 --> 08:45.780] At launch, it was about 1,000 websites. [08:45.780 --> 08:48.080] It's now tens of thousands of websites. [08:48.860 --> 08:52.380] It also blocked mixed content before the browsers did. [08:52.460 --> 08:55.300] Now, I just want to double-check and get a sense of the room. [08:55.300 --> 08:57.720] How many people here know what mixed content is? [08:58.240 --> 08:59.160] Okay, so about half. [08:59.160 --> 09:03.100] So basically, mixed content is when you load a web page over HTTPS, [09:03.100 --> 09:08.140] but then it pulls in other resources over HTTP, so like images or JavaScript. [09:08.200 --> 09:10.960] And when it's pulling the other stuff over HTTP, [09:10.960 --> 09:15.560] that gives an attacker an opportunity to inject malicious scripts, basically, [09:15.560 --> 09:20.160] and bypass the fact that the original web page was loaded over HTTPS. [09:20.160 --> 09:23.280] So we did that before the browsers did, which is kind of awesome. [09:23.280 --> 09:27.020] And now, of course, blocking mixed content is the default for browsers. [09:30.160 --> 09:36.420] So shortly after we launched this news... [09:36.420 --> 09:39.620] Well, basically, someone else launched another tool, [09:39.620 --> 09:42.800] which gave us great motivation and pleasure that we had just launched HTTPS Everywhere. [09:42.800 --> 09:45.480] How many people remember something called FireSheep? [09:46.260 --> 09:48.000] So, okay, so a couple of people. [09:48.000 --> 09:52.060] So FireSheep was yet another browser extension, [09:52.060 --> 09:54.880] but what it was designed to do was to listen [09:54.880 --> 09:59.640] if you were on an unsecured wireless network [09:59.640 --> 10:02.060] or if you're just connected to a wired LAN [10:02.060 --> 10:04.860] and it was just broadcasting packets, [10:04.860 --> 10:09.640] it would listen to the HTTP connections that other clients, [10:09.640 --> 10:12.620] other browsers were making, other computers, [10:12.620 --> 10:16.160] and it would say, hey, look, that one looks like a cookie, [10:16.160 --> 10:18.460] an authentication cookie for Facebook. [10:18.560 --> 10:22.620] And then it would pull that in and it would let you log in as the other person. [10:22.620 --> 10:25.600] And again, it was taking advantage of the fact that at the time, [10:25.600 --> 10:28.200] even log-in connections were not encrypted. [10:28.340 --> 10:31.740] So I could get on FireSheep, I could sit at a coffee shop, [10:31.740 --> 10:35.380] and I could basically become a log-in as any person [10:35.380 --> 10:37.620] who logged into Facebook at that coffee shop [10:37.620 --> 10:39.700] because it wasn't over HTTPS. [10:39.960 --> 10:44.980] And so HTTPS Everywhere protects against that, which was great. [10:44.980 --> 10:46.960] So we were like, look, this is an active thing, [10:46.960 --> 10:48.480] this is an attack that can really happen, [10:48.480 --> 10:50.420] and we're protecting against it. Awesome. [10:51.420 --> 10:53.820] So great. Wonderful. We've solved the problem. [10:53.820 --> 10:56.380] We can go home. The NSA will stop surveilling. [10:57.000 --> 11:00.200] Sadly, no. That is not quite how life works. [11:00.200 --> 11:01.600] Everything was not awesome. [11:03.240 --> 11:06.530] Although we might have been able to protect many sites, [11:06.940 --> 11:09.500] not everyone's using HTTPS Everywhere, for one thing. [11:09.560 --> 11:14.100] We've got anywhere from 3 to 10 million users, [11:14.100 --> 11:15.800] depending on how you count. [11:15.800 --> 11:17.940] Fun fact, as a privacy organization, [11:17.940 --> 11:19.980] counting how many users you have is really difficult [11:19.980 --> 11:22.300] given that we're not collecting that information. [11:23.020 --> 11:25.760] But regardless, that is not the entire web. [11:25.800 --> 11:27.320] Lots of people aren't using it. [11:28.040 --> 11:30.800] And there's still no default HTTPS support. [11:32.220 --> 11:35.520] So we said, all right, the real way to protect everyone [11:35.520 --> 11:37.960] is to get the actual companies to change. [11:37.960 --> 11:39.740] We can put out this browser extension, [11:39.740 --> 11:42.020] and smart people can use it, they can tell their friends, [11:42.020 --> 11:43.920] they can tell their family, they can tell their neighbors, [11:43.920 --> 11:45.860] but it's still not going to reach everybody. [11:46.140 --> 11:49.200] So we launched a HTTPS Now campaign, [11:49.200 --> 11:52.120] basically pressuring the companies, trying to shame them, [11:52.120 --> 11:55.040] and say, why the hell aren't you using HTTPS by default? [11:55.040 --> 11:56.860] It's not that frickin' hard. [11:58.320 --> 11:59.780] So we made some progress. [11:59.800 --> 12:02.340] And it looks like I don't have all of the fonts on my computer, [12:02.340 --> 12:04.680] because those were supposed to be green checkboxes. [12:04.680 --> 12:07.700] That's what happens when you upgrade your operating system [12:07.700 --> 12:10.620] and don't check your slides to make sure that you've got the same fonts. [12:10.960 --> 12:14.140] But Facebook and Wikipedia still know default HTTPS, [12:14.140 --> 12:15.440] which is kind of ridiculous. [12:16.780 --> 12:19.320] So then, along came Edward Snowden, [12:19.320 --> 12:23.260] and I'm pretty sure everyone in here knows who Edward Snowden is. [12:24.220 --> 12:27.600] And so back in 2013, we got the Snowden leaks, [12:27.600 --> 12:30.700] which told us even more of, frankly, what EFF already knew, [12:30.700 --> 12:33.860] that the NSA was wiretapping the backbone of the Internet [12:33.860 --> 12:37.080] and sucking up innocent Americans' data without a warrant. [12:37.440 --> 12:41.080] Not only that, they were collecting phone records, [12:41.080 --> 12:44.920] they had this X-Keyscore program, [12:44.920 --> 12:48.260] which they would use to look through the data. [12:49.180 --> 12:50.700] And this is not good. [12:51.060 --> 12:54.780] This came out, and finally, the whole world started to realize, [12:54.780 --> 12:56.720] holy shit, this is really awful. [12:57.440 --> 13:00.640] And so we decided shortly after that to really turn up the pressure [13:00.640 --> 13:03.040] and put out an encrypting-the-web report [13:03.040 --> 13:06.380] that would just, in plain, I was going to say black and white, [13:06.380 --> 13:08.930] but I guess red and green, show the world, [13:09.440 --> 13:11.160] this is what the companies are doing. [13:11.160 --> 13:15.120] And if the company is getting undetermined or red Xs, [13:15.120 --> 13:17.340] then that means they're not paying attention to your security. [13:17.840 --> 13:19.280] And so we put that out. [13:19.280 --> 13:22.840] This is actually, obviously, not up to date. [13:22.880 --> 13:24.880] This was back when we launched it. [13:24.880 --> 13:27.880] Because, obviously, today, most of this would be [13:27.880 --> 13:30.820] supports HTTPS, encrypts data center links, [13:30.820 --> 13:34.300] uses HTTP strict, etc. [13:35.760 --> 13:38.180] As we're going down memory lane, [13:38.180 --> 13:41.620] it's fun for me to note that some of these companies [13:41.620 --> 13:43.060] don't exist anymore. [13:43.480 --> 13:45.900] But at the time, they were important to rank. [13:45.900 --> 13:47.860] They were important to put on this chart. [13:48.900 --> 13:51.700] So we did that, and we actually made a lot of progress. [13:51.700 --> 13:56.120] This pushed a lot of these big companies to adopt HTTPS. [13:57.180 --> 13:59.160] So great, we're done again. [13:59.160 --> 14:03.060] That was a bit of technology plus activism plus the original technology. [14:03.060 --> 14:04.540] We don't have to wait for the courts. [14:04.540 --> 14:08.860] It's good to get that precedent, but in the meantime, we're set. [14:09.020 --> 14:12.000] We've now thwarted NSA mass surveillance. [14:12.640 --> 14:14.780] Well, unfortunately, again, the answer is no. [14:14.780 --> 14:16.500] Our job is not yet done. [14:17.420 --> 14:20.720] Although we might have gotten the major websites encrypted, [14:20.720 --> 14:23.560] overall, the Internet was still not encrypted. [14:23.560 --> 14:25.540] So this is a chart from... [14:26.360 --> 14:28.720] this is actually courtesy of Mozilla, [14:28.720 --> 14:30.920] showing the percentage of page loads [14:31.720 --> 14:35.980] over a 14-day moving average that use HTTPS. [14:36.500 --> 14:39.980] And you can see, if it's tough to read the text in the back, [14:39.980 --> 14:41.980] the dark blue line is all users. [14:41.980 --> 14:46.740] And then more recently, Mozilla broke out USA versus Japan users. [14:46.980 --> 14:48.060] USA is the one on top. [14:48.060 --> 14:49.160] Japan is the one on the bottom. [14:49.160 --> 14:52.240] But as you can see, back in 2013, this is like 30%. [14:52.240 --> 14:53.540] This is ridiculous. [14:53.540 --> 14:56.560] This is less than a third of page loads are encrypted. [14:56.560 --> 14:59.280] As you can also see, the story is going to get better, [14:59.280 --> 15:00.460] but we'll get to that. [15:02.780 --> 15:07.320] So at the time, back in 2013, TLS was not ubiquitous. [15:07.500 --> 15:10.440] You log into a site like Quora, [15:10.440 --> 15:12.920] and you can just look at the packets. [15:12.920 --> 15:14.360] And I know that's really tiny text, [15:14.360 --> 15:18.040] but what that's showing is the username and password. [15:18.480 --> 15:20.540] You just get on Wireshark, you snip it, [15:20.540 --> 15:25.440] and obviously the NSA is doing Wireshark on infinite steroids. [15:26.620 --> 15:28.620] So, okay, sorry, this is in 2013. [15:28.620 --> 15:29.960] This is June 2014. [15:31.920 --> 15:34.380] It wasn't just sites like Quora. [15:34.380 --> 15:36.700] It was even the Googles. [15:37.040 --> 15:39.900] So, oh, man, I am missing all of the fonts. [15:39.900 --> 15:41.880] That's supposed to be the table-flipping emoji. [15:41.980 --> 15:46.240] Anyway, in particular to notice here, [15:46.240 --> 15:50.640] this is an HTTP page with a link to a sign-in page. [15:50.640 --> 15:52.800] And so an attacker could inject [15:52.800 --> 15:56.820] and basically redirect this sign-in to wherever they want. [15:57.000 --> 15:59.600] Because they could have intercepted this page [15:59.600 --> 16:01.760] while it was en route to you, [16:01.760 --> 16:05.260] said, I want to redirect this to some URL [16:05.260 --> 16:08.800] that's using some sort of homoglyphs and some shady... [16:08.800 --> 16:11.580] It will be some domain that looks kind of like Google, [16:11.580 --> 16:12.840] but it's actually ours. [16:12.840 --> 16:15.000] And so we'll get you to click that, you'll go to that domain, [16:15.000 --> 16:16.800] and you'll enter your Google credentials. [16:16.800 --> 16:20.120] And so even though Google's actual login is over HTTPS, [16:20.120 --> 16:24.060] we're going to trick you into signing in on our page. [16:24.720 --> 16:26.780] This is 2015. [16:27.300 --> 16:31.000] So why was this such a big deal? [16:31.000 --> 16:32.780] Why was this so hard? [16:32.920 --> 16:36.460] So the first reason that HTTPS wasn't ubiquitous [16:36.460 --> 16:39.780] was setting up TLS was tedious. [16:39.920 --> 16:42.180] Like, this is a page from DreamHost [16:42.180 --> 16:46.400] about how to set up HTTPS on DreamHost [16:46.400 --> 16:48.560] if you were hosted on their service. [16:48.860 --> 16:52.180] And it is just... even for an actual sysadmin, [16:52.180 --> 16:55.360] it's just a tedious ton of stupid work. [16:55.360 --> 16:57.660] Like, it's just a bunch of manual steps. [16:58.560 --> 17:00.500] It's also really hard. [17:00.560 --> 17:04.400] There's all this... every time a new exploit [17:05.020 --> 17:07.000] or new vulnerability in some part, [17:07.000 --> 17:10.560] some cipher comes out or something like that, [17:10.560 --> 17:12.680] some configuration of TLS, [17:12.680 --> 17:14.340] unless you're a crypto expert, [17:14.340 --> 17:16.680] you're not going to understand this stuff. [17:17.100 --> 17:20.040] And not everyone who runs a website is a crypto expert, [17:20.040 --> 17:22.060] nor should we expect everyone who runs a website [17:22.060 --> 17:23.640] to be a crypto expert. [17:24.180 --> 17:27.260] We want to make the web easy to use both to access [17:27.260 --> 17:29.800] but also to put content up there. [17:31.980 --> 17:35.300] So, I mean, there are entire books written [17:35.300 --> 17:37.780] on how to set up TLS properly. [17:37.780 --> 17:41.420] And if you're like a mom and pop shop, [17:41.420 --> 17:43.760] you just want to put up your website so that people can see [17:43.760 --> 17:46.340] that you've got a restaurant or something, [17:46.340 --> 17:50.340] you don't have to read a freaking book to know how to set up your website securely. [17:51.720 --> 17:54.180] So, TLS wasn't ubiquitous [17:54.180 --> 17:56.400] because the one thing I also missed [17:56.400 --> 17:58.820] is it costs money most of the time. [17:59.040 --> 18:02.200] You have to pay a service, a certificate authority, [18:02.200 --> 18:05.840] to get a certificate that you would then post on your website. [18:05.840 --> 18:08.240] You have to pay for that HTTPS certificate. [18:08.360 --> 18:11.400] It was also tedious. It was also very hard. [18:11.400 --> 18:14.500] So, this makes me sad. [18:14.800 --> 18:17.640] But, what if we told you we could fix [18:17.640 --> 18:19.980] every single one of those problems? [18:20.440 --> 18:25.060] So, back in, I guess, around 2016, [18:25.060 --> 18:26.420] EFF started brainstorming. [18:26.420 --> 18:27.480] Well, how can we fix this? [18:27.480 --> 18:30.140] Like, this is a fundamental infrastructure problem. [18:30.140 --> 18:33.600] And so, the answer is to make the infrastructure better. [18:34.080 --> 18:37.220] So, we decided to fix that by creating a... [18:37.220 --> 18:39.040] I'm sorry, it wasn't even 2016. It was earlier. [18:39.040 --> 18:41.360] It was 2014 when we started thinking about it. [18:41.360 --> 18:43.920] We decided to create a certificate authority. [18:44.060 --> 18:47.820] So, the certificate authority is the entity that issues certificates, [18:47.820 --> 18:49.820] which you can then put on your website. [18:50.760 --> 18:55.240] That's how the browser verifies the HTTPS connection. [18:56.320 --> 18:57.840] And so, the goal of Let's Encrypt [18:57.840 --> 19:00.460] wasn't just to make sure that we could give everyone certificates, [19:00.460 --> 19:02.380] but it was to eliminate all of the obstacles [19:02.380 --> 19:05.040] in getting HTTPS set up properly. [19:06.780 --> 19:09.640] Whoops, that was wrong button. [19:10.020 --> 19:13.300] So, the first problem, TLS is not ubiquitous. [19:13.440 --> 19:16.580] The answer, let's automate certificate issuance [19:16.580 --> 19:19.520] and make it free so that everyone can get a certificate [19:19.520 --> 19:22.560] and you don't have to follow a bunch of manual steps. [19:22.560 --> 19:25.480] So, you can type in one or two commands in the command line [19:25.480 --> 19:28.900] and just get your certificate. It will be set up. [19:29.720 --> 19:31.960] And the solution to this was we created [19:31.960 --> 19:35.520] an open protocol for requesting and getting a certificate [19:35.520 --> 19:37.200] called ACME. [19:38.360 --> 19:42.560] I can no longer remember what it stands for. [19:42.560 --> 19:45.220] It's something certificate management something. [19:45.560 --> 19:47.080] But it doesn't matter. [19:47.080 --> 19:50.380] The point is, it is a protocol that is open. [19:50.380 --> 19:52.920] So, any server, any certificate authority [19:52.920 --> 19:57.540] can use this protocol to issue certificates. [19:57.780 --> 19:59.240] And in particular, fun fact, [19:59.240 --> 20:01.600] Let's Encrypt is no longer the only certificate authority [20:01.600 --> 20:02.820] using ACME. [20:02.980 --> 20:09.380] I believe... man, I'm forgetting which one. [20:09.620 --> 20:12.040] There's another major certificate authority [20:12.040 --> 20:13.620] that is now also using ACME. [20:13.620 --> 20:17.980] I forget if it's Komodo or the result of Komodo [20:17.980 --> 20:18.960] or something else. [20:18.960 --> 20:22.900] But the open part of it worked, which is exciting. [20:24.160 --> 20:25.880] So, how ACME works. [20:26.320 --> 20:27.720] First, there's an ACME client. [20:27.720 --> 20:28.820] This is your web server. [20:28.820 --> 20:31.160] The client is the thing that wants to get the certificate [20:31.160 --> 20:33.100] so they can put it on a web server. [20:33.500 --> 20:36.040] And then there's an ACME server, the certificate authority. [20:37.080 --> 20:39.220] A lot of you are probably thinking, wait a second, [20:39.220 --> 20:40.800] we can't just give out certificates willy-nilly [20:40.800 --> 20:43.640] because then I could request a certificate for Google.com [20:43.640 --> 20:45.880] and then I could spoof Google [20:45.880 --> 20:48.980] and scoop up everyone's Gmail passwords. [20:49.380 --> 20:52.560] And so the way it works is the ACME client [20:52.560 --> 20:55.300] tells the server, I want to search for example.com [20:55.300 --> 20:57.600] and here's the public key I want to put in that certificate. [20:58.020 --> 21:01.840] And then the server, again, this is the certificate authority, [21:01.840 --> 21:04.680] says, OK, that's great. Here's a nonce. [21:04.680 --> 21:07.080] Here's some random string and I want you to post it [21:07.080 --> 21:11.940] at example.com slash nonce and sign it with the corresponding private key. [21:12.140 --> 21:14.000] And so what that does is first, [21:14.000 --> 21:17.380] that verifies that if I can post it at example.com [21:17.380 --> 21:20.140] slash nonce, that pretty well establishes [21:20.140 --> 21:22.680] that I have control of that domain and the server [21:22.680 --> 21:25.500] that is serving content from that domain. [21:25.800 --> 21:29.520] Because what will happen is I'll say, great, it's posted. [21:29.840 --> 21:33.360] And then the ACME server is going to just try to get that nonce. [21:33.400 --> 21:35.980] And if it can get that nonce over, [21:35.980 --> 21:40.660] and of course, there are a couple of other issues with this. [21:40.660 --> 21:43.740] So if there was DNS hijacking, that would defeat this. [21:43.740 --> 21:45.240] So we are relying on DNS. [21:46.260 --> 21:50.160] Another thing that we're looking at implementing, [21:50.160 --> 21:52.180] and if this is going over your head, don't worry about it, [21:52.180 --> 21:55.600] is doing this from multiple perspectives on the Internet [21:55.600 --> 21:57.840] so you can't just hijack one route. [21:58.500 --> 22:02.680] But basically, if the server can get that nonce, [22:02.680 --> 22:05.960] then it knows this machine I was talking to [22:05.960 --> 22:11.560] controls this domain and also can put stuff on the web, [22:11.560 --> 22:13.900] on port 80 for that domain. [22:14.040 --> 22:16.640] And so if that's enough, if it can do that, [22:16.640 --> 22:19.060] then it can do whatever it wants on that domain. [22:19.060 --> 22:21.220] So that's good enough. It obviously has control. [22:21.720 --> 22:24.540] And so the server will get that nonce. [22:25.360 --> 22:28.660] Of course, the web server will respond with the nonce [22:28.660 --> 22:29.740] and the signature. [22:29.980 --> 22:34.080] And then now the ACME server knows this web server [22:34.080 --> 22:37.200] controls the domain, can put content there, [22:37.200 --> 22:40.360] controls the public key because it signed that nonce [22:40.360 --> 22:41.600] with the private key. [22:41.600 --> 22:44.480] And so of course the ACME server can verify that. [22:44.700 --> 22:47.340] And so then it says signature checks out, [22:47.340 --> 22:49.560] so you control the public key, you control the server, [22:49.560 --> 22:53.800] you control the DNS, so here's your certificate. [22:54.400 --> 22:57.120] And so now in an automated way, this is all happening [22:57.120 --> 22:59.860] over the ACME protocol, you can get a certificate [22:59.860 --> 23:01.900] and prove that you control the domain. [23:03.920 --> 23:06.320] So that's how the protocol works. [23:06.320 --> 23:10.260] How do we actually get that certificate on the other side? [23:10.760 --> 23:12.960] So what we do is we created a client [23:12.960 --> 23:15.940] or an agent that basically gets it right. [23:15.940 --> 23:19.200] We created a piece of software you can use [23:19.200 --> 23:21.340] over the command line, very simple, [23:21.340 --> 23:24.460] that will not only use the ACME protocol [23:24.460 --> 23:28.000] to talk to the ACME server, get the certificate, [23:28.000 --> 23:30.540] but also if you're using Apache or NGINX, [23:30.540 --> 23:34.080] it will install the certificate and configure it for you. [23:34.080 --> 23:36.060] So you don't even have to think about like, [23:36.060 --> 23:38.540] where do I put it, how do I set this up, [23:38.540 --> 23:41.300] what cipher suite should I be using, [23:41.300 --> 23:44.760] it will use sensible defaults and do it for you. [23:45.560 --> 23:47.940] Again, it will tweak your existing web server [23:47.940 --> 23:49.880] to pass those challenges, so what I just showed you [23:49.880 --> 23:51.960] that back and forth was called a challenge. [23:51.960 --> 23:56.140] It will install the cert, it will tweak the security options, [23:56.140 --> 23:59.500] plus it's going to automate renewals, certificates expire. [23:59.740 --> 24:02.900] And in particular, since we're doing this in an automated fashion, [24:02.900 --> 24:07.020] what we decided was we wanted a very quick expiration [24:07.020 --> 24:08.860] just in case something went wrong. [24:08.860 --> 24:12.360] And so let's encrypt certificates expire after 90 days. [24:12.380 --> 24:14.560] And nobody is going to always remember [24:14.560 --> 24:17.180] to renew their certificate, I guarantee you. [24:17.180 --> 24:20.580] So because computers are good at doing things on a schedule, [24:20.580 --> 24:22.260] we'll have the computer do it for you. [24:22.260 --> 24:24.320] We'll have your server automate the renewal [24:24.320 --> 24:27.160] and some of these security response tasks. [24:28.060 --> 24:30.080] So what kinds of automation happen? [24:30.080 --> 24:32.940] Well, like I said, easy ones, cipher tuning, [24:32.940 --> 24:37.280] if you're doing OCSP, OCSP stapling, [24:37.280 --> 24:40.600] you could also set up upgrade insecure [24:40.600 --> 24:42.780] for content security policies. [24:44.180 --> 24:47.020] There are some features where if you want to do redirect [24:47.020 --> 24:50.080] from HTTP to HTTPS by default, [24:50.080 --> 24:53.520] then you can tell this software, [24:53.520 --> 24:55.380] which is called Certbot, [24:55.380 --> 24:57.820] you can tell it, I've set that up on my server too, [24:57.820 --> 24:59.540] so I don't even have to think about it. [24:59.540 --> 25:03.300] So install the cert and set up automatic redirects to HTTPS. [25:04.220 --> 25:07.900] What we haven't quite gotten to yet is full rewrites. [25:07.900 --> 25:11.260] So if you want to actually automatically rewrite [25:11.260 --> 25:14.480] all of the content on your web server to use HTTPS [25:14.480 --> 25:17.900] instead of HTTP, like if you've got hard-coded links, [25:17.900 --> 25:19.640] Certbot doesn't quite do that yet. [25:19.640 --> 25:22.980] That's a little bit harder, but it does support HSTS, [25:22.980 --> 25:27.260] which is a protocol that a web server can use to say, [25:27.260 --> 25:30.080] when you connect to me, always use HTTPS. [25:30.080 --> 25:33.360] It's kind of like the server's way of saying, [25:33.360 --> 25:35.880] use HTTPS everywhere, essentially. [25:37.280 --> 25:39.280] And then there's even harder stuff [25:39.280 --> 25:41.240] like mixed content auditing and correction [25:41.240 --> 25:43.820] and HTTP public key pinning, [25:43.820 --> 25:45.860] which we're probably never actually going to implement. [25:46.520 --> 25:48.740] But this is the software. It's called Certbot. [25:48.740 --> 25:50.540] It'll do all of those things. [25:50.820 --> 25:52.860] Not only that, it supports plugins. [25:52.960 --> 25:57.000] So if you want it to work on a different web server, [25:57.000 --> 25:58.620] you can write a plugin for that. [25:58.960 --> 26:00.360] There are different challenges. [26:00.360 --> 26:02.280] So the challenge I showed you is just one challenge. [26:02.280 --> 26:03.960] There's also other challenges. [26:03.980 --> 26:07.620] Say you want a wildcard certificate. [26:07.620 --> 26:10.280] So you don't want a certificate just for example.com. [26:10.280 --> 26:12.860] You want one for star.example.com. [26:13.280 --> 26:14.620] That's a different challenge. [26:14.620 --> 26:16.760] You have to actually do the challenge over DNS. [26:17.420 --> 26:19.360] And thanks to various plugins, [26:19.360 --> 26:22.920] Certbot will automate that for various DNS providers, too. [26:23.640 --> 26:25.840] It works on most Unix-based systems. [26:26.440 --> 26:28.840] And pretty soon it's also going to work on Windows, [26:28.840 --> 26:30.520] which we're really excited about. [26:32.340 --> 26:34.240] So actually this is not current events. [26:34.240 --> 26:36.580] This is, God, eight months ago events. [26:38.900 --> 26:41.200] So this is just giving you an example. [26:41.220 --> 26:42.320] As some of you probably remember, [26:42.320 --> 26:46.320] the U.S. government shut down about eight months ago. [26:46.480 --> 26:50.200] And all of a sudden a bunch of websites went down, [26:50.200 --> 26:51.080] U.S. government websites, [26:51.080 --> 26:53.100] because their certificates weren't renewed. [26:53.160 --> 26:54.780] They should have been using Certbot. [26:56.060 --> 26:58.660] Obviously that would have been solution one, automating renewal. [26:58.960 --> 27:02.580] You might as well automate this task. It's easy. [27:03.080 --> 27:05.480] Maybe the other solution is don't shut down the government [27:05.480 --> 27:07.920] over stupid budget disputes. [27:08.300 --> 27:10.720] But this is not a political talk. [27:11.520 --> 27:14.040] EFF is a nonpartisan organization. [27:14.240 --> 27:15.580] No, I'm just kidding. [27:16.260 --> 27:18.060] Encryption is inherently political. [27:18.320 --> 27:20.820] Encryption may not be partisan, but it is political [27:20.820 --> 27:23.600] in that it does equalize power. [27:23.700 --> 27:26.340] It allows people who normally wouldn't have the power [27:26.340 --> 27:30.520] to keep their information, their communication secret, secret. [27:31.320 --> 27:33.640] And that's part of why EFF does its work. [27:33.640 --> 27:36.460] We want to give everyone this ability. [27:37.040 --> 27:39.140] So anyway, HTTPS for everybody. [27:39.140 --> 27:41.680] We've got Let's Encrypt. We've got Certbot. [27:41.680 --> 27:44.120] We've got security. It's usable. [27:44.580 --> 27:47.880] We've got transparency with Let's Encrypt now [27:47.880 --> 27:49.860] being part of certificate transparency. [27:49.860 --> 27:51.620] We're great. We're set, right? [27:51.860 --> 27:54.740] And the answer is actually, yeah, we did pretty awesome. [27:54.760 --> 27:58.440] So this is a chart of how many fully qualified domains [27:58.440 --> 28:01.720] are using the Let's Encrypt certificate authority. [28:02.120 --> 28:04.540] And so you can see back when we launched, [28:04.540 --> 28:07.320] when we actually went into a public beta, [28:07.320 --> 28:10.220] and, God, this thing's actually a year old [28:10.220 --> 28:12.700] and it's at 140 million certificates. [28:12.700 --> 28:17.220] So this blue line is fully qualified domains, and that's 140 million. [28:17.600 --> 28:20.820] The dotted line in the middle is certificates active. [28:20.820 --> 28:23.400] So there could be multiple domains per certificate, [28:23.400 --> 28:25.000] which is why that number is lower. [28:25.220 --> 28:28.840] And then this is the number of registered domains that are active. [28:29.060 --> 28:31.000] So no matter how you slice it, [28:31.000 --> 28:35.460] basically Let's Encrypt is now the largest certificate authority in the world. [28:35.460 --> 28:40.360] And so we are basically a fundamental part of encrypting the Internet, [28:40.360 --> 28:41.760] which I think is pretty awesome. [28:42.200 --> 28:46.280] And if you look, I think we had something to do with this upward trend. [28:46.280 --> 28:49.560] Now, to be clear, Let's Encrypt didn't single-handedly make this trend [28:49.560 --> 28:54.700] go from 30% encryption to, at the beginning of 2019, [28:54.700 --> 28:56.940] almost 80% encrypted page loads. [28:56.940 --> 28:58.040] There were other things. [28:58.040 --> 28:59.860] The browsers definitely helped. [28:59.860 --> 29:03.460] When Google and Firefox decided to say, [29:03.460 --> 29:06.120] we're going to work pages as insecure instead of secure, [29:06.120 --> 29:10.020] so that people start feeling creeped out when they're using an HTTP page, [29:10.020 --> 29:11.240] that definitely helped. [29:11.240 --> 29:13.840] Because now sysadmins are like, well, crap, [29:13.840 --> 29:17.660] I've got to upgrade just so my website doesn't look shady. [29:20.080 --> 29:22.060] Other things that look good, [29:22.060 --> 29:25.060] HTTP2 is going to be encrypted by default, [29:25.060 --> 29:28.420] and that is the only way it will be supported by all of the major browsers. [29:29.300 --> 29:31.640] So if you upgrade to HTTP2, [29:31.640 --> 29:34.040] the answer is, everything is going to be encrypted. [29:35.420 --> 29:36.520] But there's more. [29:37.220 --> 29:40.560] EFF is not satisfied with just the web. [29:40.680 --> 29:41.900] The web is not enough. [29:41.900 --> 29:44.460] There are other things that we want to encrypt. [29:45.540 --> 29:48.360] And so for the last 20 minutes of this talk, [29:48.360 --> 29:50.400] I'm going to be talking about a couple of other things [29:50.400 --> 29:52.480] that we really want to see get encrypted. [29:54.120 --> 29:58.720] So, in order, they are TLS, SNI, and I'll explain what all of these are, [29:58.720 --> 30:01.260] encrypted DNS, and start TLS. [30:01.920 --> 30:04.180] So, SNI. [30:04.420 --> 30:06.580] So this is a weird quirk, [30:06.580 --> 30:10.960] and all credit due to CloudFlare for making this awesome image, [30:10.960 --> 30:13.760] which I am using as fair use, because I work at EFF, [30:13.760 --> 30:15.000] and I know what that means. [30:16.500 --> 30:20.380] When you go to an HTTPS page, there is still information being leaked. [30:20.380 --> 30:22.860] And in particular, I know it's really tiny to see, [30:22.860 --> 30:26.880] but, so this is the website you're going to visit. [30:26.880 --> 30:32.080] When you send the initial connection to that web server, [30:32.080 --> 30:33.240] you have to tell it, [30:33.240 --> 30:35.280] this is the domain name I'm trying to visit, [30:35.280 --> 30:37.880] and that has to be sent in the clear at the moment. [30:38.340 --> 30:39.800] And so that gets leaked. [30:39.820 --> 30:41.640] The actual page you're visiting, [30:41.640 --> 30:47.880] so if you're visiting example.com slash index.html, [30:47.880 --> 30:52.020] the index.html gets obfuscated, but example.com gets leaked. [30:52.020 --> 30:55.820] And in particular, if this is sitting on a CDN, [30:55.820 --> 31:00.180] then that's telling the adversary which domain you're visiting. [31:00.180 --> 31:01.580] Because it could have been example.com, [31:01.580 --> 31:04.400] it could have been EFF.org, if they're all on the same CDN. [31:04.400 --> 31:06.020] But now the adversary knows. [31:07.240 --> 31:09.040] And so they can see that. [31:09.620 --> 31:15.200] And then, again, after that, everything is sent encrypted, [31:15.200 --> 31:18.340] but not until the adversary, someone listening on the wire, [31:18.340 --> 31:19.780] can know what domain you visited. [31:20.080 --> 31:22.860] So the solution? Encrypt the damn thing! [31:22.860 --> 31:26.940] So encrypted SNI... oh, I should mention. [31:26.940 --> 31:29.020] SNI stands for server name indication. [31:29.020 --> 31:32.800] It indicates to the server the domain name that you're trying to visit. [31:33.260 --> 31:35.380] So the solution is to encrypt it. [31:35.780 --> 31:40.080] And so there is now a RFC out there. [31:40.700 --> 31:43.040] It's still a bit in flux. [31:43.400 --> 31:48.220] But you can now essentially send that server name [31:48.220 --> 31:51.760] in an encrypted way by getting a certificate ahead of time. [31:51.760 --> 31:56.920] And so now the adversary cannot tell what domain you're visiting. [31:57.340 --> 31:59.980] So great. But what about this side over here? [31:59.980 --> 32:01.640] I've been pointing over at this side. [32:01.640 --> 32:04.500] I've conveniently ignored the DNS side of things. [32:04.620 --> 32:07.400] That is still going to leak the domain name you're visiting. [32:07.400 --> 32:10.080] Because DNS, by default, is sent in the clear. [32:10.080 --> 32:11.660] It's an unencrypted protocol. [32:11.680 --> 32:16.000] And again, if an adversary is listening in, they can see that. [32:16.360 --> 32:19.920] So let's just encrypt all of it. Let's encrypt the DNS, too. [32:20.680 --> 32:22.760] So there are currently two different protocols [32:22.760 --> 32:24.640] that are competing for encrypted DNS. [32:24.660 --> 32:28.760] One is called DNS over HTTPS, and it's exactly what you think. [32:29.020 --> 32:33.780] It sets up an HTTPS connection and then makes a DNS query over it. [32:33.780 --> 32:37.060] And the other is DNS over TLS, which also is exactly what you think. [32:37.060 --> 32:39.660] It sets up a TLS connection, but doesn't build the stack [32:39.660 --> 32:40.720] all the way up to HTTPS. [32:40.720 --> 32:43.040] It just sends the DNS request over TLS. [32:43.480 --> 32:45.360] And they have some different pros and cons. [32:46.120 --> 32:50.860] DNS over HTTPS, it's harder for censorship-prone regimes to censor. [32:50.860 --> 32:52.980] And the reason is, it looks like HTTPS traffic. [32:52.980 --> 32:56.720] Unless you start doing a serious traffic analysis, [32:56.720 --> 33:00.020] it just looks like something going over port 443. [33:00.020 --> 33:02.120] And so the only way to censor it [33:02.120 --> 33:05.060] is to block all of the HTTPS traffic. [33:06.220 --> 33:08.600] The downside, it's harder for network operators [33:08.600 --> 33:10.420] to monitor for malicious activity [33:10.420 --> 33:12.960] because it looks just like all other HTTPS traffic. [33:12.960 --> 33:14.580] And so if there's malware in your network [33:14.580 --> 33:18.160] and it's making DNS queries over HTTPS, [33:18.160 --> 33:20.100] it's going to be very difficult for you to tell that [33:20.100 --> 33:22.160] versus other HTTPS traffic. [33:22.640 --> 33:27.160] And it's basically the inverse for DNS over TLS. [33:29.140 --> 33:32.020] EFF does not have a strong position on either of these. [33:32.020 --> 33:33.960] We just want to get DNS encrypted. [33:34.140 --> 33:36.360] So if you have a strong position on either of these, [33:36.360 --> 33:37.320] come tell me. [33:37.320 --> 33:40.040] I won't promise I will be fully convinced, [33:40.040 --> 33:43.800] but I am open to hearing good arguments for either side. [33:43.940 --> 33:47.120] Either way, this is the future. [33:47.120 --> 33:49.140] Encrypted DNS is the future. [33:49.320 --> 33:52.420] And we're going to see, we believe, [33:52.420 --> 33:56.060] ISPs and also other providers, [33:56.060 --> 33:59.100] DNS providers, move towards encrypted DNS. [34:00.340 --> 34:02.400] And in fact, EFF is going to do [34:02.400 --> 34:04.760] another encrypting the net scorecard before too long [34:04.760 --> 34:07.040] and both of these things are going to be on it. [34:07.240 --> 34:09.340] Does your website support ESNI? [34:09.340 --> 34:12.480] And if you're a DNS provider, do you support DOH or DOT? [34:13.260 --> 34:14.660] Don't ask me when. [34:15.820 --> 34:18.700] It will happen in the impending future. [34:20.180 --> 34:22.060] But certainly if you work for a company, [34:22.060 --> 34:24.060] you should be thinking about these sorts of things. [34:24.300 --> 34:26.400] Certainly if you work for a company that will get on EFF [34:26.400 --> 34:29.680] encrypting the net scorecard, it's coming. [34:31.140 --> 34:32.620] What about e-mail? [34:32.620 --> 34:35.120] So far I've been talking mostly about web stuff. [34:35.120 --> 34:37.540] DNS supports the web. [34:37.900 --> 34:41.580] E-mail is the cockroach that will not die. [34:41.940 --> 34:46.020] When the singularity has come and the hive mind, [34:46.020 --> 34:47.280] as we are all part of the hive mind, [34:47.280 --> 34:49.840] the hive mind will still communicate with itself via [34:50.240 --> 34:52.660] e-mail because e-mail will not die. [34:53.400 --> 34:55.240] So we need to fix e-mail. [34:55.240 --> 35:00.160] So the way e-mail works is you're on some client, [35:00.160 --> 35:03.780] either you're on Gmail's webmail client or you've got [35:03.780 --> 35:05.060] Thunderbird or something. [35:05.060 --> 35:07.540] And when you're communicating to your e-mail server, [35:07.540 --> 35:08.880] it's probably encrypted. [35:09.160 --> 35:13.140] And then when your friend is reading their e-mail again, [35:13.140 --> 35:15.560] they're talking to their e-mail server, it's probably encrypted. [35:15.740 --> 35:18.920] But there's this thing in the middle between e-mail servers [35:19.560 --> 35:21.400] that may or may not be encrypted. [35:21.400 --> 35:24.480] And that's an issue because that is a point where an [35:24.480 --> 35:26.680] adversary could listen in on e-mail. [35:27.760 --> 35:31.160] And so there's this protocol called start TLS which is meant [35:31.160 --> 35:32.340] to solve this. [35:32.840 --> 35:38.100] And the way it works is essentially what happens is when [35:38.100 --> 35:41.760] these two mail servers are talking to each other, [35:41.760 --> 35:45.200] the first one will say, hey, do you support start TLS? [35:45.200 --> 35:46.760] Do you support TLS basically? [35:46.760 --> 35:48.740] And then the other one will say, sure. [35:48.740 --> 35:51.360] And then they'll say, okay, great, I'm going to set up a TLS [35:51.360 --> 35:53.180] connection to you and everything will be encrypted. [35:53.480 --> 35:56.200] The problem is that first message is sent in the clear. [35:56.560 --> 36:00.380] And so if there's a man in the middle attack, when this first [36:00.380 --> 36:05.420] server tries to connect, Google will say, yeah, I support TLS. [36:05.420 --> 36:06.420] Let's do this encrypted. [36:06.420 --> 36:08.580] But the man in the middle will just strip that right out. [36:09.360 --> 36:12.220] And the first mail server has no way of knowing that that's [36:12.220 --> 36:14.400] happened because all of this was sent in the clear. [36:14.400 --> 36:15.680] There's no authentication. [36:15.680 --> 36:16.660] There's nothing. [36:16.660 --> 36:20.300] And so it's trivially simple to strip that out. [36:20.620 --> 36:21.940] So that's a problem. [36:23.620 --> 36:30.760] Additionally, so the other issue is that many mail servers, [36:30.760 --> 36:32.740] even if they do support start TLS, [36:32.740 --> 36:36.320] they're using self-signed certificates for that TLS [36:36.320 --> 36:40.060] connection, which means that nobody on this end is ever [36:40.060 --> 36:43.260] checking the authenticity and verifying the certificate. [36:43.260 --> 36:45.620] They're not trying to say, does this chain up to a valid [36:45.620 --> 36:48.120] certificate authority, to a root certificate? [36:48.840 --> 36:52.480] And so again, an attacker can sit in the middle and provide [36:52.480 --> 36:55.540] their own self-signed certificate, and the originating [36:55.540 --> 36:58.080] mail server sending the mail is going to be none the wiser. [36:58.260 --> 37:00.700] And actually, since on this side they're not checking the [37:00.700 --> 37:03.440] certificate either, Google isn't going to be any the wiser. [37:03.640 --> 37:07.220] And so both of these mail servers will think, oh, [37:07.220 --> 37:09.160] everything was fine, the connection was encrypted. [37:09.160 --> 37:11.900] But in fact, there was an attacker in the middle who was [37:12.580 --> 37:15.140] encrypting traffic to Google, decrypting it, [37:15.140 --> 37:18.080] re-encrypting it to EFF, EFF would send traffic, [37:18.080 --> 37:21.400] and then they'd decrypt it, re-encrypt it, et cetera. [37:21.400 --> 37:24.500] So it's, again, a really big deal. [37:25.300 --> 37:27.080] And this isn't theoretical. [37:27.620 --> 37:32.220] 20% of the Alexa top million domains that support [37:32.220 --> 37:35.200] connections, incoming email connections, [37:35.200 --> 37:36.720] don't use start TLS. [37:37.220 --> 37:40.520] 40% of them present invalid certificates. [37:41.080 --> 37:44.100] And I don't know what the hell is going on in Tunisia, [37:44.100 --> 37:47.840] but 96% of the traffic is stripped of those [37:47.840 --> 37:49.000] start TLS headers. [37:49.000 --> 37:51.940] So someone is actually going in there and removing the start [37:51.940 --> 37:54.940] TLS header and preventing the encryption. [37:55.720 --> 37:58.080] Also, what the hell is going on? [37:58.080 --> 38:01.100] Like, you know, maybe I understand that a lot of these [38:01.100 --> 38:05.460] places are in, you know, like Uzbekistan. [38:05.460 --> 38:08.180] Maybe I don't expect Uzbekistan to have the best security on the [38:08.180 --> 38:08.740] network. [38:08.740 --> 38:10.400] What the hell is going on in Denmark? [38:11.020 --> 38:14.680] Like, 4% of traffic of the TLS is being stripped. [38:14.680 --> 38:16.700] Also, this was in 2015, I should note. [38:16.700 --> 38:19.140] So it can be a little bit out of date, but it's definitely [38:19.140 --> 38:19.900] happening. [38:21.860 --> 38:24.480] So trivial downgrade attacks, trivial impersonation attacks. [38:24.480 --> 38:30.100] The solution is a new specification called MTA-STS, [38:30.100 --> 38:36.100] which stands for Mail Transport Agent Strict Transport Security, [38:36.100 --> 38:39.460] which is basically a... well, let's get into it. [38:39.740 --> 38:41.900] It's a way for a mail server to say, [38:41.900 --> 38:44.240] always use TLS to connect to me. [38:45.380 --> 38:47.800] So the way it works is say I've got... [38:48.320 --> 38:51.860] I use EFF, and I'm trying to send mail to somebody in Google. [38:53.100 --> 38:57.400] So first, my mail goes to the EFF mail server, [38:57.400 --> 38:58.820] and then it's trying to figure out what do I do with this. [38:58.820 --> 39:00.080] So it goes to the DNS provider. [39:00.080 --> 39:00.540] And it goes to the DNS provider and says, [39:00.540 --> 39:06.720] hey, does gmail.com have a particular text record in its [39:06.720 --> 39:11.620] DNS corresponding to this MTA-STS field? [39:12.020 --> 39:15.100] And then presumably Google has already set this up ahead of [39:15.100 --> 39:15.620] time. [39:15.620 --> 39:18.280] And it says, yes, here's this record. [39:18.660 --> 39:22.300] And the record points to an HTTPS address. [39:23.180 --> 39:28.740] The HTTPS address hosts gmail's MTA-STS policy. [39:28.740 --> 39:30.060] The policy is basically just saying, [39:30.060 --> 39:32.060] here's a text document which says, [39:32.060 --> 39:34.820] these are the servers that you should be... [39:34.820 --> 39:36.860] If you're trying to send mail to gmail.com, [39:36.860 --> 39:41.420] these are the actual MX addresses that will answer for that. [39:41.500 --> 39:44.760] Also, you can be in testing or enforced mode. [39:44.760 --> 39:47.560] If you want to make sure your configuration is working before [39:47.560 --> 39:49.900] you start rejecting email and mass, [39:49.900 --> 39:51.580] you can put it in testing mode. [39:51.580 --> 39:56.760] And that way, even if things don't check out with MTA-STS, [39:56.760 --> 40:00.280] in testing mode, the sending mail server is still supposed to [40:00.280 --> 40:01.340] send the email. [40:01.340 --> 40:05.120] It will post a log to you saying there were these issues, [40:05.120 --> 40:07.380] but you won't start getting mail rejected. [40:09.340 --> 40:13.320] So this web server says, okay, here's the MTA-STS policy. [40:13.720 --> 40:16.640] And then I go to gmail and say, [40:16.640 --> 40:18.240] let's start a TLS connection. [40:18.580 --> 40:20.740] And then gmail says, great. [40:20.980 --> 40:23.080] And then you get your TLS connection. [40:24.700 --> 40:28.240] And so what would have happened if there was this attacker in the [40:28.240 --> 40:28.980] middle? [40:29.540 --> 40:33.160] Well, let's say that this destination was in gmail.com's [40:33.160 --> 40:34.440] MTA-STS policy. [40:35.180 --> 40:37.420] Let's just assume it's gmail.com. [40:39.540 --> 40:42.520] Then essentially what will happen is, [40:42.520 --> 40:44.680] I will try to start the TLS connection. [40:45.100 --> 40:48.180] The attacker will strip out that start TLS header. [40:48.180 --> 40:50.660] And then I'll say, holy crap, something's going on. [40:52.080 --> 40:55.260] According to gmail's policy, it's supposed to be using TLS. [40:55.260 --> 40:56.640] It's supposed to be encrypted. [40:56.800 --> 40:59.920] So I'm not going to send the e-mail if it's in enforced mode. [40:59.920 --> 41:01.820] I'll still send the e-mail if it's in testing mode. [41:01.820 --> 41:08.160] But either way, the other part of the policy is basically a [41:08.720 --> 41:09.620] reporting mechanism. [41:09.620 --> 41:12.840] You can either send the report over e-mail or post it to a [41:12.840 --> 41:14.360] specific URL. [41:14.360 --> 41:18.540] But I can essentially communicate to gmail that something shady [41:18.540 --> 41:21.640] went on, so either you didn't get the e-mail or I still sent [41:21.640 --> 41:23.500] it to you, but somebody was trying to strip away this [41:23.500 --> 41:24.240] encryption. [41:25.500 --> 41:28.720] So that's great. How do we actually get this out in the wild? [41:29.060 --> 41:31.100] How do we actually make this happen? [41:31.660 --> 41:34.920] Well, we started a project called start TLS everywhere. [41:35.080 --> 41:37.440] And the goal of the start TLS everywhere project is to promote [41:37.440 --> 41:41.160] the spec, get mail servers to use it. [41:42.420 --> 41:45.520] It will also maintain a start TLS policy list. [41:45.520 --> 41:48.840] So as you probably noticed, there is this potential still [41:48.840 --> 41:53.940] for a downgrade attack if a attacker can intercept your DNS [41:53.940 --> 41:55.120] requests. [41:55.200 --> 41:58.140] And basically say, you know, we go back to this point right [41:58.140 --> 41:59.020] here. [41:59.940 --> 42:03.940] And say, does gmail have a MTSTS text record? [42:03.940 --> 42:07.820] And if they can intercept that first request and say no, then I [42:07.820 --> 42:10.460] will think, oh, gmail doesn't support MTSTS. [42:10.540 --> 42:13.780] And so what the start TLS everywhere policy or the start [42:13.780 --> 42:17.660] TLS policy list is, is it is a preloaded list that you can [42:17.660 --> 42:20.280] download from a different channel. [42:20.340 --> 42:23.080] It's basically an out-of-band way to get a list of websites [42:23.080 --> 42:25.100] that support MTSTS. [42:25.380 --> 42:27.900] And so now an attacker would not only have to intercept your [42:27.900 --> 42:32.100] DNS, they would also have to basically block your ability to [42:32.100 --> 42:33.880] connect to EFF's website. [42:33.900 --> 42:36.920] And if that's happening, then probably something shady is going [42:36.920 --> 42:39.240] on if you can't connect to EFF's website. [42:39.900 --> 42:41.980] We also want to lower the barriers to entry. [42:41.980 --> 42:44.620] It's really hard to run a secure mail server in the same way it [42:44.620 --> 42:47.020] was hard to run a secure web server. [42:48.400 --> 42:51.620] So in terms of promoting MTSTS adoption, there are a couple [42:51.620 --> 42:52.420] steps. [42:52.840 --> 42:55.400] First, we have to make sure that mail servers actually support [42:55.400 --> 42:56.360] start TLS. [42:57.360 --> 42:59.920] Then we have to make sure mail servers can get certificates. [43:00.480 --> 43:02.940] We have to make it easy for sysadmins to receive those [43:02.940 --> 43:05.500] failure reports because no sysadmin is going to set this up [43:05.500 --> 43:07.740] and be like, man, I don't care if e-mail isn't getting through [43:07.740 --> 43:09.900] anymore because if the e-mail isn't getting through anymore, [43:09.900 --> 43:13.100] you get fired and then you don't have a job and then it doesn't [43:13.100 --> 43:14.940] matter what great security things you did. [43:15.880 --> 43:18.400] So we want to make it easy for sysadmins not only to receive [43:18.400 --> 43:22.040] those failure reports but also to post them to other mail [43:22.040 --> 43:24.620] servers when you are sending the mail. [43:25.480 --> 43:28.220] And also make sure the MTS software finally knows how to [43:28.220 --> 43:31.580] check for and use MTS policies. [43:32.700 --> 43:35.540] So there's actually quite a few steps to make MTS work. [43:35.540 --> 43:36.500] So how are we going to do this? [43:36.500 --> 43:43.340] Well, step one is the good news is mail servers already all [43:43.340 --> 43:44.700] support start TLS. [43:44.920 --> 43:47.860] Maybe they are not configured to use it but they all support it. [43:48.940 --> 43:51.280] Step two, getting a certificate. [43:51.520 --> 43:53.860] Well, the good news is we happen to already have some software [43:53.860 --> 43:55.660] you can use to get a certificate. [43:55.660 --> 43:59.840] So you can use certbot and we have guides for how to use [43:59.840 --> 44:04.660] certbot to get a certificate for postfix, XM, send mail. [44:04.660 --> 44:08.140] You can check out all of these if you run a mail server and it [44:08.140 --> 44:09.260] will walk you through. [44:09.260 --> 44:10.840] This is how you get a certificate. [44:10.860 --> 44:12.400] This is how you install it. [44:12.700 --> 44:16.300] It is not quite yet just one click and it installs it for [44:16.300 --> 44:16.940] you. [44:16.940 --> 44:18.860] That was actually due to a lot of feedback we got from [44:18.860 --> 44:23.200] sysadmins who told us my mail system set up is so convoluted [44:23.200 --> 44:24.720] I don't want you touching it. [44:24.720 --> 44:26.340] Just tell me where to put the certificate. [44:26.340 --> 44:27.780] I will take over from there. [44:28.160 --> 44:29.740] That is what we did. [44:29.880 --> 44:31.680] Here is how you get the certificate. [44:31.720 --> 44:33.320] You put it wherever you want. [44:33.640 --> 44:36.820] If you are using a default install, here is where you put [44:36.820 --> 44:37.400] it. [44:38.940 --> 44:41.160] That was supposed to be a green check mark again. [44:41.160 --> 44:42.260] Sorry about the fonts. [44:43.220 --> 44:45.520] Step three, receiving failure reports. [44:45.960 --> 44:52.600] This is the RFC for MTSDF and in particular it is a [44:52.600 --> 44:54.700] complimentary RFC for the reporting part. [44:54.700 --> 44:57.940] The report may be delivered by e-mail. [44:58.060 --> 45:01.240] The good news is if you have a mail server, it can send [45:01.420 --> 45:01.960] e-mail. [45:02.720 --> 45:04.940] And it can also receive e-mail. [45:05.080 --> 45:09.200] All we have to do is basically set it up so that when your [45:09.200 --> 45:13.560] mail server encounters some sort of error trying to connect, [45:13.560 --> 45:16.420] we just have to set up so it can send a report over e-mail. [45:16.420 --> 45:18.800] We don't have to create a new web server for you to receive [45:20.220 --> 45:22.500] reports via post or anything like that. [45:22.500 --> 45:23.760] We are just going to say do it over e-mail. [45:23.760 --> 45:24.460] It is fine. [45:26.300 --> 45:28.360] Posting MTSDS records and policies. [45:28.360 --> 45:32.080] This is like how do I actually tell the world that my server [45:32.080 --> 45:33.700] supports MTSDS? [45:34.140 --> 45:37.560] To do this, this is something we are still working on. [45:37.700 --> 45:41.900] Basically on the start TLS everywhere website, we are going [45:41.900 --> 45:44.780] to have basically a form you can fill out where you put in the [45:44.780 --> 45:49.020] details of like this is my MX domain. [45:49.020 --> 45:51.540] This is the actual domain for e-mails. [45:51.580 --> 45:53.840] This is where I am going to post my policy. [45:53.840 --> 45:57.460] And then it will turn all of that into a valid MTSDS policy [45:57.460 --> 46:00.600] and tell you what DNS records to put it in. [46:00.700 --> 46:02.000] We are working on that. [46:02.000 --> 46:03.960] It is basically a web tool you can use to generate the [46:03.960 --> 46:06.900] policies and guide you through how to set it up. [46:07.120 --> 46:10.720] It is not quite ready yet, but it is something we are working [46:10.720 --> 46:11.500] on. [46:12.380 --> 46:16.420] And then last but not least is getting MTAs to actually use [46:16.420 --> 46:17.760] MTSDS. [46:17.760 --> 46:21.700] This is actually getting the actual mail transfer software. [46:21.700 --> 46:24.620] This is getting DoveCod or XM or SendMail to actually pay [46:24.620 --> 46:29.260] attention to request the policy now that you have it posted. [46:29.260 --> 46:30.880] And then to know how to use it. [46:30.880 --> 46:31.860] What are the options here? [46:31.860 --> 46:36.820] One, we could submit patches directly to SendMail and XM, [46:36.820 --> 46:37.620] et cetera. [46:38.660 --> 46:42.740] But sysadmins upgrade their MTA about once every lifetime. [46:43.620 --> 46:47.100] There are tons of really obsolete MTA software out there [46:47.100 --> 46:47.880] running. [46:48.540 --> 46:51.680] And so even if we got patches in, it would take forever to [46:51.680 --> 46:55.180] finally upgrade and actually get that in the wild. [46:56.520 --> 46:59.340] We could write a middleware application that sits in front [46:59.340 --> 47:00.280] of MTAs. [47:00.280 --> 47:02.980] And so the MTA is oblivious and then it is connecting to this [47:02.980 --> 47:05.840] middleware application that is then paying attention to all [47:05.840 --> 47:09.340] the MTSDS stuff and otherwise routing things to and back [47:09.340 --> 47:10.520] through that MTA. [47:11.000 --> 47:12.680] It is one more thing to administer. [47:12.680 --> 47:15.560] It adds some complexity, but it also reduces other complexity [47:15.560 --> 47:18.820] that the MTA doesn't have to know about start TLS or the [47:19.460 --> 47:20.420] MTSDS. [47:20.980 --> 47:22.560] Maybe there is another option. [47:23.100 --> 47:24.780] If you have an idea, come talk to me. [47:24.780 --> 47:27.180] This is a problem we are still trying to solve. [47:27.620 --> 47:29.280] We are still trying to figure this one out. [47:30.980 --> 47:34.200] So we have our work cut out for us, but we think the future [47:34.200 --> 47:35.080] looks bright. [47:36.020 --> 47:39.460] We have come a long way in ten years from just a little [47:39.460 --> 47:42.300] browser extension to an encrypting the web report to [47:42.300 --> 47:46.160] actually launching a freaking certificate authority and being [47:46.160 --> 47:49.000] the biggest certificate authority in the world, launching [47:49.000 --> 47:52.200] the start TLS everywhere project, and we are really [47:52.200 --> 47:54.020] excited to see where we go from here. [47:54.800 --> 47:57.180] Before I finish up, credit where credit is due. [47:57.180 --> 48:00.160] This is the work of a tremendous number of people who have [48:00.160 --> 48:03.020] worked at EFF, but also at other places. [48:03.140 --> 48:05.140] People have worked at Tor project. [48:05.140 --> 48:07.560] It's just everywhere when we launched was a joint project [48:07.560 --> 48:08.500] with Tor. [48:09.120 --> 48:13.860] A bunch of people have worked on Let's Encrypt and Certbot. [48:13.940 --> 48:16.160] Let's Encrypt, I should say, wasn't just an EFF thing. [48:16.160 --> 48:20.580] We worked with Mozilla and the University of Michigan to [48:20.580 --> 48:23.180] initially get it off the ground, and now there's a whole host [48:23.180 --> 48:25.780] of sponsors that keep it alive. [48:26.420 --> 48:29.520] If you don't donate to EFF, you should donate to Let's [48:29.520 --> 48:30.340] Encrypt. [48:31.660 --> 48:34.760] I think you should donate to EFF, but you should also [48:34.760 --> 48:36.000] donate to Let's Encrypt. [48:36.660 --> 48:39.080] So credit where credit is due, a bunch of people have [48:39.080 --> 48:40.500] contributed to this work. [48:41.180 --> 48:44.060] And the reason we have been able to do all this amazing work [48:44.060 --> 48:45.980] is thanks to members like you. [48:46.220 --> 48:49.660] Your public support directly, as almost all of you know, EFF [48:49.660 --> 48:53.660] is a member-supported nonprofit, directly translates into this [48:53.660 --> 48:55.040] sort of technical work. [48:55.040 --> 49:00.940] We couldn't have a team of 15 or so technologists on staff to [49:00.940 --> 49:03.820] do this work without your support. [49:03.820 --> 49:05.780] And to be clear, this is a... [49:05.780 --> 49:08.340] I don't know if our 2018 chart is up yet. [49:08.340 --> 49:10.840] This shows you where our money comes from. [49:11.320 --> 49:15.140] And in particular, these three things right here are all [49:15.140 --> 49:16.380] individual donations. [49:16.380 --> 49:19.900] Whether it's individual or like individual but it's employee [49:19.900 --> 49:22.620] matching, that's basically individual. [49:22.620 --> 49:25.380] It's not like Google gets to decide where their employees [49:25.380 --> 49:26.320] choose to donate. [49:26.320 --> 49:27.520] They just match it. [49:28.900 --> 49:31.600] This part right here, this is sheer luck. [49:31.640 --> 49:34.260] This is when we get an award in the courts. [49:34.260 --> 49:36.480] And this is not when we're in a lawsuit. [49:36.480 --> 49:37.580] Sorry about that. [49:37.580 --> 49:41.540] This is when another entity has filed a lawsuit and the answer [49:41.540 --> 49:45.000] is instead of giving a dollar to every person in a class, let's [49:45.000 --> 49:47.540] give it to an entity that is going to do some good for [49:47.540 --> 49:49.060] privacy or security. [49:49.140 --> 49:51.780] And we can't control that. [49:51.780 --> 49:53.560] We can't rely on that. [49:53.780 --> 49:57.460] And this is us begging actual foundations for money. [49:57.520 --> 49:59.900] Even though we have foundation in the name, we don't give out [49:59.900 --> 50:00.220] money. [50:00.220 --> 50:03.120] We take in money and turn it into an awesome project. [50:03.120 --> 50:08.660] So as you can see, the majority of it is from individual members. [50:09.580 --> 50:13.220] So on behalf of everyone at EFF, thank you, DEF CON, for your [50:13.220 --> 50:14.480] tremendous support over the years. [50:14.480 --> 50:16.740] Thank you for making work like this possible. [50:16.860 --> 50:19.100] And I'm happy to take any questions. [50:36.680 --> 50:41.700] We don't, EFF doesn't personally or like as EFF work closely with [50:41.700 --> 50:44.580] Linux foundation, but as you said, Linux foundation does [50:44.580 --> 50:49.060] essentially do the administration and overhead for ISR [50:49.060 --> 50:52.420] G, the organization that actually runs Let's Encrypt, which [50:52.420 --> 50:53.480] is pretty awesome. [50:53.480 --> 50:56.660] That way they don't have to hire an HR person or accountants or [50:56.660 --> 50:57.840] stuff like that. [50:58.500 --> 51:00.900] They can focus on Let's Encrypt. [51:01.060 --> 51:02.020] Yep. [51:02.020 --> 51:02.760] Yeah. [51:09.930 --> 51:11.590] Not yet. [51:11.590 --> 51:13.930] Are you talking about... [51:18.080 --> 51:23.840] So I'm pretty sure ES and I is a different thing, I think. [51:23.880 --> 51:25.700] I would have to go double check. [51:51.300 --> 51:52.500] Yep. [52:04.980 --> 52:07.780] We have seen that sort of argument. [52:07.780 --> 52:10.860] From our perspective, the... [52:10.860 --> 52:16.860] We feel like the right tradeoff is that for given that... [52:17.720 --> 52:21.180] I guess the way I would put it is normal users don't have the [52:21.180 --> 52:25.020] same resources to invest in making sure that their traffic is [52:25.020 --> 52:28.580] encrypted as a corporation does. [52:28.580 --> 52:31.180] And so we feel like the right tradeoff is to get... [52:31.660 --> 52:34.940] Basically get as much encryption as possible and then if a [52:34.940 --> 52:37.680] corporation does need to do that sort of TLS termination, the [52:37.680 --> 52:39.200] answer is... [52:39.200 --> 52:43.300] It's kind of a side effect of making the web more secure for [52:43.300 --> 52:44.140] everyone, I guess. [52:44.560 --> 52:45.560] I definitely get it. [52:46.400 --> 52:47.000] Yeah. [52:47.000 --> 52:50.020] But it's true, yes. [52:51.160 --> 52:51.520] It does... [52:52.020 --> 52:54.020] Yeah. [52:53.440 --> 52:54.640] Yep. [52:55.620 --> 52:56.020] Yep. [52:56.020 --> 52:56.640] Absolutely. [52:58.160 --> 52:59.020] Yeah. [53:05.200 --> 53:05.960] Yeah. [53:05.960 --> 53:09.560] So in particular, this is... [53:09.560 --> 53:10.600] That's an interesting one. [53:10.600 --> 53:13.400] So I can think of two cases. [53:13.400 --> 53:19.340] One, cloudflare actually rolled out ESNI in south korea. [53:19.340 --> 53:23.080] I think it was either earlier this year or late last year. [53:23.080 --> 53:27.600] And basically ISPs in south korea, I believe at the [53:27.600 --> 53:30.840] direction of the government, just started blocking ESNI. [53:31.220 --> 53:33.700] Just straight up because they could no longer look at the [53:33.700 --> 53:37.220] domains that you were trying to connect to. [53:39.060 --> 53:39.560] Similarly... [53:40.200 --> 53:41.200] Related. [53:41.920 --> 53:47.440] About a month ago now, I think it was, an industry organization [53:47.440 --> 53:52.700] of ISPs in the united kingdom nominated of all organizations [53:53.940 --> 53:57.280] mozilla as their internet villain of the year. [53:57.280 --> 53:59.820] Because mozilla wants to push forward encrypted DNS. [53:59.820 --> 54:01.980] Now, to be fair, what mozilla... [54:01.980 --> 54:06.680] Because ISPs don't yet support encrypted DNS, what mozilla is [54:06.680 --> 54:10.940] thinking of doing is cloudflare has a centralized DNS server and [54:10.940 --> 54:12.640] they're supporting encrypted DNS. [54:13.500 --> 54:14.660] And so... [54:14.660 --> 54:16.680] It hasn't rolled out yet. [54:16.680 --> 54:18.920] And from my understanding, I think what mozilla is thinking [54:18.920 --> 54:21.000] about doing is if you're in the U.S. [54:21.000 --> 54:24.300] Where the privacy laws are crap, then they will turn that on by [54:24.740 --> 54:25.080] default. [54:25.080 --> 54:28.260] Because frankly, cloudflare has a better privacy policy than [54:28.260 --> 54:28.980] most U.S. [54:30.720 --> 54:31.440] ISPs. [54:31.940 --> 54:34.180] However, that's not true in europe or the united kingdom [54:34.180 --> 54:36.420] where there are actually decent privacy laws controlling what [54:36.420 --> 54:38.360] your ISP can do with your private data. [54:38.940 --> 54:42.480] And so they're thinking that it will be an opt-in there. [54:42.480 --> 54:46.700] But regardless, in the U.K., there is an obligation by the [54:46.700 --> 54:52.080] ISPs from the government to censor for all sorts of silly [54:52.080 --> 54:54.880] stuff, adult content, terrorist content, whatever. [54:54.880 --> 54:59.060] And because the ISPs, if you're using cloudflare's DNS in an [54:59.060 --> 55:03.000] encrypted way, could no longer do that censoring, they got [55:03.000 --> 55:06.860] really up in arms and they said, oh, my god, this is terrible. [55:06.860 --> 55:10.040] They later rolled it back once they realized that not everyone [55:10.040 --> 55:12.460] was against mozilla doing this encrypted DNS thing. [55:12.460 --> 55:16.980] But certainly in, you know, countries where there are, I [55:16.980 --> 55:19.940] would say is democratic rule of law, we are still seeing pushes [55:19.940 --> 55:21.440] for censorship. [55:21.440 --> 55:23.280] Or the ability to censor. [55:23.280 --> 55:27.480] And so that's not even touching places like China or Iran or [55:27.480 --> 55:28.980] something else like that. [55:29.840 --> 55:30.640] Yeah. [56:03.320 --> 56:07.740] So I think from my perspective, the way to do that, that is the [56:07.740 --> 56:10.280] way to, that's the destination. [56:10.280 --> 56:12.100] You have to get there slowly. [56:12.100 --> 56:14.640] Because if you do that immediately, people will just stop [56:14.640 --> 56:15.800] using your software. [56:16.300 --> 56:19.420] And it's just, it's just a sad, like, we won't stop using that [56:19.420 --> 56:19.760] software. [56:19.760 --> 56:21.380] Because we'll be like, what the fuck's going on? [56:21.380 --> 56:23.180] Someone's trying to intercept my traffic. [56:23.200 --> 56:29.880] But, you know, my nieces and nephews, my friends, they're [56:29.880 --> 56:32.280] just going to stop using that software and switch to something [56:32.280 --> 56:33.260] that works. [56:33.380 --> 56:36.500] And so the trick is, I feel like, to raise the bar slowly. [56:36.500 --> 56:39.600] And by raising it, basically it's kind of like this boiling [56:39.600 --> 56:40.380] frog approach. [56:40.380 --> 56:43.380] Until you get to the point where there is no longer anything [56:43.380 --> 56:44.440] else to switch to. [56:44.440 --> 56:45.960] Because everything is encrypted. [56:46.440 --> 56:47.120] Yeah. [56:52.720 --> 56:53.540] Acme protocol. [56:53.540 --> 56:54.120] Yep. [57:09.570 --> 57:11.150] So there's a couple things. [57:11.150 --> 57:14.130] One of the things that they're working on, I don't know if it's [57:14.130 --> 57:19.070] rolled out yet, is basically doing multibandage point [57:19.070 --> 57:20.190] verification. [57:20.330 --> 57:24.030] So that you would have to man in the middle, not just, you [57:24.030 --> 57:25.790] know, let's encrypt servers. [57:27.430 --> 57:29.750] Well, they're going to do it via Tor. [57:30.130 --> 57:33.210] So you would have to man in the middle a bunch of [57:33.210 --> 57:35.870] unpredictable Tor nodes as well. [57:36.170 --> 57:40.030] And so if they do like three or four of those from different [57:40.510 --> 57:43.770] exit nodes, you know, then that's a much, I mean, that [57:43.770 --> 57:44.450] raises the barrier. [57:44.450 --> 57:45.550] It's still possible, right? [57:45.550 --> 57:47.710] Like, you know, eventually, you know, someone who controls all [57:47.710 --> 57:49.570] the Internet traffic could man in the middle it. [57:56.240 --> 57:56.940] Yeah. [57:57.940 --> 57:58.700] Yeah. [57:59.360 --> 58:02.500] So that's, I was going to say, I think there was another [58:02.500 --> 58:02.820] thing. [58:02.820 --> 58:04.880] But that's the big one that they're working on. [58:04.880 --> 58:05.980] It's not there yet. [58:06.260 --> 58:09.180] The other thing is there's a thing called certificate [58:09.180 --> 58:09.960] transparency. [58:09.960 --> 58:11.460] I'm sure many of you have heard of it. [58:11.520 --> 58:15.200] But now let's encrypt logs all of its certificates to [58:15.200 --> 58:17.000] certificate transparency servers. [58:17.060 --> 58:21.640] And so if you run a domain, you can essentially log into [58:21.640 --> 58:24.360] these certificate transparency servers and say, did somebody [58:24.360 --> 58:26.740] issue a certificate or did let's encrypt issue a certificate [58:26.740 --> 58:27.940] from my domain? [58:28.180 --> 58:29.340] And was that me? [58:29.480 --> 58:31.840] If I don't, if I'm not using let's encrypt and that [58:31.840 --> 58:35.320] happened, or I am, but I go look in my server logs and [58:35.320 --> 58:38.480] certbot doesn't say recently renewed my certificate, [58:38.480 --> 58:39.860] something shady is going on. [58:39.860 --> 58:41.880] So that's detection, not mitigation. [58:41.960 --> 58:44.480] But detection is still helpful while we're working toward [58:44.480 --> 58:45.260] mitigation. [58:47.830 --> 58:48.530] All right. [58:48.530 --> 58:49.910] Thanks very much, everybody. [58:49.910 --> 58:50.090] Thank you. [58:50.090 --> 58:51.030] Thank you. [58:51.030 --> 58:51.990] Thank you. [58:51.990 --> 58:52.210] And thanks for coming.