WEBVTT

00:00.000 --> 00:00.560
This is Dr.

00:00.560 --> 00:01.460
Jeremy Galula.

00:01.460 --> 00:04.380
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:09.800
So I'm going to turn it over to him.

00:09.800 --> 00:11.340
Let's give him a great big round of applause.

00:11.720 --> 00:12.880
Thanks very much.

00:14.120 --> 00:17.980
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:24.320
So I'm not going to be talking about NSA spying.

00:24.320 --> 00:28.800
I am going to be talking, however, about NSA spying, 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:36.820
I'm amazed that there are more than like two of you in the audience at 10 a.m.

00:36.820 --> 00:37.880
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:47.500
So these are a team of lawyers.

00:47.500 --> 00:49.740
They're outside the United States Court of Appeals.

00:49.740 --> 00:50.600
And it's true.

00:50.600 --> 00:51.640
We have a lot of lawyers.

00:51.640 --> 00:52.500
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:14.840
We actually put together comments from Internet engineers, pioneers, and technologists 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:39.740
We have a bunch of technologists on staff at EFF who not only advise the lawyers, 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:00.140
There's also Privacy Badger.

02:00.140 --> 02:04.100
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:53.920
A technician from AT&T literally walked in EFF's front door one day and said, 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:57.000
So the fun fact is it disappeared because Congress, as soon as AT&T got sued, AT&T ran to Congress and said, 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:36.060
It's kind of hard to believe that just 10 years ago, Google, Facebook, Wikipedia, Twitter, 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:20.760
And what it does is when a website supports HTTPS, but it is not by default, 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:37.860
It will prevent any sort of man-in-the-middle style attacks, any SSL attacks, because it says, if that website is on my list of websites that support HTTPS, 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:08.140
So basically, mixed content is when you load a web page over HTTPS, but then it pulls in other resources over HTTP, so like images or JavaScript.

09:08.200 --> 09:20.160
And when it's pulling the other stuff over HTTP, that gives an attacker an opportunity to inject malicious scripts, basically, 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:42.800
Well, basically, someone else launched another tool, 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 --> 10:09.640
So FireSheep was yet another browser extension, but what it was designed to do was to listen if you were on an unsecured wireless network or if you're just connected to a wired LAN and it was just broadcasting packets, it would listen to the HTTP connections that other clients,

10:09.640 --> 10:18.460
other browsers were making, other computers, and it would say, hey, look, that one looks like a cookie, 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:28.200
And again, it was taking advantage of the fact that at the time, even log-in connections were not encrypted.

10:28.340 --> 10:39.700
So I could get on FireSheep, I could sit at a coffee shop, and I could basically become a log-in as any person who logged into Facebook at that coffee shop 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:49.700
So we were like, look, this is an active thing, this is an attack that can really happen, and we're protecting against it.

10:49.700 --> 10:50.420
Awesome.

10:51.420 --> 10:52.320
So great.

10:52.320 --> 10:52.840
Wonderful.

10:52.840 --> 10:53.820
We've solved the problem.

10:53.820 --> 10:54.700
We can go home.

10:54.700 --> 10:56.380
The NSA will stop surveilling.

10:57.000 --> 10:58.300
Sadly, no.

10:58.520 --> 11:00.200
That is not quite how life works.

11:00.200 --> 11:01.600
Everything was not awesome.

11:03.240 --> 11:09.500
Although we might have been able to protect many sites, not everyone's using HTTPS Everywhere, for one thing.

11:09.560 --> 11:15.800
We've got anywhere from 3 to 10 million users, depending on how you count.

11:15.800 --> 11:22.300
Fun fact, as a privacy organization, counting how many users you have is really difficult 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:37.960
So we said, all right, the real way to protect everyone is to get the actual companies to change.

11:37.960 --> 11:45.860
We can put out this browser extension, and smart people can use it, they can tell their friends, they can tell their family, they can tell their neighbors, but it's still not going to reach everybody.

11:46.140 --> 11:55.040
So we launched a HTTPS Now campaign, basically pressuring the companies, trying to shame them, 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:04.680
And it looks like I don't have all of the fonts on my computer, because those were supposed to be green checkboxes.

12:04.680 --> 12:10.620
That's what happens when you upgrade your operating system and don't check your slides to make sure that you've got the same fonts.

12:10.960 --> 12:15.440
But Facebook and Wikipedia still know default HTTPS, which is kind of ridiculous.

