1 00:00:00,000 --> 00:00:06,440 What's up, guys? Yo. Holy crap. Another year, another DEF CON. 2 00:00:07,560 --> 00:00:11,900 And you know what? It's another DNS talk. Damn straight I got a 3 00:00:11,900 --> 00:00:22,260 drink. So, man, can't say I really knew what I was getting 4 00:00:22,260 --> 00:00:27,460 myself into with that whole break DNS thing. But the DNS 5 00:00:27,460 --> 00:00:31,180 root is signed and people keep blaming me for it. More 6 00:00:31,180 --> 00:00:36,260 importantly, it turns out that this whole DNS root signing, I 7 00:00:36,260 --> 00:00:40,520 got to level with you guys. I pretty much was convinced any 8 00:00:40,520 --> 00:00:44,960 kind of DNS stuff was way too much work for pretty much no 9 00:00:44,960 --> 00:00:51,020 benefit whatsoever. No, it's actually kind of awesome. And 10 00:00:51,020 --> 00:00:54,420 this talk is about why. Let me show you something kind of cool. 11 00:00:55,640 --> 00:00:57,440 By any chance, was anyone in this room ever seen a DNS root 12 00:00:57,440 --> 00:01:04,100 at like my way, way back in the day SSH talk? Yes. You guys are 13 00:01:04,100 --> 00:01:08,160 the old school. So check it out. It's not like I ever stopped 14 00:01:08,160 --> 00:01:12,740 playing with SSH. It's a really common thing when you're 15 00:01:12,740 --> 00:01:15,740 managing networks like in the real world. You're often 16 00:01:15,740 --> 00:01:19,300 managing some customer's network. So here's me trying to 17 00:01:19,300 --> 00:01:23,040 log into, you know, root at some customer.org. And what does 18 00:01:23,040 --> 00:01:27,400 it do? It asks me for a password. Oh, man, I got to 19 00:01:27,440 --> 00:01:31,300 like find this customer's password, call him up, notepad. 20 00:01:32,280 --> 00:01:36,080 Wouldn't it be great if I could just say, look, dude, I'm Dan at 21 00:01:36,080 --> 00:01:40,060 remote support.org. I'm trying to log into you, root at some 22 00:01:40,060 --> 00:01:43,760 customer.org. Yeah, it's multiple organizations. Yeah, 23 00:01:43,780 --> 00:01:46,860 it's federation. Yeah, it's something we as a security 24 00:01:46,860 --> 00:01:50,660 community have been trying to build for a decade. Oh, wait. 25 00:01:51,210 --> 00:01:57,420 That just worked. Yes. And what did I have to do server-wise? 26 00:01:57,440 --> 00:02:01,560 Server-side? Hey, server, you allow Dan at remote support.org. 27 00:02:02,360 --> 00:02:07,980 Done. DNSSEC is a lot more interesting than I gave it 28 00:02:07,980 --> 00:02:11,120 credit for. We've been trying to do authentication and federation 29 00:02:11,120 --> 00:02:16,100 across domain boundaries for years. And with DNSSEC, with the 30 00:02:16,100 --> 00:02:20,920 root signed, we implemented it in about four hours. This is 31 00:02:20,920 --> 00:02:25,200 kind of cool. So we basically coined something called DKI, the 32 00:02:25,200 --> 00:02:27,420 domain key infrastructure. It's basically a way for you to 33 00:02:27,440 --> 00:02:29,920 basically PKI, but this time it actually works. 34 00:02:35,180 --> 00:02:41,480 We can't do DKI. We can't do DNSSEC if it is, in fact, as some 35 00:02:41,480 --> 00:02:43,860 people have been saying, oh, my God, this is going to be a 36 00:02:43,860 --> 00:02:45,740 horrible pain to deploy. It's going to take hundreds of 37 00:02:45,740 --> 00:02:48,640 thousands of hours and hundreds of millions of dollars. We can't 38 00:02:48,640 --> 00:02:54,200 do what I just did if it's going to cost that much. But I get 39 00:02:54,200 --> 00:02:57,380 ahead of myself. There are four audiences for this 40 00:02:57,440 --> 00:03:01,680 talk. Four groups that I think are in here. The user, the buyer, 41 00:03:01,860 --> 00:03:06,580 the builder, and the breaker. If you are a user, if you are 42 00:03:06,580 --> 00:03:09,880 someone who just wants your computer to work right and you're 43 00:03:09,880 --> 00:03:15,020 here because you're interested in what that means, I think the 44 00:03:15,020 --> 00:03:19,560 entire security community owes you an apology. We have been 45 00:03:19,560 --> 00:03:23,960 promising so many things for so many years. When you receive an 46 00:03:23,960 --> 00:03:27,420 e-mail from the bank, maybe it's just me. Maybe it's just me. Maybe 47 00:03:27,440 --> 00:03:31,640 you should actually know it came from the bank. Telnetting into 48 00:03:31,640 --> 00:03:39,320 port 25 still works. This sucks. So I apologize. We failed you. We 49 00:03:39,320 --> 00:03:42,220 ask you too many questions. We make too many demands upon your 50 00:03:42,220 --> 00:03:46,700 memory. And we blame you. I was in a session earlier today where all 51 00:03:46,700 --> 00:03:50,720 I heard about was how users require education as if it was their 52 00:03:50,720 --> 00:03:56,320 fault. No. We have failed to give you what you need. And it's not 53 00:03:56,320 --> 00:03:57,420 because we are the ones who need it. We are the ones who need it. 54 00:03:57,440 --> 00:04:00,320 We're lazy or stupid. It's because we haven't had the 55 00:04:00,320 --> 00:04:04,160 foundational tools required to deliver a more secure experience. 56 00:04:05,300 --> 00:04:08,520 If you are a buyer, and don't be offended if you're not a buyer 57 00:04:08,520 --> 00:04:10,720 for the market terms, but let me give you the bottom line. 58 00:04:11,180 --> 00:04:13,440 Budgets are going to go up because this stuff actually 59 00:04:13,440 --> 00:04:18,740 works. Ten years ago, we tried as a community to deploy public 60 00:04:18,740 --> 00:04:21,980 key infrastructure. There was a whole bunch of hype about how 61 00:04:21,980 --> 00:04:25,420 this technology would finally free us from passwords. It's ten 62 00:04:25,420 --> 00:04:27,420 years later. Passwords ain't gone away. It's 10 years later. 63 00:04:27,420 --> 00:04:32,360 Now, our stuff from ten years ago did not work. But it's not like 64 00:04:32,360 --> 00:04:37,900 we have any less need for strong authentication. Our belief, our 65 00:04:37,900 --> 00:04:42,640 hope, is that DNSSEC through DKI is the way that we're finally 66 00:04:42,640 --> 00:04:47,380 going to achieve all the promises of PKI. Now, if you are a builder, 67 00:04:47,600 --> 00:04:51,040 if you are someone who makes security products, we are all 68 00:04:51,040 --> 00:04:56,840 tired of your crap that doesn't scale. How much stuff have you 69 00:04:56,840 --> 00:05:00,320 sold that sits on shelves because it worked in the lab, it worked 70 00:05:00,320 --> 00:05:03,060 enough for the initial sale, and you ever notice how, like, six 71 00:05:03,060 --> 00:05:06,760 months later, the customer doesn't call you back and talk to 72 00:05:06,760 --> 00:05:09,900 you ever again? Yeah. Yeah. That's kind of been the story 73 00:05:09,900 --> 00:05:13,780 of the last decade, hasn't it? A lot of crappy products have been 74 00:05:13,780 --> 00:05:16,740 shipped. A lot of devices have shipped with no authentication 75 00:05:16,740 --> 00:05:20,820 whatsoever. A lot of sacrifices have been made. You know, one of 76 00:05:20,820 --> 00:05:23,840 the things you find with SSL certificates is the browser's 77 00:05:23,840 --> 00:05:26,300 care and everyone else just says, wow, this is hard. I'm 78 00:05:26,300 --> 00:05:31,460 going to turn that off. Half of all certificates on the Internet 79 00:05:31,460 --> 00:05:36,800 don't even pretend to offer security. There's only about a 80 00:05:36,800 --> 00:05:40,020 million certs on the net, period. So it's like all the 81 00:05:40,020 --> 00:05:42,520 possible Internet endpoints, we're running out of four billion 82 00:05:42,520 --> 00:05:45,980 IP addresses, we don't even have a half million secure endpoints. 83 00:05:46,140 --> 00:05:51,320 This is a failure. However, it's also an opportunity. It means we 84 00:05:51,320 --> 00:05:56,280 can do better. But the most important group here, and I'm 85 00:05:56,300 --> 00:05:59,640 thinking actually the majority of the people here, are breakers. 86 00:06:00,700 --> 00:06:05,000 You know, most people in technology believe code is 87 00:06:05,000 --> 00:06:11,160 secure until proven otherwise. Yeah. You all know better. By 88 00:06:11,160 --> 00:06:14,920 default, software is pretty much generally going to be broken. 89 00:06:16,200 --> 00:06:19,800 You're the community that looked at my demo earlier and said, did 90 00:06:19,800 --> 00:06:26,280 he just make DNSSEC pre-auth in open SSH? Is Dan crazy? I'm not. 91 00:06:26,300 --> 00:06:29,820 Thank you for noticing. I think it's time we get some work done. 92 00:06:30,900 --> 00:06:36,740 There's about to be some huge bets put on DNSSEC. And I'm going 93 00:06:36,740 --> 00:06:41,640 to level with you. I don't want to wait 25 years for the next DNS 94 00:06:41,640 --> 00:06:46,580 bug. So you know what? We're actually pushing a radical 95 00:06:46,580 --> 00:06:50,260 transparency model. Started a company called Recursion 96 00:06:50,260 --> 00:06:53,460 Ventures. We're actually playing in this space. Yeah. So we are 97 00:06:53,460 --> 00:06:56,220 going to be backing an aggressive and public and 98 00:06:56,300 --> 00:07:01,160 open audit of all DNSSEC and DKI technologies. If you're 99 00:07:01,160 --> 00:07:05,180 familiar with Justin Ferguson, he is one of the probably top five 100 00:07:05,180 --> 00:07:08,980 code auditors that I've ever met in my career. He is auditing 101 00:07:08,980 --> 00:07:13,440 LDNS, which is the best DNSSEC library on the planet. We are 102 00:07:13,440 --> 00:07:18,840 releasing the pen test report publicly. And not someday in the 103 00:07:18,840 --> 00:07:23,060 distant future. We are releasing it September 1st, 2010. This 104 00:07:23,060 --> 00:07:25,640 should be an excellent starting point for anyone else who wants 105 00:07:25,640 --> 00:07:26,280 to bash. We're going to be working on it. We're going to be 106 00:07:26,300 --> 00:07:26,480 working on it with the DSTX. We're going to be working on 107 00:07:26,480 --> 00:07:28,560 have a few plans. We're forcing in either DNSSEC or the LDNS 108 00:07:28,560 --> 00:07:32,260 library in particular. The authors of the library, NLnet 109 00:07:32,260 --> 00:07:37,300 labs are fully onboard. We there may very well be a problem 110 00:07:37,300 --> 00:07:40,600 found in DNSSEC. But we're not going to guess. We're not going 111 00:07:40,600 --> 00:07:45,800 to hope. We're going to bash on it until we're happy. Now some 112 00:07:45,800 --> 00:07:49,280 ground rules to doing some DNSSEC work, we don't care about 113 00:07:49,280 --> 00:07:53,600 noninvented here. We can't have religion. We can't afford it. We 114 00:07:56,300 --> 00:07:59,220 We have a problem that's bigger than any one person, any one 115 00:07:59,220 --> 00:08:04,820 organization, any one community or any one country. We don't 116 00:08:04,820 --> 00:08:10,220 care about style. Skype's law is basically you know what? We 117 00:08:10,220 --> 00:08:14,140 security people really bungled up the internet in 2001. We 118 00:08:14,140 --> 00:08:17,880 kind of froze it in time. You get HTTP and you get HTTPS and 119 00:08:17,880 --> 00:08:22,840 deal with it. I like elegance. I like theory. But I like stuff 120 00:08:22,840 --> 00:08:26,800 that actually works. Not just barely. Systems that barely work 121 00:08:26,800 --> 00:08:31,240 are barely deployed. There's a corollary. We can't care about 122 00:08:31,240 --> 00:08:34,740 historical precedent. You know why? Because it's not like it's 123 00:08:34,740 --> 00:08:37,520 actually been working particularly well. We're going 124 00:08:37,520 --> 00:08:40,660 to have to do things differently or we can just keep failing for 125 00:08:40,660 --> 00:08:45,500 the next 15 years. We do care about operations. We do care 126 00:08:45,500 --> 00:08:48,980 about that IT guy that actually has to wake up at 3 in the 127 00:08:48,980 --> 00:08:52,600 morning if this stuff fails. We are not going to secure the 128 00:08:52,600 --> 00:08:52,820 internet. We are not going to secure the internet. We are not 129 00:08:52,820 --> 00:08:56,940 going to secure the internet by calling people lazy or stupid. To 130 00:08:56,940 --> 00:09:03,780 be fair, that does define us as intelligent and industrious. Great 131 00:09:03,780 --> 00:09:08,780 for our egos. Crappy for the internet. We are not going to win 132 00:09:08,780 --> 00:09:12,180 through moralization. Wag your finger at someone and think it's 133 00:09:12,180 --> 00:09:14,680 going to change anything. You're really not going to win through 134 00:09:14,680 --> 00:09:18,900 regulation. Because let me tell you, without naming names, I've 135 00:09:18,900 --> 00:09:21,200 seen a lot of certifications and I've seen a lot of compliance 136 00:09:21,200 --> 00:09:22,800 programs. And I haven't seen a lot of certifications. And I 137 00:09:22,800 --> 00:09:26,760 haven't seen a lot of competence in any of them. We're going to 138 00:09:26,760 --> 00:09:29,500 win this. We're going to win this the old-fashioned way. We 139 00:09:29,500 --> 00:09:33,980 are going to deliver a better product that works better, works 140 00:09:33,980 --> 00:09:38,940 cheaper, works faster, works easier. This is not like the 141 00:09:38,940 --> 00:09:43,940 status quo security is exactly inexpensive. There is better that 142 00:09:43,940 --> 00:09:48,520 can be done by actual genuine people want to run it. What if 143 00:09:48,520 --> 00:09:50,580 it's not, what if you don't think of security as something 144 00:09:50,580 --> 00:09:52,780 you bash people over the head with? What if you don't think of 145 00:09:52,780 --> 00:09:57,820 security as, man, this is actually kind of awesome. That is 146 00:09:57,820 --> 00:10:02,160 the goal of this talk, to show you DNSSEC for all the hype, wait 147 00:10:02,160 --> 00:10:06,640 a second, I can build something with this. So some timelines. 148 00:10:07,040 --> 00:10:10,280 18 months ago, everyone pretty much knew all of DNSSEC was 149 00:10:10,280 --> 00:10:14,180 crap. From an implementation side. But 18 months ago, we 150 00:10:14,180 --> 00:10:18,100 basically said, okay, yes, it's crap. But this protocol that's 151 00:10:18,100 --> 00:10:22,580 gone through ITF for 15 years is actually not bad. It can be done 152 00:10:22,780 --> 00:10:26,780 safely, securely, easily. Well, we live in the future. We look at 153 00:10:26,780 --> 00:10:30,180 what we have. And not just what work we're doing. We have three 154 00:10:30,180 --> 00:10:32,800 open source servers that are pretty good. We have three 155 00:10:32,800 --> 00:10:35,440 commercial servers that are pretty good. And pretty much any 156 00:10:35,440 --> 00:10:40,080 company in DNS is basically saying, man, don't worry about it 157 00:10:40,080 --> 00:10:43,220 at all. Just tell us what you want and we'll do it for you. 158 00:10:43,860 --> 00:10:47,480 This is good. From a market perspective, this means lots of 159 00:10:47,480 --> 00:10:51,040 people are in this space. This is a stable technology. I'm just 160 00:10:51,040 --> 00:10:52,760 here to tell you all. They can do this. This is a stable 161 00:10:52,780 --> 00:10:54,400 technology. They can do what they're doing. This is where it's 162 00:10:54,400 --> 00:11:00,020 going. So first off, let me explain DNSSEC to you. It's not 163 00:11:00,020 --> 00:11:04,180 actually that complicated. In normal DNS, you ask a question, 164 00:11:04,240 --> 00:11:07,600 you get an answer. Or you ask a question, you get a referral. So 165 00:11:07,600 --> 00:11:10,200 you ask Alice, hey, what's Jenny's number? And she says, 166 00:11:10,220 --> 00:11:13,080 I'll ask Travis. Travis says, good, Travis. Hey, Travis, 167 00:11:13,200 --> 00:11:15,920 what's Jenny's number? She says, ask Charlie. You ask Charlie and 168 00:11:15,920 --> 00:11:20,140 get apparently the wrong number for Jenny. What is Jenny's 169 00:11:20,140 --> 00:11:22,180 actual number? She keeps giving me the wrong one. 170 00:11:26,400 --> 00:11:30,860 So with DNSSEC, it's really quite similar. You ask a 171 00:11:30,860 --> 00:11:34,140 question, you get an answer and a signature. Or you ask a 172 00:11:34,140 --> 00:11:37,780 question, you get a referral and a signature. Now, is it 173 00:11:37,780 --> 00:11:42,780 really that simple? Mostly. Referrals now contain new keys. 174 00:11:43,060 --> 00:11:47,080 Before, you were just told where Travis was. Oh, you know, 175 00:11:47,080 --> 00:11:50,560 go ask Travis. He's down by the water fountain. Now you're told 176 00:11:50,560 --> 00:11:52,680 how to recognize him. Oh, yeah, he's the skinny, 177 00:11:52,680 --> 00:11:55,980 white dude in dreadlocks who's, you know, now the new chief 178 00:11:55,980 --> 00:11:59,060 hardware officer of Recursion Ventures. So welcome, Travis 179 00:11:59,060 --> 00:12:03,860 Goodspeed. Computers can make stronger identifiers than people 180 00:12:03,860 --> 00:12:07,940 can. So we use cryptography. But it's just the same. You 181 00:12:07,940 --> 00:12:10,280 know, everyone always says I don't understand public key 182 00:12:10,280 --> 00:12:13,620 cryptography. Look, it's really easy to recognize a face. 183 00:12:13,780 --> 00:12:16,240 It's really hard to smash your face to look like someone. 184 00:12:16,500 --> 00:12:19,340 That's asymmetric public key cryptography. Done. 185 00:12:27,340 --> 00:12:31,540 Is that it? Yeah, pretty much. Okay. There's some magic here and 186 00:12:31,540 --> 00:12:36,980 there with, you know, Jenny has no number. Lies. Records can 187 00:12:36,980 --> 00:12:41,240 expire and keys can lead to other keys. But a lot of the 188 00:12:41,240 --> 00:12:44,240 magic is optional, more than you'd think. And all of the 189 00:12:44,240 --> 00:12:47,620 magic can be implemented in an easily deployable manner. Now, 190 00:12:47,640 --> 00:12:50,640 yes, the easiest thing to do is to call up some managed service 191 00:12:50,640 --> 00:12:52,660 provider and just say, hey, go do it. But if you don't have the 192 00:12:52,680 --> 00:12:55,920 code, you can't do it. But, you know, failing that, I have 193 00:12:55,920 --> 00:13:01,120 heard estimates that deploying DNSSEC could take 100 hours of 194 00:13:01,120 --> 00:13:06,960 consultant time per domain. Let's me show you how we would 195 00:13:06,960 --> 00:13:09,680 have ‑‑ okay, I'm not doing a live demo in the middle of 196 00:13:09,680 --> 00:13:16,220 DEF CON. Hook up to this network. Are you joking? But 197 00:13:16,220 --> 00:13:18,840 this is what it would look ‑‑ you're just going to have 198 00:13:18,840 --> 00:13:22,660 to believe me. This is DNSSEC made so easy to deploy. You 199 00:13:22,680 --> 00:13:27,180 could do it on stage at a conference. So, first thing that 200 00:13:27,180 --> 00:13:30,380 we have, and I apologize that the text is small, first thing we 201 00:13:30,380 --> 00:13:33,280 have is your standard little name server. It's got, you know, 202 00:13:33,320 --> 00:13:37,300 10 or 11 domains. You know, they're very small and not very 203 00:13:37,300 --> 00:13:42,860 simple. Kind of thing anyone might have. Okay. Step one, 204 00:13:43,640 --> 00:13:50,480 change the port on the DNS server from 53 to 50,053. Step 205 00:13:50,480 --> 00:13:52,660 two, launch freeware. So, if you don't have DNSSEC, you can do 206 00:13:52,680 --> 00:13:54,720 this. This is a hybrid. The recursion ventures DNSSEC 207 00:13:54,720 --> 00:13:58,240 server. Note the lack of options or configurations or 208 00:13:58,240 --> 00:14:03,420 anything. You just run it. Step three, there is no step 209 00:14:03,420 --> 00:14:15,000 three. You're done. You know, once upon a time, 210 00:14:16,220 --> 00:14:19,680 web servers were very simple things. They ran static 211 00:14:19,680 --> 00:14:22,080 documents. You had a file system, everything you wanted to 212 00:14:22,080 --> 00:14:24,700 do, it had to be through there. And if you wanted to do anything 213 00:14:24,700 --> 00:14:29,400 dynamic, okay, you ran processes with CGI. You know what? Web 214 00:14:29,400 --> 00:14:33,980 services evolved. So are name servers. This thing goes ahead. 215 00:14:34,180 --> 00:14:37,640 It dynamically generates the signature. It will dynamically 216 00:14:37,640 --> 00:14:42,320 generate the key material. Now, we're not entirely done. We do 217 00:14:42,320 --> 00:14:46,380 need to go ahead and tell, in this case, .org, hey, we actually 218 00:14:46,380 --> 00:14:50,880 exist. This is where we are. So, this is how it looks. You go to 219 00:14:50,880 --> 00:14:52,060 go. Yeah, let me talk about something else. I'm going to go 220 00:15:00,700 --> 00:15:06,580 to go daddy. I got remote support.org here. You go to name 221 00:15:06,580 --> 00:15:10,840 servers. You hit manage DNSSEC. You paste in this little record. 222 00:15:10,980 --> 00:15:14,100 You do a simple lookup. It comes back against the free bird 223 00:15:14,100 --> 00:15:19,060 server, gives you the hash to put in. You say, go ahead and do 224 00:15:19,060 --> 00:15:22,060 it. You got to wait 30 seconds. You're done. So, you go to go 225 00:15:22,080 --> 00:15:25,720 And then you're done. And then it's live. And then it's 226 00:15:25,720 --> 00:15:30,260 working. And then you can run end to end authenticated queries 227 00:15:30,260 --> 00:15:36,380 against remote support.org 30 seconds later. This is actually 228 00:15:36,380 --> 00:15:41,740 kind of cool. So why does this work? Freebird is an online key 229 00:15:41,740 --> 00:15:47,320 signer. Like SSH, SSL and IPSec it depends on a signing key 230 00:15:47,320 --> 00:15:50,840 being available whenever requests come in. There's an 231 00:15:50,840 --> 00:15:53,580 alternative where a magic key sits in a vault and you truck it 232 00:15:53,580 --> 00:15:57,180 out every once in a while you alter things in DNS. In our real 233 00:15:57,180 --> 00:16:00,420 world networks we're changing stuff in DNS all the time. 234 00:16:02,060 --> 00:16:06,160 Freebird for performance reasons actually has a cache. So when it 235 00:16:06,160 --> 00:16:09,360 applies signatures to some records. So a record might be 236 00:16:09,360 --> 00:16:14,420 this IP address is you know the IP address for foo.com is 1.2.3.4 237 00:16:14,800 --> 00:16:19,880 or I don't know the certificate for foo.com has a hash of AABBCCDD. 238 00:16:20,880 --> 00:16:25,760 Freebird will see responses come back and will sign them so 239 00:16:25,760 --> 00:16:28,420 that a thousand requests for the same name will not cause a 240 00:16:28,420 --> 00:16:33,000 thousand hits to the encryption engine. Now DNSec was designed 241 00:16:33,000 --> 00:16:40,040 to allow offline key signing and that is awesome. The two 242 00:16:40,040 --> 00:16:44,100 reasons why this is the case are first DNSec is old. I mean 243 00:16:44,100 --> 00:16:48,500 DNSec was started in the 90s where high speed processors and 244 00:16:48,500 --> 00:16:50,820 cryptographic accelerators simply weren't the best. So we 245 00:16:50,840 --> 00:16:54,160 didn't have the kind of things that were available. Also DNSec 246 00:16:54,160 --> 00:16:57,600 needs to operate at scale. So it needs to be able to 247 00:16:57,600 --> 00:17:00,300 simultaneously support the smallest of the smallest name 248 00:17:00,300 --> 00:17:03,700 server to the root operations that have a maximum security 249 00:17:03,700 --> 00:17:09,780 requirement to com which is just enormous. But you know not 250 00:17:09,780 --> 00:17:13,440 every server should be run like the root. It's a big deal that 251 00:17:13,440 --> 00:17:17,100 everyone can be but that doesn't mean should be. Because the 252 00:17:17,100 --> 00:17:20,820 reality is the biggest thing that made DNSec so powerful is 253 00:17:20,840 --> 00:17:25,040 such a miserably complicated thing to deploy was having to do 254 00:17:25,040 --> 00:17:28,920 some massive precomputation phase. When you have some massive 255 00:17:28,920 --> 00:17:33,140 preload happen it turns out empirically protocols get orders 256 00:17:33,140 --> 00:17:36,420 of magnitude more complicated. And the best example actually is 257 00:17:36,420 --> 00:17:41,420 PGP or GPG. The amount of work that those code bases go into to 258 00:17:41,420 --> 00:17:47,360 managing their key rings are literally 95% of what's going on in 259 00:17:47,360 --> 00:17:50,200 there with the other 5% being encryption, decryption, signing 260 00:17:50,200 --> 00:17:50,820 and validation. 261 00:17:50,840 --> 00:17:55,780 It's enormous and by going online you get rid of the 262 00:17:55,780 --> 00:18:00,660 complexity. Now there's some precedent here. We did not invent 263 00:18:00,660 --> 00:18:02,980 online key signing. I mean look at all those other protocols. 264 00:18:03,920 --> 00:18:07,780 DNSec has been quietly including support for this design 265 00:18:07,780 --> 00:18:12,920 strategy for years. Ben Laurie is the guy behind it. Behind at 266 00:18:12,920 --> 00:18:17,500 least some of it. There's even another DNSec server that does 267 00:18:17,500 --> 00:18:20,500 this sort of lazy signing. That'd be Power DNSec by Bert 268 00:18:20,500 --> 00:18:20,780 Huber. 269 00:18:20,840 --> 00:18:25,980 What Freebird has is kind of interesting is that it uses the 270 00:18:25,980 --> 00:18:30,280 existing DNS framework whatever it may be and enhances it with 271 00:18:30,280 --> 00:18:34,580 DNSec responses. So it's just a proxy. It sits in front of your 272 00:18:34,580 --> 00:18:38,220 systems like a lump in the wire and it signs. That means there's 273 00:18:38,220 --> 00:18:41,500 no operational impact. You manage your DNS just like you 274 00:18:41,500 --> 00:18:45,200 always have. There's no configuration. There's enough 275 00:18:45,200 --> 00:18:49,740 information in a DNSec request reply pair to figure out 276 00:18:50,320 --> 00:18:50,820 everything that's going on in your system. So it's just a 277 00:18:50,820 --> 00:18:54,900 thing that is needed in terms of the signatures involved. I 278 00:18:54,900 --> 00:18:57,220 wasn't sure it was going to end up that beautiful but it turns 279 00:18:57,220 --> 00:19:00,640 out, yeah, it totally does. And it always returns the right 280 00:19:00,640 --> 00:19:04,420 answers. So you can have the world's most complicated name 281 00:19:04,420 --> 00:19:08,100 server that is like trying to return video over DNS and I'll 282 00:19:08,100 --> 00:19:13,960 still sign it. No problem. Implementation notes. Today 283 00:19:13,960 --> 00:19:17,260 it's a UDP port forwarder. You've got to change the DNS 284 00:19:17,260 --> 00:19:20,800 port. If you don't even want to do that, sometimes you're going 285 00:19:20,800 --> 00:19:22,780 to have to change the DNS port. I'm going to implement what's 286 00:19:22,780 --> 00:19:27,860 called Linux mingle table support. The name server will 287 00:19:27,860 --> 00:19:30,760 think it's sending an unsigned response but something magic 288 00:19:30,760 --> 00:19:34,560 will happen in the kernel and it will be like DNSec on, DNSec 289 00:19:34,560 --> 00:19:42,540 off, DNSec on. So this stuff is fast. Look at me. I just wrote a 290 00:19:42,540 --> 00:19:45,260 few lines of code. The Linux kernel developers and lib event 291 00:19:45,260 --> 00:19:50,240 developers are awesome. Neils Provost is a badass. With a few 292 00:19:50,240 --> 00:19:54,540 hundred lines of code, you can today write a name server that 293 00:19:54,540 --> 00:19:58,800 will support 60,000 queries per second on stock hardware. Now if 294 00:19:58,800 --> 00:20:01,540 you want to understand how fast 60,000 queries per second is, 295 00:20:01,740 --> 00:20:05,780 only a few years ago, that was all the queries that .com 296 00:20:05,780 --> 00:20:11,920 received in the world. So on one box with this API approach, 297 00:20:12,180 --> 00:20:14,820 you're able to do what com was doing a few years back. It's 298 00:20:14,820 --> 00:20:18,200 actually quite impressive. Now we're not going to be that fast 299 00:20:18,200 --> 00:20:20,220 because we've got a back end to talk to. We've got a lot of 300 00:20:20,240 --> 00:20:21,580 code. We've got to manage crypto. We've got to manage 301 00:20:21,580 --> 00:20:27,160 caching. But the experimental evidence suggests we are by leaps 302 00:20:27,160 --> 00:20:30,720 and bounds fast enough for all but the absolute biggest thing 303 00:20:30,720 --> 00:20:36,260 and we haven't even tried to optimize. Freebird is open 304 00:20:36,260 --> 00:20:40,200 source because you're just going to implement it anyway. We 305 00:20:40,200 --> 00:20:43,200 should have code out today, but we wanted to get all the demos 306 00:20:43,200 --> 00:20:46,860 done. So if you want a preview of what probably has some 307 00:20:46,860 --> 00:20:50,220 horrifying remote code execution flaws, feel free to send us a 308 00:20:50,240 --> 00:20:58,400 message. And by probably, I mean, like, man. That's not a good 309 00:20:58,400 --> 00:21:06,020 use of P open. Seriously. Send an e-mail to info at recursion and 310 00:21:06,020 --> 00:21:10,580 you can make fun of me all night. Code should be out within the next 311 00:21:10,580 --> 00:21:14,040 couple of weeks. I am actually planning, you guys heard about these 312 00:21:14,040 --> 00:21:18,960 pixel chi displays by any chance? Fully sunlight capable. I actually 313 00:21:18,960 --> 00:21:20,220 got one out of Makership. I'm going to show you a picture of a 314 00:21:20,240 --> 00:21:23,240 pixel chi display. All I want to do in life is sit by the pool at 315 00:21:23,240 --> 00:21:26,800 the palms, get a pina colada, bust out the netbook and hack. 316 00:21:26,980 --> 00:21:31,440 Like, yes. So that should actually dramatically accelerate 317 00:21:31,440 --> 00:21:37,900 development of the Freebird packaging. As a note, this stuff 318 00:21:37,900 --> 00:21:41,400 really is the, you know, 6 to 18 month timeline. So your mileage 319 00:21:41,400 --> 00:21:44,560 may vary in terms of deployments. This is purely so you can 320 00:21:44,560 --> 00:21:48,940 understand, wait, this technology is pretty cool. Now, Freebird's 321 00:21:48,940 --> 00:21:50,220 doing a whole bunch of stuff I don't understand. I'm going to 322 00:21:50,240 --> 00:21:52,780 have time to tell you about today. I'd be going on for a couple 323 00:21:52,780 --> 00:21:56,980 hours if I did. There's a bunch of obscura, there's a bunch of 324 00:21:56,980 --> 00:22:00,480 things people have kind of wrung their fingers about about DNSSEC. 325 00:22:00,680 --> 00:22:03,800 Questions like how do you handle non-existent records dynamically? 326 00:22:04,260 --> 00:22:09,240 How do you tunnel records to the registry.org when, say, your 327 00:22:09,240 --> 00:22:13,140 registrar doesn't give you a web interface to be able to put what 328 00:22:13,140 --> 00:22:17,040 are called DS records in? What about time? How do you manage 329 00:22:17,040 --> 00:22:20,220 rollover and expiration? How do you keep clocks in? How do you 330 00:22:20,240 --> 00:22:23,120 keep things in sync? There's some very interesting problems in 331 00:22:23,120 --> 00:22:28,060 DNSSEC around what do you do about time since everything has an 332 00:22:28,060 --> 00:22:32,320 absolute time. What I can't, do you have time to tell you now is 333 00:22:32,320 --> 00:22:37,000 this. All these problems are pretty easily managed. They took 334 00:22:37,000 --> 00:22:40,760 some work, they took some effort, but we've got fixes for all of 335 00:22:40,760 --> 00:22:44,860 them. And online the recursion.com site, the answers will be posted. 336 00:22:45,100 --> 00:22:50,120 But I want to focus this talk on, hey, this technology is going to be awesome. 337 00:22:50,240 --> 00:22:54,360 For your applications. So, okay. Towards the domain key 338 00:22:54,360 --> 00:22:59,180 infrastructure. Perhaps DNSSEC is easy to deploy, but is it, in fact, 339 00:22:59,240 --> 00:23:03,960 useful? Distributed authentication is only interesting if it provides 340 00:23:03,960 --> 00:23:09,820 end-to-end semantics. My desktop to your server. Or my phone to your 341 00:23:09,820 --> 00:23:14,760 phone. And so on. You might say, but Dan, I know a little bit about this 342 00:23:14,760 --> 00:23:19,740 stuff. I heard that all DNSSEC does is secure the link between these name 343 00:23:19,740 --> 00:23:23,720 servers that I speak to. But not like me and the actual end server. So what's 344 00:23:23,720 --> 00:23:30,060 going on here? Well, it turns out, that was the original model of DNSSEC. They 345 00:23:30,060 --> 00:23:34,400 actually figured your name server would do all the hard work, and then it would 346 00:23:34,400 --> 00:23:39,920 set you, send you a little bit called AD. And AD stands for, nah, it's cool, I 347 00:23:39,920 --> 00:23:45,980 checked it for you. Doesn't actually stand for that, but it really does. Look. I 348 00:23:45,980 --> 00:23:49,540 like Starbucks. I've known people who work for Starbucks. I like their 349 00:23:49,540 --> 00:23:49,720 customers. I've known people who work for Starbucks. I've known people who work for 350 00:23:49,740 --> 00:23:55,020 coffee. I'm not trusting Starbucks to tell me whether it validated the certificate for Bank 351 00:23:55,020 --> 00:24:01,620 of America. Not going to happen. There's no application on earth that's going to alter the 352 00:24:01,620 --> 00:24:08,120 user experience based on this little bit of context. Give me the proof or go away. So we 353 00:24:08,120 --> 00:24:16,260 have some normal end-to-end modes. First mode is called chasing. When you ask for www.foo.com, 354 00:24:16,440 --> 00:24:19,720 you can set a bit called CD, called checking disabled. You can set a bit called CD, called 355 00:24:19,720 --> 00:24:30,160 and what you will get back is the answer and a signature saying www.foo.com was signed by foo.com. And 356 00:24:30,160 --> 00:24:34,400 then what do you do? Well, go back to foo.com. You say, well, what were you signed by? And it 357 00:24:34,400 --> 00:24:37,480 says, well, I was signed by com. And you say, well, what about you, com? What were you 358 00:24:37,480 --> 00:24:41,820 signed by? And it will say, well, I was signed by the root. And then at that point, you have a 359 00:24:41,820 --> 00:24:49,400 chain from www.foo.com to the root. And in this model, you only talk to your local name server. 360 00:24:49,720 --> 00:24:54,800 Now there are two problems with this model. It works about 90% of the time, but that's not 361 00:24:54,800 --> 00:25:00,620 enough. A one out of ten failure is still operationally too expensive. The first problem 362 00:25:00,620 --> 00:25:06,440 is, is that it might get blocked by your local resolver. It, you know, the deal is, in DNS, 363 00:25:06,760 --> 00:25:11,840 it's a lot of work to bounce around the internet to go from root servers to com servers to com 364 00:25:11,840 --> 00:25:18,540 servers to yahoo.com servers. I mean, it takes some complexity. And DNS was designed in 1983, 365 00:25:19,720 --> 00:25:26,000 when such complexity was unimaginable to have on every single computer. So what they did is they 366 00:25:26,000 --> 00:25:31,100 said, okay, we'll take this hard work and we'll put them in these magic boxes called name 367 00:25:31,100 --> 00:25:38,420 servers. And these magic name servers, they'll go ahead and do all the run arounds. Well, what is 368 00:25:38,420 --> 00:25:44,400 happening in this situation is the box that's doing the run around, not only might we not be 369 00:25:44,400 --> 00:25:49,700 willing to trust it to go ahead and do DNS validation, but it's not going to be able to 370 00:25:49,720 --> 00:25:53,720 do it. It may not know how to send us back a little bit of extra information about the key 371 00:25:54,280 --> 00:25:59,980 material so that we can do it. In other words, it ain't doing it and we ain't doing it, so it ain't 372 00:25:59,980 --> 00:26:07,520 getting done. And so that's kind of a problem. The other thing that might be a problem is round 373 00:26:07,520 --> 00:26:12,920 trips. If I have to keep going back and forth and back and forth with my local name server, that's 374 00:26:12,920 --> 00:26:17,800 actually a lot of round trips and it can be slow. And as we know from experience, if you make a 375 00:26:17,800 --> 00:26:19,700 web browser, depending on too many things, that's going to take a lot of time. So if you're 376 00:26:19,720 --> 00:26:24,800 going to make a round trip that are slow, it will just not do what you ask it to. So in general, 377 00:26:24,900 --> 00:26:29,720 almost all web browsers don't go ahead and check to see if a certificate has been revoked. 378 00:26:30,660 --> 00:26:34,620 Someone's checking if certs are revoked because apparently there's a couple billion checks a day, 379 00:26:34,780 --> 00:26:42,900 but your average web browser is not one of them. Revocation is a bit of a lie in X509. What we're 380 00:26:42,900 --> 00:26:48,640 doing about round trip fixing in DNSSEC, and this is a project of Paul Vixie and mine, it's called 381 00:26:49,720 --> 00:26:54,600 superchase. In superchase, when you ask for the, when you say, hey, give me some signing 382 00:26:54,600 --> 00:27:01,080 information for www.foo.com, in superchase, it gives you the path all the way back to the root. Why? 383 00:27:01,280 --> 00:27:05,920 Because it has to know it anyway. If it was going to do the validation, it knows the chain. I'm 384 00:27:05,920 --> 00:27:09,860 just saying, hey, give it to me as well. And so we figured out how to make that happen and it's 385 00:27:09,860 --> 00:27:17,260 pretty straightforward. Doing it's about ten lines of code in LDNS. Part of the Freebird release is 386 00:27:17,260 --> 00:27:19,700 going to include sample code. You just say chaser, you're going to get the code, you're going to get 387 00:27:19,700 --> 00:27:24,320 the data. You enter spookey.navy.mil.org, and you in fact get a path all the way back to root. 388 00:27:24,760 --> 00:27:32,320 Done. End to end. Another method is called tracing. Instead of chasing where you go up, tracing you 389 00:27:32,320 --> 00:27:37,560 go down. You're basically taking your, that magic box that does the running around the Internet, 390 00:27:37,780 --> 00:27:43,160 you're embedding that in random applications with what's called lib unbound. Lib unbound is the 391 00:27:43,160 --> 00:27:49,680 name server built upon lib DNS, LDNS, and it itself is about, it takes about three lines of code to 392 00:27:49,700 --> 00:27:54,600 of code in lib unbound to do a secure resolve. It's super 393 00:27:54,600 --> 00:28:00,100 straightforward and easy. There are some issues. Chief among 394 00:28:00,100 --> 00:28:03,760 them, if you have a situation where every device is going 395 00:28:03,760 --> 00:28:06,840 straight to the root, you'll cause the root to melt down in a 396 00:28:06,840 --> 00:28:12,260 pile of flames. What might make that acceptable or at least make 397 00:28:12,260 --> 00:28:14,860 things better is if the devices are actually caching information 398 00:28:14,860 --> 00:28:18,460 for serious periods of time and only updating the information 399 00:28:18,460 --> 00:28:21,800 when it changes. The root information doesn't change much, 400 00:28:21,880 --> 00:28:27,600 com information doesn't change much and so on. This, by the way, 401 00:28:27,600 --> 00:28:31,620 was the problem with DNS curve. Dan Bernstein's brilliant. You 402 00:28:31,620 --> 00:28:34,580 guys have no idea how much time I spent arguing that people should 403 00:28:34,580 --> 00:28:38,700 do his stuff. However, if Dan Bernstein's approach, the only 404 00:28:38,700 --> 00:28:42,560 way to get end to end trust was to bypass local caches all the 405 00:28:42,560 --> 00:28:45,400 time, always go to the root, always go to the com servers, 406 00:28:45,640 --> 00:28:46,940 they would have melted down. 407 00:28:48,460 --> 00:28:52,400 And, of course, those middle boxes, there's nothing worse than 408 00:28:52,400 --> 00:28:55,360 hotel networking. When you're at a hotel, be glad you can go to 409 00:28:55,360 --> 00:29:01,360 Google. It's surprising. Hotel boxes will still mess with 410 00:29:01,360 --> 00:29:09,220 tracing operations. So HTTP is the universal tunneling 411 00:29:09,220 --> 00:29:14,880 protocol. You can actually do DNS over HTTP. DNS over HTTP 412 00:29:14,880 --> 00:29:18,440 basically involves doing get requests with DNS in the 413 00:29:18,460 --> 00:29:22,900 actual URL that is requested. Freebird does implement this. 414 00:29:23,740 --> 00:29:28,200 Obviously you can tunnel stuff over DNS, over HTTP, because 415 00:29:28,200 --> 00:29:32,260 everyone tunnels stuff over HTTP. The only question is what's the 416 00:29:32,260 --> 00:29:36,520 performance impact? So what do you guys think? You think, you 417 00:29:36,520 --> 00:29:39,140 know, tunneling everything over HTTP is going to have like a 10 418 00:29:39,140 --> 00:29:45,080 percent hit, a 50 percent hit, an 80 percent hit. Yeah, well, for 419 00:29:45,080 --> 00:29:46,880 whatever reason, it seems to be faster. 420 00:29:50,560 --> 00:29:59,740 What? 3200 queries per second with UDP and 4,000 with TCP. Paul 421 00:29:59,740 --> 00:30:02,220 Bixey thinks I'm wrong, thinks there must be something wrong 422 00:30:02,220 --> 00:30:05,960 with my tests, and that's okay. You know, the quote goes, being 423 00:30:05,960 --> 00:30:08,200 wrong just means the world is more interesting than you 424 00:30:08,200 --> 00:30:13,520 thought it was. But even with a significant penalty, super 425 00:30:13,520 --> 00:30:18,440 chasing over HTTP should be a, if all else fails, game over. So 426 00:30:18,460 --> 00:30:22,120 get me this information approach that we need. And so we're 427 00:30:22,120 --> 00:30:25,820 actually going to go ahead and start running a DNS over HTTP 428 00:30:25,820 --> 00:30:29,400 endpoint on the Internet within the next couple of weeks, so 429 00:30:29,400 --> 00:30:32,960 that the libraries that are out there, if all else fails, can 430 00:30:32,960 --> 00:30:35,460 always get stuff resolved. Because that's the only way we're 431 00:30:35,460 --> 00:30:40,200 going to get to, you know, 100 percents. Wrapping. So I talked 432 00:30:40,200 --> 00:30:43,540 about chasing. I've talked about tracing. I've talked about 433 00:30:43,540 --> 00:30:48,200 chasing, tracing, packing. This is wrapping. And wrapping is an 434 00:30:48,200 --> 00:30:52,680 idea of this crazy Kiwi by the name of Brett Watson. And what 435 00:30:52,680 --> 00:30:56,360 Brett said to me is, you have to be willing to separate the 436 00:30:56,360 --> 00:31:00,320 content of DNS from the transport of DNS. Now, this was 437 00:31:00,320 --> 00:31:03,040 a fairly profound point, and it led to an interesting concept. 438 00:31:03,380 --> 00:31:08,360 If you look at X509, X509 certificates always contain, 439 00:31:08,600 --> 00:31:13,560 hi, this is a certificate for www.foo.com. Foo.com, it's 440 00:31:13,560 --> 00:31:17,280 signed by Bear-a-Sign or Thought or GoDaddy or whoever. 441 00:31:18,200 --> 00:31:21,600 There's a chain back from where you are all the way up to some 442 00:31:21,600 --> 00:31:28,140 trusted certificate authority. X509 can also contain the DNS 443 00:31:28,140 --> 00:31:32,780 sec chain. SL is already moving X509, so we do DNS over X509 444 00:31:32,780 --> 00:31:36,500 over SSL. You know what totally passes through hotel miniboxes? 445 00:31:38,000 --> 00:31:42,060 SSL. Also, we get really high performance because it's 446 00:31:42,060 --> 00:31:45,700 delivered in line without any kind of external query having to 447 00:31:45,700 --> 00:31:48,180 happen. Now, to implement this, we're going to need to have a 448 00:31:48,200 --> 00:31:49,100 lot of work. So, you have to do this. What you have to do is you 449 00:31:49,100 --> 00:31:52,600 have to do just like Super Chase, you have to extract all of the 450 00:31:52,600 --> 00:31:55,860 keys necessary in order to resolve a zone, and then you 451 00:31:55,860 --> 00:32:00,140 have to shove it into an X509 certificate and validate it 452 00:32:00,140 --> 00:32:04,260 during the actual certificate validation. Now, this would have 453 00:32:04,260 --> 00:32:11,920 been a lot of work for me. So, Adam Langley at Google may very 454 00:32:11,920 --> 00:32:17,080 well have sent me a private unofficial build of Chrome. Yes. 455 00:32:19,660 --> 00:32:25,580 That is getting HTTPS. It's got the lock, but when you look 456 00:32:25,580 --> 00:32:30,780 inside, that certificate has a DNS sec chain enabled, full DNS 457 00:32:30,780 --> 00:32:37,400 sec inside of Chrome. What's up? So, I want to be clear. 458 00:32:37,620 --> 00:32:40,600 This was private. This was unofficial. This does not at all 459 00:32:40,600 --> 00:32:45,360 represent a commitment by Google to DNS sec, DKI, or X509 460 00:32:45,360 --> 00:32:48,180 certificate embedding. This is just Adam and I. This is just a 461 00:32:48,200 --> 00:32:53,200 seeing what was possible. So, that I think it's a good idea to 462 00:32:53,200 --> 00:32:57,780 start talking about actual applications. Where do we 463 00:32:57,780 --> 00:33:01,380 implement DKI? What I showed you at the beginning of this 464 00:33:01,380 --> 00:33:07,520 talk was SSH, especially, a federated identity system for 465 00:33:07,520 --> 00:33:11,060 open SSH. It's based on the idea that end nodes should 466 00:33:11,060 --> 00:33:14,920 authorize and validate identities and not public keys. 467 00:33:15,180 --> 00:33:18,100 You are not P times Q. You are P times P. You are a range 468 00:33:18,100 --> 00:33:18,180 You are a unique, unique decision, and you have to have that 469 00:33:18,180 --> 00:33:23,780 least an email address. Today the way that this works on the 470 00:33:23,780 --> 00:33:27,100 server is you go to the authorized keys file and you 471 00:33:27,100 --> 00:33:30,220 provide a list of email addresses that are allowed to 472 00:33:30,220 --> 00:33:33,520 log in. When someone tries to log in, they have a special 473 00:33:33,520 --> 00:33:37,120 syntax that they use for their username. That syntax is parsed 474 00:33:37,120 --> 00:33:40,100 and if the declared user is actually someone who could 475 00:33:40,100 --> 00:33:45,140 potentially log in on that account, then DNSSEC is queried 476 00:33:45,140 --> 00:33:52,580 to say, Dan at remote support wants in. Dan at remote support 477 00:33:52,580 --> 00:33:55,680 .org, if he had the right private key on his system, 478 00:33:55,880 --> 00:33:59,580 yeah, we'd let him in. Let's go to DNS to find out what public 479 00:33:59,580 --> 00:34:03,900 key to validate. That's what it is today. Tomorrow it's going to 480 00:34:03,900 --> 00:34:07,780 be an actual LDAP backend, sort of like this fed SSH package out 481 00:34:07,780 --> 00:34:11,340 there. You'll be able to say let everyone in the support. 482 00:34:11,640 --> 00:34:15,120 vendor.com group log into the machines at, you know, the 483 00:34:15,140 --> 00:34:20,120 some customer.org. This is going to be very, very nice. Now 484 00:34:20,120 --> 00:34:23,460 I'd like to go a little bit philosophical into why this is a 485 00:34:23,460 --> 00:34:26,960 big deal. People have been selling what's called federation 486 00:34:27,300 --> 00:34:30,680 for years. Federation being the ability to authenticate users 487 00:34:30,680 --> 00:34:34,680 outside of your organization. All of the stuff has been 488 00:34:34,680 --> 00:34:38,520 terrible. The reason why is we have a couple of choices. Our 489 00:34:38,520 --> 00:34:41,880 first choice is end to end complexity. That means every 490 00:34:41,880 --> 00:34:45,080 company that wants to authenticate someone else has a 491 00:34:45,140 --> 00:34:47,460 deal with every other company that wants to authenticate someone 492 00:34:47,460 --> 00:34:51,020 else. It is end to end complexity that gives us things 493 00:34:51,020 --> 00:34:57,220 like on Gmail, if you receive mail from eBay or PayPal, then 494 00:34:57,220 --> 00:35:01,080 you get special user interface. Why was it one e-mail provider 495 00:35:01,080 --> 00:35:05,320 and two possible senders? Because the management load of getting 496 00:35:05,320 --> 00:35:09,340 more done was too high. Then there's the problem of risk of 497 00:35:09,340 --> 00:35:13,180 the king maker. You always have a situation where one group says 498 00:35:13,740 --> 00:35:15,120 all of you, why don't you do this? Why don't you do this? Why 499 00:35:15,140 --> 00:35:17,820 don't you do that? You just trust us. Everyone trusts us and 500 00:35:17,820 --> 00:35:21,120 we declare who is who and it's great and wonderful and it turns 501 00:35:21,120 --> 00:35:23,760 whoever is in that position of the centrally trusted person 502 00:35:23,760 --> 00:35:30,400 into a monster. It happens every time. And so the final 503 00:35:30,400 --> 00:35:32,700 approach, and this is what we see in the existing certificate 504 00:35:32,700 --> 00:35:36,700 authority system is key bleed. No one wants there to be a God 505 00:35:36,700 --> 00:35:43,480 so you end up with everybody's God. It's not any better. What 506 00:35:43,480 --> 00:35:45,120 is interesting with the fact that the kind of thinking that 507 00:35:45,140 --> 00:35:52,380 DNSSEC is that the DNS root is run by ICANN. And for all the controversy of ICANN, this is a group 508 00:35:52,380 --> 00:35:57,260 that is massively constrained. They are constrained by a technology that delegates as soon as 509 00:35:57,260 --> 00:36:02,740 possible. They are constrained by politics of the worldwide nature that you cannot imagine. 510 00:36:03,300 --> 00:36:08,180 ICANN getting things done is a tremendous amount of work. That is not a bug. That is a feature. 511 00:36:08,180 --> 00:36:16,000 That means you have a neutral overseer. Net neutrality began with ICANN of all places. It's 512 00:36:16,000 --> 00:36:23,180 kind of crazy. So what do you end up with? DKI gives us federation that actually works. Because 513 00:36:23,180 --> 00:36:30,320 you have the trusted root that the technology needs, but you have the controlled root, the 514 00:36:30,320 --> 00:36:37,360 managed root, the governed root that the politics require. So what do we do? Are we going to go 515 00:36:37,360 --> 00:36:38,160 ahead and manage this? Are we going to go ahead and manage this? Are we going to go ahead and 516 00:36:38,180 --> 00:36:44,340 manually hack in LDNS or lib unbound into each package one by one by one? Well, you know, 517 00:36:44,400 --> 00:36:50,180 maybe. That might be useful for some things. It's definitely a way to get the best application 518 00:36:50,180 --> 00:36:56,940 integration. But you know, Linux and Unix, everything is using OpenSSL. Specifically, the 519 00:36:56,940 --> 00:37:03,800 OpenSSL call X509 underscore verify underscore cert. This is a nice and self-contained library 520 00:37:03,800 --> 00:37:06,160 call. What could we possibly do with that? 521 00:37:06,160 --> 00:37:13,680 So another thing we're releasing is called freeload. Freeload adds DNSSEC transparently to 522 00:37:13,680 --> 00:37:19,160 existing applications. If it validates a certificate, we will make it validate a certificate 523 00:37:19,160 --> 00:37:27,960 successfully using DNSSEC. There is some prior work. LibVal Shim from Rust Monday at Sparta will 524 00:37:27,960 --> 00:37:33,800 actually go ahead and it also transparently applies itself to applications. But it does so at the 525 00:37:33,800 --> 00:37:36,140 DNS layer. It makes sure that applications are valid. It makes sure that applications are valid. 526 00:37:36,140 --> 00:37:42,980 Applications get the right IP address. That's nice. There's a million ways to attack IP. I'm 527 00:37:42,980 --> 00:37:48,860 sorry. That's just how it is. The other thing that Rust Monday's code does is it assumes that if 528 00:37:48,860 --> 00:37:55,540 you're validating for www.foo.com, obviously you have the foo.com certificate. Because when this 529 00:37:55,540 --> 00:38:01,220 code was written, the root wasn't signed. With freeload, freeload is operating at a different 530 00:38:01,220 --> 00:38:06,120 layer. It's saying, look, let's take the software out there that is actually trying to do this. 531 00:38:06,140 --> 00:38:11,020 It's trying to be secure. It's actually trying to make an encrypted end-to-end safe link. Let's 532 00:38:11,020 --> 00:38:17,920 take its validation layer, which already has handlers for errors if validation fails. Let's take 533 00:38:17,920 --> 00:38:25,620 the validation layer and replace or augment it with the authentication layer of DNSSEC. So for 534 00:38:25,620 --> 00:38:30,400 example, you ever gone ahead and used these command line web tools and said curl some address 535 00:38:30,400 --> 00:38:35,960 and you get back, you know, this big error. And the last line, of course, is if you'd like to 536 00:38:36,140 --> 00:38:41,420 turn off curl's verification of the certificate, use the dash K or dash dash insecure option. 537 00:38:42,120 --> 00:38:48,440 Now think about what this means. At some point they said the dash K option and people missed it. 538 00:38:48,580 --> 00:38:53,380 So they have two points in the documentation where they say here's how you turn off the 539 00:38:53,380 --> 00:38:59,780 security. That is a system that has failed. Now we're going to go ahead, we're going to LD 540 00:38:59,780 --> 00:39:06,120 freeload, freeload.so and bam, this is a story all about how my system has failed. Now we're 541 00:39:06,120 --> 00:39:12,480 going to go ahead and try to fix this. My life got twisted upside down. Works glorious. If we go 542 00:39:12,480 --> 00:39:18,720 ahead and we turn on debugging, we say export DNSSEC debug equals one, what we see is a lookup 543 00:39:18,720 --> 00:39:23,460 happened to what we call the deliberately incorrect schema. We lookup scell absolute dot 544 00:39:23,460 --> 00:39:31,280 www.hospitalink.org. It has returned this hash 5E0905B and so on and that is actually the 545 00:39:31,280 --> 00:39:36,100 correct hash of the certificate seen at that address and validation occurred. So we have the 546 00:39:36,100 --> 00:39:42,220 occurs just fine. So that's all that's happening. You have this silly little value in DNS. 547 00:39:42,460 --> 00:39:47,920 It's wrong. We're working on the right way to do it. If you go ahead and you change the value, 548 00:39:48,080 --> 00:39:53,460 you make the hash incorrect, poof, curl doesn't work anymore. It's not enough for it to do a 549 00:39:53,460 --> 00:39:59,200 DNSSEC resolution. The hashes have to match. We set the information back. We go ahead and we 550 00:39:59,200 --> 00:40:04,780 can use curl. We can use wget. The same code, the same configuration works for all the 551 00:40:04,780 --> 00:40:12,940 protocols. Now, all OpenSSL apps means all OpenSSL apps. So you've got Postfix as a mail 552 00:40:12,940 --> 00:40:18,740 server set up, Postgres as a database, MySQL as a database, Apache. Now, why would it be 553 00:40:18,740 --> 00:40:23,580 interesting to alter certificate validation in Apache, which is a web server? We've had the 554 00:40:23,580 --> 00:40:29,480 capability in web browsers to do certificate client certificate validation, meaning it's not 555 00:40:29,480 --> 00:40:34,760 just the server that has a cert. The client has a cert. But today, we're going to do a certificate 556 00:40:34,780 --> 00:40:40,360 which is really getting a certificate issued by one site or a smart card issued by one company to 557 00:40:40,360 --> 00:40:48,400 work anywhere else. Yeah. Good luck with that. With DNSSEC, it's trivial. You get a smart card. 558 00:40:48,480 --> 00:40:52,980 You get a request. It claims to be an email address. You go ahead and find out, so what is the 559 00:40:53,620 --> 00:40:59,620 public key associated with this user? And the group that issued the smart card is the group that 560 00:40:59,620 --> 00:41:04,600 hosts the public key. And now that public key works on every server on the globe. Works like a 561 00:41:04,780 --> 00:41:10,640 on. Welcome to domain key infrastructure. But I'd like to go ahead and stay focused on 562 00:41:10,640 --> 00:41:19,500 browsers. Open SSL is great but browsers don't use it. Internet Explorer uses crypto API and 563 00:41:19,500 --> 00:41:26,680 Firefox and Chrome use NSS. Also there is no LD preload on Windows. There's just no way to go 564 00:41:26,680 --> 00:41:34,480 ahead and hack an API in Windows. So what are you going to do? HTTPS proxy. This is kind of neat 565 00:41:34,480 --> 00:41:44,720 actually. I had no idea this was there. It's based on the work of Andres and Dave. And 566 00:41:44,720 --> 00:41:51,000 basically the web browser has since the beginning had what's called the SSL proxy or secure 567 00:41:51,000 --> 00:41:56,560 proxy. And what that does is it says every time an SSL connection is attempted to be made, 568 00:41:56,660 --> 00:42:04,460 please do connect www.site.com.443. Now this is actually very nice. I mean, this is actually 569 00:42:04,480 --> 00:42:09,860 a channel by which I can see what the browser wants without having to push any code in there. I 570 00:42:09,860 --> 00:42:19,900 should really build a proxy. So we built a proxy. It's called foxy. It is a remote validation 571 00:42:19,900 --> 00:42:26,720 proxy for production browsers. Basically what you do is you provide the browser a custom root 572 00:42:26,720 --> 00:42:32,480 certificate. So the browser knows okay, I'm going to trust whatever this random piece of code tells 573 00:42:32,480 --> 00:42:37,440 tells me. When the connect line comes in, we know the domain the 574 00:42:37,440 --> 00:42:40,200 browser is expecting to authenticate to. It's pre- 575 00:42:40,200 --> 00:42:44,200 declared to us. So we basically gin up a certificate at that 576 00:42:44,200 --> 00:42:49,040 point. We allow the connection to come in, and then we hook it 577 00:42:49,040 --> 00:42:52,720 up to an SSL connection of our own out to the internet. Now 578 00:42:52,720 --> 00:42:56,120 here's the thing. We are still going to, we are not actually 579 00:42:56,120 --> 00:43:00,740 going to, uh, certificate validate the cert out there. So 580 00:43:00,740 --> 00:43:04,040 we don't want to make these connections unless they're good. 581 00:43:04,240 --> 00:43:07,680 We're outsourcing certificate validation. We're not disabling 582 00:43:07,680 --> 00:43:11,860 it entirely. However, since we're outsourcing certificate 583 00:43:11,860 --> 00:43:17,100 validation to open SSL and open SSL is running freeload, we 584 00:43:17,100 --> 00:43:22,560 inherit DNSSEC for fun, uh, for nothing. And just so you see 585 00:43:22,560 --> 00:43:27,100 what this means, there's the browser lock from DNSSEC in 586 00:43:27,100 --> 00:43:30,720 internet explorer. There's the browser lock from DNSSEC in 587 00:43:30,740 --> 00:43:35,840 Firefox from DNSSEC. There's the browser lock in Chrome. No 588 00:43:35,840 --> 00:43:38,980 private build. It just works. Done. Move on. 589 00:43:49,600 --> 00:43:55,200 Now here's a neat trick. This, this is a bad idea of old style. 590 00:43:55,620 --> 00:43:59,740 Um, there's something very interesting we can do once we've 591 00:43:59,740 --> 00:44:00,720 outsourced validation. We can do a lot of things. We can do a 592 00:44:00,740 --> 00:44:04,440 lot of things. It doesn't involve DNSSEC. Barely even 593 00:44:04,440 --> 00:44:08,640 involves DNS. Wouldn't it be nice if we could bootstrap trust 594 00:44:09,140 --> 00:44:15,240 only with a domain name? What if we put the hash in the URL? 595 00:44:16,940 --> 00:44:19,680 Yeah, that's not a good idea. But it is actually something that 596 00:44:19,680 --> 00:44:23,360 works. So basically what we have here is HTTPS, SSL hash, 597 00:44:23,600 --> 00:44:28,580 big hash dot www dot PBA dot org. If you can go ahead, you 598 00:44:28,580 --> 00:44:30,720 can actually even extend this to, you can actually go ahead and 599 00:44:30,720 --> 00:44:34,700 you can put a hash in front of an IP address and the server will 600 00:44:34,700 --> 00:44:38,500 say, well, I connected to that IP. Here is the hash of that IP. 601 00:44:38,740 --> 00:44:43,740 I will let it through. There are lots of reasons why this is bad. 602 00:44:44,100 --> 00:44:48,380 But if you really, really need to bootstrap something and you 603 00:44:48,380 --> 00:44:51,420 don't have any other way of declaring what certificate you 604 00:44:51,420 --> 00:44:55,980 want to use, this is actually not the worst way, uh, way to go. 605 00:44:56,460 --> 00:45:00,120 Now, what's funny is this was actually inspired by this old file 606 00:45:00,120 --> 00:45:04,220 system called the self-certifying file system. Someone else made 607 00:45:04,220 --> 00:45:07,760 this link. It's called SFSHTTP, securing the web with 608 00:45:07,760 --> 00:45:10,840 self-certifying URLs. It was done by some guy, Michael Kaminski. 609 00:45:11,600 --> 00:45:16,320 Michael is my middle name. It was done in 99. Um, there are some 610 00:45:16,320 --> 00:45:19,460 scalability issues. What do you do if the, uh, the certificate is 611 00:45:19,460 --> 00:45:23,040 lost? But, like I said, there are some situations where I think 612 00:45:23,040 --> 00:45:26,040 it will actually be really useful to be able to say please 613 00:45:26,040 --> 00:45:30,100 bootstrap your initial, initial connectivity. Here is the URL. This 614 00:45:30,120 --> 00:45:34,420 And, by the way, the URL contains the hash of the identity you're speaking to. 615 00:45:35,080 --> 00:45:36,920 And, hey, it doesn't have to be a good idea. 616 00:45:37,240 --> 00:45:38,700 Sometimes it can just be cool. 617 00:45:40,140 --> 00:45:45,600 So around this point, you might be thinking, now is the time to get rid of the certificate authorities. 618 00:45:46,380 --> 00:45:46,840 No. 619 00:45:47,140 --> 00:45:50,800 The CAs are, in fact, more critical than ever. 620 00:45:51,280 --> 00:45:56,480 There are domains, www.bankofamerica.com, proctorandgamble.com, and so on. 621 00:45:56,480 --> 00:46:00,700 And there are brands, Proctor and Gamble, Yahoo Incorporated. 622 00:46:01,220 --> 00:46:03,320 Domains and brands are not the same thing. 623 00:46:03,860 --> 00:46:08,400 If you go ahead and you look at what the CAs have done to actually offer value, 624 00:46:08,720 --> 00:46:12,700 they have gone ahead and done a program called extended validation where they will say, 625 00:46:12,800 --> 00:46:16,840 this isn't just bankofamerica.com, this is the Bank of America Corporation. 626 00:46:17,680 --> 00:46:21,620 That's great because that is something DNS is not going to be able to do. 627 00:46:23,380 --> 00:46:25,320 Extended validation has some problems. 628 00:46:25,540 --> 00:46:26,360 I can't go into. 629 00:46:26,480 --> 00:46:33,720 If you want to know more, look at Mike Zussman and Alexander Zodorov's SSL rebinding attacks from Black Hat last year. 630 00:46:33,880 --> 00:46:44,420 And the basic problem is EV only protects you against phishing attacks if the attacker doesn't have a non-EV cert as well. 631 00:46:44,680 --> 00:46:51,080 So a bad guy who goes to lend the certificate check and gets a certificate for www.bankofamerica.com, 632 00:46:51,200 --> 00:46:55,120 he can go ahead and interfere with green bar communication. 633 00:46:55,120 --> 00:46:58,040 That's just the nature of the technology. 634 00:46:59,490 --> 00:47:00,960 But DKI fixes this. 635 00:47:01,220 --> 00:47:03,800 DKI has what we call the exclusionary property. 636 00:47:04,820 --> 00:47:10,340 When your DNS domain is registered through enum, GoDaddy cannot interfere with it. 637 00:47:10,500 --> 00:47:14,320 When your X509 certificate comes from VeriSign, GoDaddy can. 638 00:47:14,760 --> 00:47:19,140 It's because there's no actual link, no actual forcing function saying, 639 00:47:19,260 --> 00:47:22,440 when VeriSign's got a cert, GoDaddy can't. 640 00:47:22,440 --> 00:47:23,880 But you do have that in DNS. 641 00:47:24,240 --> 00:47:25,100 So what you can do is, 642 00:47:25,100 --> 00:47:26,780 what you can do under DKI systems is, 643 00:47:26,860 --> 00:47:32,620 you can say, the only canonical certificate for www.bankofamerica.com 644 00:47:32,620 --> 00:47:35,820 is the extended validation certificate issued by VeriSign. 645 00:47:36,020 --> 00:47:40,820 And any other certificate, I don't care who it's signed by, that cert's not valid. 646 00:47:41,040 --> 00:47:43,480 That ends the EV attacks. 647 00:47:43,940 --> 00:47:50,200 And while, yes, there are attacks under EV where there are, say, invisible subdomains, 648 00:47:50,240 --> 00:47:53,000 things from content distribution networks that load stuff, 649 00:47:53,280 --> 00:47:55,080 we can go ahead and we can use this. 650 00:47:55,100 --> 00:47:55,620 Same stuff. 651 00:47:55,740 --> 00:48:02,820 It is, in fact, cheaper to deploy a DNS record with those sub-machines' SSL certs 652 00:48:02,820 --> 00:48:06,180 than it is to go ahead and get SSL set up on them normally. 653 00:48:06,760 --> 00:48:08,820 So exclusion works there, too. 654 00:48:10,400 --> 00:48:17,500 Before we finish, I do believe that we promised users we would do something about email. 655 00:48:17,880 --> 00:48:24,880 Now, I don't know about you guys, but I am sick and tired of trying to find people's PGP, 656 00:48:25,100 --> 00:48:30,480 and worse, just sort of assuming that what I get back from the key server is valid. 657 00:48:30,960 --> 00:48:35,240 Wouldn't it be great if you could securely retrieve them via DNSSEC? 658 00:48:35,540 --> 00:48:37,400 Well, we've begun a project. 659 00:48:37,620 --> 00:48:42,380 It's called FreeGP, and it actually is porting end-to-end DNSSEC lookups to GPG. 660 00:48:43,460 --> 00:48:45,880 You might notice this is a little hideous. 661 00:48:46,060 --> 00:48:50,620 I've had to type echo foo GPG, no default keyring, keyring temp GPG, random random, 662 00:48:50,760 --> 00:48:55,020 encrypt, armor, auto keylocate PKI, dash R, test that. 663 00:48:55,020 --> 00:48:56,020 PBA.org. 664 00:48:56,240 --> 00:48:57,680 It's so user-friendly. 665 00:49:03,380 --> 00:49:06,540 GPG really does not want to be patched to do this. 666 00:49:06,760 --> 00:49:08,600 It has a bunch of DNS code in it. 667 00:49:08,720 --> 00:49:11,300 It's only present on the encryption side. 668 00:49:11,620 --> 00:49:14,440 The amount of rework that's going to be necessary to make this happen, 669 00:49:14,560 --> 00:49:17,940 effectively this work needs to be done inside of Enigmail. 670 00:49:18,120 --> 00:49:19,120 It's hideous. 671 00:49:19,640 --> 00:49:22,140 But, all right, I started it a little. 672 00:49:22,740 --> 00:49:24,520 Then I went ahead and looked at something. 673 00:49:24,520 --> 00:49:25,620 Anything else? 674 00:49:26,860 --> 00:49:27,380 DKIM. 675 00:49:27,700 --> 00:49:33,220 DKIM is a scheme for retrieving public keys, not certificates, for domains outside of DNS. 676 00:49:33,620 --> 00:49:40,380 It is pretty trivial to get end-to-end validation out of it, for in terms of, ah, ah, ah, ah, 677 00:49:40,480 --> 00:49:40,720 ah. 678 00:49:41,040 --> 00:49:46,320 So its goal is this mail server and that mail server want to know, okay, Google wants 679 00:49:46,320 --> 00:49:48,660 to know it's getting mail from the Bank of America server. 680 00:49:48,960 --> 00:49:53,100 The Bank of America server signs all of its mail with a particular private key. 681 00:49:53,300 --> 00:49:54,500 Google looks up the public keys. 682 00:49:54,520 --> 00:49:59,120 The public key in DNS validates the mail, only delivers it if it validates. 683 00:49:59,320 --> 00:50:00,180 That's cool. 684 00:50:00,260 --> 00:50:00,900 That's nice. 685 00:50:01,060 --> 00:50:04,000 There's no real user experience designed into it. 686 00:50:04,120 --> 00:50:06,720 Right now it's mostly an anti-spam system. 687 00:50:07,300 --> 00:50:11,460 Super trivial to do DNSSEC with it, and IETF is looking at making that happen. 688 00:50:11,620 --> 00:50:13,640 But I'm not really a fan. 689 00:50:13,860 --> 00:50:16,000 I want there to be a user experience. 690 00:50:16,640 --> 00:50:23,340 And the best user experiences out there, and that ain't saying much, is, um, is from S-MIME. 691 00:50:23,340 --> 00:50:29,660 S-MIME is the email encryption and decryption buttons you see inside of Outlook and inside 692 00:50:29,660 --> 00:50:30,380 of Thunderbird. 693 00:50:30,560 --> 00:50:32,540 There claims to be a plug-in for Gmail. 694 00:50:32,760 --> 00:50:33,500 It doesn't verify. 695 00:50:33,640 --> 00:50:34,560 It's dead to me. 696 00:50:37,300 --> 00:50:39,820 S-MIME has some key management problems. 697 00:50:40,200 --> 00:50:43,780 This is an understatement, but of course it has key management problems. 698 00:50:45,000 --> 00:50:46,340 It's based on certificates. 699 00:50:48,580 --> 00:50:53,060 Even if you have the greatest enterprise CA in the world. 700 00:50:53,340 --> 00:50:58,160 Meaning you have wonderful systems for sending email and getting everyone in your organization 701 00:50:58,160 --> 00:51:00,900 to have certificates, S-MIME has a problem. 702 00:51:01,140 --> 00:51:07,180 Which is some cheap little shop on the internet has root certs and they will go ahead and 703 00:51:07,680 --> 00:51:12,520 ship a cert for any email address if DNS tells them they're supposed to. 704 00:51:13,120 --> 00:51:14,700 And you know nothing could go wrong with DNS. 705 00:51:15,840 --> 00:51:17,720 So can we fix this? 706 00:51:18,540 --> 00:51:19,960 Actually, can we? 707 00:51:20,960 --> 00:51:23,320 We are able to hijack OpenSSL. 708 00:51:25,800 --> 00:51:29,700 We are able to hijack the browsers because of secure proxy. 709 00:51:30,020 --> 00:51:32,200 How are we supposed to hijack crypto API? 710 00:51:32,700 --> 00:51:37,640 The only sensibility point inside of Windows that we could find lets you reject certificates 711 00:51:38,080 --> 00:51:39,180 but not allow them. 712 00:51:39,600 --> 00:51:42,880 It doesn't let you say accept a certificate that's self-signed. 713 00:51:43,300 --> 00:51:46,840 We could write an Outlook plug-in, but who wants to do that? 714 00:51:47,680 --> 00:51:51,000 There's another trick, but you have to get me really smashed. 715 00:51:51,200 --> 00:51:52,300 Like one beer is not going to do it. 716 00:51:53,540 --> 00:51:55,080 So I guess we're hosed, right? 717 00:51:56,180 --> 00:52:00,860 Raise your hand if you recognize what this code does. 718 00:52:03,960 --> 00:52:04,240 Anyone? 719 00:52:05,760 --> 00:52:12,440 I'm just going to hope that it's, you know, byte temp jump size equals OXE9, OX90, OX90, 720 00:52:12,660 --> 00:52:16,280 OX90, OXC3, mem copy jump, temp jump size. 721 00:52:16,860 --> 00:52:18,480 There's some virtual protect in there. 722 00:52:19,440 --> 00:52:20,200 All right. 723 00:52:21,920 --> 00:52:22,480 So. 724 00:52:22,740 --> 00:52:23,300 Okay. 725 00:52:23,320 --> 00:52:26,660 So API hooking is not just for World of Warcraft anymore. 726 00:52:30,260 --> 00:52:31,380 Yeah, yeah. 727 00:52:32,780 --> 00:52:39,060 Most people use these tricks to hack World of Warcraft or we're going to hit crypto 728 00:52:39,060 --> 00:52:42,340 API in Outlook because damn it, I wanted it to work that bad. 729 00:52:45,080 --> 00:52:49,140 It is possible to inject code into any process to alter how it works. 730 00:52:50,620 --> 00:52:52,020 We've built FreeCappy. 731 00:52:52,020 --> 00:52:55,600 Which is DNS validation for Microsoft crypto API. 732 00:52:56,120 --> 00:53:00,120 Crypto API has a function called cert get certificate chain. 733 00:53:00,460 --> 00:53:03,400 If it returns true, the chain is valid. 734 00:53:03,920 --> 00:53:09,640 The call receives all sorts of interesting context about the certificate being validated. 735 00:53:10,840 --> 00:53:13,220 I'm not that much of a binary hacking guy. 736 00:53:13,380 --> 00:53:19,700 So imagine my surprise to find out when you inject a function with full symbols into a 737 00:53:19,700 --> 00:53:21,540 closed source application like Outlook. 738 00:53:22,020 --> 00:53:25,700 You get full debugging symbols at that particular point. 739 00:53:25,920 --> 00:53:30,640 So here's the certificate in the middle of Outlook with all of its debugging information 740 00:53:30,640 --> 00:53:31,260 valid. 741 00:53:31,740 --> 00:53:32,360 Awesome. 742 00:53:34,820 --> 00:53:36,520 So, what are we going to do? 743 00:53:37,040 --> 00:53:41,480 So we have this sign email here from Dan at the bank motto. 744 00:53:41,840 --> 00:53:44,400 Not exactly the most compelling image. 745 00:53:44,580 --> 00:53:47,740 You know look at 16 pixels throwing the Mark of award validation. 746 00:53:48,660 --> 00:53:49,080 Um. 747 00:53:49,360 --> 00:53:49,960 What? 748 00:53:49,960 --> 00:53:52,800 What we're going to do is we're going to add a checker. 749 00:53:52,940 --> 00:53:55,460 This is remote-dll.exe. 750 00:53:55,720 --> 00:53:57,820 It's not like I could have written this manually, 751 00:53:58,040 --> 00:54:00,840 but I thought if I'm going to use the World of Warcraft approach, 752 00:54:01,240 --> 00:54:04,160 I might as well use the World of Warcraft toolkit. 753 00:54:08,320 --> 00:54:12,040 Also, the website is securityexploded.com, 754 00:54:12,140 --> 00:54:15,620 and I'm pretty sure this is going to security-explode this guy's head. 755 00:54:16,760 --> 00:54:18,000 I was in what slides? 756 00:54:18,000 --> 00:54:21,360 So we're going to go ahead and we're going to inject 757 00:54:21,360 --> 00:54:25,560 our own cert-get certificate chain into Outlook. 758 00:54:26,120 --> 00:54:29,240 And when we do this, well, first off, 759 00:54:29,380 --> 00:54:30,720 we haven't done anything with DNS. 760 00:54:31,300 --> 00:54:32,800 Certificate validation is attempted. 761 00:54:33,160 --> 00:54:34,940 It's a totally valid certificate, 762 00:54:35,720 --> 00:54:38,200 but there are problems with the signature. 763 00:54:38,500 --> 00:54:39,940 Check the signature button. 764 00:54:40,180 --> 00:54:41,700 So we get this big red line. 765 00:54:41,920 --> 00:54:44,300 Look at that user experience. Awesome. 766 00:54:46,520 --> 00:54:47,980 Now what we do is, 767 00:54:48,000 --> 00:54:50,400 we go ahead and we take the fingerprint of the canonical certificate, 768 00:54:50,740 --> 00:54:55,220 the thing that is going to be used to sign mail from danatthebank.org, 769 00:54:55,340 --> 00:54:58,300 and it's, you know, 460C1BE3. 770 00:54:58,580 --> 00:55:00,800 We are going to shove that into DNS. 771 00:55:02,880 --> 00:55:03,400 460C1BE3. 772 00:55:05,260 --> 00:55:07,940 Now, this next time we validate the certificate, 773 00:55:08,180 --> 00:55:12,840 this value is going to be securely extracted from the DNS. 774 00:55:13,080 --> 00:55:16,800 It is going to match the certificate used to sign that email, 775 00:55:16,980 --> 00:55:17,520 and, 776 00:55:18,000 --> 00:55:20,240 the email will now come back signed. 777 00:55:20,440 --> 00:55:23,840 This is now the only certificate in the world 778 00:55:23,840 --> 00:55:25,260 from any certificate authority 779 00:55:25,260 --> 00:55:28,560 that can be used to sign mail from the bank. 780 00:55:29,540 --> 00:55:32,820 That's actually not something we've been able to do before. 781 00:55:33,080 --> 00:55:34,620 Never been possible. 782 00:55:35,260 --> 00:55:35,720 Now, 783 00:55:36,340 --> 00:55:37,660 you shouldn't be that impressed, 784 00:55:37,940 --> 00:55:41,100 because it's 16 pixels! Who cares? 785 00:55:41,240 --> 00:55:43,440 What user is going to give a crap about that? 786 00:55:43,840 --> 00:55:47,440 You ever wonder why they're giving you so little visual information? 787 00:55:48,000 --> 00:55:48,720 Let me tell you. 788 00:55:49,080 --> 00:55:51,080 Under the normal S-MIME model, 789 00:55:51,260 --> 00:55:53,500 we have had so little assurance, 790 00:55:53,880 --> 00:55:55,480 so little validation, 791 00:55:55,720 --> 00:55:57,440 that what we're seeing is legitimate. 792 00:55:57,840 --> 00:55:59,080 So what we have is, 793 00:55:59,180 --> 00:56:00,780 when the certificate validates, 794 00:56:00,780 --> 00:56:01,980 we put a few pixels on. 795 00:56:02,160 --> 00:56:03,960 And when it's bad, we're like, eh. 796 00:56:05,340 --> 00:56:06,740 We can do better. 797 00:56:07,060 --> 00:56:09,640 We can strongly identify email senders now. 798 00:56:09,720 --> 00:56:11,400 We can strongly identify the brands. 799 00:56:11,840 --> 00:56:13,980 What if that certificate, 800 00:56:14,120 --> 00:56:16,000 that the DNSSEC was validating, 801 00:56:16,080 --> 00:56:17,980 what if that certificate wasn't even validating? 802 00:56:18,000 --> 00:56:20,460 What if you weren't just getting mail 803 00:56:20,460 --> 00:56:22,000 from dan at the bank dot org? 804 00:56:22,100 --> 00:56:23,560 What if you were getting mail 805 00:56:23,560 --> 00:56:26,520 from dan at the bank incorporated, 806 00:56:26,880 --> 00:56:28,740 and the green bar experience from the browser 807 00:56:28,740 --> 00:56:30,200 actually showed up in email? 808 00:56:30,560 --> 00:56:32,800 We would be able to tell users, legitimately, 809 00:56:33,140 --> 00:56:35,140 when you receive an email from the bank, 810 00:56:35,300 --> 00:56:37,400 someday soon, you will know 811 00:56:37,760 --> 00:56:39,520 it came from the bank. 812 00:56:42,740 --> 00:56:43,260 Conclusion. 813 00:56:43,680 --> 00:56:44,520 Oh, go ahead. 814 00:56:53,760 --> 00:56:55,280 So, DKI is coming. 815 00:56:55,820 --> 00:56:57,200 Get on board or don't, 816 00:56:57,320 --> 00:57:00,400 but here's what we're delivering for you to see. 817 00:57:00,940 --> 00:57:03,320 We have shown you that DNSSEC 818 00:57:03,320 --> 00:57:04,960 can be deployed in two minutes. 819 00:57:05,560 --> 00:57:07,360 We have shown you that we can achieve 820 00:57:07,360 --> 00:57:09,680 end-to-end security no matter how messed up 821 00:57:09,680 --> 00:57:11,020 the hotel network happens to be. 822 00:57:11,280 --> 00:57:12,980 We have shown you federation 823 00:57:12,980 --> 00:57:14,840 for probably good federation 824 00:57:14,840 --> 00:57:16,340 for the first time in your career. 825 00:57:16,340 --> 00:57:20,140 We have shown you how every OpenSSL application 826 00:57:20,140 --> 00:57:21,680 can use this technology 827 00:57:21,680 --> 00:57:23,900 using a simple LD preload. 828 00:57:24,140 --> 00:57:25,920 We have shown how real browsers 829 00:57:25,920 --> 00:57:28,720 are going to have real useful experiences 830 00:57:28,720 --> 00:57:29,700 with this tech. 831 00:57:29,880 --> 00:57:32,040 And we've shown you how certificate authorities 832 00:57:32,040 --> 00:57:33,240 and extended validation 833 00:57:33,240 --> 00:57:35,060 are going to combine with DNSSEC 834 00:57:35,060 --> 00:57:37,260 to finally give us secure email. 835 00:57:37,480 --> 00:57:38,560 That is what I've got. 836 00:57:38,720 --> 00:57:39,680 Get to work building. 837 00:57:39,820 --> 00:57:40,760 Get to work breaking. 838 00:57:47,400 --> 00:57:48,780 Thank you.