Actually, wait. I'm standing in for Randy Vaughn. My name is Paul Vixie. Randy can't be here for family reasons and he knew I was here and that I have kicked Gotti while he was at the microphone before and that I would be okay for substituting for him on this talk. Many of you know Gotti Evron. He's working on downloading presentations because my laptop decided that this projector was evil in some way. So, what exactly qualifies you to give a talk on . I wish I'd thought of disabling your microphone but I didn't. Okay, just for clarification. This guy knows absolutely nothing about DNS, which is why we asked him to come here and fill in for us, because if we know nothing and he knows nothing, it's pretty much the same level. Okay? I'm not going to go over my whole bio, but what it says in the book is that... I will go over his bio. Paul Vixie. No, no, no. Shut up. You have work to do. Paul Vixie, to make a long story short, is a... So what it says in the book is that I hold the record for most cert advisories due to a single author. In other words, since you wrote the book, he doesn't know shit. Which actually is true, if you count SendMail and Cron and WooFTP and all the others. I did stop writing code, started writing paychecks instead, so I now sort of don't wear a suit anymore. But I do just management rather than programming, and you should all be thankful for that. In any case, during the years I wrote a lot of code, I also got to know a lot of DNS operators, and so they still call me when they have trouble. I like to track attacks. Sometimes I will ask someone or invite someone to be hosted inside of ISC so that when they are attacked, I'll be in a better position to help track that attack. That's not what happened here, but... Okay. And on with the actual topic, which Gadi will eventually get slides for. DNS amplification is a little bit like the old ping flood, where you spoof the source address of your victim and you send it toward some middle box, some reflector who just sees that as a normal ICMP query or DNS query, whatever it happens to be, and responds to it. Of course, the attractive part of this, there are two attractions to doing a reflector attack when you want to ping bomb somebody. One is that the traffic that is hitting the victim is not coming from the attacker, and so it's a little bit harder to track down. They can't come immediately back to you and say, ah-ha, I see that you're sending me gigabits worth of traffic, and I see your IP address in the trace route, and so I'm going to come after you with guns or lawyers or whatever it is. Instead... Okay. ...the victim has to go through a large number of these middle boxes and see if they can get trace routes done from there, but the trace route won't help because the source address was spoofed at the time it reached there. I do have a USB dock. I'll talk while you copy. Yes, you copy. I'll talk. That will work. Hi. Basically, what happened is that we have the presentations, but Paul's laptop was supposed to be connected. Well, that's a story, basically. Right now, Paul is skillfully moving over his mousepad and trying to mount the USB drive, the dongle. Now that he's done that, he's moving the window around very skillfully. What? He's kind of shy, which shows that he probably knows what he's doing. Okay. A little bit about Paul. Okay. So, again... I don't really have any feel or things to do except for bad jokes... And more bad jokes. Okay, the NSSimplification attacks. There has been a lot of confusion about the NSSimplification attacks, and when it comes down to it, nothing is new about the NullofService attacks on the Internet. Bruteforce and the NullofService attacks. What does change over time are the techniques used. Whether they are... indeed brute force or, in fact, exploiting some sort of vulnerability in whatever space that may be, and how effective they are for how much you spend, which means if you send one packet and you get back 11 to a potential 255, say, Smurf, that's pretty impressive. And with DNS, DNS attacks basically have been around for a long time. Paul, how's it going? Going well. Going well, okay. And the point is that instead of sending one packet that is very, very difficult to filter and the DNS server would have to receive, whether it is legitimate or not, again, this is UDP-based, you can send more. That's the basic of it. And when you can send gigabits of traffic, amounting up to even 10 gigabits at a time, that can be kind of significant. Anybody ever heard of blue security? No? Yeah, okay, people heard of blue security, that's great. The what? Blue fork what? What? Okay, great, you can go now to the mic. All right, as Scotty was trying to say, before his humor got in his way again, the important part about these attacks is not just that they come from someone who is not the attacker, and are thus very hard to track, but that the response that are sent by these middleboxes are much bigger than the attack that is launched by the attacker. So yes, we know that you can assemble a botnet of 10,000 or a million or whatever nodes, and send somebody one packet each from each of those places, but that's not artful. So it's much more artful if you can get a couple of hundred of these things and generate gigabits worth of traffic toward the victim. Okay. And that's what happened in this case. I have two sets of slides. One was generated by Randy and Gadi from the paper that they published on this topic. Another was published, was released by VeriSign. Male Speaker 2 in audience. Male Speaker 2 in audience. The other set was... Male Speaker 2 in audience. Given by VeriSign at a NANOG meeting, and I know the people at VeriSign. So even though VeriSign as a corporation has sued me or at least they named me as a co-conspirator during the Site Finder Wars. And I have no love for the corporation as a whole. I have to admit that they have some very smart people working there and some of them are my friends. So I have his slides that were given at NANOG and there's some pretty juicy graphics on that one. So what we'll do with the time we'll have left. if we ever get the AV situation straightened out, is run through both sets of slides quickly. And in the last 20 minutes or so, I'm hoping we'll get to kind of a question and answer about, well, what does it all mean? What can I do about it? What can I do to avoid being affected by it? Probably we will get around to why are we using a laboratory-grade Internet for, you know, production traffic, because that usually comes up in this type of talk. Gotti. Yes. What are you doing? Wasting time. I think he's reading his e-mail. All right. Something not covered in the slides, so I won't be boring you when I go over it again later, which I won't. DNS had originally come of age in a time when you could only have 512 bytes in a response. That was irrespective of the headers, the IP headers, the UDP headers and whatnot. You could include 512 bytes. And that seemed like a gargantuan lot, sort of the way that 640K must have seemed like a gargantuan lot to the people who invented the computer that had that as its limitation. Eventually, all sorts of new things went into DNS and 512 bytes started looking pretty small, especially the crypto stuff that goes with DNS security. So the IETF stood around and wrung its hands and stared off into space for a long time. And I eventually came and made myself less popular. It's been sort of an incremental process, making myself less popular by coming in with a working solution that's already implemented in Bind and has a, you know, RFC that documents it and so forth. And so they were left with nothing to do with it. They were left with nothing to do but say, well, okay, well, let's do it that way. And the result was RFC 2671, so-called EDNS, extended DNS. And it adds a number of interesting protocol features to DNS, but the important one for the purpose of this talk is that it relaxed that 512 byte limit so that when you are sending a response, if the person who sent you the request indicated with the EDNS signaling extensions, if they indicated in their request that they can take a request, they can take a request and they can take a bigger response than the standard 512, then you'll send them a bigger response. And the fallback, if you can't fit your response into the available space, is that the requester gets told that it wouldn't fit and the requester has to start over with TCP. Now, if you are sort of watching, as I do, a root name server take 10, 20,000 queries a second around the clock, you know that a UDP, which is two packets, one request, one response, is going to be a lot cheaper than TCP, which is a minimum of about seven packets. So we try to avoid overflowing that 512 bytes as often as possible, because if we didn't, then the Internet would stop working, although I'm not sure how we would tell. Boy, they're having more fun than us. So what you do... Male Presenter 2 in audience member's office. Any experts on NVIDIA drivers here? Male Presenter 2 in audience member's office. Oh, God. All right. We're winging it. Male Presenter 2 in audience member's office. It was supposed to be your block. Male Presenter 2 in audience member's office. No, it was supposed to be your laptop. We were going to use mine because you couldn't get yours working. Male Presenter 2 in audience member's office. I agree. Let's hook up a Mac. I've got it right here on a USB dongle. Male Presenter 2 in audience member's office. Somebody bring a Mac up here. Male Presenter 2 in audience member's office. No, it's cool. We'll get it. I doubt it. Male Presenter 2 in audience member's office. That's not a Mac. That is a Mac. Male Presenter 2 in audience member's office. Okay. So naturally, when you want want to attack, if you want your, the middle box response, the actual attack flow to be bigger than the triggering flow that you're sending from your little botnet, you need amplification. And is Mike Schiffman in the room? Mike, stand up. No? Okay. Dan Kaminski in the room. Oh man, they're with the fun people. Okay, so those guys have done some studies on a form of amplification that just continues to mystify all of us, which is where you send one packet to something that you think is a DNS server and you get anywhere between 20 and 50 responses to it. So it's some kind of broadcast amplifier. We don't know exactly what it is, but there are a lot of them. It's a common enough thing. So if you do what Dan Kaminski does, which is to sort of sweep the IPv4 address space with DNS queries, sometimes you get a lot of responses. Sometimes you get nothing. Sometimes you get a response from an address you didn't send the query to. Sometimes you get a lot of responses. These guys, the ones who launched the attacks that we're going to describe, if we ever get this working. Hey, I see a Mac. That's going to work. Okay. We got it. Hold on. They think they've got it. Woo! So the guys that launched this attack. Fuck this shit! Woo! Woo! Apparently, there was an NVIDIA, I don't know if it was NVIDIA, but it was a tool bar. What the fuck? Okay. Paul, which one do you want first? And thank you, whoever you are. I don't know you. Whoever you are. I'm dissing on you after you tried to help me. I've got my hands full. Yeah, kind of. Can we have Randy's slides, please? Which ones are those? The PowerPoint file. Oh. Figures. Yeah, pretty much. I need my Linux. Had I made these, they would have been in ODP format, just so you know. It's supposed to be, yep, here it is, F5. Here we go. Hey! Can you hear me now? Okay. So the fellows who launched this attack, I assume they're guys, because women are usually more polite about this kind of stuff, or sneakier. The folks who launched this attack did a little bit of research to find out where the open recursive name servers were. In other words, name servers that were willing to respond to queries that did not come from their lands. So they either got a hold of Dan Kaminsky's data set, or they just did what everybody else does, which is to add to the cosmic background radiation on the internet and send a packet to every possible address and see what answers. Anyway, they had an idea of where they could send this stuff. But they didn't use it. At least in the attack that we heard about through VeriSign, it did not get used that way. What they did instead was they let their bots send their DNS traffic to whatever was the victim PC's normal name server. And what we discovered by analyzing the attack is that those name servers are willing to believe spoofed traffic that comes from within their own ISPs. It is a mystery to me how the internet works at all, but I guess I've said that before. So, on with Randy Vaughn and Gaddy Evron's slides quickly, and then we'll get on to VeriSign's slides, and then we'll get on to what I hope will be the real meat of this, which is Q&A. Okay, you're wondering, what is all that crap? Okay, the thing at the far right, although you can't read it, is TXT. These are queries for text records. Actually, these are responses about text records. And what the rest of it is trying to tell you is that these are frags, that the real message that you're seeing the pieces of is about 8K in length, and that you're seeing 1500 byte frags because there's some sort of path MTU limitation between the middle box and the victim. One of the ways that this is sometimes mitigated is by turning off the reception of fragments, UDP fragments, but there isn't enough information in the headers of a fragment, because the UDP header is only in the first frag, so there are certain things you can't do. You end up eating the bandwidth for everything after, I don't know, it's hard to mitigate this. I guess I'm getting ahead of myself. Since you can't read this, we'll move on. Here's what they look like up close. You can see that Randy is a gentleman. He didn't want the slash 24 that this had come through to be visible, so you can see that the last octets were .37 and .46. But really, you're just seeing something that came from port 53, which is a name server, and the destination port, in this case, 31000 and some, which was a random address chosen for a client context. And it's saying, okay, it's a DNS truncation event. What a shock, because somebody tried to send an 8K UDP message, a MobiGram, down a channel that didn't have it, and this is only a small part of it the packet capture utility could get to. More of the same. More of the same. I guess Randy likes hex more than I do. So that RFC number is wrong. We revved it. It's 2845 now, not 2671. What's going on here is sort of... Oh, God. All right, here we go. There's a mixture of NX domains. There are TXTs. There's a certain number of any queries. Most of the queries were for type any. And what type any means in DNS is somewhat opportunistic. If you send a query for all record types, which is qtype any, to an authority server, it will tell you the truth. It will tell you... It will give you the entire list of all the resource record sets of all types that are present at the name you asked. But if you ask it of some intermediate caching resolving name server, like the ones you list in your resolve.conf file or get told when you do a DHCP transaction, it does not tell you the truth. It tells you only what it knows. So if it has no data for that type in its cache, it will tell you that there's no data. So type any is kind of useless. But these guys found a great use for it. So... They started out by seeding all of the name servers that they wanted to use as their middle boxes by making a query for type txt so that there would be something in the cache. And they did this with tcp as their transport and they did this with something that they knew would be about 8k worth of text. And then... Man, oh man, they're having more fun than us. I want to be over there. Can we stop? No, I'm sorry. We're not going to stop. And then they launched the real attack, which was a fairly small trickle of stuff that turned into an avalanche at the victim site. Enough of an avalanche that chances are that no matter what they did in their firewall, their upstream link would have been saturated, which is the traditional DDoS effect. Yes, I built a name server that was a mile high and took 10 terawatts of power to operate, but then you... sort of blew the fuse inside all of my ISPs and so I didn't receive the traffic I was paying to receive. This was discussed to death on Nanog and there were all kinds of people who were theorizing about things and very few of them... I guess it's the usual sort of deal. I'm sure it's true in your user communities also. The people who actually knew the answer did not speak up. So what the amplification looked like is a whole bunch of maybe 20-byte packets got sent in and a whole bunch of 8K Mobygrams came out. And when all was said and done, it was a 63 to 1 amplification factor, which if you think about the bad old days of Smurf amplifiers, 63 to 1 is damn good. Estimates are, and we'll get to this in the VeriSign slides, estimates are that it only takes a couple hundred bots to generate a couple gig of traffic if you do it this way. Here's where we're starting to talk about the duplicates. Definitely get your hands on Mike Schiffman and Dan Kaminski and make them tell you about their 580,000 estimate. My estimate is different. Actually, I spoke with Dan, and he promised to get me better results, which means much higher, because this was written before he finalized his research, and we never got done with that. Well, then, like I said, get your hands on Dan Kaminski, make him tell you about this 580,000 number, because it's either far too high or far too low, depending on how you look at it. There are some documents that explain what needs to be done, and here's where we get to the tricky part. What needs to be done is not going to be done by the victims, and it's not going to be done by the middle boxes, and it's not going to be done by the attackers, and so what needs to be done isn't going to be done, but I'll tell you what it is anyway. The first thing is that these recursive name servers have got to get some ackles. There's no reason for me, if I am on a LAN somewhere and I'm listed in the resolve.conf, of hosts on that LAN, for me to be willing to accept source IP addresses that did not originate on that LAN. If they did, then chances are they are either never really were there, they're spoofed, or they got there by mistake, and in any case, answering those queries would be a mistake. But that's the default. That's what we all do. And the reason that we do it is that those jackasses at ISC made that the default in the bind. Who is that at ISC again? I recommend that we all sort of let those ISC weasels know that they should set up the default ackle. What is the name of the guy in charge of the ISC? Is it Randy Vaughn? Yeah, Randy Vaughn. Send mail to Randy Vaughn and tell him that you want the bind default changed. More seriously, we did change it, and in bind 9.4, the default will be that if you get a query from something that isn't on your local LAN, it will be dropped. And we expect that to make the phone ring off the hook with people who say they liked it better the other way, because now everything else that comes to a name server from that campus will not work by default. And we expect that the usual thing people will do when it doesn't work is they'll put in an ackle that says, allow anything, because they don't want to be bothered with having to add their LANs one by one. But I am hoping that that's the minority and that eventually we'll see enough upgrades that things will get better. Now, bind, of course, is not the only name server under the sun. There are plenty of others. We have gotten in touch with Microsoft, tried to get them to change their default. But ultimately, the people who need to make this change have no incentive to do it, right? They were receiving a very small trickle of packets, and they were sending a very small trickle of packets, you know, on the order of tens or hundreds of kilobits. They never noticed that they were helping to firebomb some poor victim somewhere with traffic that they could not mitigate. And so we're essentially going back to the sort of the spammers paradox of trying to get the people who are not being hurt by it, by the fact that there are open relays in that case, to make a configuration change that was going to increase their costs across the board. But that's what you have to do. So I'm hoping that as you go through life and you find name servers, you'll start asking the operators of those name servers, what's the ackle on that? Because perhaps if they learn that they will be annoyed to death and pecked to death by ducks, they'll decide that that's a higher pain threshold than making the config change. The other thing that needs to be done by people who will not do it is so-called BCP38. Paul Ferguson wrote this. Paul Ferguson and another guy, Dan Sini. Yeah. It says that if you're an ISP and your customer tries to spoof their source, you should drop that traffic as early as possible and you should not fling it out into the global Internet. Now, I can tell you as a... Thank you for your applause, but you might have to hold that for a moment. I think that Sini and Fergie wrote a great document, but there was no incentive for the ISPs to do that because, again, the traffic that was being spoofed was only leaving their network. It was not going to be hitting anybody inside their network. So what you're doing, you're going to these people with an economics proposition that is exactly backward. Would you please spend money to keep your competitor from having to spend money? We want you to invest so your competitor can become more profitable. So they hate that and they laughed us out of the room. And so it's a great document, but it has not been widely deployed. I know there are some examples. Somebody told me that Internet was starting to really lock this down, and if so, God love them. But most people don't do this, even though it's a one-line config change on all of the routers made since 2000. And for reference, I'll just tell you, that means that a mom-and-pop ISP who is buying junk off of eBay that they cannot afford support contracts for and they're buying extra copies of that junk so they can maintain their own spares is getting hardware that is capable of doing this. That's how long it has been, the current hardware state of the art. But you will still find that inside of MCI, which I think is the new name for WorldCom, which is the new name for UUNet, which I don't know exactly how many other networks are in there, this is not the default. They're a telco. They have a lot of knuckle-dragging union technicians that they would have to upgrade in order to get this done. That's the expensive part. Actually, I just learned something last year. I'm actually pretty offended by this, but hey. Do you know what's the name of knock engineers? Reboot monkeys. Reboot monkeys, okay. That's not funny. That's kind of offensive. Monkeys. What? Most of the problems are solved by a reboot. And somebody calls them, hey, can you reboot machine AXBC? Sure, thanks. And you're lucky if they reboot the right one. So anyway, what we need is for ISPs to stop allowing these spoofed sources to come from inside their networks, and then we need name server operators to put in some ackles. Neither one is going to benefit from their increased costs, but we as victims would benefit from being attacked less often, and that's the way the Internet is. I'm going to switch to VeriSign slides, which are glitzier by... Four. Kadi wants to say a few words. Wow, when you say it that way. The interesting thing here, yes, it's a denial of service attack, a distributed denial of service attack, yes, it is very impressive, yes, it has taken down networks, significant networks, but you should really concentrate on what Paul just said. On the one hand, to make this attack work, you need to maliciously put some sort of DXT record, a SOAR record in this case, over at some sort of server you hacked into or put in place ahead of schedule. Okay, thanks. And... View Zoom? Control L. Control L, thank you very much. I do not use Windows as my usual thing, and Hebrew is not my usual keyboard either. Isn't it everybody's? Actually, I have a problem with that. I can type blind in English, but when I type in Hebrew, I have a ton of typos. Never happens. But I still have the stickers on the thingies. Anyway, that's the one end of it. So basically, the attack on you is happening maliciously, and not just by some bots pulling out data. And the other part of it is, imagine you live in New York, okay? And the crime that hurts you is committed on some other block in the city, across the city, okay? Now, the other citizens over there would kind of... How is the mayor supposed to explain to these citizens that they see a lot more cops in their neighborhood and they see, they get imposed with a lot of regulations and rules about their movements, when their neighborhood is kind of free and shiny and happy, ooh, shiny and all that, when the actual problem is across the city somewhere else that you don't even see? So that's basically... The point is, the internet has become a huge... What do people like saying? Global village? Yes? What? Who? Oh. That. Right. I'm a DEFCON. If somebody's gonna break in, I at least wanna see it. You're a DEFCON. If somebody's gonna break in, you're not gonna see. That's why this is an expendable laptop. Looks to me like you've been broken into by somebody in Redmond, Washington. Whoo! Okay. Hold on. You saw it. His password is... So what I'm basically trying to say is that why should they spend money on you? Why should somebody in China spend money on somebody in the United States? Why should anybody be nice network citizens to one another when the attack does not affect them? So basically what happens is, one day the attack does affect them, they go down, and then in a nice Darwinian way, everybody gets patched, but it takes a long, long time. So that's pretty much it. Everybody knows your password now. It's blah, blah, blah. Blah, blah, blah, blah. How did you know that? Actually, no. It's one, two, three, four, five. That's amazing! That's the exact same combination on my luggage. Never mind. Okay. So I told you that the Verisign people spend a little more time on the graphics, and this kind of shows a little bit more of what's going on, except that even at Verisign, they don't know how to spell attacker. That's interesting. I hadn't noticed that until just now. This is a PDF file. I did not alter their slides to make them look like they don't know how to spell. Okay, so there's this big TXT record. They've got an army of 300 to 500,000, or 30 to 500,000. I don't know. It seems like that was written for the suits. I know there weren't 500,000, but I think that's what it took to make this sound impressive. And you get this In this case, the DNS server that had the TXT record, the authority server, had itself been captured. So this was somebody's zone somewhere that got broken into, and the attacker put an 8K text record in there for the purpose of then seeding all of the middle box name servers so that they could then amplify the attack. And this is sort of part of the tried and true philosophy of don't put this don't buy that with your own credit card. You don't want the police coming to your door. You want them going to somebody else's door. And the Verisign folks were very personable, and they went and located the name server in question and got a copy of the zone, and I'll get to that later. So here's a 20 megabit per second spike. But this is only a 1% sample, so they were estimating that it was 100 times bigger. But they know that they're they know how much transit they buy, and how much their ISPs were throwing away at the time, and so they were able to estimate that the total size of the attack was 5 gig. This is pretty much the same attempt to attack, or at least the same attackers that Gotti and Randy were tracking. But, you know, they were attacking different TLD name servers at different times, and we, as far as I know, there's no publicity around any kind of arrests in these cases, so the folks that are out there doing this are We know who they are. Yes, but we know that they have not been arrested. Oh, should they? Come on, are we really going to go and arrest them? If I were in the business, yes. If I were in the business? Well, we'd be in a lot of trouble then. Okay, so there's the zone that got broken into is in South Africa. And this one was a 4K answer, unlike the 8K MobiGram that Randy and Gotti were tracking. But it was a 60 byte query, so you see the amplification factor, you see how many reflecting middle boxes there were. Now, usually when somebody is DDoSing you, they will fiddle around with the IP time to live flag, which gets initialized by the sender and decremented by every router between the sender and you. And depending on what games they play, you can tell whether they were attempting to randomize it, whether they succeeded at randomizing it, or whether they were not able to set it. Some APIs don't allow unprivileged applications to set the IP TTL. And so if you get enough of this data, and we've got Dave Dagan here, I see, who has studied TTL in detail. So if there's Q&A on this, then we've got the expert. Anyway, by looking at this sample, they were able to tell that the traffic, the actual flow that hit the VeriSign name server was itself not spoofed. That actually came from real places that were setting the TTL in normal ways. And proving that it isn't spoofed is one of those expert things, you can ask Dagan. Sequential IP addresses? Yes, so in other words, they found these name servers with a sequential scan, similar to what Mr. Kaminski does. And VeriSign and a lot of other people went and looked at the sources of these and said, well, gee, they were sending me these big mobigrams. Does that mean they're open recursive name servers? Can I do a dig against them for data that is not local to them? And sure enough, yes. And then we started to notice the true scope of the problem. Okay. Yeah, yeah, yeah. We don't care about this. Right, there's this estimate that the attackers only had to spend 80 megabit to get the 5 gigabit response. And that 80 megabit was spread across a bot army of somewhere between 30,000 and these people estimated 500,000. But 80 megabit, you know, one colo host can generate 80 megabit these days. And it would be very difficult to find out which host had suddenly shown an 80 megabit spike. Because two or three hops away from that colo, it would be a bunch of very small flows headed to, you know, 100,000 open recursive name servers, or 580,000 if you ask Dan. And I do hope you ask Dan. So the domain in South Africa had two authoritative servers, but only one had been compromised. In other words, they broke in and changed something that should be a slave name server to be a master name server and then edited the zone in place. So there was a chance that when the middle boxes went to go get this data so they could see the cache, that they would talk to the wrong name server and potentially not be able to cache it. But even that didn't really stop this from being a very successful attack. Well, VeriSign slides on the board here, and even though they named me as a co-conspirator during the site finder wars, I don't want them to be unfairly characterized here. I don't know if this was successful in costing them any money, but it certainly got their attention. Okay, so this talks about the fragments. You can get copies of these slides with the URL that I'll tell you at the end. So if you want to study this in more detail, basically, if you are trying to send a UDP datagram bigger than your Ethernet MTU, you'll have to break it up into chunks, and those chunks look very odd at the receiving end because DNS is normally not large enough to need to be chunked. They had, they were measuring 25 minutes. Again, this is only one of a number of attacks that happened across about a two-month period, so Randy and Gotti had different spans of time. In some cases, these things go on for days because there's really no incentive to stop it. I mean, it's not costing you anything. There's no chance you're going to get caught. Hey, he spelled attack right on this slide. Yeah, see the near vertical start is part of what you can sort of tell. This did not ramp up over a period of five minutes. There was a lot of synchronization in getting all the different attack flows to get started at the same time. Okay. Yeah. This was, mitigation is always what people want to talk about, which I worry about sometimes. How can we live with this instead of how can we avoid having to live with this? Are there two different ways of approaching that question? So, there was this thing, okay, Dan, you've got 580,000 name servers on this list. What if all the authority name servers on the internet were to subscribe to a black hole list that was seeded from your list? And they just stopped answering any queries from somebody who was known to be open and recursive. Well, I think the collateral damage would be too high. I don't see Amazon.com deciding that they don't want to get any queries from known to be open servers. It would cost them a lot of credit card transactions, among other things. So, dropping fragments toward the victim turns out to be pretty effective. But, as most of you know... I'm with Dan Kaminski on the line here, so hold on a minute. Dan, can you come here to the lecture about DNS? We kind of want to ask you a question. Yeah, that's a good idea. Let's get Dan in here. Oh, damn. Oh, you're at Caesar's for a second. You left some sheet there. Okay. So, when are you getting here? Too late for our purposes. Get over here and type your password, dude. Anyway, these are all ineffective, because if you decide you're going to drop fragments, then they will retune their attack to use the maximum size packet they can send that doesn't require fragments. So, all of the things that you could do to mitigate this will be as costly or more costly than just living with it. So, at the moment, we all sort of live with it, but it's not that different from Smurf amplifiers or other ping of death type scenarios. Anybody can DDoS anybody on any given day on the internet. You just hope you haven't pissed anybody off who's in a bad mood. About that issue of... Basically, some people said that limiting... I said it originally, too. Some people, including me, said originally that... Sorry for repeating myself. If you limit the packet size to 512 bytes, you limit the amplification. Now, theoretically and practically, that's true. But, before the but, if you get to limit one bot sending out packets for one, basically, set of fragments, to have seven times seven amplification instead of, say, seven times seventy, that's pretty impressive, right? It would work. But, you would, at the same time, be limiting your DNS server abilities, be limiting the ability to use IP version six and a lot of other such expansions to DNS, and it wouldn't matter. And I'll tell you why. This attack is built, in a way, much like in any security system, in any system in any way, at any stage of the links of how this attack works, from how many bots are sending the packets, to how many open recursive servers you are using, the bots are connecting to, and so on. You can use more bots, you can send more packets, you can connect to more open name servers, and cause the amplification to be just as large, if not larger. You basically control how big this is going to be until the point where you reach saturation. For example, Gadi, you're burning up the Q&A time. Put the mic down. Here's another long list of things that could be done, but would hurt a lot and give very little benefit. You know, none of these will make the attack unattractive. So, it's just, these are speaking points to suits. Um, this is, uh, you gotta really study these slides and hear them, hear the guy who made them tell you what they all mean. I've pretty much... Let's move on to the Q&A because we have about ten minutes. I think we're gonna do that. This is the slide I wanted to stop on here. So, we have microphones. Please use them. Someone? The URL where these slides can be had is public.oarki.net And it's a Drupal site, and I apologize for that. And you'll have to click around a little bit. It's part of a DNS operations forum or workshop that was done. So you're two or three clicks from it. It's public.oarki.net public.oarki.net The study by Randy and me can be found online. Just do DNS Amplification Attacks in Google and you'll find it. First question? Are you guys aware of any utilities that have been posted at places like, uh, PacketStorm, for instance? No. No? No, no, this isn't like nobody's put something together and published it yet? Work for 30 minutes in Python and you'll have it. Nothing public. Really? I have, uh, I've seen the kit, but I don't think it's online anywhere. I don't think it's on a public Black Hat site. Okay. Um, Gadi mentioned earlier that you'd need to for the text record attack go and put maliciously something into text records. I've actually done a little bit of research on data mining text records that are already out there. And there's quite a few that are pretty large. I found ASCII armored, uh, encryption keys. I found large shell scripts and even one had a very large chunk of the Book of Revelation. Which would be great for a DDoS attack because then you'd have the Four Horsemen of the Apocalypse clogging up your series of tubes. And that it'd be great. So, you might not necessarily need to maliciously put something out there, just find something and use it. Yes, but, oh, sorry, go ahead. That is absolutely true. You don't need to capture anybody's names on the server. You can use normal traffic. You can just... The response that you'll get from www.microsoft.com is large enough to hurt a lot. And as soon as we get DNS security really underway and we have these big crypto blobs attached to every RR set on the internet, then once again the ease with which you can generate a gigantic response coming out of somebody else's name server will just keep on coming. Absolutely. One more thing about this is that when you use something that's already out there, public servers with huge records, then you're not really limited because you can use quite a bit of servers in another link in the chain instead of just adding bots or just adding name servers. But in this particular case, the guy put a malicious record of his own in one name server and it took quite a bit of time to get it down, but he had enough bots and enough name servers that were open to generate the attack sites he needed, so he didn't really need more records elsewhere. Yes, needless to say, had I drafted this attack, it would have been a lot smoother. You sound like a virus writer. Actually, you sound like an anti-virus guy. I'm sorry, my mistake. Question to Paul. What is the normal behavior for the properly configured public name server when it receives the query, the request for the an object in the zone that's not a 384? And from the LAN that it's not supposed to answer recursive queries for? Is it still responding something or is it just dropping this request and keeping it in silence? I don't think you meant to, but you asked three different questions. So, if someone asks you a question and they're not in your ACL, then you could, I suppose, answer with refused. There's an opcode out there called refused. But given the purpose of an ACL and that ACLs were not defined by the DNS protocol and this behavior is therefore not defined, I think that the spirit of an ACL is that if you get something from somebody who shouldn't have sent it to you, you shouldn't answer it. If you're an authoritative name server, let's say, for example, .com, and somebody sends you a query for foo.net, most name servers, and again, I blame those evil bastards at ISC, most name servers will give you a root referral. That's what I was referring to. Still a lot of data. It's still a lot of data. It's a big chunk of muck that you can't possibly get any value from and should never have been sent. But the document was unclear and so the code was unclear and that's just what it sort of does. One way you can turn that off is to follow my personal recommended practice which is don't run recursion and authority in the same name server instance and on your authoritative name server, don't give it any root hints. If it doesn't have that data, it won't send it. So the right for the DNS administrators out there, the right behavior is to send and refuse. Or just drop it and not send it. I would say drop it because I'm aware of virtually all DNS requester source code bases out there, even the Microsoft one. I've talked to the developers and so forth. No one processes refused. So you may as well not send it because it's not going to do them any good even if it was sent legitimately. We have three minutes but we have three questions. Is there or couldn't there be some sort of legal liability associated with running an open DNS server, open mail relay, originating spoofed packets, etc.? Could there be a legal something, whatever, about running an open relay mail server? What I'm saying is if you're running, if you've got a DNS server and it's connected to the internet and it's allowing recursive queries from anywhere, I mean how can that even be That's a legitimate use for DNS. We don't have time for this. So he is not a lawyer. I am not a lawyer. There are lawyers in the room. They're not going to answer this because they don't want to be your lawyer without getting paid. But what I believe is that if you can show that they have been hurting you, here's the PCAP, here's your cease and desist letter, then if they don't cease and desist, then there might be some civil liability. But there is in no case criminal liability that I can foresee. I didn't even mean criminal. Is there any reason other than legacy for the text field? And if not, can't we just get rid of it, i.e. block it with a firewall or just remove it from the code? TXT is not the problem. As I said, you can use DNS security records, you can use just normal A record sets that you would get back from any Akamized web server. But to the extent that it is a problem, it's one we will have to live with because TXT is a catch all. So we're going to have to use the SPF people to contain all of the mail server sort of ackles that they want to do about what mail servers are able to send mail from a given domain name. So we're stuck with it. But it's not the problem, so it's not bad that we're stuck with it. So from everything I've heard so far, the possible solution here is ackles, or at least that's been your suggestion. But that's not going to scale when you're using valid SPF, DNS, etc. When you're not pre-posting or you're not doing recursive DNS. If we actually implement ackles as you're suggesting, then that's not going to scale because as you said, they're going to change the attack. As such, don't you think the problem is actually the fact that you can spoof the packet in the first place? So wouldn't you say that the problem is in UDP and not in DNS? Certainly. Why are we using this laboratory grade toy for production use? That's an excellent question. And with that, I'll turn it over to a ten minute break and then Gotti will be back here by himself talking about that. Thank you.