1 00:00:00,740 --> 00:00:05,240 Actually, wait. I'm standing in for Randy Vaughn. My name is Paul Vixie. 2 00:00:08,180 --> 00:00:15,060 Randy can't be here for family reasons and he knew I was here and that I have kicked 3 00:00:15,060 --> 00:00:20,040 Gotti while he was at the microphone before and that I would be okay for substituting 4 00:00:20,040 --> 00:00:25,480 for him on this talk. Many of you know Gotti Evron. He's working on downloading presentations 5 00:00:25,480 --> 00:00:38,600 because my laptop decided that this projector was evil in some way. So, what exactly qualifies 6 00:00:38,600 --> 00:00:40,060 you to give a talk on . 7 00:00:48,280 --> 00:00:52,400 I wish I'd thought of disabling your microphone but I didn't. 8 00:00:53,420 --> 00:00:55,340 Okay, just for clarification. 9 00:00:55,460 --> 00:01:00,800 This guy knows absolutely nothing about DNS, which is why we asked him to come here and 10 00:01:00,800 --> 00:01:04,620 fill in for us, because if we know nothing and he knows nothing, it's pretty much the 11 00:01:04,620 --> 00:01:05,020 same level. 12 00:01:05,360 --> 00:01:05,440 Okay? 13 00:01:08,200 --> 00:01:13,040 I'm not going to go over my whole bio, but what it says in the book is that... 14 00:01:13,040 --> 00:01:13,860 I will go over his bio. 15 00:01:14,040 --> 00:01:14,580 Paul Vixie. 16 00:01:14,600 --> 00:01:14,960 No, no, no. 17 00:01:14,960 --> 00:01:15,360 Shut up. 18 00:01:15,400 --> 00:01:16,020 You have work to do. 19 00:01:16,900 --> 00:01:20,540 Paul Vixie, to make a long story short, is a... 20 00:01:24,140 --> 00:01:29,660 So what it says in the book is that I hold the record for most cert advisories due to 21 00:01:29,660 --> 00:01:30,300 a single author. 22 00:01:30,300 --> 00:01:32,200 In other words, since you wrote the book, he doesn't know shit. 23 00:01:34,300 --> 00:01:40,700 Which actually is true, if you count SendMail and Cron and WooFTP and all the 24 00:01:40,700 --> 00:01:40,940 others. 25 00:01:41,720 --> 00:01:49,420 I did stop writing code, started writing paychecks instead, so I now sort of don't 26 00:01:49,420 --> 00:01:50,140 wear a suit anymore. 27 00:01:50,140 --> 00:01:54,320 But I do just management rather than programming, and you should all be thankful for that. 28 00:01:56,400 --> 00:02:00,440 In any case, during the years I wrote a lot of code, I also got to know a lot of DNS operators, 29 00:02:00,800 --> 00:02:03,340 and so they still call me when they have trouble. 30 00:02:05,160 --> 00:02:07,240 I like to track attacks. 31 00:02:07,800 --> 00:02:13,060 Sometimes I will ask someone or invite someone to be hosted inside of ISC so that when they 32 00:02:13,060 --> 00:02:15,700 are attacked, I'll be in a better position to help track that attack. 33 00:02:16,960 --> 00:02:18,640 That's not what happened here, but... 34 00:02:19,720 --> 00:02:20,120 Okay. 35 00:02:20,120 --> 00:02:25,840 And on with the actual topic, which Gadi will eventually get slides for. 36 00:02:27,460 --> 00:02:34,760 DNS amplification is a little bit like the old ping flood, where you spoof the source 37 00:02:34,760 --> 00:02:41,440 address of your victim and you send it toward some middle box, some reflector who just sees 38 00:02:41,440 --> 00:02:47,000 that as a normal ICMP query or DNS query, whatever it happens to be, and responds to 39 00:02:47,000 --> 00:02:47,240 it. 40 00:02:47,240 --> 00:02:52,880 Of course, the attractive part of this, there are two attractions to doing a reflector attack 41 00:02:52,880 --> 00:02:54,640 when you want to ping bomb somebody. 42 00:02:55,020 --> 00:02:59,800 One is that the traffic that is hitting the victim is not coming from the attacker, and 43 00:02:59,800 --> 00:03:01,700 so it's a little bit harder to track down. 44 00:03:01,920 --> 00:03:08,040 They can't come immediately back to you and say, ah-ha, I see that you're sending me gigabits 45 00:03:08,040 --> 00:03:11,620 worth of traffic, and I see your IP address in the trace route, and so I'm going to come 46 00:03:11,620 --> 00:03:14,320 after you with guns or lawyers or whatever it is. 47 00:03:15,920 --> 00:03:16,360 Instead... 48 00:03:16,360 --> 00:03:17,040 Okay. 49 00:03:17,240 --> 00:03:22,720 ...the victim has to go through a large number of these middle boxes and see if they can 50 00:03:22,720 --> 00:03:26,980 get trace routes done from there, but the trace route won't help because the source 51 00:03:26,980 --> 00:03:28,960 address was spoofed at the time it reached there. 52 00:03:29,860 --> 00:03:31,280 I do have a USB dock. 53 00:03:31,620 --> 00:03:32,740 I'll talk while you copy. 54 00:03:34,060 --> 00:03:36,280 Yes, you copy. 55 00:03:36,400 --> 00:03:36,740 I'll talk. 56 00:03:36,980 --> 00:03:37,960 That will work. 57 00:03:38,200 --> 00:03:38,520 Hi. 58 00:03:39,900 --> 00:03:43,880 Basically, what happened is that we have the presentations, but Paul's laptop was supposed 59 00:03:43,880 --> 00:03:44,620 to be connected. 60 00:03:46,760 --> 00:03:48,720 Well, that's a story, basically. 61 00:03:49,080 --> 00:03:56,140 Right now, Paul is skillfully moving over his mousepad and trying to mount the USB drive, 62 00:03:56,400 --> 00:03:57,060 the dongle. 63 00:03:58,380 --> 00:04:01,600 Now that he's done that, he's moving the window around very skillfully. 64 00:04:01,760 --> 00:04:01,940 What? 65 00:04:08,240 --> 00:04:11,120 He's kind of shy, which shows that he probably knows what he's doing. 66 00:04:12,560 --> 00:04:13,080 Okay. 67 00:04:13,140 --> 00:04:13,920 A little bit about Paul. 68 00:04:14,080 --> 00:04:14,600 Okay. 69 00:04:14,620 --> 00:04:14,820 So, again... 70 00:04:14,820 --> 00:04:19,500 I don't really have any feel or things to do except for bad jokes... 71 00:04:23,600 --> 00:04:24,900 And more bad jokes. 72 00:04:25,320 --> 00:04:26,860 Okay, the NSSimplification attacks. 73 00:04:28,780 --> 00:04:33,000 There has been a lot of confusion about the NSSimplification attacks, and when it comes 74 00:04:33,000 --> 00:04:36,800 down to it, nothing is new about the NullofService attacks on the Internet. 75 00:04:37,000 --> 00:04:38,420 Bruteforce and the NullofService attacks. 76 00:04:39,040 --> 00:04:42,260 What does change over time are the techniques used. 77 00:04:43,020 --> 00:04:43,960 Whether they are... 78 00:04:43,960 --> 00:04:49,180 indeed brute force or, in fact, exploiting some sort of vulnerability in whatever space 79 00:04:49,180 --> 00:04:56,380 that may be, and how effective they are for how much you spend, which means if you send 80 00:04:56,380 --> 00:05:04,080 one packet and you get back 11 to a potential 255, say, Smurf, that's pretty impressive. 81 00:05:04,900 --> 00:05:09,140 And with DNS, DNS attacks basically have been around for a long time. 82 00:05:10,040 --> 00:05:10,920 Paul, how's it going? 83 00:05:11,320 --> 00:05:12,020 Going well. 84 00:05:12,120 --> 00:05:12,820 Going well, okay. 85 00:05:12,820 --> 00:05:19,780 And the point is that instead of sending one packet that is very, very difficult to filter 86 00:05:19,780 --> 00:05:24,820 and the DNS server would have to receive, whether it is legitimate or not, again, this 87 00:05:24,820 --> 00:05:29,420 is UDP-based, you can send more. 88 00:05:30,040 --> 00:05:31,560 That's the basic of it. 89 00:05:31,660 --> 00:05:36,940 And when you can send gigabits of traffic, amounting up to even 10 gigabits at a time, 90 00:05:37,080 --> 00:05:38,780 that can be kind of significant. 91 00:05:38,920 --> 00:05:40,600 Anybody ever heard of blue security? 92 00:05:42,820 --> 00:05:42,960 No? 93 00:05:43,580 --> 00:05:46,200 Yeah, okay, people heard of blue security, that's great. 94 00:05:47,460 --> 00:05:48,100 The what? 95 00:05:48,480 --> 00:05:50,760 Blue fork what? 96 00:05:51,840 --> 00:05:52,280 What? 97 00:05:53,140 --> 00:05:54,760 Okay, great, you can go now to the mic. 98 00:05:58,720 --> 00:06:05,740 All right, as Scotty was trying to say, before his humor got in his way again, 99 00:06:07,440 --> 00:06:12,320 the important part about these attacks is not just that they come from someone who is not the attacker, 100 00:06:12,820 --> 00:06:17,720 and are thus very hard to track, but that the response that are sent by these middleboxes 101 00:06:17,720 --> 00:06:20,560 are much bigger than the attack that is launched by the attacker. 102 00:06:20,960 --> 00:06:27,180 So yes, we know that you can assemble a botnet of 10,000 or a million or whatever nodes, 103 00:06:27,340 --> 00:06:32,500 and send somebody one packet each from each of those places, but that's not artful. 104 00:06:32,700 --> 00:06:37,620 So it's much more artful if you can get a couple of hundred of these things and generate 105 00:06:37,620 --> 00:06:39,840 gigabits worth of traffic toward the victim. 106 00:06:40,020 --> 00:06:40,160 Okay. 107 00:06:40,160 --> 00:06:43,440 And that's what happened in this case. 108 00:06:43,620 --> 00:06:45,060 I have two sets of slides. 109 00:06:45,240 --> 00:06:51,340 One was generated by Randy and Gadi from the paper that they published on this topic. 110 00:06:52,040 --> 00:06:55,520 Another was published, was released by VeriSign. 111 00:06:58,680 --> 00:06:59,640 Male Speaker 2 in audience. 112 00:06:59,640 --> 00:07:00,340 Male Speaker 2 in audience. 113 00:07:02,340 --> 00:07:09,680 The other set was... 114 00:07:09,680 --> 00:07:10,140 Male Speaker 2 in audience. 115 00:07:10,160 --> 00:07:14,860 Given by VeriSign at a NANOG meeting, and I know the people at VeriSign. 116 00:07:14,980 --> 00:07:20,880 So even though VeriSign as a corporation has sued me or at least they named me as a co-conspirator 117 00:07:20,880 --> 00:07:22,180 during the Site Finder Wars. 118 00:07:22,960 --> 00:07:25,800 And I have no love for the corporation as a whole. 119 00:07:25,980 --> 00:07:29,880 I have to admit that they have some very smart people working there and some of them are 120 00:07:29,880 --> 00:07:30,360 my friends. 121 00:07:30,540 --> 00:07:35,260 So I have his slides that were given at NANOG and there's some pretty juicy graphics on 122 00:07:35,260 --> 00:07:35,640 that one. 123 00:07:36,540 --> 00:07:40,040 So what we'll do with the time we'll have left. 124 00:07:40,040 --> 00:07:45,480 if we ever get the AV situation straightened out, is run through both sets of slides quickly. 125 00:07:46,980 --> 00:07:53,340 And in the last 20 minutes or so, I'm hoping we'll get to kind of a question and answer 126 00:07:53,340 --> 00:07:57,480 about, well, what does it all mean? What can I do about it? What can I do to avoid being 127 00:07:57,480 --> 00:08:03,580 affected by it? Probably we will get around to why are we using a laboratory-grade Internet 128 00:08:03,580 --> 00:08:09,560 for, you know, production traffic, because that usually comes up in this type of talk. 129 00:08:11,800 --> 00:08:12,320 Gotti. 130 00:08:12,480 --> 00:08:12,700 Yes. 131 00:08:13,120 --> 00:08:14,000 What are you doing? 132 00:08:15,100 --> 00:08:15,900 Wasting time. 133 00:08:17,000 --> 00:08:18,440 I think he's reading his e-mail. 134 00:08:22,540 --> 00:08:27,260 All right. Something not covered in the slides, so I won't be boring you when I go 135 00:08:27,260 --> 00:08:33,560 over it again later, which I won't. DNS had originally come of age in a time when 136 00:08:33,560 --> 00:08:39,980 you could only have 512 bytes in a response. That was irrespective of the headers, the 137 00:08:39,980 --> 00:08:45,460 IP headers, the UDP headers and whatnot. You could include 512 bytes. And that seemed like 138 00:08:45,460 --> 00:08:51,580 a gargantuan lot, sort of the way that 640K must have seemed like a gargantuan lot to 139 00:08:51,580 --> 00:08:57,860 the people who invented the computer that had that as its limitation. Eventually, all 140 00:08:57,860 --> 00:09:03,260 sorts of new things went into DNS and 512 bytes started looking pretty small, especially 141 00:09:03,260 --> 00:09:12,360 the crypto stuff that goes with DNS security. So the IETF stood around and wrung its hands 142 00:09:12,360 --> 00:09:18,620 and stared off into space for a long time. And I eventually came and made myself less 143 00:09:18,620 --> 00:09:23,700 popular. It's been sort of an incremental process, making myself less popular by coming 144 00:09:23,700 --> 00:09:29,880 in with a working solution that's already implemented in Bind and has a, you know, RFC 145 00:09:29,880 --> 00:09:33,240 that documents it and so forth. And so they were left with nothing to do with it. 146 00:09:33,260 --> 00:09:36,680 They were left with nothing to do but say, well, okay, well, let's do it that way. And 147 00:09:36,680 --> 00:09:44,660 the result was RFC 2671, so-called EDNS, extended DNS. And it adds a number of interesting 148 00:09:44,660 --> 00:09:49,320 protocol features to DNS, but the important one for the purpose of this talk is that it 149 00:09:49,320 --> 00:09:56,280 relaxed that 512 byte limit so that when you are sending a response, if the person 150 00:09:56,280 --> 00:10:01,320 who sent you the request indicated with the EDNS signaling extensions, if they indicated 151 00:10:01,320 --> 00:10:03,240 in their request that they can take a request, they can take a request and they can take 152 00:10:03,240 --> 00:10:07,860 a bigger response than the standard 512, then you'll send them a bigger response. 153 00:10:09,180 --> 00:10:15,540 And the fallback, if you can't fit your response into the available space, is that the requester 154 00:10:15,540 --> 00:10:22,160 gets told that it wouldn't fit and the requester has to start over with TCP. Now, if you are 155 00:10:22,740 --> 00:10:28,760 sort of watching, as I do, a root name server take 10, 20,000 queries a second around the 156 00:10:28,760 --> 00:10:33,220 clock, you know that a UDP, which is two packets, one request, one response, is going to be 157 00:10:33,220 --> 00:10:40,300 a lot cheaper than TCP, which is a minimum of about seven packets. So we try to avoid 158 00:10:40,300 --> 00:10:45,300 overflowing that 512 bytes as often as possible, because if we didn't, then the Internet would 159 00:10:45,300 --> 00:10:48,500 stop working, although I'm not sure how we would tell. Boy, they're having more fun 160 00:10:48,500 --> 00:10:57,500 than us. So what you do... 161 00:10:57,500 --> 00:10:59,220 Male Presenter 2 in audience member's office. Any experts on NVIDIA drivers here? 162 00:10:59,740 --> 00:11:02,040 Male Presenter 2 in audience member's office. Oh, God. All right. We're winging it. 163 00:11:02,180 --> 00:11:03,200 Male Presenter 2 in audience member's office. It was supposed to be your block. 164 00:11:03,600 --> 00:11:05,620 Male Presenter 2 in audience member's office. No, it was supposed to be your laptop. We 165 00:11:05,620 --> 00:11:07,560 were going to use mine because you couldn't get yours working. 166 00:11:08,520 --> 00:11:14,520 Male Presenter 2 in audience member's office. I agree. Let's hook up a Mac. I've got it 167 00:11:14,520 --> 00:11:16,020 right here on a USB dongle. 168 00:11:16,300 --> 00:11:18,080 Male Presenter 2 in audience member's office. Somebody bring a Mac up here. 169 00:11:19,120 --> 00:11:21,920 Male Presenter 2 in audience member's office. No, it's cool. We'll get it. I doubt it. 170 00:11:22,260 --> 00:11:24,500 Male Presenter 2 in audience member's office. That's not a Mac. That is a Mac. 171 00:11:25,700 --> 00:11:32,980 Male Presenter 2 in audience member's office. Okay. So naturally, when you want 172 00:11:32,980 --> 00:11:38,200 want to attack, if you want your, the middle box response, the actual attack flow to be 173 00:11:38,200 --> 00:11:42,140 bigger than the triggering flow that you're sending from your little botnet, you need 174 00:11:42,140 --> 00:11:52,000 amplification. And is Mike Schiffman in the room? Mike, stand up. No? Okay. Dan Kaminski 175 00:11:52,780 --> 00:12:02,560 in the room. Oh man, they're with the fun people. Okay, so those guys have done some 176 00:12:02,560 --> 00:12:09,140 studies on a form of amplification that just continues to mystify all of us, which is where 177 00:12:09,140 --> 00:12:13,920 you send one packet to something that you think is a DNS server and you get anywhere 178 00:12:13,920 --> 00:12:20,640 between 20 and 50 responses to it. So it's some kind of broadcast amplifier. We don't 179 00:12:20,640 --> 00:12:26,380 know exactly what it is, but there are a lot of them. It's a common enough thing. So if 180 00:12:26,380 --> 00:12:30,820 you do what Dan Kaminski does, which is to sort of sweep the IPv4 address space with 181 00:12:30,820 --> 00:12:32,540 DNS queries, sometimes you get a lot of responses. 182 00:12:32,540 --> 00:12:35,500 Sometimes you get nothing. Sometimes you get a response from an address you didn't send 183 00:12:35,500 --> 00:12:42,220 the query to. Sometimes you get a lot of responses. These guys, the ones who launched the attacks 184 00:12:42,220 --> 00:12:46,260 that we're going to describe, if we ever get this working. Hey, I see a Mac. That's going 185 00:12:46,260 --> 00:12:48,220 to work. Okay. 186 00:12:48,560 --> 00:12:49,320 We got it. Hold on. 187 00:12:49,520 --> 00:12:50,760 They think they've got it. 188 00:12:51,500 --> 00:12:51,940 Woo! 189 00:12:53,220 --> 00:12:56,040 So the guys that launched this attack. 190 00:12:56,120 --> 00:12:59,000 Fuck this shit! Woo! Woo! 191 00:13:00,060 --> 00:13:02,520 Apparently, there was an NVIDIA, I don't know if it was NVIDIA, but it was 192 00:13:02,540 --> 00:13:09,440 a tool bar. What the fuck? Okay. Paul, which one do you want first? And thank you, whoever 193 00:13:09,440 --> 00:13:16,080 you are. I don't know you. Whoever you are. I'm dissing on you after you tried to help 194 00:13:16,080 --> 00:13:16,280 me. 195 00:13:18,880 --> 00:13:19,960 I've got my hands full. 196 00:13:20,040 --> 00:13:20,540 Yeah, kind of. 197 00:13:21,060 --> 00:13:22,720 Can we have Randy's slides, please? 198 00:13:23,260 --> 00:13:24,160 Which ones are those? 199 00:13:25,400 --> 00:13:26,580 The PowerPoint file. 200 00:13:26,880 --> 00:13:28,400 Oh. Figures. 201 00:13:31,520 --> 00:13:32,480 Yeah, pretty much. 202 00:13:32,540 --> 00:13:33,440 I need my Linux. 203 00:13:35,620 --> 00:13:39,380 Had I made these, they would have been in ODP format, just so you know. 204 00:13:41,040 --> 00:13:43,880 It's supposed to be, yep, here it is, F5. Here we go. 205 00:13:44,540 --> 00:13:44,940 Hey! 206 00:13:50,500 --> 00:13:57,760 Can you hear me now? Okay. So the fellows who launched this attack, I assume they're 207 00:13:57,760 --> 00:14:01,200 guys, because women are usually more polite about this kind of stuff, or sneakier. 208 00:14:03,240 --> 00:14:10,300 The folks who launched this attack did a little bit of research to find out where the open 209 00:14:10,300 --> 00:14:14,420 recursive name servers were. In other words, name servers that were willing to respond 210 00:14:14,420 --> 00:14:20,720 to queries that did not come from their lands. So they either got a hold of Dan Kaminsky's 211 00:14:20,720 --> 00:14:24,840 data set, or they just did what everybody else does, which is to add to the cosmic 212 00:14:24,840 --> 00:14:28,740 background radiation on the internet and send a packet to every possible address and see 213 00:14:28,740 --> 00:14:29,220 what answers. 214 00:14:29,220 --> 00:14:36,180 Anyway, they had an idea of where they could send this stuff. But they didn't use it. 215 00:14:36,420 --> 00:14:41,600 At least in the attack that we heard about through VeriSign, it did not get used that way. 216 00:14:41,960 --> 00:14:50,040 What they did instead was they let their bots send their DNS traffic to whatever was the victim 217 00:14:50,040 --> 00:14:56,820 PC's normal name server. And what we discovered by analyzing the attack is that those name servers 218 00:14:56,820 --> 00:15:01,920 are willing to believe spoofed traffic that comes from within their own ISPs. 219 00:15:03,380 --> 00:15:08,580 It is a mystery to me how the internet works at all, but I guess I've said that before. 220 00:15:09,620 --> 00:15:14,900 So, on with Randy Vaughn and Gaddy Evron's slides quickly, and then we'll get on to VeriSign's 221 00:15:14,900 --> 00:15:18,700 slides, and then we'll get on to what I hope will be the real meat of this, which is Q&A. 222 00:15:20,920 --> 00:15:26,140 Okay, you're wondering, what is all that crap? Okay, the thing at the far right, although you can't read it, 223 00:15:26,140 --> 00:15:29,320 is TXT. These are queries for text records. 224 00:15:29,880 --> 00:15:32,740 Actually, these are responses about text records. 225 00:15:33,040 --> 00:15:37,060 And what the rest of it is trying to tell you is that these are frags, 226 00:15:38,260 --> 00:15:44,040 that the real message that you're seeing the pieces of is about 8K in length, 227 00:15:44,160 --> 00:15:48,900 and that you're seeing 1500 byte frags because there's some sort of path MTU limitation 228 00:15:48,900 --> 00:15:51,320 between the middle box and the victim. 229 00:15:52,580 --> 00:15:56,020 One of the ways that this is sometimes mitigated is by 230 00:15:56,140 --> 00:15:59,800 turning off the reception of fragments, UDP fragments, 231 00:16:00,060 --> 00:16:03,980 but there isn't enough information in the headers of a fragment, 232 00:16:04,140 --> 00:16:08,260 because the UDP header is only in the first frag, so there are certain things you can't do. 233 00:16:08,380 --> 00:16:15,200 You end up eating the bandwidth for everything after, I don't know, it's hard to mitigate this. 234 00:16:15,420 --> 00:16:16,680 I guess I'm getting ahead of myself. 235 00:16:18,520 --> 00:16:20,220 Since you can't read this, we'll move on. 236 00:16:20,380 --> 00:16:22,160 Here's what they look like up close. 237 00:16:22,720 --> 00:16:24,480 You can see that Randy is a gentleman. 238 00:16:24,480 --> 00:16:29,400 He didn't want the slash 24 that this had come through to be visible, 239 00:16:29,560 --> 00:16:33,020 so you can see that the last octets were .37 and .46. 240 00:16:33,820 --> 00:16:38,720 But really, you're just seeing something that came from port 53, 241 00:16:38,940 --> 00:16:42,720 which is a name server, and the destination port, in this case, 31000 and some, 242 00:16:42,800 --> 00:16:46,120 which was a random address chosen for a client context. 243 00:16:46,640 --> 00:16:49,600 And it's saying, okay, it's a DNS truncation event. 244 00:16:49,860 --> 00:16:54,460 What a shock, because somebody tried to send an 8K UDP message, 245 00:16:54,460 --> 00:16:56,580 a MobiGram, down a channel that didn't have it, 246 00:16:56,660 --> 00:17:00,280 and this is only a small part of it the packet capture utility could get to. 247 00:17:01,480 --> 00:17:02,500 More of the same. 248 00:17:03,980 --> 00:17:04,900 More of the same. 249 00:17:05,000 --> 00:17:06,640 I guess Randy likes hex more than I do. 250 00:17:09,840 --> 00:17:11,880 So that RFC number is wrong. 251 00:17:12,000 --> 00:17:12,560 We revved it. 252 00:17:12,620 --> 00:17:15,480 It's 2845 now, not 2671. 253 00:17:18,940 --> 00:17:23,680 What's going on here is sort of... 254 00:17:24,460 --> 00:17:24,840 Oh, God. 255 00:17:28,160 --> 00:17:29,580 All right, here we go. 256 00:17:29,800 --> 00:17:31,580 There's a mixture of NX domains. 257 00:17:33,380 --> 00:17:34,880 There are TXTs. 258 00:17:35,500 --> 00:17:37,720 There's a certain number of any queries. 259 00:17:37,840 --> 00:17:39,460 Most of the queries were for type any. 260 00:17:40,240 --> 00:17:44,400 And what type any means in DNS is somewhat opportunistic. 261 00:17:44,460 --> 00:17:48,140 If you send a query for all record types, which is qtype any, 262 00:17:48,300 --> 00:17:50,780 to an authority server, it will tell you the truth. 263 00:17:50,980 --> 00:17:51,740 It will tell you... 264 00:17:51,740 --> 00:17:55,280 It will give you the entire list of all the resource record sets of all types 265 00:17:55,280 --> 00:17:56,700 that are present at the name you asked. 266 00:17:56,920 --> 00:18:01,040 But if you ask it of some intermediate caching resolving name server, 267 00:18:01,240 --> 00:18:03,540 like the ones you list in your resolve.conf file 268 00:18:03,540 --> 00:18:05,620 or get told when you do a DHCP transaction, 269 00:18:06,280 --> 00:18:07,980 it does not tell you the truth. 270 00:18:08,160 --> 00:18:09,460 It tells you only what it knows. 271 00:18:10,200 --> 00:18:13,720 So if it has no data for that type in its cache, 272 00:18:13,920 --> 00:18:15,340 it will tell you that there's no data. 273 00:18:15,840 --> 00:18:17,600 So type any is kind of useless. 274 00:18:18,020 --> 00:18:20,200 But these guys found a great use for it. 275 00:18:20,680 --> 00:18:21,120 So... 276 00:18:21,800 --> 00:18:24,840 They started out by seeding all of the name servers 277 00:18:24,840 --> 00:18:26,720 that they wanted to use as their middle boxes 278 00:18:26,720 --> 00:18:29,760 by making a query for type txt 279 00:18:29,760 --> 00:18:32,000 so that there would be something in the cache. 280 00:18:32,780 --> 00:18:36,280 And they did this with tcp as their transport 281 00:18:36,280 --> 00:18:39,240 and they did this with something that they knew 282 00:18:39,240 --> 00:18:41,040 would be about 8k worth of text. 283 00:18:41,920 --> 00:18:42,720 And then... 284 00:18:43,340 --> 00:18:45,300 Man, oh man, they're having more fun than us. 285 00:18:46,160 --> 00:18:47,180 I want to be over there. 286 00:18:47,360 --> 00:18:47,920 Can we stop? 287 00:18:48,060 --> 00:18:48,760 No, I'm sorry. 288 00:18:48,880 --> 00:18:49,640 We're not going to stop. 289 00:18:51,180 --> 00:18:52,980 And then they launched the real attack, 290 00:18:53,160 --> 00:18:56,360 which was a fairly small trickle of stuff 291 00:18:57,240 --> 00:19:01,680 that turned into an avalanche at the victim site. 292 00:19:02,540 --> 00:19:05,920 Enough of an avalanche that chances are 293 00:19:05,920 --> 00:19:07,940 that no matter what they did in their firewall, 294 00:19:08,100 --> 00:19:10,620 their upstream link would have been saturated, 295 00:19:11,640 --> 00:19:13,640 which is the traditional DDoS effect. 296 00:19:14,260 --> 00:19:16,960 Yes, I built a name server that was a mile high 297 00:19:16,960 --> 00:19:19,500 and took 10 terawatts of power to operate, 298 00:19:19,720 --> 00:19:20,700 but then you... 299 00:19:20,700 --> 00:19:24,060 sort of blew the fuse inside all of my ISPs 300 00:19:24,060 --> 00:19:27,740 and so I didn't receive the traffic I was paying to receive. 301 00:19:31,960 --> 00:19:35,140 This was discussed to death on Nanog 302 00:19:35,800 --> 00:19:38,760 and there were all kinds of people 303 00:19:38,760 --> 00:19:40,600 who were theorizing about things 304 00:19:40,600 --> 00:19:42,120 and very few of them... 305 00:19:42,120 --> 00:19:43,600 I guess it's the usual sort of deal. 306 00:19:43,700 --> 00:19:46,680 I'm sure it's true in your user communities also. 307 00:19:46,740 --> 00:19:49,320 The people who actually knew the answer did not speak up. 308 00:19:54,820 --> 00:19:58,040 So what the amplification looked like 309 00:19:58,040 --> 00:20:03,320 is a whole bunch of maybe 20-byte packets got sent in 310 00:20:03,320 --> 00:20:06,340 and a whole bunch of 8K Mobygrams came out. 311 00:20:06,660 --> 00:20:09,400 And when all was said and done, 312 00:20:10,180 --> 00:20:13,720 it was a 63 to 1 amplification factor, 313 00:20:13,960 --> 00:20:18,180 which if you think about the bad old days of Smurf amplifiers, 314 00:20:18,420 --> 00:20:20,680 63 to 1 is damn good. 315 00:20:23,540 --> 00:20:24,220 Estimates are, 316 00:20:24,340 --> 00:20:26,080 and we'll get to this in the VeriSign slides, 317 00:20:26,340 --> 00:20:29,280 estimates are that it only takes a couple hundred bots 318 00:20:29,280 --> 00:20:32,580 to generate a couple gig of traffic if you do it this way. 319 00:20:35,260 --> 00:20:37,580 Here's where we're starting to talk about the duplicates. 320 00:20:39,920 --> 00:20:42,880 Definitely get your hands on Mike Schiffman and Dan Kaminski 321 00:20:42,880 --> 00:20:46,280 and make them tell you about their 580,000 estimate. 322 00:20:48,160 --> 00:20:49,860 My estimate is different. 323 00:20:51,840 --> 00:20:53,440 Actually, I spoke with Dan, 324 00:20:53,540 --> 00:20:55,520 and he promised to get me better results, 325 00:20:55,680 --> 00:20:56,960 which means much higher, 326 00:20:57,380 --> 00:21:00,600 because this was written before he finalized his research, 327 00:21:01,000 --> 00:21:02,500 and we never got done with that. 328 00:21:03,880 --> 00:21:06,660 Well, then, like I said, get your hands on Dan Kaminski, 329 00:21:06,760 --> 00:21:09,120 make him tell you about this 580,000 number, 330 00:21:09,220 --> 00:21:12,120 because it's either far too high or far too low, 331 00:21:13,040 --> 00:21:14,620 depending on how you look at it. 332 00:21:15,940 --> 00:21:18,980 There are some documents that explain what needs to be done, 333 00:21:18,980 --> 00:21:20,840 and here's where we get to the tricky part. 334 00:21:21,520 --> 00:21:24,500 What needs to be done is not going to be done by the victims, 335 00:21:25,040 --> 00:21:27,200 and it's not going to be done by the middle boxes, 336 00:21:27,440 --> 00:21:29,560 and it's not going to be done by the attackers, 337 00:21:29,720 --> 00:21:31,860 and so what needs to be done isn't going to be done, 338 00:21:31,960 --> 00:21:33,400 but I'll tell you what it is anyway. 339 00:21:35,720 --> 00:21:38,860 The first thing is that these recursive name servers 340 00:21:38,860 --> 00:21:41,480 have got to get some ackles. 341 00:21:42,720 --> 00:21:46,720 There's no reason for me, if I am on a LAN somewhere 342 00:21:46,720 --> 00:21:48,780 and I'm listed in the resolve.conf, 343 00:21:48,980 --> 00:21:50,100 of hosts on that LAN, 344 00:21:50,220 --> 00:21:53,200 for me to be willing to accept source IP addresses 345 00:21:53,200 --> 00:21:55,260 that did not originate on that LAN. 346 00:21:56,960 --> 00:22:00,120 If they did, then chances are they are either 347 00:22:00,840 --> 00:22:03,160 never really were there, they're spoofed, 348 00:22:03,180 --> 00:22:04,720 or they got there by mistake, 349 00:22:04,960 --> 00:22:07,520 and in any case, answering those queries would be a mistake. 350 00:22:07,920 --> 00:22:09,940 But that's the default. That's what we all do. 351 00:22:10,280 --> 00:22:13,720 And the reason that we do it is that those jackasses at ISC 352 00:22:13,720 --> 00:22:15,440 made that the default in the bind. 353 00:22:16,600 --> 00:22:18,420 Who is that at ISC again? 354 00:22:18,980 --> 00:22:23,160 I recommend that we all sort of let those ISC weasels know 355 00:22:23,160 --> 00:22:25,300 that they should set up the default ackle. 356 00:22:25,420 --> 00:22:28,140 What is the name of the guy in charge of the ISC? 357 00:22:30,300 --> 00:22:31,660 Is it Randy Vaughn? 358 00:22:32,200 --> 00:22:34,560 Yeah, Randy Vaughn. Send mail to Randy Vaughn 359 00:22:34,560 --> 00:22:37,020 and tell him that you want the bind default changed. 360 00:22:38,040 --> 00:22:42,100 More seriously, we did change it, and in bind 9.4, 361 00:22:42,220 --> 00:22:45,320 the default will be that if you get a query 362 00:22:45,320 --> 00:22:47,100 from something that isn't on your local LAN, 363 00:22:47,200 --> 00:22:47,780 it will be dropped. 364 00:22:47,780 --> 00:22:51,140 And we expect that to make the phone ring off the hook 365 00:22:51,140 --> 00:22:53,140 with people who say they liked it better the other way, 366 00:22:53,220 --> 00:22:55,500 because now everything else that comes to a name server 367 00:22:55,500 --> 00:22:58,360 from that campus will not work by default. 368 00:22:58,940 --> 00:23:01,420 And we expect that the usual thing people will do 369 00:23:01,420 --> 00:23:04,180 when it doesn't work is they'll put in an ackle 370 00:23:04,180 --> 00:23:06,200 that says, allow anything, because they don't want 371 00:23:06,200 --> 00:23:08,940 to be bothered with having to add their LANs one by one. 372 00:23:09,320 --> 00:23:12,080 But I am hoping that that's the minority 373 00:23:12,080 --> 00:23:14,360 and that eventually we'll see enough upgrades 374 00:23:14,360 --> 00:23:16,240 that things will get better. 375 00:23:16,240 --> 00:23:19,180 Now, bind, of course, is not the only name server under the sun. 376 00:23:19,300 --> 00:23:20,200 There are plenty of others. 377 00:23:20,600 --> 00:23:22,720 We have gotten in touch with Microsoft, 378 00:23:23,040 --> 00:23:25,160 tried to get them to change their default. 379 00:23:26,520 --> 00:23:29,680 But ultimately, the people who need to make this change 380 00:23:29,680 --> 00:23:32,240 have no incentive to do it, right? 381 00:23:32,540 --> 00:23:35,960 They were receiving a very small trickle of packets, 382 00:23:36,120 --> 00:23:38,620 and they were sending a very small trickle of packets, 383 00:23:38,820 --> 00:23:40,980 you know, on the order of tens or hundreds of kilobits. 384 00:23:41,220 --> 00:23:43,280 They never noticed that they were helping 385 00:23:43,280 --> 00:23:45,680 to firebomb some poor victim somewhere 386 00:23:45,680 --> 00:23:47,600 with traffic that they could not mitigate. 387 00:23:48,080 --> 00:23:51,720 And so we're essentially going back to the sort of 388 00:23:51,720 --> 00:23:54,900 the spammers paradox of trying to get the people 389 00:23:54,900 --> 00:23:56,620 who are not being hurt by it, 390 00:23:56,660 --> 00:23:58,940 by the fact that there are open relays in that case, 391 00:23:59,500 --> 00:24:02,540 to make a configuration change that was going to increase 392 00:24:02,540 --> 00:24:04,000 their costs across the board. 393 00:24:04,380 --> 00:24:05,720 But that's what you have to do. 394 00:24:06,000 --> 00:24:10,540 So I'm hoping that as you go through life 395 00:24:10,540 --> 00:24:12,800 and you find name servers, you'll start asking 396 00:24:12,800 --> 00:24:14,360 the operators of those name servers, 397 00:24:14,360 --> 00:24:16,420 what's the ackle on that? 398 00:24:17,620 --> 00:24:20,680 Because perhaps if they learn that they will be annoyed 399 00:24:20,680 --> 00:24:22,720 to death and pecked to death by ducks, 400 00:24:23,480 --> 00:24:25,680 they'll decide that that's a higher pain threshold 401 00:24:25,680 --> 00:24:27,200 than making the config change. 402 00:24:28,240 --> 00:24:30,380 The other thing that needs to be done by people 403 00:24:30,380 --> 00:24:34,040 who will not do it is so-called BCP38. 404 00:24:35,140 --> 00:24:36,840 Paul Ferguson wrote this. 405 00:24:37,020 --> 00:24:40,600 Paul Ferguson and another guy, Dan Sini. 406 00:24:42,280 --> 00:24:42,800 Yeah. 407 00:24:44,360 --> 00:24:46,340 It says that if you're an ISP 408 00:24:46,340 --> 00:24:48,460 and your customer tries to spoof their source, 409 00:24:48,580 --> 00:24:50,940 you should drop that traffic as early as possible 410 00:24:50,940 --> 00:24:53,120 and you should not fling it out into the global Internet. 411 00:24:53,840 --> 00:24:55,420 Now, I can tell you as a... 412 00:24:55,420 --> 00:24:58,120 Thank you for your applause, 413 00:24:58,340 --> 00:24:59,700 but you might have to hold that for a moment. 414 00:25:00,580 --> 00:25:03,620 I think that Sini and Fergie wrote a great document, 415 00:25:03,740 --> 00:25:07,160 but there was no incentive for the ISPs to do that 416 00:25:08,440 --> 00:25:11,400 because, again, the traffic that was being spoofed 417 00:25:11,400 --> 00:25:12,900 was only leaving their network. 418 00:25:12,900 --> 00:25:16,280 It was not going to be hitting anybody inside their network. 419 00:25:19,040 --> 00:25:20,500 So what you're doing, 420 00:25:20,540 --> 00:25:22,760 you're going to these people with an economics proposition 421 00:25:22,760 --> 00:25:24,240 that is exactly backward. 422 00:25:24,500 --> 00:25:27,100 Would you please spend money to keep your competitor 423 00:25:27,100 --> 00:25:28,460 from having to spend money? 424 00:25:29,800 --> 00:25:32,220 We want you to invest so your competitor 425 00:25:32,220 --> 00:25:33,320 can become more profitable. 426 00:25:34,880 --> 00:25:37,800 So they hate that and they laughed us out of the room. 427 00:25:38,140 --> 00:25:39,700 And so it's a great document, 428 00:25:39,820 --> 00:25:41,840 but it has not been widely deployed. 429 00:25:41,840 --> 00:25:43,500 I know there are some examples. 430 00:25:43,700 --> 00:25:45,780 Somebody told me that Internet was starting 431 00:25:45,780 --> 00:25:47,720 to really lock this down, 432 00:25:47,880 --> 00:25:49,520 and if so, God love them. 433 00:25:49,960 --> 00:25:51,600 But most people don't do this, 434 00:25:52,420 --> 00:25:54,480 even though it's a one-line config change 435 00:25:54,480 --> 00:25:57,100 on all of the routers made since 2000. 436 00:25:57,520 --> 00:25:59,400 And for reference, I'll just tell you, 437 00:25:59,480 --> 00:26:01,580 that means that a mom-and-pop ISP 438 00:26:01,580 --> 00:26:03,520 who is buying junk off of eBay 439 00:26:03,520 --> 00:26:06,060 that they cannot afford support contracts for 440 00:26:06,060 --> 00:26:07,840 and they're buying extra copies of that junk 441 00:26:07,840 --> 00:26:09,440 so they can maintain their own spares 442 00:26:09,440 --> 00:26:11,520 is getting hardware that is capable 443 00:26:11,840 --> 00:26:12,240 of doing this. 444 00:26:12,920 --> 00:26:14,300 That's how long it has been, 445 00:26:14,440 --> 00:26:17,160 the current hardware state of the art. 446 00:26:17,540 --> 00:26:20,780 But you will still find that inside of MCI, 447 00:26:20,920 --> 00:26:23,120 which I think is the new name for WorldCom, 448 00:26:23,300 --> 00:26:24,800 which is the new name for UUNet, 449 00:26:24,900 --> 00:26:27,140 which I don't know exactly how many other networks 450 00:26:27,140 --> 00:26:28,900 are in there, this is not the default. 451 00:26:30,060 --> 00:26:30,920 They're a telco. 452 00:26:31,040 --> 00:26:33,320 They have a lot of knuckle-dragging union technicians 453 00:26:33,320 --> 00:26:34,760 that they would have to upgrade 454 00:26:35,320 --> 00:26:37,240 in order to get this done. 455 00:26:37,660 --> 00:26:38,700 That's the expensive part. 456 00:26:38,700 --> 00:26:40,960 Actually, I just learned something last year. 457 00:26:41,880 --> 00:26:44,380 I'm actually pretty offended by this, 458 00:26:44,500 --> 00:26:44,920 but hey. 459 00:26:45,960 --> 00:26:47,940 Do you know what's the name of 460 00:26:47,940 --> 00:26:48,580 knock engineers? 461 00:26:51,300 --> 00:26:51,920 Reboot monkeys. 462 00:26:52,980 --> 00:26:54,060 Reboot monkeys, okay. 463 00:26:54,380 --> 00:26:55,100 That's not funny. 464 00:26:55,160 --> 00:26:56,060 That's kind of offensive. 465 00:26:58,280 --> 00:26:58,720 Monkeys. 466 00:27:01,480 --> 00:27:01,920 What? 467 00:27:02,160 --> 00:27:04,200 Most of the problems are solved by a reboot. 468 00:27:04,320 --> 00:27:05,040 And somebody calls them, 469 00:27:05,120 --> 00:27:07,020 hey, can you reboot machine AXBC? 470 00:27:08,480 --> 00:27:09,360 Sure, thanks. 471 00:27:09,740 --> 00:27:11,340 And you're lucky if they reboot the right one. 472 00:27:14,340 --> 00:27:15,180 So anyway, 473 00:27:15,440 --> 00:27:17,300 what we need is for ISPs 474 00:27:17,660 --> 00:27:20,720 to stop allowing these spoofed sources 475 00:27:20,720 --> 00:27:22,200 to come from inside their networks, 476 00:27:22,400 --> 00:27:23,860 and then we need name server operators 477 00:27:23,860 --> 00:27:25,800 to put in some ackles. 478 00:27:26,240 --> 00:27:27,660 Neither one is going to benefit 479 00:27:27,660 --> 00:27:29,420 from their increased costs, 480 00:27:29,700 --> 00:27:31,440 but we as victims would benefit 481 00:27:31,440 --> 00:27:33,020 from being attacked less often, 482 00:27:33,120 --> 00:27:35,260 and that's the way the Internet is. 483 00:27:36,200 --> 00:27:38,160 I'm going to switch to VeriSign slides, 484 00:27:38,400 --> 00:27:39,940 which are glitzier by... 485 00:27:39,940 --> 00:27:40,680 Four. 486 00:27:42,800 --> 00:27:44,340 Kadi wants to say a few words. 487 00:27:45,300 --> 00:27:45,820 Wow, 488 00:27:45,960 --> 00:27:46,780 when you say it that way. 489 00:27:48,640 --> 00:27:50,180 The interesting thing here, 490 00:27:50,460 --> 00:27:51,940 yes, it's a denial of service attack, 491 00:27:52,040 --> 00:27:53,780 a distributed denial of service attack, 492 00:27:53,980 --> 00:27:55,340 yes, it is very impressive, 493 00:27:55,520 --> 00:27:57,320 yes, it has taken down networks, 494 00:27:57,620 --> 00:27:58,840 significant networks, 495 00:27:59,580 --> 00:28:01,280 but you should really concentrate 496 00:28:01,280 --> 00:28:02,700 on what Paul just said. 497 00:28:02,980 --> 00:28:04,200 On the one hand, 498 00:28:04,240 --> 00:28:06,420 to make this attack work, 499 00:28:06,700 --> 00:28:08,600 you need to maliciously 500 00:28:10,000 --> 00:28:11,660 put some sort of 501 00:28:13,060 --> 00:28:13,960 DXT record, 502 00:28:14,300 --> 00:28:15,680 a SOAR record in this case, 503 00:28:16,680 --> 00:28:19,000 over at some sort of server 504 00:28:19,000 --> 00:28:19,800 you hacked into 505 00:28:19,800 --> 00:28:21,580 or put in place ahead of schedule. 506 00:28:23,020 --> 00:28:24,360 Okay, thanks. 507 00:28:25,320 --> 00:28:25,920 And... 508 00:28:25,920 --> 00:28:27,040 View Zoom? 509 00:28:28,580 --> 00:28:29,260 Control L. 510 00:28:29,500 --> 00:28:32,260 Control L, thank you very much. 511 00:28:32,500 --> 00:28:34,400 I do not use Windows 512 00:28:34,400 --> 00:28:35,860 as my usual thing, 513 00:28:35,880 --> 00:28:38,100 and Hebrew is not my usual keyboard either. 514 00:28:41,840 --> 00:28:42,800 Isn't it everybody's? 515 00:28:43,320 --> 00:28:44,660 Actually, I have a problem with that. 516 00:28:44,780 --> 00:28:46,020 I can type blind in English, 517 00:28:46,080 --> 00:28:46,980 but when I type in Hebrew, 518 00:28:47,060 --> 00:28:48,180 I have a ton of typos. 519 00:28:48,740 --> 00:28:49,500 Never happens. 520 00:28:49,760 --> 00:28:52,800 But I still have the stickers on the thingies. 521 00:28:53,320 --> 00:28:54,900 Anyway, that's the one end of it. 522 00:28:55,060 --> 00:28:56,720 So basically, the attack on you 523 00:28:56,720 --> 00:28:58,020 is happening maliciously, 524 00:28:58,020 --> 00:29:00,220 and not just by some bots pulling out data. 525 00:29:00,640 --> 00:29:01,940 And the other part of it is, 526 00:29:02,060 --> 00:29:04,960 imagine you live in New York, okay? 527 00:29:06,100 --> 00:29:09,000 And the crime that hurts you 528 00:29:09,000 --> 00:29:10,680 is committed on some other 529 00:29:11,900 --> 00:29:13,000 block in the city, 530 00:29:13,060 --> 00:29:14,360 across the city, okay? 531 00:29:14,940 --> 00:29:17,100 Now, the other citizens over there 532 00:29:17,100 --> 00:29:18,620 would kind of... 533 00:29:19,180 --> 00:29:21,060 How is the mayor supposed 534 00:29:21,060 --> 00:29:22,660 to explain to these citizens 535 00:29:22,660 --> 00:29:25,080 that they see a lot more cops in their neighborhood 536 00:29:25,080 --> 00:29:26,960 and they see, they get 537 00:29:26,960 --> 00:29:28,960 imposed with a lot of regulations and rules 538 00:29:28,960 --> 00:29:31,080 about their movements, when their neighborhood 539 00:29:31,080 --> 00:29:32,860 is kind of free and shiny and happy, 540 00:29:33,020 --> 00:29:34,320 ooh, shiny and all that, 541 00:29:34,940 --> 00:29:36,900 when the actual problem is across 542 00:29:36,900 --> 00:29:38,760 the city somewhere else that you don't even see? 543 00:29:39,540 --> 00:29:40,700 So that's basically... 544 00:29:40,700 --> 00:29:43,020 The point is, the internet has become a huge... 545 00:29:43,020 --> 00:29:44,220 What do people like saying? 546 00:29:44,660 --> 00:29:46,320 Global village? Yes? What? Who? 547 00:29:46,700 --> 00:29:48,460 Oh. That. Right. 548 00:29:49,540 --> 00:29:50,500 I'm a DEFCON. 549 00:29:50,540 --> 00:29:52,420 If somebody's gonna break in, I at least wanna see it. 550 00:29:55,240 --> 00:29:57,140 You're a DEFCON. If somebody's gonna break in, 551 00:29:57,240 --> 00:29:57,960 you're not gonna see. 552 00:29:58,200 --> 00:30:00,100 That's why this is an expendable laptop. 553 00:30:04,100 --> 00:30:05,020 Looks to me like 554 00:30:05,020 --> 00:30:06,500 you've been broken into by somebody in 555 00:30:06,500 --> 00:30:07,260 Redmond, Washington. 556 00:30:09,240 --> 00:30:09,700 Whoo! 557 00:30:15,080 --> 00:30:15,540 Okay. 558 00:30:17,660 --> 00:30:18,240 Hold on. 559 00:30:19,560 --> 00:30:20,740 You saw it. His password is... 560 00:30:20,740 --> 00:30:22,860 So what I'm basically trying to say is 561 00:30:22,860 --> 00:30:24,880 that why should 562 00:30:24,880 --> 00:30:26,960 they spend money on you? Why should somebody 563 00:30:26,960 --> 00:30:28,900 in China spend money on somebody 564 00:30:28,900 --> 00:30:30,720 in the United States? Why should anybody 565 00:30:30,720 --> 00:30:32,680 be nice network citizens 566 00:30:32,680 --> 00:30:34,640 to one another when the attack does not affect them? 567 00:30:34,920 --> 00:30:36,840 So basically what happens is, one 568 00:30:36,840 --> 00:30:38,900 day the attack does affect them, 569 00:30:39,000 --> 00:30:40,980 they go down, and then 570 00:30:40,980 --> 00:30:42,460 in a nice Darwinian 571 00:30:42,940 --> 00:30:44,700 way, everybody gets 572 00:30:44,700 --> 00:30:46,540 patched, but it takes a long, long time. 573 00:30:47,160 --> 00:30:48,460 So that's pretty much it. 574 00:30:50,160 --> 00:30:50,960 Everybody knows 575 00:30:50,960 --> 00:30:52,440 your password now. It's blah, blah, blah. 576 00:30:52,740 --> 00:30:54,000 Blah, blah, blah, blah. 577 00:30:54,620 --> 00:30:56,760 How did you know that? Actually, no. It's 578 00:30:56,760 --> 00:30:59,000 one, two, three, four, five. 579 00:30:59,320 --> 00:31:00,900 That's amazing! That's the exact same 580 00:31:00,900 --> 00:31:02,340 combination on my luggage. Never mind. 581 00:31:04,460 --> 00:31:04,900 Okay. 582 00:31:05,020 --> 00:31:06,940 So I told you that the Verisign people 583 00:31:06,940 --> 00:31:09,020 spend a little more time on the graphics, 584 00:31:09,220 --> 00:31:09,520 and 585 00:31:11,100 --> 00:31:12,960 this kind of shows a little bit more 586 00:31:12,960 --> 00:31:14,720 of what's going on, except that even 587 00:31:14,720 --> 00:31:16,320 at Verisign, they don't know how to spell attacker. 588 00:31:16,580 --> 00:31:18,800 That's interesting. I hadn't noticed that until just now. 589 00:31:21,000 --> 00:31:22,780 This is a PDF file. I did not 590 00:31:22,780 --> 00:31:24,820 alter their slides to make them look like they don't 591 00:31:24,820 --> 00:31:25,320 know how to spell. 592 00:31:27,120 --> 00:31:27,820 Okay, so 593 00:31:28,680 --> 00:31:30,160 there's this big TXT record. 594 00:31:30,760 --> 00:31:32,780 They've got an army of 300 to 595 00:31:32,780 --> 00:31:35,400 500,000, or 30 to 500,000. 596 00:31:35,500 --> 00:31:36,860 I don't know. It seems like that was written 597 00:31:36,940 --> 00:31:38,640 for the suits. I know there weren't 598 00:31:38,640 --> 00:31:40,740 500,000, but I think that's what it took to make 599 00:31:40,740 --> 00:31:41,660 this sound impressive. 600 00:31:43,420 --> 00:31:44,000 And 601 00:31:45,000 --> 00:31:46,440 you get this 602 00:31:48,160 --> 00:31:50,900 In this case, the DNS server that had 603 00:31:50,900 --> 00:31:52,640 the TXT record, the authority server, 604 00:31:52,920 --> 00:31:54,920 had itself been captured. 605 00:31:55,160 --> 00:31:56,860 So this was somebody's zone 606 00:31:56,860 --> 00:31:58,640 somewhere that got broken into, 607 00:31:58,880 --> 00:32:00,560 and the attacker 608 00:32:00,560 --> 00:32:02,760 put an 8K text record 609 00:32:03,420 --> 00:32:04,220 in there 610 00:32:04,840 --> 00:32:06,820 for the purpose of then 611 00:32:06,940 --> 00:32:08,640 seeding all of the 612 00:32:08,640 --> 00:32:10,740 middle box name servers so that they 613 00:32:10,740 --> 00:32:12,060 could then amplify the attack. 614 00:32:13,300 --> 00:32:14,880 And this is sort of 615 00:32:14,880 --> 00:32:16,900 part of the tried and true philosophy of 616 00:32:17,500 --> 00:32:18,400 don't put this 617 00:32:19,920 --> 00:32:20,800 don't buy 618 00:32:20,800 --> 00:32:21,960 that with your own credit card. 619 00:32:22,200 --> 00:32:24,360 You don't want the police coming to your door. 620 00:32:24,440 --> 00:32:26,280 You want them going to somebody else's door. 621 00:32:26,400 --> 00:32:28,660 And the Verisign folks were very 622 00:32:28,660 --> 00:32:30,520 personable, and they went and located 623 00:32:30,520 --> 00:32:32,660 the name server in question and got a copy of the 624 00:32:32,660 --> 00:32:34,700 zone, and I'll get to that later. 625 00:32:35,960 --> 00:32:36,840 So here's 626 00:32:36,940 --> 00:32:38,820 a 20 megabit 627 00:32:39,820 --> 00:32:40,660 per second 628 00:32:40,660 --> 00:32:41,140 spike. 629 00:32:44,020 --> 00:32:44,880 But this is 630 00:32:44,880 --> 00:32:46,800 only a 1% sample, so 631 00:32:46,800 --> 00:32:48,680 they were estimating that it was 632 00:32:48,680 --> 00:32:49,500 100 times bigger. 633 00:32:50,520 --> 00:32:52,140 But they know that they're 634 00:32:54,380 --> 00:32:55,800 they know how much 635 00:32:56,780 --> 00:32:58,600 transit they buy, and how much 636 00:32:58,600 --> 00:33:00,540 their ISPs were throwing away at the time, 637 00:33:00,640 --> 00:33:02,680 and so they were able to estimate that the total size 638 00:33:02,680 --> 00:33:04,140 of the attack was 5 gig. 639 00:33:05,280 --> 00:33:06,920 This is pretty much the same attempt 640 00:33:06,940 --> 00:33:08,520 to attack, or at least the same attackers 641 00:33:08,520 --> 00:33:09,400 that 642 00:33:10,500 --> 00:33:12,600 Gotti and Randy were tracking. 643 00:33:13,380 --> 00:33:14,700 But, you know, 644 00:33:14,700 --> 00:33:16,540 they were attacking different TLD name servers 645 00:33:16,540 --> 00:33:18,440 at different times, and 646 00:33:18,440 --> 00:33:20,240 we, as far as I know, 647 00:33:20,980 --> 00:33:22,640 there's no publicity around 648 00:33:22,640 --> 00:33:23,840 any kind of arrests in 649 00:33:23,840 --> 00:33:26,480 these cases, so 650 00:33:26,480 --> 00:33:28,200 the folks that are out there doing this are 651 00:33:28,200 --> 00:33:29,560 We know who they are. 652 00:33:30,040 --> 00:33:32,240 Yes, but we know that they have not been arrested. 653 00:33:32,540 --> 00:33:33,400 Oh, should they? 654 00:33:35,800 --> 00:33:36,740 Come on, are we 655 00:33:36,940 --> 00:33:37,980 really going to go and arrest them? 656 00:33:39,600 --> 00:33:40,860 If I were in the 657 00:33:40,860 --> 00:33:41,460 business, yes. 658 00:33:42,700 --> 00:33:44,140 If I were in the business? 659 00:33:44,380 --> 00:33:45,700 Well, we'd be in a lot of trouble then. 660 00:33:47,560 --> 00:33:48,900 Okay, so there's 661 00:33:48,900 --> 00:33:49,060 the 662 00:33:50,240 --> 00:33:52,860 zone that got broken into 663 00:33:52,860 --> 00:33:54,720 is in South Africa. 664 00:33:55,780 --> 00:33:56,260 And 665 00:33:56,900 --> 00:33:58,800 this one was a 4K answer, 666 00:33:58,920 --> 00:34:00,940 unlike the 8K MobiGram 667 00:34:00,940 --> 00:34:02,820 that Randy and Gotti were tracking. 668 00:34:03,520 --> 00:34:04,820 But it was a 60 byte 669 00:34:04,820 --> 00:34:06,700 query, so you see the amplification factor, 670 00:34:06,940 --> 00:34:08,600 you see how many reflecting middle boxes 671 00:34:08,600 --> 00:34:09,140 there were. 672 00:34:11,040 --> 00:34:11,560 Now, 673 00:34:12,800 --> 00:34:13,320 usually 674 00:34:13,320 --> 00:34:16,540 when somebody is DDoSing you, 675 00:34:16,700 --> 00:34:18,320 they will fiddle around with the IP 676 00:34:18,320 --> 00:34:20,740 time to live flag, which gets 677 00:34:20,740 --> 00:34:22,940 initialized by the sender and decremented 678 00:34:22,940 --> 00:34:24,960 by every router between the sender and you. 679 00:34:25,440 --> 00:34:26,840 And depending on what 680 00:34:26,840 --> 00:34:28,820 games they play, you can 681 00:34:28,820 --> 00:34:30,680 tell whether they were attempting to 682 00:34:30,680 --> 00:34:32,820 randomize it, whether they succeeded at 683 00:34:32,820 --> 00:34:34,900 randomizing it, or whether they were 684 00:34:34,900 --> 00:34:36,740 not able to set it. 685 00:34:36,940 --> 00:34:38,880 Some APIs don't allow 686 00:34:38,880 --> 00:34:40,860 unprivileged applications to set 687 00:34:40,860 --> 00:34:42,820 the IP TTL. And so 688 00:34:42,820 --> 00:34:44,840 if you get enough of this data, 689 00:34:44,980 --> 00:34:46,360 and we've got Dave Dagan here, 690 00:34:46,520 --> 00:34:48,880 I see, who has studied TTL 691 00:34:48,880 --> 00:34:50,300 in detail. 692 00:34:51,440 --> 00:34:52,860 So if there's Q&A 693 00:34:52,860 --> 00:34:54,240 on this, then we've got the expert. 694 00:34:54,560 --> 00:34:55,060 Anyway, 695 00:34:56,280 --> 00:34:58,880 by looking at this sample, they were able to tell 696 00:34:58,880 --> 00:35:00,800 that the traffic, 697 00:35:01,000 --> 00:35:01,620 the actual 698 00:35:02,660 --> 00:35:04,800 flow that hit the VeriSign name 699 00:35:04,800 --> 00:35:06,920 server was itself not spoofed. 700 00:35:06,940 --> 00:35:08,780 That actually came from real places 701 00:35:08,780 --> 00:35:10,660 that were setting the TTL in normal 702 00:35:10,660 --> 00:35:12,440 ways. And 703 00:35:12,440 --> 00:35:14,720 proving that it isn't spoofed is one of those 704 00:35:14,720 --> 00:35:16,160 expert things, you can ask Dagan. 705 00:35:19,060 --> 00:35:20,140 Sequential IP addresses? 706 00:35:20,500 --> 00:35:22,580 Yes, so in other words, they found these name 707 00:35:22,580 --> 00:35:24,400 servers with a sequential scan, 708 00:35:24,560 --> 00:35:26,080 similar to what Mr. Kaminski does. 709 00:35:27,980 --> 00:35:28,460 And 710 00:35:30,220 --> 00:35:30,700 VeriSign 711 00:35:30,700 --> 00:35:32,660 and a lot of other people went 712 00:35:32,660 --> 00:35:34,500 and looked at the sources of these 713 00:35:34,500 --> 00:35:36,460 and said, well, gee, they were sending me 714 00:35:36,940 --> 00:35:38,840 these big mobigrams. Does that mean they're 715 00:35:38,840 --> 00:35:40,720 open recursive name servers? Can I do a dig 716 00:35:40,720 --> 00:35:42,880 against them for data that is not local to them? 717 00:35:43,020 --> 00:35:44,200 And sure enough, yes. 718 00:35:45,140 --> 00:35:46,920 And then we started 719 00:35:46,920 --> 00:35:48,680 to notice the true scope of the problem. 720 00:35:51,560 --> 00:35:52,000 Okay. 721 00:35:54,640 --> 00:35:55,080 Yeah, 722 00:35:55,120 --> 00:35:55,680 yeah, yeah. 723 00:35:56,060 --> 00:35:57,060 We don't care about this. 724 00:36:02,820 --> 00:36:04,720 Right, there's this estimate that 725 00:36:05,620 --> 00:36:06,780 the attackers only 726 00:36:06,940 --> 00:36:08,240 had to spend 80 megabit 727 00:36:08,240 --> 00:36:10,520 to get the 5 gigabit response. 728 00:36:10,980 --> 00:36:12,840 And that 80 megabit was spread across 729 00:36:12,840 --> 00:36:14,860 a bot army of somewhere 730 00:36:14,860 --> 00:36:16,880 between 30,000 and these people 731 00:36:16,880 --> 00:36:18,300 estimated 500,000. 732 00:36:19,100 --> 00:36:20,660 But 80 megabit, 733 00:36:20,680 --> 00:36:22,780 you know, one colo host can generate 80 734 00:36:22,780 --> 00:36:23,800 megabit these days. 735 00:36:24,980 --> 00:36:26,920 And it would be very difficult to find 736 00:36:26,920 --> 00:36:28,520 out which host had suddenly 737 00:36:28,520 --> 00:36:30,420 shown an 80 megabit spike. 738 00:36:30,620 --> 00:36:32,760 Because two or three hops 739 00:36:32,760 --> 00:36:34,920 away from that colo, it would be a bunch 740 00:36:34,920 --> 00:36:36,800 of very small flows headed 741 00:36:36,940 --> 00:36:38,120 to, you know, 742 00:36:38,860 --> 00:36:40,780 100,000 open recursive name 743 00:36:40,780 --> 00:36:42,860 servers, or 580,000 if you ask Dan. 744 00:36:43,000 --> 00:36:44,100 And I do hope you ask Dan. 745 00:36:46,660 --> 00:36:48,920 So the domain in South Africa 746 00:36:48,920 --> 00:36:50,460 had two authoritative servers, 747 00:36:50,680 --> 00:36:52,240 but only one had been compromised. 748 00:36:52,660 --> 00:36:54,500 In other words, they broke in and 749 00:36:54,500 --> 00:36:56,820 changed something that should be a slave name server 750 00:36:56,820 --> 00:36:58,600 to be a master name server and then 751 00:36:58,600 --> 00:36:59,980 edited the zone in place. 752 00:37:00,420 --> 00:37:02,500 So there was a chance that 753 00:37:02,500 --> 00:37:04,860 when the middle boxes went to go 754 00:37:04,860 --> 00:37:06,820 get this data so they could see 755 00:37:06,940 --> 00:37:08,640 the cache, that they would talk to the wrong 756 00:37:08,640 --> 00:37:10,460 name server and potentially 757 00:37:11,180 --> 00:37:12,760 not be able to cache it. 758 00:37:12,940 --> 00:37:14,740 But even that didn't really stop 759 00:37:14,740 --> 00:37:16,620 this from being a very successful 760 00:37:16,620 --> 00:37:17,240 attack. 761 00:37:19,620 --> 00:37:20,720 Well, VeriSign slides 762 00:37:20,720 --> 00:37:21,180 on the 763 00:37:23,340 --> 00:37:24,800 board here, and even though 764 00:37:24,800 --> 00:37:26,600 they named me as a co-conspirator 765 00:37:26,600 --> 00:37:28,740 during the site finder wars, I don't want them to be 766 00:37:28,740 --> 00:37:30,720 unfairly characterized here. 767 00:37:30,820 --> 00:37:32,300 I don't know if this was successful 768 00:37:32,300 --> 00:37:34,800 in costing them any money, but it certainly 769 00:37:34,800 --> 00:37:35,540 got their attention. 770 00:37:39,020 --> 00:37:39,980 Okay, so 771 00:37:40,640 --> 00:37:42,200 this talks about the fragments. 772 00:37:44,820 --> 00:37:46,700 You can get copies of these slides 773 00:37:47,480 --> 00:37:48,740 with the URL 774 00:37:48,740 --> 00:37:49,840 that I'll tell you at the end. 775 00:37:50,140 --> 00:37:52,100 So if you want to study this in more detail, 776 00:37:52,280 --> 00:37:54,520 basically, if you are trying to send 777 00:37:54,520 --> 00:37:56,760 a UDP datagram bigger than 778 00:37:56,760 --> 00:37:58,820 your Ethernet MTU, you'll have to break it up 779 00:37:58,820 --> 00:38:00,540 into chunks, and those chunks 780 00:38:00,540 --> 00:38:02,920 look very odd at the receiving end 781 00:38:02,920 --> 00:38:04,740 because DNS is normally not 782 00:38:04,740 --> 00:38:06,120 large enough to need to be chunked. 783 00:38:07,560 --> 00:38:08,440 They had, 784 00:38:08,580 --> 00:38:10,300 they were measuring 25 minutes. 785 00:38:11,220 --> 00:38:12,640 Again, this is only one of 786 00:38:12,640 --> 00:38:14,680 a number of attacks that happened across about a 787 00:38:14,680 --> 00:38:16,720 two-month period, so Randy 788 00:38:16,720 --> 00:38:18,640 and Gotti had different 789 00:38:18,640 --> 00:38:20,660 spans of time. In some cases, 790 00:38:20,660 --> 00:38:22,760 these things go on for days because there's really no 791 00:38:22,760 --> 00:38:24,660 incentive to stop it. I mean, it's not 792 00:38:24,660 --> 00:38:26,800 costing you anything. There's no chance you're going to 793 00:38:26,800 --> 00:38:27,160 get caught. 794 00:38:29,100 --> 00:38:30,580 Hey, he spelled attack right 795 00:38:30,580 --> 00:38:31,300 on this slide. 796 00:38:33,420 --> 00:38:34,720 Yeah, see the near 797 00:38:34,720 --> 00:38:36,620 vertical start is part of what you can 798 00:38:36,940 --> 00:38:38,820 sort of tell. This did not ramp up over 799 00:38:38,820 --> 00:38:41,040 a period of five minutes. There was a lot 800 00:38:41,040 --> 00:38:42,800 of synchronization in getting 801 00:38:42,800 --> 00:38:44,540 all the different attack flows to 802 00:38:44,540 --> 00:38:46,020 get started at the same time. 803 00:38:48,340 --> 00:38:48,800 Okay. 804 00:38:51,180 --> 00:38:51,640 Yeah. 805 00:38:52,860 --> 00:38:53,540 This was, 806 00:38:54,380 --> 00:38:56,600 mitigation is always what people want to talk about, 807 00:38:57,400 --> 00:38:58,840 which I worry 808 00:38:58,840 --> 00:38:59,460 about sometimes. 809 00:39:00,680 --> 00:39:02,820 How can we live with this instead 810 00:39:02,820 --> 00:39:04,940 of how can we avoid having to live with this? 811 00:39:04,960 --> 00:39:06,680 Are there two different ways of 812 00:39:06,940 --> 00:39:07,580 approaching that question? 813 00:39:10,260 --> 00:39:10,780 So, 814 00:39:10,940 --> 00:39:12,460 there was this thing, okay, 815 00:39:12,540 --> 00:39:14,800 Dan, you've got 580,000 816 00:39:14,800 --> 00:39:16,860 name servers on this list. What if 817 00:39:16,860 --> 00:39:18,180 all the authority name servers 818 00:39:18,180 --> 00:39:20,760 on the internet were to subscribe 819 00:39:20,760 --> 00:39:22,180 to a black hole list 820 00:39:22,180 --> 00:39:24,400 that was seeded from your list? 821 00:39:24,540 --> 00:39:26,500 And they just stopped answering any queries 822 00:39:26,500 --> 00:39:28,820 from somebody who was known to be open and recursive. 823 00:39:29,260 --> 00:39:30,620 Well, I think 824 00:39:30,620 --> 00:39:32,380 the collateral damage would be too high. 825 00:39:32,720 --> 00:39:34,520 I don't see Amazon.com 826 00:39:34,520 --> 00:39:36,620 deciding that they don't want to get any 827 00:39:36,940 --> 00:39:38,240 queries from known to be open 828 00:39:39,580 --> 00:39:39,980 servers. 829 00:39:42,000 --> 00:39:42,920 It would cost 830 00:39:42,920 --> 00:39:44,500 them a lot of credit card transactions, 831 00:39:44,620 --> 00:39:45,240 among other things. 832 00:39:47,180 --> 00:39:48,720 So, dropping fragments toward 833 00:39:48,720 --> 00:39:50,360 the victim turns out to be pretty effective. 834 00:39:50,760 --> 00:39:52,860 But, as most of 835 00:39:52,860 --> 00:39:54,100 you know... 836 00:39:54,680 --> 00:39:56,360 I'm with Dan Kaminski on the line here, 837 00:39:56,480 --> 00:39:58,460 so hold on a minute. Dan, can you come here 838 00:39:58,460 --> 00:39:59,640 to the lecture about DNS? 839 00:40:00,560 --> 00:40:02,020 We kind of want to ask you a question. 840 00:40:02,280 --> 00:40:04,120 Yeah, that's a good idea. Let's get Dan in here. 841 00:40:04,720 --> 00:40:05,360 Oh, damn. 842 00:40:06,940 --> 00:40:08,620 Oh, you're at Caesar's for a second. You left some 843 00:40:08,620 --> 00:40:10,860 sheet there. Okay. So, when are you getting here? 844 00:40:12,180 --> 00:40:12,880 Too late 845 00:40:12,880 --> 00:40:14,780 for our purposes. Get over here and type your 846 00:40:14,780 --> 00:40:15,400 password, dude. 847 00:40:19,920 --> 00:40:20,360 Anyway, 848 00:40:20,900 --> 00:40:21,800 these are all 849 00:40:23,580 --> 00:40:24,800 ineffective, because if 850 00:40:24,800 --> 00:40:26,900 you decide you're going to drop fragments, then they will 851 00:40:26,900 --> 00:40:28,500 retune their attack to 852 00:40:28,500 --> 00:40:30,920 use the maximum size packet they can send 853 00:40:30,920 --> 00:40:32,120 that doesn't require fragments. 854 00:40:33,240 --> 00:40:33,680 So, 855 00:40:35,520 --> 00:40:36,840 all of the things that 856 00:40:36,940 --> 00:40:38,840 you could do to mitigate this will 857 00:40:38,840 --> 00:40:40,860 be as costly or more 858 00:40:40,860 --> 00:40:42,700 costly than just living with it. 859 00:40:42,920 --> 00:40:45,040 So, at the moment, we all sort of 860 00:40:45,040 --> 00:40:46,600 live with it, but it's not that 861 00:40:46,600 --> 00:40:48,740 different from Smurf amplifiers or 862 00:40:48,740 --> 00:40:50,660 other ping of death type scenarios. 863 00:40:51,120 --> 00:40:52,600 Anybody can DDoS anybody 864 00:40:52,600 --> 00:40:54,820 on any given day on the internet. You just hope 865 00:40:54,820 --> 00:40:56,420 you haven't pissed anybody off who's 866 00:40:56,900 --> 00:40:58,160 in a bad mood. 867 00:40:58,440 --> 00:41:00,440 About that issue of... 868 00:41:02,140 --> 00:41:02,660 Basically, 869 00:41:02,700 --> 00:41:04,640 some people said that limiting... I said it 870 00:41:04,640 --> 00:41:05,280 originally, too. 871 00:41:06,940 --> 00:41:08,840 Some people, including me, said originally 872 00:41:08,840 --> 00:41:10,400 that... Sorry for repeating myself. 873 00:41:11,720 --> 00:41:12,840 If you limit 874 00:41:12,840 --> 00:41:14,640 the packet size to 512 875 00:41:14,640 --> 00:41:16,780 bytes, you limit the amplification. 876 00:41:17,520 --> 00:41:18,800 Now, theoretically 877 00:41:18,800 --> 00:41:20,580 and practically, that's true. 878 00:41:21,180 --> 00:41:22,860 But, before the 879 00:41:22,860 --> 00:41:24,660 but, if you get 880 00:41:24,660 --> 00:41:26,640 to limit one bot 881 00:41:26,640 --> 00:41:28,880 sending out packets for 882 00:41:28,880 --> 00:41:29,900 one, basically, 883 00:41:30,680 --> 00:41:32,940 set of fragments, to have seven 884 00:41:34,680 --> 00:41:36,620 times seven amplification instead of, say, 885 00:41:36,940 --> 00:41:38,020 seven times seventy, 886 00:41:38,660 --> 00:41:40,660 that's pretty impressive, right? It would work. 887 00:41:41,160 --> 00:41:42,760 But, you would, at the same time, be 888 00:41:42,760 --> 00:41:44,840 limiting your DNS server 889 00:41:44,840 --> 00:41:46,740 abilities, be limiting 890 00:41:46,740 --> 00:41:48,740 the ability to use IP version six and 891 00:41:48,740 --> 00:41:49,660 a lot of other such 892 00:41:50,620 --> 00:41:52,160 expansions to DNS, and it wouldn't matter. 893 00:41:52,660 --> 00:41:53,640 And I'll tell you why. 894 00:41:54,300 --> 00:41:56,420 This attack is built, in a way, 895 00:41:56,480 --> 00:41:57,660 much like in any security 896 00:41:58,920 --> 00:42:00,120 system, in any system 897 00:42:00,120 --> 00:42:01,520 in any way, 898 00:42:02,020 --> 00:42:04,800 at any stage of the links 899 00:42:04,800 --> 00:42:06,700 of how this attack works, from how many 900 00:42:06,940 --> 00:42:08,880 bots are sending the packets, to how many 901 00:42:08,880 --> 00:42:10,440 open recursive servers 902 00:42:10,440 --> 00:42:12,560 you are using, the bots are connecting to, 903 00:42:12,740 --> 00:42:14,720 and so on. You can use more 904 00:42:14,720 --> 00:42:16,360 bots, you can send more packets, 905 00:42:16,640 --> 00:42:18,780 you can connect to more open 906 00:42:18,780 --> 00:42:20,840 name servers, and cause the amplification to be 907 00:42:20,840 --> 00:42:22,300 just as large, if not larger. 908 00:42:22,580 --> 00:42:24,860 You basically control how big this is going to be 909 00:42:24,860 --> 00:42:26,580 until the point where you reach saturation. 910 00:42:26,980 --> 00:42:27,460 For example, 911 00:42:28,880 --> 00:42:30,220 Gadi, you're burning up 912 00:42:30,780 --> 00:42:32,420 the Q&A time. Put the mic down. 913 00:42:38,240 --> 00:42:38,840 Here's another 914 00:42:38,840 --> 00:42:40,320 long list of things that 915 00:42:40,320 --> 00:42:42,800 could be done, but would hurt a lot 916 00:42:42,800 --> 00:42:44,860 and give very little benefit. 917 00:42:45,340 --> 00:42:46,760 You know, none of these will make 918 00:42:46,760 --> 00:42:48,300 the attack unattractive. 919 00:42:48,520 --> 00:42:50,620 So, it's just, these are speaking 920 00:42:50,620 --> 00:42:51,580 points to suits. 921 00:42:53,840 --> 00:42:54,720 Um, this 922 00:42:54,720 --> 00:42:55,540 is, uh, 923 00:42:57,120 --> 00:42:58,760 you gotta really study these 924 00:42:58,760 --> 00:43:00,840 slides and hear them, hear the 925 00:43:00,840 --> 00:43:02,820 guy who made them tell you what they all mean. 926 00:43:03,260 --> 00:43:05,040 I've pretty much... Let's move on to the Q&A 927 00:43:05,040 --> 00:43:06,140 because we have about ten minutes. 928 00:43:06,940 --> 00:43:07,640 I think we're gonna do that. 929 00:43:07,920 --> 00:43:10,180 This is the slide I wanted to stop on here. 930 00:43:10,440 --> 00:43:12,720 So, we have microphones. Please use them. 931 00:43:14,440 --> 00:43:14,880 Someone? 932 00:43:16,480 --> 00:43:20,740 The URL where these slides 933 00:43:20,740 --> 00:43:21,880 can be had is 934 00:43:21,880 --> 00:43:24,940 public.oarki.net 935 00:43:25,860 --> 00:43:26,900 And it's a Drupal 936 00:43:26,900 --> 00:43:28,340 site, and I apologize for that. 937 00:43:28,500 --> 00:43:29,840 And you'll have to click around a little bit. 938 00:43:29,980 --> 00:43:32,300 It's part of a DNS operations forum 939 00:43:32,300 --> 00:43:33,800 or workshop that was done. 940 00:43:33,960 --> 00:43:36,700 So you're two or three clicks from it. 941 00:43:36,940 --> 00:43:41,420 It's public.oarki.net 942 00:43:41,920 --> 00:43:42,360 public.oarki.net 943 00:43:42,360 --> 00:43:44,640 The study by Randy and me can be found online. 944 00:43:44,940 --> 00:43:46,940 Just do DNS Amplification Attacks in Google 945 00:43:46,940 --> 00:43:47,760 and you'll find it. 946 00:43:49,120 --> 00:43:49,940 First question? 947 00:43:50,160 --> 00:43:53,040 Are you guys aware of any utilities that have been posted 948 00:43:53,040 --> 00:43:54,220 at places like, uh, 949 00:43:54,760 --> 00:43:55,960 PacketStorm, for instance? No. 950 00:43:56,240 --> 00:43:58,820 No? No, no, this isn't like nobody's put something together 951 00:43:58,820 --> 00:43:59,540 and published it yet? 952 00:44:00,020 --> 00:44:02,700 Work for 30 minutes in Python and you'll have it. Nothing public. 953 00:44:03,540 --> 00:44:03,980 Really? 954 00:44:03,980 --> 00:44:05,400 I have, uh, 955 00:44:05,660 --> 00:44:07,900 I've seen the kit, but I don't think it's online 956 00:44:07,900 --> 00:44:10,000 anywhere. I don't think it's on a public 957 00:44:10,500 --> 00:44:11,460 Black Hat site. 958 00:44:11,940 --> 00:44:12,420 Okay. 959 00:44:16,540 --> 00:44:17,020 Um, 960 00:44:17,300 --> 00:44:19,880 Gadi mentioned earlier that you'd need to 961 00:44:19,880 --> 00:44:21,600 for the text record attack 962 00:44:21,600 --> 00:44:23,900 go and put maliciously something 963 00:44:23,900 --> 00:44:25,160 into text records. 964 00:44:25,660 --> 00:44:27,560 I've actually done a little bit of research on 965 00:44:27,560 --> 00:44:30,000 data mining text records that are already out there. 966 00:44:30,140 --> 00:44:31,860 And there's quite a few that are 967 00:44:31,860 --> 00:44:33,640 pretty large. I found 968 00:44:33,980 --> 00:44:35,680 ASCII armored, uh, encryption keys. 969 00:44:35,920 --> 00:44:37,680 I found large shell scripts 970 00:44:37,680 --> 00:44:40,000 and even one had a very large 971 00:44:40,000 --> 00:44:41,340 chunk of the Book of Revelation. 972 00:44:41,740 --> 00:44:43,620 Which would be great for a DDoS attack 973 00:44:43,620 --> 00:44:45,680 because then you'd have the Four Horsemen of the Apocalypse 974 00:44:45,680 --> 00:44:47,860 clogging up your series of tubes. 975 00:44:49,040 --> 00:44:50,000 And that 976 00:44:50,620 --> 00:44:51,620 it'd be great. 977 00:44:51,760 --> 00:44:53,960 So, you might not necessarily need to 978 00:44:54,940 --> 00:44:55,880 maliciously put something 979 00:44:55,880 --> 00:44:57,820 out there, just find something and use it. 980 00:44:57,980 --> 00:44:59,660 Yes, but, oh, sorry, go ahead. 981 00:44:59,780 --> 00:45:01,300 That is absolutely true. You don't need 982 00:45:01,300 --> 00:45:03,760 to capture anybody's names 983 00:45:03,980 --> 00:45:05,480 on the server. You can use normal traffic. 984 00:45:05,720 --> 00:45:06,620 You can just... 985 00:45:06,620 --> 00:45:09,020 The response that you'll get from 986 00:45:09,020 --> 00:45:11,620 www.microsoft.com is large enough 987 00:45:11,620 --> 00:45:12,700 to hurt a lot. 988 00:45:12,880 --> 00:45:15,460 And as soon as we get DNS security 989 00:45:15,720 --> 00:45:17,500 really underway and we have these big 990 00:45:17,500 --> 00:45:19,720 crypto blobs attached to every RR set 991 00:45:19,720 --> 00:45:21,500 on the internet, then once again 992 00:45:21,500 --> 00:45:23,880 the ease with which you can 993 00:45:23,880 --> 00:45:25,460 generate a gigantic response 994 00:45:25,460 --> 00:45:27,260 coming out of somebody else's name server 995 00:45:27,260 --> 00:45:29,800 will just keep on coming. 996 00:45:30,040 --> 00:45:30,480 Absolutely. 997 00:45:30,860 --> 00:45:32,600 One more thing about this is that 998 00:45:35,420 --> 00:45:36,340 when you use 999 00:45:36,340 --> 00:45:37,340 something that's already out there, 1000 00:45:37,380 --> 00:45:39,040 public servers with huge records, 1001 00:45:39,560 --> 00:45:41,500 then you're not really limited because you can use 1002 00:45:41,500 --> 00:45:43,760 quite a bit of servers in another link in the chain 1003 00:45:43,760 --> 00:45:45,680 instead of just adding bots or just 1004 00:45:45,680 --> 00:45:46,320 adding name servers. 1005 00:45:46,760 --> 00:45:48,880 But in this particular case, the guy 1006 00:45:49,840 --> 00:45:50,880 put a malicious 1007 00:45:51,560 --> 00:45:53,220 record of his own in one name server 1008 00:45:53,220 --> 00:45:55,040 and it took quite a bit of time to get it down, 1009 00:45:55,180 --> 00:45:57,520 but he had enough bots and enough name servers 1010 00:45:57,520 --> 00:45:59,840 that were open to generate the attack sites 1011 00:45:59,840 --> 00:46:01,900 he needed, so he didn't really need more records elsewhere. 1012 00:46:02,220 --> 00:46:03,600 Yes, needless to say, had I 1013 00:46:03,980 --> 00:46:05,820 drafted this attack, it would have been a lot smoother. 1014 00:46:07,200 --> 00:46:08,880 You sound like a virus writer. 1015 00:46:09,000 --> 00:46:10,300 Actually, you sound like an anti-virus guy. 1016 00:46:10,540 --> 00:46:11,540 I'm sorry, my mistake. 1017 00:46:11,820 --> 00:46:15,560 Question to Paul. 1018 00:46:15,780 --> 00:46:17,120 What is the normal behavior 1019 00:46:17,120 --> 00:46:19,020 for the properly configured 1020 00:46:19,020 --> 00:46:21,360 public name server when it receives 1021 00:46:21,360 --> 00:46:23,560 the query, the request 1022 00:46:23,560 --> 00:46:24,160 for the 1023 00:46:26,500 --> 00:46:27,860 an object in the 1024 00:46:27,860 --> 00:46:29,000 zone that's not a 384? 1025 00:46:30,420 --> 00:46:31,620 And from the 1026 00:46:31,620 --> 00:46:33,840 LAN that it's not supposed to answer 1027 00:46:33,980 --> 00:46:34,860 recursive queries for? 1028 00:46:35,140 --> 00:46:37,720 Is it still responding something or is it just dropping 1029 00:46:37,720 --> 00:46:39,820 this request and keeping it in silence? 1030 00:46:40,100 --> 00:46:41,700 I don't think you meant to, but you asked 1031 00:46:41,700 --> 00:46:42,700 three different questions. 1032 00:46:44,380 --> 00:46:45,340 So, if 1033 00:46:45,340 --> 00:46:47,740 someone asks you a question and they're not in 1034 00:46:47,740 --> 00:46:49,160 your ACL, then you 1035 00:46:49,160 --> 00:46:51,920 could, I suppose, answer with refused. 1036 00:46:52,220 --> 00:46:53,760 There's an opcode out there called refused. 1037 00:46:54,620 --> 00:46:55,100 But 1038 00:46:55,780 --> 00:46:57,540 given the purpose of an ACL and that 1039 00:46:57,540 --> 00:46:59,860 ACLs were not defined by the DNS protocol 1040 00:46:59,860 --> 00:47:01,480 and this behavior is therefore 1041 00:47:01,480 --> 00:47:03,820 not defined, I think that the 1042 00:47:03,980 --> 00:47:05,740 spirit of an ACL is that if you get something 1043 00:47:05,740 --> 00:47:07,680 from somebody who shouldn't have sent it to you, 1044 00:47:07,740 --> 00:47:08,500 you shouldn't answer it. 1045 00:47:09,920 --> 00:47:11,960 If you're an authoritative name server, 1046 00:47:12,080 --> 00:47:13,540 let's say, for example, .com, 1047 00:47:13,720 --> 00:47:15,380 and somebody sends you a query for 1048 00:47:16,040 --> 00:47:16,920 foo.net, 1049 00:47:18,300 --> 00:47:19,560 most name servers, 1050 00:47:19,700 --> 00:47:21,340 and again, I blame those 1051 00:47:21,900 --> 00:47:23,580 evil bastards at ISC, 1052 00:47:23,720 --> 00:47:25,880 most name servers will give you a root 1053 00:47:25,880 --> 00:47:27,820 referral. That's what I was referring to. 1054 00:47:27,960 --> 00:47:28,980 Still a lot of data. 1055 00:47:29,540 --> 00:47:31,720 It's still a lot of data. It's a big chunk 1056 00:47:31,720 --> 00:47:33,840 of muck that you can't possibly get 1057 00:47:33,980 --> 00:47:35,840 any value from and should never have been sent. 1058 00:47:35,980 --> 00:47:37,800 But the document was unclear and so 1059 00:47:37,800 --> 00:47:39,980 the code was unclear and that's just what it sort of 1060 00:47:39,980 --> 00:47:42,020 does. One way you can turn 1061 00:47:42,020 --> 00:47:43,700 that off is to 1062 00:47:43,700 --> 00:47:45,940 follow my personal recommended practice 1063 00:47:45,940 --> 00:47:48,080 which is don't run recursion 1064 00:47:48,080 --> 00:47:49,940 and authority in the same name server instance 1065 00:47:49,940 --> 00:47:51,440 and on your 1066 00:47:52,140 --> 00:47:53,880 authoritative name server, don't 1067 00:47:53,880 --> 00:47:56,040 give it any root hints. If it doesn't have that data, 1068 00:47:56,100 --> 00:47:56,900 it won't send it. 1069 00:47:58,380 --> 00:48:00,020 So the right 1070 00:48:00,020 --> 00:48:01,780 for the DNS administrators out there, 1071 00:48:01,840 --> 00:48:03,760 the right behavior is to send 1072 00:48:04,460 --> 00:48:04,960 and refuse. 1073 00:48:05,140 --> 00:48:08,380 Or just drop it and not send it. 1074 00:48:08,380 --> 00:48:09,300 I would say drop it because 1075 00:48:09,790 --> 00:48:11,340 I'm aware of virtually all 1076 00:48:11,340 --> 00:48:13,900 DNS requester source code bases 1077 00:48:13,900 --> 00:48:15,740 out there, even the Microsoft one. 1078 00:48:15,860 --> 00:48:17,500 I've talked to the developers and so forth. 1079 00:48:17,700 --> 00:48:19,460 No one processes refused. 1080 00:48:19,860 --> 00:48:21,760 So you may as well not send it 1081 00:48:21,760 --> 00:48:23,060 because it's not going to do them any good 1082 00:48:23,060 --> 00:48:24,580 even if it was sent legitimately. 1083 00:48:25,980 --> 00:48:29,820 We have three minutes but we have three 1084 00:48:29,820 --> 00:48:30,240 questions. 1085 00:48:31,300 --> 00:48:33,560 Is there or couldn't there be 1086 00:48:33,980 --> 00:48:35,440 some sort of legal liability associated 1087 00:48:35,440 --> 00:48:37,720 with running an open DNS server, 1088 00:48:37,920 --> 00:48:38,900 open mail relay, 1089 00:48:40,280 --> 00:48:42,280 originating spoofed packets, etc.? 1090 00:48:42,280 --> 00:48:43,600 Could there be a legal 1091 00:48:43,600 --> 00:48:44,620 something, whatever, 1092 00:48:44,900 --> 00:48:47,900 about running an open relay mail server? 1093 00:48:48,560 --> 00:48:49,700 What I'm saying is 1094 00:48:50,960 --> 00:48:52,000 if you're 1095 00:48:52,000 --> 00:48:53,800 running, if you've got a DNS 1096 00:48:53,800 --> 00:48:55,160 server and it's connected to the internet 1097 00:48:55,160 --> 00:48:57,940 and it's allowing recursive queries from anywhere, 1098 00:48:58,920 --> 00:49:00,340 I mean how can that even be 1099 00:49:00,340 --> 00:49:01,520 That's a legitimate use for DNS. 1100 00:49:01,860 --> 00:49:03,720 We don't have time for this. 1101 00:49:03,980 --> 00:49:06,020 So he is not a lawyer. 1102 00:49:06,120 --> 00:49:06,920 I am not a lawyer. 1103 00:49:07,020 --> 00:49:08,000 There are lawyers in the room. 1104 00:49:08,060 --> 00:49:08,880 They're not going to answer this 1105 00:49:08,880 --> 00:49:10,260 because they don't want to be your lawyer 1106 00:49:10,260 --> 00:49:10,980 without getting paid. 1107 00:49:11,560 --> 00:49:15,460 But what I believe is that if you can show 1108 00:49:15,460 --> 00:49:16,920 that they have been hurting you, 1109 00:49:17,060 --> 00:49:18,560 here's the PCAP, 1110 00:49:18,640 --> 00:49:20,260 here's your cease and desist letter, 1111 00:49:20,500 --> 00:49:22,980 then if they don't cease and desist, 1112 00:49:23,020 --> 00:49:24,700 then there might be some civil liability. 1113 00:49:25,060 --> 00:49:27,420 But there is in no case criminal liability 1114 00:49:27,420 --> 00:49:28,420 that I can foresee. 1115 00:49:29,080 --> 00:49:30,440 I didn't even mean criminal. 1116 00:49:35,880 --> 00:49:37,700 Is there any reason other than legacy 1117 00:49:37,700 --> 00:49:38,860 for the text field? 1118 00:49:38,980 --> 00:49:41,100 And if not, can't we just get rid of it, 1119 00:49:41,140 --> 00:49:42,680 i.e. block it with a firewall 1120 00:49:42,680 --> 00:49:44,640 or just remove it from the code? 1121 00:49:45,700 --> 00:49:47,540 TXT is not the problem. 1122 00:49:47,640 --> 00:49:49,580 As I said, you can use DNS 1123 00:49:49,580 --> 00:49:51,280 security records, you can use 1124 00:49:51,280 --> 00:49:52,940 just normal A record sets 1125 00:49:52,940 --> 00:49:54,300 that you would get back from any 1126 00:49:54,300 --> 00:49:55,500 Akamized web server. 1127 00:49:56,360 --> 00:49:58,500 But to the extent that it is a problem, 1128 00:49:58,600 --> 00:49:59,860 it's one we will have to live with 1129 00:49:59,860 --> 00:50:01,520 because TXT is a catch all. 1130 00:50:03,980 --> 00:50:04,060 So we're going to have to use 1131 00:50:04,060 --> 00:50:05,880 the SPF people to contain all of the 1132 00:50:05,880 --> 00:50:07,840 mail server sort of ackles that they 1133 00:50:07,840 --> 00:50:10,680 want to do about what mail servers 1134 00:50:10,680 --> 00:50:13,440 are able to send mail from a given domain name. 1135 00:50:13,740 --> 00:50:15,380 So we're stuck with it. 1136 00:50:15,420 --> 00:50:16,260 But it's not the problem, 1137 00:50:16,400 --> 00:50:17,720 so it's not bad that we're stuck with it. 1138 00:50:18,460 --> 00:50:20,320 So from everything I've heard so far, 1139 00:50:20,440 --> 00:50:22,200 the possible solution here is ackles, 1140 00:50:22,320 --> 00:50:23,440 or at least that's been your suggestion. 1141 00:50:24,080 --> 00:50:25,780 But that's not going to scale when 1142 00:50:26,340 --> 00:50:29,380 you're using valid SPF, DNS, etc. 1143 00:50:30,040 --> 00:50:32,100 When you're not pre-posting 1144 00:50:32,100 --> 00:50:33,260 or you're not doing recursive DNS. 1145 00:50:34,680 --> 00:50:36,720 If we actually implement ackles 1146 00:50:36,720 --> 00:50:37,560 as you're suggesting, 1147 00:50:37,740 --> 00:50:38,960 then that's not going to scale because 1148 00:50:38,960 --> 00:50:40,280 as you said, they're going to change the attack. 1149 00:50:41,160 --> 00:50:42,840 As such, don't you think the problem 1150 00:50:42,840 --> 00:50:44,120 is actually the fact that you can 1151 00:50:44,120 --> 00:50:45,560 spoof the packet in the first place? 1152 00:50:45,740 --> 00:50:46,920 So wouldn't you say that the problem 1153 00:50:46,920 --> 00:50:48,140 is in UDP and not in DNS? 1154 00:50:50,160 --> 00:50:51,640 Certainly. Why are we using this 1155 00:50:51,640 --> 00:50:53,720 laboratory grade toy for production use? 1156 00:50:53,940 --> 00:50:54,960 That's an excellent question. 1157 00:50:56,020 --> 00:50:57,800 And with that, I'll turn it over 1158 00:50:57,800 --> 00:50:59,980 to a ten minute break and then Gotti 1159 00:50:59,980 --> 00:51:01,660 will be back here by himself talking about 1160 00:51:04,600 --> 00:51:05,480 that. 1161 00:51:08,880 --> 00:51:09,860 Thank you.