12:16.780 --> 12:23.260
So then, along came Edward Snowden, and I'm pretty sure everyone in here knows who Edward Snowden is.

12:24.220 --> 12:37.080
And so back in 2013, we got the Snowden leaks, which told us even more of, frankly, what EFF already knew, that the NSA was wiretapping the backbone of the Internet and sucking up innocent Americans' data without a warrant.

12:37.440 --> 12:48.260
Not only that, they were collecting phone records, they had this X-Keyscore program, which they would use to look through the data.

12:49.180 --> 12:50.700
And this is not good.

12:51.060 --> 12:56.720
This came out, and finally, the whole world started to realize, holy shit, this is really awful.

12:57.440 --> 13:11.160
And so we decided shortly after that to really turn up the pressure and put out an encrypting-the-web report that would just, in plain, I was going to say black and white, but I guess red and green, show the world, this is what the companies are doing.

13:11.160 --> 13:17.340
And if the company is getting undetermined or red Xs, 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:34.300
Because, obviously, today, most of this would be supports HTTPS, encrypts data center links, uses HTTP strict, etc.

13:35.760 --> 13:43.060
As we're going down memory lane, it's fun for me to note that some of these companies 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:23.560
Although we might have gotten the major websites encrypted, overall, the Internet was still not encrypted.

14:23.560 --> 14:25.540
So this is a chart from...

14:26.360 --> 14:35.980
this is actually courtesy of Mozilla, showing the percentage of page loads over a 14-day moving average that use HTTPS.

14:36.500 --> 14:41.980
And you can see, if it's tough to read the text in the back, 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 --> 15:00.460
As you can also see, the story is going to get better, 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:12.920
You log into a site like Quora, and you can just look at the packets.

15:12.920 --> 15:18.040
And I know that's really tiny text, but what that's showing is the username and password.

15:18.480 --> 15:25.440
You just get on Wireshark, you snip it, 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:50.640
Anyway, in particular to notice here, this is an HTTP page with a link to a sign-in page.

15:50.640 --> 15:56.820
And so an attacker could inject and basically redirect this sign-in to wherever they want.

15:57.000 --> 16:08.800
Because they could have intercepted this page while it was en route to you, said, I want to redirect this to some URL that's using some sort of homoglyphs and some shady...

16:08.800 --> 16:12.840
It will be some domain that looks kind of like Google, but it's actually ours.

16:12.840 --> 16:16.800
And so we'll get you to click that, you'll go to that domain, and you'll enter your Google credentials.

16:16.800 --> 16:24.060
And so even though Google's actual login is over HTTPS, 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:39.780
So the first reason that HTTPS wasn't ubiquitous was setting up TLS was tedious.

16:39.920 --> 16:48.560
Like, this is a page from DreamHost about how to set up HTTPS on DreamHost if you were hosted on their service.

16:48.860 --> 16:55.360
And it is just... even for an actual sysadmin, 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:16.680
There's all this... every time a new exploit or new vulnerability in some part, some cipher comes out or something like that, some configuration of TLS, unless you're a crypto expert, you're not going to understand this stuff.

17:17.100 --> 17:23.640
And not everyone who runs a website is a crypto expert, nor should we expect everyone who runs a website to be a crypto expert.

17:24.180 --> 17:29.800
We want to make the web easy to use both to access but also to put content up there.

17:31.980 --> 17:37.780
So, I mean, there are entire books written on how to set up TLS properly.

17:37.780 --> 17:50.340
And if you're like a mom and pop shop, you just want to put up your website so that people can see that you've got a restaurant or something, you don't have to read a freaking book to know how to set up your website securely.

17:51.720 --> 17:58.820
So, TLS wasn't ubiquitous because the one thing I also missed is it costs money most of the time.

17:59.040 --> 18:05.840
You have to pay a service, a certificate authority, 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:09.700
It was also tedious.

18:09.980 --> 18:11.400
It was also very hard.

18:11.400 --> 18:14.500
So, this makes me sad.

18:14.800 --> 18:19.980
But, what if we told you we could fix every single one of those problems?

18:20.440 --> 18:26.420
So, back in, I guess, around 2016, 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:38.580
I'm sorry, it wasn't even 2016.

