So, I'm Sam Bowne, and I'm here to talk to you about DOS attacks, and I've got some help in doing that, which is very good. So, I'm going to talk a little bit about the hacktivists that have used DOS attacks, because I find them interesting, and they have dramatized how much damage you can do with the various kinds of DOS attacks, at the peril of going to prison themselves for it, which is a drag, but anyway, it helps the rest of us sell security appliances, and it helps me entertain students and keep them interested in learning how these attacks and defenses work. So, you will be participating as victims. Now, how many people brought a device to get killed? One, two, three, yeah, not very many. Four of you over there. Okay, that's kind of what I thought. Okay, because Ryan, who's setting up a wireless network, says he probably can't connect more than 40 or 50 before it'll crash, and I didn't think there'd be that many volunteers to get their device killed. However, I was trying in the speaker room, and I believe this attack could be used to kill every machine at DEF CON, from both sides. Here, I was going to demonstrate a version of that, not so lethal on a stage, but it wouldn't connect at all in the prep room, so I decided to skip that for the moment. But if any of you were unscrupulous, you could try it. Anyway, we'll talk about that later. So, that's me. I'm on Twitter, and I teach at City College, San Francisco, and I've got two guests with me. I've got Matthew Prince here, who's going to talk about his inside dealings with LulzSec, which I was very pleased to have. In fact, I met him because both of us were deplored as immoral, evil people, helping LulzSec, because I retweeted some LulzSec tweaks that pointed to stolen data, which I thought was important, and he ran a service which they used to protect themselves from attacks. And so, it'll be interesting to hear about that. And Ryan here, way over there, he's going to set up the network and kill people who wish to volunteer to be DOSed with this attack, because we could learn some new vulnerabilities here. Now, they're not zero days, because the attack I'm using here, I didn't write it, and it's not new. It's been known for a year. It's just that an awful lot of people at manufacturer, their devices, don't care, and have not patched it. So, if anybody has any exotic devices, it would be interesting to see if they're vulnerable. Anyway, here's the summary of what I want to show you. The DOS Circus is about the history of this stuff, and the attackers that have been using it, and then I'll talk about the three kinds of DOS. Layer 4 DOS, where you use thousands of attackers to bring down one machine, usually distributed denial of service. Layer 7 DOS, where one attacker can bring down one server, or more. And the link local IPv6. Router advertisement attack. I talked to you last year about IPv6, and I said it was going to bring a lot of security problems, and so it has. It's given us a time warp, when a bunch of things designed in 1993 are now back on our networks, so the old tricks work again. And this is not really an old trick, but it's devastating, and I'll show it to you. You can kill all the Windows machines on a network from one attacker. And again, you only need a few packets per second to do it. So, Julian Assange has stirred everybody up by leaking US secrets. And he published this mysterious encrypted file as his insurance, and if any of you ever gets irritated enough at the fact that he's being held in house arrest and perhaps going to be deported and stuff, he can release the secret key and reveal something terrible not yet specified. So this stirred up these anonymous people that had gotten tired of just posting pictures of cats on 4chan and decided to save the world through denial of service. Which makes a lot of sense to them, although not to me. So they started attacking. If anybody they could all agree to hate, they would blow them away. So it started with Scientology, because it's pretty easy to hate the Scientologists. And then it went on to other people, and eventually H.B. Gary Federal. This guy couldn't... He was supposed to be here, but he was issued a court order about three days ago, forcing him to not speak at the panel and tell what really happened for the inside story here. But anyway, in order to publicize his new government security contracting company, Aaron Barr said that he could find the people running LulzSec and expose them by doing a correlation of social networking to what appeared in Twitter. He would correlate with what appeared in Facebook and elsewhere. And so they decided to take him down. And it was extremely easy. They got a team of anonymous members. Now anonymous was a low-tech group, usually using really primitive tools, but a small number of them got together who were relatively skilled compared to the others. And they decided to take these guys down. They found a SQL injection and took over the email server. And then they sent emails pretending to come from the owner of the company, asking him to please change the password, the username, and turn off the firewall. Thanks, that's working now. And once they were in, they took all their emails and dumped them on the web. Because the whole thing about these guys later became LulzSec, the whole point about them was complete irresponsibility. The fun thing is to take everything every sane person ever told you not to do and just do it, and then you laugh. So what would happen if I just dumped your whole email log out? Everything personal, hurting who knows how many innocent people that just had something to say about their medical conditions. That would be a lot of fun, so that's what they did. And they found a lot of real dirt in there. It looked like they were planning to do a lot of really nasty things from HB Gary. And so then Anonymous decided to attack the Chamber of Commerce, having found out that they were involved in this, with a Drupal exploit, again showing more intelligence, technically, than Anonymous had, which mostly just used that low-arbor-dion cannon, which is pretty primitive. So the jester gets in here. He is a demonstration of the power of a Layer 7 attack, although no one knows exactly what he does. His tool is secret, and I'm guessing what it does. But from people who have been attacked and kept logs of his packets, they've told me that I am correct, that what he is doing is essentially using a slow-loris attack with some variations. And his plan here is to be right-wing, essentially, where Anonymous and LulzSec are left-wing. He is pro-military, he comes from the military, and he tries to punch back at anybody that he regards as endangering soldiers, like Julian Assange and Islamic Jihadist recruiting websites. And he brings them down with his tool and then tweets about them. He's prominent on social networking. You can go chat with him. I've chatted with him. But he doesn't have any partners, unlike LulzSec. He works alone, and therefore he hasn't been caught yet. He understands military operational security. Nobody can retray him, something that LulzSec forgot. Anyway, so he brought down WikiLeaks single-handedly and held it down for more than a day. And to prove it, I was chatting with him in IRC, and he said, OK, I'm going to turn off the attack and let it come back up. And it came back up. He said, now I'm taking it down again, and it went down again. So that convinced me that he was really in control of the attack. And here's the Netcraft map of WikiLeaks going down for more than a day, thanks to the Jester. So that was his game. Then he decided to fight with Anonymous, because Anonymous didn't like him taking down WikiLeaks. And he's been focusing on them for about the last year, Anonymous and LulzSec, blasting each other apart with a variety of tricks. But among them, denial of service. And then the Jester got mad at Westboro Baptist. Now these guys are also pretty easy to hate. I mean, they have some ridiculous hatred of homosexuals, and then they also picket funerals, and basically their profit method seems to be to be annoying until someone finally punches them in the face and then sue. But the Jester decided to take them down, so he took down four websites with his tool, which he had ported to a cell phone. And from a single 3G cell phone, he says, he held down four websites for two months straight. And I don't doubt that, because I know I could do it, and any of my students could do it, and any of you could do it, if you just pay attention to this talk. It's not hard. The slow loris attack runs on Windows. It's not hard to do at all. And that's how it goes. Now LulzSec continued on a rampage, hacking everybody in sight. At one point, they just opened up a telephone line, and you could call in and they'd hack anybody you wanted. They hacked U.S. government, military, NATO, British government sites. They dumped the contents of the Booz Allen Hamilton database. When they dumped out the Arizona cops is when I got really mad, because that was real important. And they dumped out their names and their passwords. And the logins for all the emails. And when they dumped out the Booz Allen Hamilton password hashes, that struck me as outrageous. 150,000 password hashes. Half of them were cracked by the next day. So all the top military, their names and passwords, are now out there where anybody can use them. I didn't think much of that. However, they also took down some games websites, which I didn't even notice, but it seemed to be what really caused trouble for them. And they put up a website to announce all the stuff they took down and all their stolen data. And then hacked PBS and put up a silly thing. And I was pretty irritated by that, too. I said, why would you hack PBS? Come on, guys. And anyway, now they've been caught, largely. Ryan Cleary was one guy kind of on the periphery of LulzSec. They caught him in June. And shortly after that, they caught TFLOW, who was much more important to LulzSec. And just a couple days ago, they caught Topiary. So they really are just British teenagers. Very messed up. Hardly left their house. And their attitude of just taking down everything just for fun is a... You know, it comes from just childish immaturity. You might wonder what makes them do this. They are just young and foolish is why they think they can just take down every government website just for fun. Anyway, by the way, they're supposed to be both here. They're both on Twitter claiming to be here. They said they were at the pool yesterday. The jester said he was here, and Sabu said he was here. I kind of doubt it, but maybe they are. Who knows? Sabu is the main... LulzSec person still at large. And widely assumed to be on the way down because his friends have already been arrested. And this is what always happens after they get the first one. They will betray all the rest because they don't have much in the way of operational security. Anyway, the technical part of this is you have a Layer 4 DDoS is the simplest kind of attack. And this is what was used to take down MasterCard and Visa. They couldn't take down Amazon this way. Anonymous tried this. This is a protest which involves many people. So the reason it does is the tool they use is the low-arbitrion cannon which is just a network stress tester and it doesn't do much harm. So it takes a lot of people to bring down a website this way. But with the participation of 3,000 or perhaps 30,000 attackers the numbers are not entirely clear they were able to hold down MasterCard for more than a day. And many other sites. And this is the kind of attack that Kaspersky was talking about when they interviewed him a while ago and asked him how many infected machines would it take to bring South Africa off the internet completely. Or, I'm not sure if it's South Africa some nation. And he said it would take hundreds of thousands of infected machines to do that. And I know that's false. I know it would take one 3G cell phone. However, he's not thinking of that kind of attack. He's thinking of the Layer 4 attacks where it takes thousands of machines to take down one target. And it's really nothing more than just pressing F5 in your browser. It is an allowable service of a sort. It's just a very weak primitive one. The more powerful ones one like the Solaris attack that Arsene came up with a couple years ago and there were many previous versions of the same thing here you do something smarter. Instead of sending a complete request to the web server and just sending a lot of complete requests to the web server so it has to work too hard to serve them all up you send it something that will jam up the web server. An HTTP GET request to get a page from a server looks like this. You have the Layer 2 information and the Layer 3 information and down here you've got the GET which is several lines of information. And if you just send part of the GET and you never send the rest of it then the network assumes that you're on some kind of unreliable network and the packets have been fragmented and so I've got the first half of it and the other half is still coming so it waits for the other half. And that ties up incoming lines and it's extremely powerful and I'll show it to you here in a couple minutes. That's the... All you need is about one packet per second and it stops an Apache server dead. RUDEADYET is another similar one but it uses posts and it affects IIS. IIS is not affected by the slow loris attack with incomplete GET requests. But it is affected by incomplete POST requests. There are other variations of it now there's one using KeepAliveDOS that works I tried that and it's somewhat effective it's not as powerful as the slow loris attack but it's another way to send requests to the network. The gestures tool presumably uses one of these principles it calls it Xerxes it is a graphical interface looks like it runs on Ubuntu Linux to me but who knows and then it has its attacker one important thing about layer 7 attacks is you can run them through an anonymizer so you don't go to prison. The low-arbitrion cannon does not enjoy this feature because it has to send a lot of traffic from you to the other end if you try to run it through the Tor network it burns everything between you and the target the layer 7 attacks are like a guided missile it just sends a few packets that do no harm to anything and when they get to the server, blam the server becomes unavailable so you can run it through an anonymizer which is what he does which means that not only can they not find out where it's coming from but they also can't protect from it by any kind of simple firewall rules that search by source address because all the packets come from different source addresses that will stop them from using Tor and they'd have to use something else like a botnet of compromised machines to do it and that would make it a little harder but anyway his tool starts runs this thing through an anonymization network and then brings down the target and it's independently does a series of tests to the target and when the target goes down then it sends out one of those tweets Tango down anyway that's where we are up to maybe two years ago these things were running the link local DOS is much newer with IP version 6 you have any version of any modern operating system any modern version of Linux any Windows, Vista or Windows 7 or Windows XP if you turn on IP version 6 although it's not on by default and your servers, your domain controllers your DNS servers, your email servers are all using IP version 6 whether you like it or not unless you have gone out of your way to turn it off and like any other unwanted service if you're not using it it's opening you to attacks so in IP version 4 unless you're weird enough to be using static IP addresses which most people aren't your machine boots up and it asks the router the DHCP server I need an IP it says okay use this IP then there's another back and forth to make sure nobody else is using that IP and it's the end of the game there will be no further DHCP traffic until you restart that machine or until a long time passes like four days that's a pull process I need an IP I ask for an IP but IP version 6 is not normally done in that fashion IP version 6 is generally addresses are distributed by router advertisement so the router pushes out a router advertisement and says I am the router everybody stop what you're doing and join my network now everybody has to stop make up an address and join the network it's a broadcast packet although the purists will tell me there is no broadcast in IP version 6 but there is something called multicast to all nodes so the difference the difference between these things is theological in nature and I don't intend to go into it but the point is the router sends out one packet that goes to every node and every node now has to join the network which doesn't seem that bad here's the router advertisement packet going to a multicast to all nodes address FFO2 colon colon 1 and telling people what network to join the problem is you can send out a lot of router advertisements and when you do the poor target joins all these networks and that would be alright except that Windows is extremely inefficient at doing that so let me show you a few of these attacks I should have some virtual machines set up now this is how I do it in class with my students I use virtual machines on an isolated network and I was well I'll tell you a little more when I get there so let's start with the old fashioned attacks here I've got a backtrack 5 Linux machine and it's running as a web server so if I go to local host and refresh I put up a web page here with a picture of a cat and it's handing out that glorious web page now if you run this page you can see the status of your server and let me see if I can figure out how to turn off some junk to save some room here can I right click let's see view toolbars ah good get rid of toolbars come on toolbars bookmarks there that's getting somewhere ok now that's the server status and down here these are the current connections there's one connection waiting here of hundreds of connections available so this server can handle hundreds of people viewing that web page so if I go over here and this guy views that web page it should show up here as another connection and so it does now I have a couple connections so now let's attack this poor Linux machine from this Windows machine we'll start with the old fashioned stuff the low orbit ion cannon let's get these things out of my way alright the low orbit ion cannon is here the thing that anonymous people use as a shortcut to go into prison and um I'll need an IP address here let me join this there we are ok 192.168.1.http 192.168.198.173 hopefully I got that right yeah it looks pretty good ok so this attack goes here I need a little more room on my screen come on come on ok this is Lion it lets you drag the corner from the middle now but it doesn't seem to refresh this page in any hurry well that's irritating turn to your computer well I don't like virtual machines much but under these conditions I'm kind of forced to use them but under these conditions I'm kind of forced to use them uh seems do what uh well it won't even respond to anything I do right now this is fairly common um I might have to restart might have to restart that one oh there it finally responded I think there that's good it's just a little slow I'm sort of getting used to this I have to lock on until the number appears here yeah yeah there we are number appears there and now I can do different kinds of attacks here I can do different kinds of attacks here and I would like to scroll down but I don't see a scroll bar because I'm being hosed here but I don't see a scroll bar because I'm being hosed here um um pardon me alright I'll have to go to full screen that's the only thing I have to do I'll make it big enough so I can see what I'm doing alright cause the lower body in canon in addition to sending you to prison isn't very well written it doesn't let you see what you need to see too well alright so I'm gonna send um ACTP requests here and um I need to get to the fire button I need to get to the fire button there I'm in charge in my laser there now it should be there it's sending stuff numbers okay it's sending complete requests back to my poor target which is here so my poor virtual machine here will now show that people are using up the connections and there they are see it's filling up with a bunch of C's now those C's are connections at the web server it is gradually filling up here so it's using up all the web server can do but what it's doing is complete connections they form a connection they download that little web page and then they wait to time out so this does fill up all the connections and make the web server unavailable but it does it in a very weak way because each connection terminates normally and then just ends it's time normally so it only ties it up for a couple seconds so that's what this one does let me get back to my virtual machine which is here alright and let's stop that one that should have stopped it and get rid of that one let's do the slow loris one which is much more powerful and OWASP wrote a windows version of it which is really nice and it's also small enough that I don't need some you have such a big window for it alright so now I have to put that address in here 192 give me a break I can get it out of here couldn't I yeah that would be fun copy it from there put it in here ok now this is going to run that attack let me just get this back to normal since I'm no longer attacking it it goes back to normal only one connection there's an extra one there I don't know what it is but I'm not worried about it I run that attack there we go now if I refresh this page you see it's filling up and it's filling up this time with ours those are pending requests each one of those will take 400 seconds to time out by default so you don't need to send very many of them and it uses up all available incoming lines and this server is toast so that's the slow loris attack and the http post attack is similar so it's very powerful and very dangerous and now it's this easy and when you stop it will recover it recovers pretty fast in this case I don't know why it's not taking 400 seconds but maybe the default timing in apache on backtrack 5 is different than what I think it is I'm not quite sure what causes that but anyway now that we've shown you how to kill linux from windows let's go the other way with the more powerful attack let me clear all this stuff up and set up my poor windows machine to show you the evil that is about to happen to it so if I go here into ipconfig slash more or pipe more you'll see this machine is an ordinary windows machine I put on a static address of two colon colon two and ip version six it's got an ip version four address and really not much else going on now let me bring up a task manager window because that's the interesting way to see the damage that's going to happen to this machine task manager shows the cpu is now at zero percent so let me shove these things over near each other and shove it over the side there's my windows machine just sitting there now if I send it some ip version six packets here I'm going to do fake router six first fake router six this is the thc ipv6 ipv6 attack suite from van hausen in europe some place and I do that on eth one and I'll send it defcon I can't get an n though but I can get that far of defcon I'm going to send that now it's sending some packets advertising that network don't need to wait any longer all the devices on that network have been commanded to join it and there it is it's made an address starting defco now this is what's supposed to happen when you add a router in normal course of events I add a router it advertises its prefix everybody joins and the game's over but if I send a flood of unwanted packets at the rate of hundreds per second eth one I'm going to stop it very soon there after each dot is a hundred I've sent about a thousand um this is now at a hundred percent and it's just going to sit there at a hundred percent for a long long time and um yeah and and what's worse is it's well I got this far I was trying to make a project for my students sitting outside a coffee house I said well this is fun but the problem is it's killed it so bad that you can't see the addresses if you run ipconfig now if I stop it really fast this will actually respond without waiting forever and you can see what it's done and that's why hopefully I stopped there you see it's joined all these networks page after page of networks that's what it's doing and it's still adding more to that list at the rate of about five per second so this is alright but when I first tried it I ran it for a while nothing seems to happen hey my windows machine doesn't respond at all what happened here so well this is no fun students don't learn anything they can't look at the damage so I thought well this is a bad project what do I do and then I thought hey wait a minute this would kill the domain controller and the email server and everything this is really bad this is so bad I can't tell my students at all I better tell my students at Microsoft quietly so I sent out a tweet well at first I just sent out a tweet saying hey this attack hurts Windows 7 not surprising and then I said hey you know I need a security contact inside Windows so and other people on my Twitter feed immediately gave me good people inside Microsoft and they sent me to the right people and within two days I had an official answer from Microsoft saying yeah Van Hoozen told us about that a year ago and we don't care we're not going to do anything about it for current versions of Windows we do not care that Windows Vista, Windows 7, Windows Server Windows Server 2003, Windows Server 2008, XP are all going to die at the drop of a hat. We may put in Windows 8 or Windows 9 or something if we have nothing better to do. I said, fine. If you're going to be that way, I'll tell the whole world about it. And I gave it to my students for homework and I said, use an isolated network. Don't kill every machine at the college. Because you could kill every machine at the college, including our servers and everything else. And my students did not kill the whole college with it, which is nice of them. Therefore I'm still working there. I'm not out on the street with a tin cup. And so anyway, that's the power of that attack. And so let me talk a little bit about defenses. But I think before I do that, I'm going to hand it over to Matthew here. The only thing I want you to do is if you would like to try this. Now, Windows machines are vulnerable to this. And one version of BSD Unix is vulnerable to this attack. Mac OS is not. If you look at my Mac here, ifconfig. It will show, yeah, you see them here. Let's try pipe war. There we are. See here, the Mac got the attack too. The Mac is the host. And as you can see, it joined some of these, those are 2001s, so let's see. It joins, I think those are useless networks. It joins some of those useless networks, but it didn't join them all. Well, I think those might be from DEF CON. But anyway, what you see, if you expose the Mac to it, it joins about the first 10 and no more. It has the sense to ignore all router advertisements after the first 10 for some period of time. Which is a pretty good defense. And that's what I think Microsoft should do in Windows, but they are not interested in my opinion. Cisco patched it. Juniper didn't. But anyway, if you have any devices to test, Ryan's going to set up a network there and kill anybody that wants to join it. And if you want to participate in this, here's how you do it. There. You join a network called Do Not Use. And it's WPA2 encrypted and the password is Do Not Use. So if you join that network, he'll see how many people joined and then run this attack and kill you. And if it kills you, it's interesting because other devices are vulnerable besides Windows and BSD. And some people said they were going to bring interesting devices here. Any device that networks may be vulnerable to this, and I would like to know, and I'd like you to go to the question room afterwards and tell me so we can inform the vendor and get stuff patched. Because I think a bunch of people are vulnerable to this and they don't know. But anyway, let me hand it over to you. You can tell them your story about Losec. Okay. And then I'll come back and talk about defenses if we have time left. Your stuff should be on the desktop. Let me dig down to it. Hey, Sam. Yeah. Is it Do Not Use or Do Not Connect? Is it Do Not Use or Do Not Connect, Ryan? Do Not Connect. Do Not Connect. Oh, Do Not Connect. Okay. Thank you. And the key is Do Not Connect. Okay. So its name is Do Not Connect and the key is Do Not Connect. Okay. Thanks, Sam. Sam is the only person that I know who can make running a DDoS attack seem charming. So my name is Matthew Prince and I know Sam. We both live in San Francisco and we both got sort of dragged into the little security kerfuffle reluctantly. So I'm going to tell you the story of how I got dragged into it and talk to you about some of the DDoS attacks that we saw during the 23 days that they were active and then what we did to stop them. So on June 2nd at about 4.54 p.m. Greenwich Mean Time, the Lulz Security Twitter account announced that they had 4.54 p.m. Finally gotten around to actually making a web page. What was pretty amazing was that within about 15 minutes that web page was knocked offline by a fairly significant denial of service attack. I don't know the details of this particular attack because we hadn't been involved yet. About an hour after the web page was first announced, Lulz announced that they had actually solved this problem on a Twitter account and the only thing that had changed as far as I've been told. Is that nine minutes earlier, they signed up for Cloudflare. Now Cloudflare doesn't, we're a service, we make websites faster and we protect them from some attacks but we don't really think of ourselves as an anti-DDoS service. So it was somewhat of a surprise for the Lulz security people to do that. It was even more of a surprise when an hour later, Lulz security sent out a message to me saying, hey, we love your service so much. Can we exchange rum? Can we exchange rum for a free pro account? I had no idea who Lulz security was at this point and so I tweeted back a tweet which my legal counsel has since told me to remove which said, it depends on how many cases and how good the rum is. They never sent the rum and we never gave them a pro account but Cloudflare is free and thousands of sites sign up for it every single day and we typically don't have problems with them. These guys we had some more issues with. And so over the course of the next 23 days, they wreaked mayhem in lots of different ways and finally on June 25th, they called it quits. And what was interesting is that the way Cloudflare works, we're a reverse proxy. So all of the traffic which goes. To Lulz security passes through our network first, which has two significant effects. The first is anyone who attacks Lulz security was attacking us. So that was amusing. And then secondly, it meant that Lulz security was actually able to hide where their origin was, where they were actually hosting from. And that's a side effect of how our system is designed. But it was one that they used. To great effect. Sam actually contacted me a little while ago. He said he was going to do a talk on DDoS and would I, and we sort of talked about the experience and he said, would I be willing to share some information about it? And again, we have legal counsel and we're a real company and we have a privacy policy and even if you're an internationally wanted cyber criminal, we try to respect the privacy policy. And so I wrote the following email. There's a little bit more to it. Before they did that, I was going to tell them, thank you for this import. If you'reOFF- Sole Am. OK. So I can talk about some things. I can't talk about anything, everything. I can talk about things writ large. I can talk about how they affected us. I don't want to get the host necessarily that they were using in trouble. So I'm not going to be revealing their exact IP addresses. But let me tell you a little bit more about what happened over those 23 days. So this is the actual traffic to Lulz security's website. Over those 23 days, they received a little over 18 million page views as people went to that site. You can see it peaked early and then it's trailed off since then. The website is still actually on Cloudflare, although the website behind it has been taken down. So if you go to it today, you'll see an Apache configuration page. I don't know what they have planned next. What's interesting is that we can actually look at what is just the attack traffic and break that down. And, you know, I'd say that this attack traffic up until the spike kind of in the middle there was almost just background noise. It was not something that we were particularly concerned with. And, in fact, what I say on a slide in a couple of seconds is that the three weeks that Lulz security were on Cloudflare was actually three of the quietest weeks. I mean, that's a lot of time. I mean, that's a lot of time for denial-of-service attacks that we had seen, which is strange, because a lot of people were saying that they were attacking them. There was this one spike in the center, but that seems to have been caused by a couple of very distinct events that they engaged in. And I'll talk about what that is, and then I'll talk about exactly what the sort of attacks that we saw for Lulz, against Lulz, and what we did to defend ourselves and then the ones that were sort of annoying to us. So, one thing that was particularly interesting, this is on June 25th, this is the jester. I don't know who the jester is. Sam has given me some background. He publishes a web page. He spent a huge amount of time trying to figure out what the backing, where the Lulz security site was hacked, and he proudly pronounced what has become gospel, which was that www.lulzsecurity.com was at 204.197.3. And lulzsecurity.com was at 111.90.139.55. I know where the site was on June 25th, and I will tell you it wasn't there at all. In fact, they used seven different hosts over the course of 23 days. The original host was in Montreal, Canada. They were briefly in Malaysia, but it was in early June. It was that's the 111 address that's accurate. I don't know where the other address comes from. Most of the hosts that they used were actually U.S.-based hosts, including one large host that specifically specializes in DDoS mitigation. Ultimately, they're using German hosting, and that's where they still are today. One thing that was interesting was that a lot of people claimed that they had found some way to knock Lulz security offline, and they posted pictures online. This is actually a service that we offer at Cloudflare, which is a local one, and it is usually free of charge. What's interesting is that it's not like they sold the data, but they actually did it online. So they actually came in with the information that they needed. It's never been considered as a public service. The idea of what they did was they actually sent traffic to the host and sent it to the server and sent it back. They would send a message to the host saying, I'm happy to see you, and they gave you their contact information. And they actually get a text message that 2.2.2.2, which is an invalid. There's no host. There's no web server running there. I think they just picked a random IP address. And what that did was it caused our system to kick into the always online mode. That actually caused that cache version to exist for a limited period of time until that cache expired. At that point, they pointed it back to a host for a short amount of time, then pointed it back to a fake address to get it up. I am not aware of any person or any time when the Lowell security site was actually knocked offline, in spite of the fact that a lot of people were trying to do that. On the other hand, they knocked a lot of people offline, which was interesting to watch. A lot of the attacks that we saw, you know, again, as I said, we were really surprised. We had everyone on high alert. We were watching for big attacks to come in. And the attacks that we saw were generally actually significantly less than we would have expected. Pissing off the hash is not a bad thing. It's not a bad thing. It's not a bad thing. It's not a bad thing. But the hackers that populate Twitter is not nearly as dangerous as pissing off the Chinese cyber mafia or the eastern European cyber mafia or people that run really big extortion attacks. They run big DDoSs. These guys, they run, you know, they're clever. But it's not the same league. We saw some layer 7 attacks that were relatively harmless, while slow Loris and some of those tools are excellent. So, you know, it's interesting to attack an individual web server. CloudFlare was specifically designed not only to stop layer 7 attacks dead, but we actually then record all the IP addresses that are committing those attacks, which just makes it, I mean, it's actually, we actually are happy when people attack us over layer 7. The more annoying attacks for us are the layer 3, layer 4 DDoS attacks that we see. But, you know, we run this, we run a network which is an any-casted network. And what that means is that we have a bunch of machines, hundreds and hundreds and hundreds of machines that run in 14 different data centers all around the world, listening on the same IP address. So that tends to take distributed denial of service attacks or high volume attacks and spread them out over a very large surface area, which makes it much more difficult to launch something like that against us. What is more interesting, though, what the annoying attacks that hurt us were a couple of different things. The first was a, someone had a really big network and a lot of traffic. And they pointed at us, and it happened that they were geographically proximate, or sort of networked geographically proximate to our San Jose data center. And so they were doing enough bandwidth to our San Jose data center that what we did was we took all of our clients other than Lowell Security and we moved them to other data centers. No one ever noticed. But the San Jose data center for that period of time was only serving Lowell Security. Kept them online, though. Another attack which was really interesting, it's actually not a particular attack, but a very big threat to most people, was a threat to us, was using Google as a reflector. So we have special rules that are in place for Google's IP addresses in order to make sure that we're never blocking legitimate crawler traffic from coming to us. And so someone who was actually very clever found out that if they sent a lot of SIN requests with fake headers pointing back at our IP addresses to Google, Google would act back to those. And that actually created some issues for us internally. It was a pretty easy solution. We blocked the acts that didn't have a SIN attached to them, and we called our friends at Google and said, you'll never get origin traffic coming from this, so just firewall it off. And that was solved within a few minutes. But that was actually a clever attack that looked at the nature of how our system worked and challenged us based on that. The last one, which was the most annoying, someone did a thorough scan of our IP address ranges and found some exposed router controls. Some interfaces that were out there. And figured out the routers that we were using or just dictionary attacked against the routers, we're not sure. And they were able to launch attacks that actually shut down some of our routers. And they were able to bypass any cast because those were specific to that. The solution, again, was fairly straightforward. We just blocked those IP addresses off to the outside network. But it was the attack that actually caused us the biggest problem and knocked a couple of our routers offline for a while. A couple of minutes. But largely, again, when I compare the big attacks that we see when a client of ours gets a letter in the mail that says, hi, I'm the helpful Chinese government agency, by the way, we've detected on your network that someone is going to attack you. If you send us $10,000, we can probably do something about it. Obviously not a real Chinese agency. And they really can do something about it because they're launching it. Those are big attacks. These were relatively small by comparison. Sam, I think I'm losing power. So, yeah. You can just make sure it's plugged in. So, a couple of things. I think I got it there. So, sorry about that. So, a couple of things that were interesting. The first was, you know, again, when the jester and all those guys were attacking, that's that sort of background noise pattern. What really started to, it seems, trigger pissing people off was when the little security guys went after Minecraft. And that was the real spike in traffic. And then the drop back off in traffic was caused when they stopped attacking Minecraft. In fact, internally in our office, the biggest debates were in terms of whether we should drop them off our network or not came from the Minecraft aficionados who said, you're now causing me pain and that's not cool. So I guess the lesson is that if you're going to, you know, launch DDoSes against people indiscriminately, don't pick on Minecraft. So, you know, we've watched... I have very little information on who actually the little security folks are. I will say that one of the user names that signed up for the CloudFlare account is very, very similar to one of the user names that's been arrested. I don't know if that means that it's just a coincidence or that they've actually been taken offline. We haven't seen much activity. They haven't moved their host around. And again, their website is down now. But it was an interesting 23 days watching kind of the attacks and as all the world tried to take them down, seeing how we could help keep it up for better or worse. So if this is of any interest to you, I'm East Dakota on Twitter and we're CloudFlare. So thanks for having me. All right. Thank you, Matthew. I really appreciate you coming to do that because I am trying to improve my game. You know, I've been a breaker for quite a while. Let me see if I can find my presentation. There we are. You know, I've been giving a lot of talks and, like, attack is easier than defense. So my talk is always the same. I have this new attack. It blows everything away. Ha, ha, ha. And if you don't like it, tough. You have to, like, wait for Microsoft to patch it or something. Basically you're hosed, which is a common message you'll hear at DEF CON and other conferences. But I'm trying to move up. So I told you this stuff. By the way, there are some defenses. See, I'm trying to move into defense, which is tougher. Most of the time defense is difficult. Now if you want to block those router advertisement floods, you can turn off IP version 6. That will protect you. But IP version 6 is necessary and it does things you probably want, like home groups and direct access. You can turn off router discovery with a net SH command at the command line. And that will mean that your machine does not listen, does not do anything when it gets RAs. And it will protect it from this attack. It will mean you have to put a static IP version 6 address on it, which is probably the right thing to do on a server. You can block it with the Windows firewall. And you only accept router advertisements from the authorized router. And that will protect your clients, although it's pretty easy to defeat that by just making rogue router advertisements that appear to come from that source address. But it will stop the attacks to some extent. And Cisco makes a switch with RA guard. Cisco patched their own vulnerabilities for this as soon as they were told by Mark Hauser. And they made a proprietary protection for your network. So if you buy a Cisco switch with RA guard, okay, good. Right on time here. Anyway, you can evade that pretty easily. By putting in fragmented router advertisements will go right past Cisco's RA guard. So for every defense, there is another attack. But anyway, as far as defending, my conclusion has been for a long time, the only reason your website is up is because nobody hates you. If even one person hated you, you'd be down. That's what the jester proves. That's why I think the jester is so important for network security. He proves that just one angry man can take down a lot of websites and you're helpless basically. Now, it's not entirely true that you're helpless, but the defense seems to be a little difficult to put in. I tried playing with some defenses. You can use mod security. Now, in a laboratory condition, mod security's latest version has an anti-layer 7-DOS feature, but all it does is stop too many connections from the same IP address. So it will save you from a test on your network with that old WASP tool, but it won't stop the jester because he goes through Tor or some similar network and all the attack packets come from different networks. You can pay a service like Akamai to protect you, and they'll use a few tricks to protect you. The load balancers will protect your server by only letting complete requests make it to the server. But the load balancer itself will go down if you go in enough traffic. It's a defense, but it's not a perfect defense. It took something like four times as many packets to free the load balancer in my test, so it's something. You can also do things like counterattack. H.D. Moore had a good one here. Somebody tried attacking him with a botnet, so he pointed his DNS address back to their command and control server, so they blew themselves away. . And that's effective, of course, but it does mean your site is down while it's happening, and it's questionably legal. I mean, now he's taken the flame. It's like if I had a shield and I've collected bullets back to shoot back at the bad guy shooting at me. I don't know. Anyway, there may be some legal issues there, but it did work, and it'll work against flood attacks like anonymous with the low-orbit ion cannon. But I was very pleased to observe CloudFlare here because I've got the same talk I give everywhere. There's this horrible attack. There's not much you can do. And now I'm contacting people out of the blue that have vulnerabilities exposed on Pastebin to try to get them to fix their stuff, and they're typically small businesses that don't know much, that don't have any security team, and I can't tell them to purchase and implement a extra server to protect your server, but what I could tell them to do is just use CloudFlare, which is a free service. And that's not too hard to do, and it really will protect you, and I was very pleased to observe that it really stopped the jester. The jester really wants to take him down, and he really can't. It's the first thing I've seen that would do that. That you could easily deploy without having an expensive network security team. So I'm going to be playing with it with my students next semester. We're going to be setting up all these defenses and trying to blast through them and try to make them good and strong. Defense is much harder than attack. Anyway, I guess that's it. Did anybody actually get murdered here, Ryan? What's that? Yeah. Did anybody's machine actually go down from attacking his network? Anybody? Anybody want to talk about it? No volunteers. Well, you know, when you volunteer to ruin machines up here, you don't get too many volunteers. Okay. Fair enough. So I guess that's it. I'll see you next year. Oh, there's a Q&A room.