18:38.580 --> 18:39.040
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:49.820
So, the certificate authority is the entity that issues certificates, 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 --> 19:05.040
And so, the goal of Let's Encrypt wasn't just to make sure that we could give everyone certificates, but it was to eliminate all of the obstacles 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:22.560
The answer, let's automate certificate issuance and make it free so that everyone can get a certificate and you don't have to follow a bunch of manual steps.

19:22.560 --> 19:27.380
So, you can type in one or two commands in the command line and just get your certificate.

19:27.380 --> 19:28.900
It will be set up.

19:29.720 --> 19:37.200
And the solution to this was we created an open protocol for requesting and getting a certificate 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:57.540
So, any server, any certificate authority can use this protocol to issue certificates.

19:57.780 --> 20:02.820
And in particular, fun fact, Let's Encrypt is no longer the only certificate authority using ACME.

20:02.980 --> 20:09.380
I believe... man, I'm forgetting which one.

20:09.620 --> 20:13.620
There's another major certificate authority that is now also using ACME.

20:13.620 --> 20:18.960
I forget if it's Komodo or the result of Komodo 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:33.100
The client is the thing that wants to get the certificate 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:48.980
A lot of you are probably thinking, wait a second, we can't just give out certificates willy-nilly because then I could request a certificate for Google.com and then I could spoof Google and scoop up everyone's Gmail passwords.

20:49.380 --> 20:57.600
And so the way it works is the ACME client tells the server, I want to search for example.com and here's the public key I want to put in that certificate.

20:58.020 --> 21:03.140
And then the server, again, this is the certificate authority, says, OK, that's great.

21:03.380 --> 21:04.680
Here's a nonce.

21:04.680 --> 21:11.940
Here's some random string and I want you to post it at example.com slash nonce and sign it with the corresponding private key.

21:12.140 --> 21:25.500
And so what that does is first, that verifies that if I can post it at example.com slash nonce, that pretty well establishes that I have control of that domain and the server 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:40.660
And if it can get that nonce over, 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:57.840
Another thing that we're looking at implementing, and if this is going over your head, don't worry about it, is doing this from multiple perspectives on the Internet so you can't just hijack one route.

21:58.500 --> 22:13.900
But basically, if the server can get that nonce, then it knows this machine I was talking to controls this domain and also can put stuff on the web, on port 80 for that domain.

22:14.040 --> 22:19.060
And so if that's enough, if it can do that, then it can do whatever it wants on that domain.

22:19.060 --> 22:19.700
So that's good enough.

22:19.700 --> 22:21.220
It obviously has control.

22:21.720 --> 22:24.540
And so the server will get that nonce.

22:25.360 --> 22:29.740
Of course, the web server will respond with the nonce and the signature.

22:29.980 --> 22:41.600
And then now the ACME server knows this web server controls the domain, can put content there, controls the public key because it signed that nonce with the private key.

22:41.600 --> 22:44.480
And so of course the ACME server can verify that.

22:44.700 --> 22:53.800
And so then it says signature checks out, so you control the public key, you control the server, you control the DNS, so here's your certificate.

22:54.400 --> 23:01.900
And so now in an automated way, this is all happening over the ACME protocol, you can get a certificate 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:15.940
So what we do is we created a client or an agent that basically gets it right.

23:15.940 --> 23:34.080
We created a piece of software you can use over the command line, very simple, that will not only use the ACME protocol to talk to the ACME server, get the certificate, but also if you're using Apache or NGINX, it will install the certificate and configure it for you.

23:34.080 --> 23:44.760
So you don't even have to think about like, where do I put it, how do I set this up, what cipher suite should I be using, it will use sensible defaults and do it for you.

23:45.560 --> 23:51.960
Again, it will tweak your existing web server to pass those challenges, so what I just showed you that back and forth was called a challenge.

23:51.960 --> 23:59.500
It will install the cert, it will tweak the security options, plus it's going to automate renewals, certificates expire.

23:59.740 --> 24:08.860
And in particular, since we're doing this in an automated fashion, what we decided was we wanted a very quick expiration 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:17.180
And nobody is going to always remember to renew their certificate, I guarantee you.

24:17.180 --> 24:22.260
So because computers are good at doing things on a schedule, we'll have the computer do it for you.

24:22.260 --> 24:27.160
We'll have your server automate the renewal and some of these security response tasks.

24:28.060 --> 24:30.080
So what kinds of automation happen?

24:30.080 --> 24:42.780
Well, like I said, easy ones, cipher tuning, if you're doing OCSP, OCSP stapling, you could also set up upgrade insecure for content security policies.

24:44.180 --> 24:59.540
There are some features where if you want to do redirect from HTTP to HTTPS by default, then you can tell this software, which is called Certbot, you can tell it, I've set that up on my server too, 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:19.640
So if you want to actually automatically rewrite all of the content on your web server to use HTTPS instead of HTTP, like if you've got hard-coded links, Certbot doesn't quite do that yet.

25:19.640 --> 25:30.080
That's a little bit harder, but it does support HSTS, which is a protocol that a web server can use to say, when you connect to me, always use HTTPS.

25:30.080 --> 25:35.880
It's kind of like the server's way of saying, use HTTPS everywhere, essentially.

25:37.280 --> 25:45.860
And then there's even harder stuff like mixed content auditing and correction and HTTP public key pinning, which we're probably never actually going to implement.

25:46.520 --> 25:47.940
But this is the software.

25:47.940 --> 25:48.740
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:58.620
So if you want it to work on a different web server, 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:22.920
And thanks to various plugins, 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:30.520
And pretty soon it's also going to work on Windows, 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.640
As some of you probably remember, the U.S.

26:42.640 --> 26:46.320
government shut down about eight months ago.

26:46.480 --> 26:50.500
And all of a sudden a bunch of websites went down, U.S.

26:50.500 --> 26:53.100
government websites, 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:01.580
You might as well automate this task.

27:01.580 --> 27:02.580
It's easy.

27:03.080 --> 27:07.920
Maybe the other solution is don't shut down the government 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:23.600
Encryption may not be partisan, but it is political in that it does equalize power.

27:23.700 --> 27:30.520
It allows people who normally wouldn't have the power 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:39.980
We've got Let's Encrypt.

27:39.980 --> 27:41.680
We've got Certbot.

27:41.680 --> 27:43.000
We've got security.

27:43.000 --> 27:44.120
It's usable.

27:44.580 --> 27:49.860
We've got transparency with Let's Encrypt now being part of certificate transparency.

27:49.860 --> 27:50.540
We're great.

27:50.540 --> 27:51.620
We're set, right?

27:51.860 --> 27:54.740
And the answer is actually, yeah, we did pretty awesome.

27:54.760 --> 28:01.720
So this is a chart of how many fully qualified domains are using the Let's Encrypt certificate authority.

28:02.120 --> 28:12.700
And so you can see back when we launched, when we actually went into a public beta, and, God, this thing's actually a year old 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:25.000
So there could be multiple domains per certificate, 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:35.460
So no matter how you slice it, basically Let's Encrypt is now the largest certificate authority in the world.

28:35.460 --> 28:41.760
And so we are basically a fundamental part of encrypting the Internet, 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:56.940
Now, to be clear, Let's Encrypt didn't single-handedly make this trend go from 30% encryption to, at the beginning of 2019, 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:11.240
When Google and Firefox decided to say, we're going to work pages as insecure instead of secure, so that people start feeling creeped out when they're using an HTTP page, that definitely helped.

29:11.240 --> 29:17.660
Because now sysadmins are like, well, crap, I've got to upgrade just so my website doesn't look shady.

29:20.080 --> 29:28.420
Other things that look good, HTTP2 is going to be encrypted by default, and that is the only way it will be supported by all of the major browsers.

29:29.300 --> 29:34.040
So if you upgrade to HTTP2, 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:52.480
And so for the last 20 minutes of this talk, I'm going to be talking about a couple of other things that we really want to see get encrypted.

29:54.120 --> 30:01.260
So, in order, they are TLS, SNI, and I'll explain what all of these are, encrypted DNS, and start TLS.

30:01.920 --> 30:04.180
So, SNI.

30:04.420 --> 30:15.000
So this is a weird quirk, and all credit due to CloudFlare for making this awesome image, which I am using as fair use, because I work at EFF, 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:26.880
And in particular, I know it's really tiny to see, but, so this is the website you're going to visit.

30:26.880 --> 30:37.880
When you send the initial connection to that web server, you have to tell it, this is the domain name I'm trying to visit, 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:52.020
The actual page you're visiting, so if you're visiting example.com slash index.html, the index.html gets obfuscated, but example.com gets leaked.

30:52.020 --> 31:00.180
And in particular, if this is sitting on a CDN, then that's telling the adversary which domain you're visiting.

31:00.180 --> 31:04.400
Because it could have been example.com, 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:19.780
And then, again, after that, everything is sent encrypted, but not until the adversary, someone listening on the wire, can know what domain you visited.

31:20.080 --> 31:21.500
So the solution?

31:21.500 --> 31:22.860
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:51.760
But you can now essentially send that server name 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:58.240
So great.

31:58.360 --> 31:59.980
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:18.100
So let's just encrypt all of it.

32:18.100 --> 32:19.920
Let's encrypt the DNS, too.

32:20.680 --> 32:24.640
So there are currently two different protocols 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:40.720
It sets up a TLS connection, but doesn't build the stack 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 --> 33:00.020
Unless you start doing a serious traffic analysis, it just looks like something going over port 443.

33:00.020 --> 33:05.060
And so the only way to censor it is to block all of the HTTPS traffic.

33:06.220 --> 33:12.960
The downside, it's harder for network operators to monitor for malicious activity because it looks just like all other HTTPS traffic.

33:12.960 --> 33:22.160
And so if there's malware in your network and it's making DNS queries over HTTPS, it's going to be very difficult for you to tell that 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:37.320
So if you have a strong position on either of these, come tell me.

33:37.320 --> 33:43.800
I won't promise I will be fully convinced, 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:59.100
And we're going to see, we believe, ISPs and also other providers, DNS providers, move towards encrypted DNS.

34:00.340 --> 34:07.040
And in fact, EFF is going to do another encrypting the net scorecard before too long 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:24.060
But certainly if you work for a company, you should be thinking about these sorts of things.

34:24.300 --> 34:29.680
Certainly if you work for a company that will get on EFF 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:52.660
When the singularity has come and the hive mind, as we are all part of the hive mind, the hive mind will still communicate with itself via 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:05.060
So the way e-mail works is you're on some client, either you're on Gmail's webmail client or you've got Thunderbird or something.

35:05.060 --> 35:08.880
And when you're communicating to your e-mail server, it's probably encrypted.

35:09.160 --> 35:15.560
And then when your friend is reading their e-mail again, they're talking to their e-mail server, it's probably encrypted.

35:15.740 --> 35:21.400
But there's this thing in the middle between e-mail servers that may or may not be encrypted.

35:21.400 --> 35:26.680
And that's an issue because that is a point where an adversary could listen in on e-mail.

35:27.760 --> 35:32.340
And so there's this protocol called start TLS which is meant to solve this.

35:32.840 --> 35:45.200
And the way it works is essentially what happens is when these two mail servers are talking to each other, 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:53.180
And then they'll say, okay, great, I'm going to set up a TLS 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:05.420
And so if there's a man in the middle attack, when this first 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:14.400
And the first mail server has no way of knowing that that's 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:43.260
Additionally, so the other issue is that many mail servers, even if they do support start TLS, they're using self-signed certificates for that TLS connection, which means that nobody on this end is ever checking the authenticity and verifying the certificate.

36:43.260 --> 36:48.120
They're not trying to say, does this chain up to a valid certificate authority, to a root certificate?

36:48.840 --> 36:58.080
And so again, an attacker can sit in the middle and provide their own self-signed certificate, and the originating mail server sending the mail is going to be none the wiser.

36:58.260 --> 37:03.440
And actually, since on this side they're not checking the certificate either, Google isn't going to be any the wiser.

37:03.640 --> 37:09.160
And so both of these mail servers will think, oh, everything was fine, the connection was encrypted.

37:09.160 --> 37:21.400
But in fact, there was an attacker in the middle who was encrypting traffic to Google, decrypting it, re-encrypting it to EFF, EFF would send traffic, 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:36.720
20% of the Alexa top million domains that support connections, incoming email connections, don't use start TLS.

37:37.220 --> 37:40.520
40% of them present invalid certificates.

37:41.080 --> 37:49.000
And I don't know what the hell is going on in Tunisia, but 96% of the traffic is stripped of those start TLS headers.

37:49.000 --> 37:54.940
So someone is actually going in there and removing the start TLS header and preventing the encryption.

37:55.720 --> 37:58.080
Also, what the hell is going on?

37:58.080 --> 38:05.460
Like , you know, maybe I understand that a lot of these places are in, you know, like Uzbekistan.

38:05.460 --> 38:08.740
Maybe I don't expect Uzbekistan to have the best security on the 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.900
So it can be a little bit out of date, but it's definitely happening.

38:21.860 --> 38:24.480
So trivial downgrade attacks, trivial impersonation attacks.

38:24.480 --> 38:39.460
The solution is a new specification called MTA-STS, which stands for Mail Transport Agent Strict Transport Security, which is basically a... well, let's get into it.

38:39.740 --> 38:44.240
It's a way for a mail server to say, 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:58.820
So first, my mail goes to the EFF mail server, 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:11.620
And it goes to the DNS provider and says, hey, does gmail.com have a particular text record in its DNS corresponding to this MTA-STS field?

39:12.020 --> 39:15.620
And then presumably Google has already set this up ahead of 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:34.820
The policy is basically just saying, here's a text document which says, these are the servers that you should be...

39:34.820 --> 39:41.420
If you're trying to send mail to gmail.com, 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:51.580
If you want to make sure your configuration is working before you start rejecting email and mass, you can put it in testing mode.

39:51.580 --> 40:01.340
And that way, even if things don't check out with MTA-STS, in testing mode, the sending mail server is still supposed to send the email.

40:01.340 --> 40:07.380
It will post a log to you saying there were these issues, 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:18.240
And then I go to gmail and say, 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.980
And so what would have happened if there was this attacker in the middle?

40:29.540 --> 40:34.440
Well, let's say that this destination was in gmail.com's MTA-STS policy.

40:35.180 --> 40:37.420
Let's just assume it's gmail.com.

40:39.540 --> 40:44.680
Then essentially what will happen is, 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:09.500
But either way, the other part of the policy is basically a reporting mechanism.

41:09.500 --> 41:13.740
You can either send the report over e-mail or post it to a specific URL.

41:13.980 --> 41:24.240
But I can essentially communicate to gmail that something shady went on, so either you didn't get the e-mail or I still sent it to you, but somebody was trying to strip away this encryption.

41:25.500 --> 41:26.640
So that's great.

41:26.640 --> 41:28.720
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:41.160
And the goal of the start TLS everywhere project is to promote 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:55.120
So as you probably noticed, there is this potential still for a downgrade attack if a attacker can intercept your DNS requests.

41:55.200 --> 41:59.020
And basically say, you know, we go back to this point right here.

41:59.940 --> 42:03.940
And say, does gmail have a MTSTS text record?

42:03.940 --> 42:10.460
And if they can intercept that first request and say no, then I will think, oh, gmail doesn't support MTSTS.

42:10.540 --> 42:20.280
And so what the start TLS everywhere policy or the start TLS policy list is, is it is a preloaded list that you can download from a different channel.

42:20.340 --> 42:25.100
It's basically an out-of-band way to get a list of websites that support MTSTS.

42:25.380 --> 42:33.880
And so now an attacker would not only have to intercept your DNS, they would also have to basically block your ability to connect to EFF's website.

42:33.900 --> 42:39.240
And if that's happening, then probably something shady is going 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:47.020
It's really hard to run a secure mail server in the same way it was hard to run a secure web server.

42:48.400 --> 42:52.420
So in terms of promoting MTSTS adoption, there are a couple steps.

42:52.840 --> 42:56.360
First, we have to make sure that mail servers actually support start TLS.

42:57.360 --> 42:59.920
Then we have to make sure mail servers can get certificates.

43:00.480 --> 43:14.940
We have to make it easy for sysadmins to receive those failure reports because no sysadmin is going to set this up and be like, man, I don't care if e-mail isn't getting through anymore because if the e-mail isn't getting through anymore, you get fired and then you don't have a job and then it doesn't matter what great security things you did.

43:15.880 --> 43:24.620
So we want to make it easy for sysadmins not only to receive those failure reports but also to post them to other mail servers when you are sending the mail.

43:25.480 --> 43:31.580
And also make sure the MTS software finally knows how to 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:44.700
Well, step one is the good news is mail servers already all 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:55.660
Well, the good news is we happen to already have some software you can use to get a certificate.

43:55.660 --> 44:04.660
So you can use certbot and we have guides for how to use certbot to get a certificate for postfix, XM, send mail.

44:04.660 --> 44:09.260
You can check out all of these if you run a mail server and it 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.940
It is not quite yet just one click and it installs it for you.

44:16.940 --> 44:24.720
That was actually due to a lot of feedback we got from sysadmins who told us my mail system set up is so convoluted 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:37.400
If you are using a default install, here is where you put 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:54.700
This is the RFC for MTSDF and in particular it is a 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.960
The good news is if you have a mail server, it can send e-mail.

45:02.720 --> 45:04.940
And it can also receive e-mail.

45:05.080 --> 45:16.420
All we have to do is basically set it up so that when your mail server encounters some sort of error trying to connect, we just have to set up so it can send a report over e-mail.

45:16.420 --> 45:22.500
We don't have to create a new web server for you to receive 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:33.700
This is like how do I actually tell the world that my server supports MTSDS?

45:34.140 --> 45:37.560
To do this, this is something we are still working on.

45:37.700 --> 45:49.020
Basically on the start TLS everywhere website, we are going to have basically a form you can fill out where you put in the 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 --> 46:00.600
And then it will turn all of that into a valid MTSDS policy 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:06.900
It is basically a web tool you can use to generate the policies and guide you through how to set it up.

46:07.120 --> 46:11.500
It is not quite ready yet, but it is something we are working on.

46:12.380 --> 46:17.760
And then last but not least is getting MTAs to actually use MTSDS.

46:17.760 --> 46:21.700
This is actually getting the actual mail transfer software.

46:21.700 --> 46:29.260
This is getting DoveCod or XM or SendMail to actually pay 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:37.620
One, we could submit patches directly to SendMail and XM, et cetera.

46:38.660 --> 46:42.740
But sysadmins upgrade their MTA about once every lifetime.

46:43.620 --> 46:47.880
There are tons of really obsolete MTA software out there running.

46:48.540 --> 46:55.180
And so even if we got patches in, it would take forever to finally upgrade and actually get that in the wild.

46:56.520 --> 47:00.280
We could write a middleware application that sits in front of MTAs.

47:00.280 --> 47:10.520
And so the MTA is oblivious and then it is connecting to this middleware application that is then paying attention to all the MTSDS stuff and otherwise routing things to and back through that MTA.

47:11.000 --> 47:12.680
It is one more thing to administer.

47:12.680 --> 47:20.420
It adds some complexity, but it also reduces other complexity that the MTA doesn't have to know about start TLS or the 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:35.080
So we have our work cut out for us, but we think the future looks bright.

47:36.020 --> 47:51.040
We have come a long way in ten years from just a little browser extension to an encrypting the web report to actually launching a freaking certificate authority and being the biggest certificate authority in the world, launching the start TLS everywhere project,

47:51.040 --> 47:54.020
and we are really 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:03.020
This is the work of a tremendous number of people who have worked at EFF, but also at other places.

48:03.140 --> 48:05.140
People have worked at Tor project.

48:05.140 --> 48:08.500
It's just everywhere when we launched was a joint project 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:25.780
We worked with Mozilla and the University of Michigan to initially get it off the ground, and now there's a whole host of sponsors that keep it alive.

48:26.420 --> 48:30.340
If you don't donate to EFF, you should donate to Let's Encrypt.

48:31.660 --> 48:36.000
I think you should donate to EFF, but you should also donate to Let's Encrypt.

48:36.660 --> 48:40.500
So credit where credit is due, a bunch of people have contributed to this work.

48:41.180 --> 48:45.980
And the reason we have been able to do all this amazing work is thanks to members like you.

48:46.220 --> 48:55.040
Your public support directly, as almost all of you know, EFF is a member-supported nonprofit, directly translates into this sort of technical work.

48:55.040 --> 49:03.820
We couldn't have a team of 15 or so technologists on staff to 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:16.380
And in particular, these three things right here are all individual donations.

49:16.380 --> 49:22.620
Whether it's individual or like individual but it's employee matching, that's basically individual.

49:22.620 --> 49:26.320
It's not like Google gets to decide where their employees 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:49.060
This is when another entity has filed a lawsuit and the answer is instead of giving a dollar to every person in a class, let's give it to an entity that is going to do some good for 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 --> 50:00.220
Even though we have foundation in the name, we don't give out 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:14.480
So on behalf of everyone at EFF, thank you, DEF CON, for your 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:53.480
We don't, EFF doesn't personally or like as EFF work closely with Linux foundation, but as you said, Linux foundation does essentially do the administration and overhead for ISR G, the organization that actually runs Let's Encrypt, which is pretty awesome.

50:53.480 --> 50:57.840
That way they don't have to hire an HR person or accountants or 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:28.580
I guess the way I would put it is normal users don't have the same resources to invest in making sure that their traffic is 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:43.720
Basically get as much encryption as possible and then if a corporation does need to do that sort of TLS termination, the answer is... It's kind of a side effect of making the web more secure for everyone, I guess.

52:43.720 --> 52:45.300
I definitely get it.

52:45.300 --> 52:45.560
Yeah.

52:46.400 --> 52:47.520
But it's true, yes.

52:47.520 --> 52:50.020
It does...

52:51.160 --> 52:51.520
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:30.840
And basically ISPs in south korea, I believe at the direction of the government, just started blocking ESNI.

53:31.220 --> 53:37.220
Just straight up because they could no longer look at the 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:57.280
About a month ago now, I think it was, an industry organization of ISPs in the united kingdom nominated of all organizations 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:12.640
Because ISPs don't yet support encrypted DNS, what mozilla is thinking of doing is cloudflare has a centralized DNS server and 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:21.000
And from my understanding, I think what mozilla is thinking about doing is if you're in the U.S.

54:21.000 --> 54:25.080
Where the privacy laws are crap, then they will turn that on by default.

54:25.080 --> 54:28.980
Because frankly, cloudflare has a better privacy policy than most U.S.

54:30.720 --> 54:31.440
ISPs.

54:31.940 --> 54:38.360
However, that's not true in europe or the united kingdom where there are actually decent privacy laws controlling what 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:54.880
But regardless, in the U.K., there is an obligation by the ISPs from the government to censor for all sorts of silly stuff, adult content, terrorist content, whatever.

54:54.880 --> 55:06.860
And because the ISPs, if you're using cloudflare's DNS in an encrypted way, could no longer do that censoring, they got really up in arms and they said, oh, my god, this is terrible.

55:06.860 --> 55:12.460
They later rolled it back once they realized that not everyone was against mozilla doing this encrypted DNS thing.

55:12.460 --> 55:21.440
But certainly in, you know, countries where there are, I would say is democratic rule of law, we are still seeing pushes for censorship.

55:21.440 --> 55:23.280
Or the ability to censor.

55:23.280 --> 55:28.980
And so that's not even touching places like China or Iran or something else like that.

55:29.840 --> 55:30.640
Yeah.

56:03.320 --> 56:10.280
So I think from my perspective, the way to do that, that is the way to, that's the destination.

56:10.280 --> 56:12.100
You have to get there slowly.

56:12.100 --> 56:15.800
Because if you do that immediately, people will just stop using your software.

56:16.300 --> 56:19.760
And it's just, it's just a sad, like, we won't stop using that 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:33.260
But, you know, my nieces and nephews, my friends, they're just going to stop using that software and switch to something 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:40.380
And by raising it, basically it's kind of like this boiling frog approach.

56:40.380 --> 56:44.440
Until you get to the point where there is no longer anything 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:20.190
One of the things that they're working on, I don't know if it's rolled out yet, is basically doing multibandage point verification.

57:20.330 --> 57:25.790
So that you would have to man in the middle, not just, you know, let's encrypt servers.

57:27.430 --> 57:29.750
Well, they're going to do it via Tor.

57:30.130 --> 57:35.870
So you would have to man in the middle a bunch of unpredictable Tor nodes as well.

57:36.170 --> 57:44.450
And so if they do like three or four of those from different exit nodes, you know, then that's a much, I mean, that raises the barrier.

57:44.450 --> 57:45.550
It's still possible, right?

57:45.550 --> 57:49.570
Like, you know, eventually, you know, someone who controls all 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.820
So that's, I was going to say, I think there was another 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.960
The other thing is there's a thing called certificate transparency.

58:09.960 --> 58:11.460
I'm sure many of you have heard of it.

58:11.520 --> 58:17.000
But now let's encrypt logs all of its certificates to certificate transparency servers.

58:17.060 --> 58:27.940
And so if you run a domain, you can essentially log into these certificate transparency servers and say, did somebody issue a certificate or did let's encrypt issue a certificate from my domain?

58:28.180 --> 58:29.340
And was that me?

58:29.480 --> 58:39.860
If I don't, if I'm not using let's encrypt and that happened, or I am, but I go look in my server logs and certbot doesn't say recently renewed my certificate, something shady is going on.

58:39.860 --> 58:41.880
So that's detection, not mitigation.

58:41.960 --> 58:45.260
But detection is still helpful while we're working toward 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.

