1 00:00:00,000 --> 00:00:07,980 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. 2 00:00:08,100 --> 00:00:14,700 So, I'm going to talk a little bit about the hacktivists that have used DOS attacks, because I find them interesting, 3 00:00:14,940 --> 00:00:19,260 and they have dramatized how much damage you can do with the various kinds of DOS attacks, 4 00:00:20,660 --> 00:00:26,960 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, 5 00:00:26,960 --> 00:00:31,140 and it helps me entertain students and keep them interested in learning how these attacks and defenses work. 6 00:00:32,120 --> 00:00:36,420 So, you will be participating as victims. Now, how many people brought a device to get killed? 7 00:00:38,100 --> 00:00:41,780 One, two, three, yeah, not very many. Four of you over there. Okay, that's kind of what I thought. 8 00:00:41,860 --> 00:00:47,280 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, 9 00:00:47,400 --> 00:00:50,060 and I didn't think there'd be that many volunteers to get their device killed. 10 00:00:51,180 --> 00:00:56,100 However, I was trying in the speaker room, and I believe this attack could be used to kill every machine at DEF CON, 11 00:00:56,300 --> 00:00:56,940 from both sides. 12 00:00:56,960 --> 00:01:00,580 Here, I was going to demonstrate a version of that, not so lethal on a stage, 13 00:01:00,700 --> 00:01:04,540 but it wouldn't connect at all in the prep room, so I decided to skip that for the moment. 14 00:01:04,960 --> 00:01:08,700 But if any of you were unscrupulous, you could try it. Anyway, we'll talk about that later. 15 00:01:08,900 --> 00:01:14,360 So, that's me. I'm on Twitter, and I teach at City College, San Francisco, and I've got two guests with me. 16 00:01:14,440 --> 00:01:19,060 I've got Matthew Prince here, who's going to talk about his inside dealings with LulzSec, 17 00:01:20,040 --> 00:01:26,940 which I was very pleased to have. In fact, I met him because both of us were deplored as immoral, evil people, 18 00:01:26,960 --> 00:01:32,260 helping LulzSec, because I retweeted some LulzSec tweaks that pointed to stolen data, which I thought was important, 19 00:01:32,480 --> 00:01:35,460 and he ran a service which they used to protect themselves from attacks. 20 00:01:36,380 --> 00:01:38,260 And so, it'll be interesting to hear about that. 21 00:01:38,740 --> 00:01:42,660 And Ryan here, way over there, he's going to set up the network and kill people 22 00:01:43,180 --> 00:01:48,360 who wish to volunteer to be DOSed with this attack, because we could learn some new vulnerabilities here. 23 00:01:48,480 --> 00:01:53,220 Now, they're not zero days, because the attack I'm using here, I didn't write it, and it's not new. 24 00:01:53,320 --> 00:01:56,520 It's been known for a year. It's just that an awful lot of people at manufacturer, 25 00:01:56,960 --> 00:01:59,440 their devices, don't care, and have not patched it. 26 00:02:00,100 --> 00:02:03,700 So, if anybody has any exotic devices, it would be interesting to see if they're vulnerable. 27 00:02:05,340 --> 00:02:07,240 Anyway, here's the summary of what I want to show you. 28 00:02:07,320 --> 00:02:11,880 The DOS Circus is about the history of this stuff, and the attackers that have been using it, 29 00:02:11,940 --> 00:02:13,640 and then I'll talk about the three kinds of DOS. 30 00:02:13,820 --> 00:02:18,920 Layer 4 DOS, where you use thousands of attackers to bring down one machine, usually distributed denial of service. 31 00:02:19,500 --> 00:02:23,100 Layer 7 DOS, where one attacker can bring down one server, or more. 32 00:02:24,120 --> 00:02:26,160 And the link local IPv6. 33 00:02:27,020 --> 00:02:28,200 Router advertisement attack. 34 00:02:28,460 --> 00:02:33,360 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. 35 00:02:34,520 --> 00:02:39,960 It's given us a time warp, when a bunch of things designed in 1993 are now back on our networks, 36 00:02:40,100 --> 00:02:41,720 so the old tricks work again. 37 00:02:41,980 --> 00:02:44,920 And this is not really an old trick, but it's devastating, and I'll show it to you. 38 00:02:44,980 --> 00:02:47,940 You can kill all the Windows machines on a network from one attacker. 39 00:02:49,020 --> 00:02:51,420 And again, you only need a few packets per second to do it. 40 00:02:53,200 --> 00:02:56,840 So, Julian Assange has stirred everybody up by leaking US secrets. 41 00:02:56,960 --> 00:03:01,200 And he published this mysterious encrypted file as his insurance, 42 00:03:01,420 --> 00:03:07,520 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, 43 00:03:07,560 --> 00:03:11,700 he can release the secret key and reveal something terrible not yet specified. 44 00:03:12,240 --> 00:03:17,640 So this stirred up these anonymous people that had gotten tired of just posting pictures of cats on 4chan 45 00:03:17,640 --> 00:03:19,860 and decided to save the world through denial of service. 46 00:03:20,080 --> 00:03:22,240 Which makes a lot of sense to them, although not to me. 47 00:03:22,680 --> 00:03:23,900 So they started attacking. 48 00:03:24,140 --> 00:03:26,660 If anybody they could all agree to hate, they would blow them away. 49 00:03:26,660 --> 00:03:29,820 So it started with Scientology, because it's pretty easy to hate the Scientologists. 50 00:03:30,160 --> 00:03:35,060 And then it went on to other people, and eventually H.B. Gary Federal. 51 00:03:35,260 --> 00:03:36,240 This guy couldn't... 52 00:03:36,240 --> 00:03:40,340 He was supposed to be here, but he was issued a court order about three days ago, 53 00:03:40,460 --> 00:03:44,300 forcing him to not speak at the panel and tell what really happened for the inside story here. 54 00:03:44,720 --> 00:03:49,340 But anyway, in order to publicize his new government security contracting company, 55 00:03:50,160 --> 00:03:53,480 Aaron Barr said that he could find the people running LulzSec 56 00:03:53,480 --> 00:03:55,820 and expose them by doing a correlation 57 00:03:55,820 --> 00:03:58,660 of social networking to what appeared in Twitter. 58 00:03:58,780 --> 00:04:00,960 He would correlate with what appeared in Facebook and elsewhere. 59 00:04:01,280 --> 00:04:02,920 And so they decided to take him down. 60 00:04:03,100 --> 00:04:04,720 And it was extremely easy. 61 00:04:04,880 --> 00:04:07,060 They got a team of anonymous members. 62 00:04:07,220 --> 00:04:09,180 Now anonymous was a low-tech group, 63 00:04:09,820 --> 00:04:11,440 usually using really primitive tools, 64 00:04:11,580 --> 00:04:15,240 but a small number of them got together who were relatively skilled compared to the others. 65 00:04:15,720 --> 00:04:17,500 And they decided to take these guys down. 66 00:04:17,600 --> 00:04:20,140 They found a SQL injection and took over the email server. 67 00:04:20,360 --> 00:04:23,320 And then they sent emails pretending to come from the owner of the company, 68 00:04:23,420 --> 00:04:25,140 asking him to please change the password, 69 00:04:25,820 --> 00:04:27,060 the username, and turn off the firewall. 70 00:04:27,300 --> 00:04:28,440 Thanks, that's working now. 71 00:04:29,600 --> 00:04:33,180 And once they were in, they took all their emails and dumped them on the web. 72 00:04:33,340 --> 00:04:36,300 Because the whole thing about these guys later became LulzSec, 73 00:04:36,380 --> 00:04:38,840 the whole point about them was complete irresponsibility. 74 00:04:39,060 --> 00:04:42,580 The fun thing is to take everything every sane person ever told you not to do 75 00:04:42,580 --> 00:04:44,140 and just do it, and then you laugh. 76 00:04:44,500 --> 00:04:47,700 So what would happen if I just dumped your whole email log out? 77 00:04:47,780 --> 00:04:50,940 Everything personal, hurting who knows how many innocent people 78 00:04:50,940 --> 00:04:53,000 that just had something to say about their medical conditions. 79 00:04:53,100 --> 00:04:54,920 That would be a lot of fun, so that's what they did. 80 00:04:55,820 --> 00:04:57,880 And they found a lot of real dirt in there. 81 00:04:58,000 --> 00:05:01,800 It looked like they were planning to do a lot of really nasty things from HB Gary. 82 00:05:02,880 --> 00:05:05,820 And so then Anonymous decided to attack the Chamber of Commerce, 83 00:05:06,040 --> 00:05:07,680 having found out that they were involved in this, 84 00:05:07,740 --> 00:05:12,240 with a Drupal exploit, again showing more intelligence, technically, 85 00:05:12,460 --> 00:05:15,720 than Anonymous had, which mostly just used that low-arbor-dion cannon, 86 00:05:15,880 --> 00:05:16,920 which is pretty primitive. 87 00:05:17,160 --> 00:05:19,420 So the jester gets in here. 88 00:05:19,560 --> 00:05:22,840 He is a demonstration of the power of a Layer 7 attack, 89 00:05:23,120 --> 00:05:25,740 although no one knows exactly what he does. 90 00:05:25,740 --> 00:05:28,760 His tool is secret, and I'm guessing what it does. 91 00:05:29,060 --> 00:05:31,780 But from people who have been attacked and kept logs of his packets, 92 00:05:31,920 --> 00:05:33,820 they've told me that I am correct, that what he is doing 93 00:05:33,820 --> 00:05:36,400 is essentially using a slow-loris attack with some variations. 94 00:05:37,180 --> 00:05:40,240 And his plan here is to be right-wing, essentially, 95 00:05:40,380 --> 00:05:41,940 where Anonymous and LulzSec are left-wing. 96 00:05:42,080 --> 00:05:44,220 He is pro-military, he comes from the military, 97 00:05:44,440 --> 00:05:48,060 and he tries to punch back at anybody that he regards as endangering soldiers, 98 00:05:48,280 --> 00:05:51,440 like Julian Assange and Islamic Jihadist recruiting websites. 99 00:05:52,080 --> 00:05:55,720 And he brings them down with his tool and then tweets about them. 100 00:05:55,740 --> 00:05:57,760 He's prominent on social networking. 101 00:05:57,940 --> 00:05:59,660 You can go chat with him. I've chatted with him. 102 00:05:59,700 --> 00:06:02,500 But he doesn't have any partners, unlike LulzSec. 103 00:06:02,680 --> 00:06:05,400 He works alone, and therefore he hasn't been caught yet. 104 00:06:05,620 --> 00:06:07,920 He understands military operational security. 105 00:06:08,720 --> 00:06:11,880 Nobody can retray him, something that LulzSec forgot. 106 00:06:13,020 --> 00:06:15,140 Anyway, so he brought down WikiLeaks single-handedly 107 00:06:15,640 --> 00:06:17,040 and held it down for more than a day. 108 00:06:17,120 --> 00:06:19,100 And to prove it, I was chatting with him in IRC, 109 00:06:19,140 --> 00:06:21,260 and he said, OK, I'm going to turn off the attack and let it come back up. 110 00:06:21,360 --> 00:06:22,300 And it came back up. 111 00:06:22,400 --> 00:06:24,620 He said, now I'm taking it down again, and it went down again. 112 00:06:24,620 --> 00:06:27,820 So that convinced me that he was really in control of the attack. 113 00:06:28,420 --> 00:06:32,480 And here's the Netcraft map of WikiLeaks going down for more than a day, 114 00:06:32,560 --> 00:06:33,460 thanks to the Jester. 115 00:06:34,780 --> 00:06:36,740 So that was his game. 116 00:06:36,800 --> 00:06:38,240 Then he decided to fight with Anonymous, 117 00:06:38,340 --> 00:06:40,360 because Anonymous didn't like him taking down WikiLeaks. 118 00:06:40,660 --> 00:06:42,940 And he's been focusing on them for about the last year, 119 00:06:43,000 --> 00:06:43,880 Anonymous and LulzSec, 120 00:06:44,360 --> 00:06:46,420 blasting each other apart with a variety of tricks. 121 00:06:46,560 --> 00:06:49,280 But among them, denial of service. 122 00:06:49,580 --> 00:06:51,880 And then the Jester got mad at Westboro Baptist. 123 00:06:52,080 --> 00:06:54,000 Now these guys are also pretty easy to hate. 124 00:06:54,620 --> 00:06:58,900 I mean, they have some ridiculous hatred of homosexuals, 125 00:06:58,900 --> 00:07:01,860 and then they also picket funerals, 126 00:07:01,880 --> 00:07:05,800 and basically their profit method seems to be to be annoying 127 00:07:05,800 --> 00:07:07,880 until someone finally punches them in the face and then sue. 128 00:07:08,300 --> 00:07:10,000 But the Jester decided to take them down, 129 00:07:10,060 --> 00:07:12,300 so he took down four websites with his tool, 130 00:07:12,460 --> 00:07:13,900 which he had ported to a cell phone. 131 00:07:14,080 --> 00:07:16,140 And from a single 3G cell phone, he says, 132 00:07:16,180 --> 00:07:18,200 he held down four websites for two months straight. 133 00:07:19,160 --> 00:07:22,580 And I don't doubt that, because I know I could do it, 134 00:07:22,600 --> 00:07:23,700 and any of my students could do it, 135 00:07:23,720 --> 00:07:24,500 and any of you could do it, 136 00:07:24,620 --> 00:07:25,760 if you just pay attention to this talk. 137 00:07:25,940 --> 00:07:26,760 It's not hard. 138 00:07:27,040 --> 00:07:28,800 The slow loris attack runs on Windows. 139 00:07:28,960 --> 00:07:30,040 It's not hard to do at all. 140 00:07:31,440 --> 00:07:32,620 And that's how it goes. 141 00:07:32,800 --> 00:07:34,460 Now LulzSec continued on a rampage, 142 00:07:34,460 --> 00:07:35,480 hacking everybody in sight. 143 00:07:35,660 --> 00:07:37,360 At one point, they just opened up a telephone line, 144 00:07:37,420 --> 00:07:39,400 and you could call in and they'd hack anybody you wanted. 145 00:07:40,280 --> 00:07:42,720 They hacked U.S. government, military, NATO, 146 00:07:42,800 --> 00:07:44,300 British government sites. 147 00:07:44,640 --> 00:07:47,440 They dumped the contents of the Booz Allen Hamilton database. 148 00:07:47,700 --> 00:07:50,200 When they dumped out the Arizona cops is when I got really mad, 149 00:07:51,020 --> 00:07:52,940 because that was real important. 150 00:07:53,120 --> 00:07:54,500 And they dumped out their names and their passwords. 151 00:07:54,500 --> 00:07:56,160 And the logins for all the emails. 152 00:07:56,440 --> 00:07:59,180 And when they dumped out the Booz Allen Hamilton password hashes, 153 00:07:59,200 --> 00:08:00,780 that struck me as outrageous. 154 00:08:01,320 --> 00:08:02,800 150,000 password hashes. 155 00:08:02,860 --> 00:08:04,460 Half of them were cracked by the next day. 156 00:08:05,300 --> 00:08:07,580 So all the top military, their names and passwords, 157 00:08:07,700 --> 00:08:09,340 are now out there where anybody can use them. 158 00:08:09,520 --> 00:08:10,540 I didn't think much of that. 159 00:08:10,820 --> 00:08:12,920 However, they also took down some games websites, 160 00:08:13,200 --> 00:08:14,980 which I didn't even notice, 161 00:08:15,040 --> 00:08:16,800 but it seemed to be what really caused trouble for them. 162 00:08:17,980 --> 00:08:19,120 And they put up a website 163 00:08:19,120 --> 00:08:21,220 to announce all the stuff they took down 164 00:08:21,220 --> 00:08:22,100 and all their stolen data. 165 00:08:22,580 --> 00:08:25,280 And then hacked PBS and put up a silly thing. 166 00:08:26,140 --> 00:08:28,140 And I was pretty irritated by that, too. 167 00:08:28,200 --> 00:08:29,320 I said, why would you hack PBS? 168 00:08:29,580 --> 00:08:30,160 Come on, guys. 169 00:08:31,840 --> 00:08:34,100 And anyway, now they've been caught, largely. 170 00:08:34,280 --> 00:08:37,080 Ryan Cleary was one guy kind of on the periphery of LulzSec. 171 00:08:37,180 --> 00:08:38,500 They caught him in June. 172 00:08:38,700 --> 00:08:40,940 And shortly after that, they caught TFLOW, 173 00:08:40,980 --> 00:08:42,620 who was much more important to LulzSec. 174 00:08:42,780 --> 00:08:44,840 And just a couple days ago, they caught Topiary. 175 00:08:45,040 --> 00:08:46,940 So they really are just British teenagers. 176 00:08:47,480 --> 00:08:48,640 Very messed up. 177 00:08:48,800 --> 00:08:49,820 Hardly left their house. 178 00:08:51,380 --> 00:08:54,160 And their attitude of just taking down everything 179 00:08:54,160 --> 00:08:55,380 just for fun is a... 180 00:08:57,800 --> 00:08:59,880 You know, it comes from just childish immaturity. 181 00:09:00,000 --> 00:09:01,120 You might wonder what makes them do this. 182 00:09:01,180 --> 00:09:02,840 They are just young and foolish 183 00:09:02,840 --> 00:09:04,100 is why they think they can just take down 184 00:09:04,100 --> 00:09:06,020 every government website just for fun. 185 00:09:06,760 --> 00:09:08,940 Anyway, by the way, they're supposed to be both here. 186 00:09:09,060 --> 00:09:10,640 They're both on Twitter claiming to be here. 187 00:09:10,800 --> 00:09:11,980 They said they were at the pool yesterday. 188 00:09:12,620 --> 00:09:14,880 The jester said he was here, and Sabu said he was here. 189 00:09:15,480 --> 00:09:17,560 I kind of doubt it, but maybe they are. 190 00:09:17,680 --> 00:09:18,160 Who knows? 191 00:09:18,580 --> 00:09:19,580 Sabu is the main... 192 00:09:19,820 --> 00:09:21,400 LulzSec person still at large. 193 00:09:21,740 --> 00:09:23,940 And widely assumed to be on the way down 194 00:09:23,940 --> 00:09:25,520 because his friends have already been arrested. 195 00:09:25,700 --> 00:09:27,560 And this is what always happens after they get the first one. 196 00:09:27,640 --> 00:09:29,500 They will betray all the rest because they don't have much 197 00:09:29,500 --> 00:09:30,680 in the way of operational security. 198 00:09:31,680 --> 00:09:33,760 Anyway, the technical part of this is 199 00:09:33,760 --> 00:09:35,940 you have a Layer 4 DDoS 200 00:09:35,940 --> 00:09:37,160 is the simplest kind of attack. 201 00:09:37,920 --> 00:09:39,760 And this is what was used to take down 202 00:09:40,600 --> 00:09:41,660 MasterCard and Visa. 203 00:09:42,080 --> 00:09:44,000 They couldn't take down Amazon this way. 204 00:09:44,360 --> 00:09:45,280 Anonymous tried this. 205 00:09:45,400 --> 00:09:47,660 This is a protest which involves 206 00:09:47,660 --> 00:09:48,500 many people. 207 00:09:49,820 --> 00:09:52,120 So the reason it does is the tool they use 208 00:09:52,120 --> 00:09:53,320 is the low-arbitrion cannon 209 00:09:53,320 --> 00:09:55,060 which is just a network stress tester 210 00:09:55,060 --> 00:09:56,800 and it doesn't do much harm. 211 00:09:57,560 --> 00:09:59,260 So it takes a lot of people to bring down 212 00:09:59,260 --> 00:10:00,120 a website this way. 213 00:10:00,560 --> 00:10:03,440 But with the participation of 3,000 214 00:10:03,440 --> 00:10:04,780 or perhaps 30,000 attackers 215 00:10:04,780 --> 00:10:06,300 the numbers are not entirely clear 216 00:10:06,300 --> 00:10:07,920 they were able to hold down MasterCard 217 00:10:07,920 --> 00:10:08,760 for more than a day. 218 00:10:09,480 --> 00:10:10,660 And many other sites. 219 00:10:11,080 --> 00:10:13,940 And this is the kind of attack that Kaspersky was talking about 220 00:10:13,940 --> 00:10:15,360 when they interviewed him a while ago 221 00:10:15,360 --> 00:10:17,820 and asked him how many infected machines 222 00:10:17,820 --> 00:10:19,960 would it take to bring South Africa 223 00:10:19,960 --> 00:10:21,260 off the internet completely. 224 00:10:22,060 --> 00:10:23,700 Or, I'm not sure if it's South Africa 225 00:10:23,700 --> 00:10:24,080 some nation. 226 00:10:24,280 --> 00:10:26,200 And he said it would take hundreds of thousands 227 00:10:26,200 --> 00:10:27,540 of infected machines to do that. 228 00:10:28,040 --> 00:10:29,500 And I know that's false. 229 00:10:29,600 --> 00:10:31,260 I know it would take one 3G cell phone. 230 00:10:31,540 --> 00:10:33,620 However, he's not thinking of that kind of attack. 231 00:10:33,820 --> 00:10:35,080 He's thinking of the Layer 4 attacks 232 00:10:35,080 --> 00:10:36,220 where it takes thousands of machines 233 00:10:36,220 --> 00:10:37,440 to take down one target. 234 00:10:37,880 --> 00:10:39,400 And it's really nothing more than 235 00:10:39,400 --> 00:10:40,800 just pressing F5 in your browser. 236 00:10:45,360 --> 00:10:46,840 It is an allowable service of a sort. 237 00:10:46,960 --> 00:10:48,500 It's just a very weak primitive one. 238 00:10:49,260 --> 00:10:50,440 The more powerful ones 239 00:10:50,440 --> 00:10:52,640 one like the Solaris attack that Arsene 240 00:10:52,640 --> 00:10:53,800 came up with a couple years ago 241 00:10:53,800 --> 00:10:56,560 and there were many previous versions of the same thing 242 00:10:56,560 --> 00:10:58,040 here you do something smarter. 243 00:10:58,600 --> 00:11:01,100 Instead of sending a complete request to the web server 244 00:11:01,100 --> 00:11:03,020 and just sending a lot of complete requests 245 00:11:03,020 --> 00:11:04,840 to the web server so it has to work too hard 246 00:11:04,840 --> 00:11:05,620 to serve them all up 247 00:11:05,620 --> 00:11:08,300 you send it something that will jam up the web server. 248 00:11:09,000 --> 00:11:10,960 An HTTP GET request 249 00:11:10,960 --> 00:11:13,120 to get a page from a server looks like this. 250 00:11:13,400 --> 00:11:15,000 You have the Layer 2 information 251 00:11:15,360 --> 00:11:16,160 and the Layer 3 information 252 00:11:16,160 --> 00:11:17,640 and down here you've got the GET 253 00:11:17,640 --> 00:11:19,480 which is several lines of information. 254 00:11:19,840 --> 00:11:21,520 And if you just send part of the GET 255 00:11:21,520 --> 00:11:23,180 and you never send the rest of it 256 00:11:23,180 --> 00:11:24,680 then the network assumes 257 00:11:24,680 --> 00:11:26,540 that you're on some kind of unreliable network 258 00:11:26,540 --> 00:11:28,720 and the packets have been fragmented 259 00:11:28,720 --> 00:11:30,560 and so I've got the first half of it 260 00:11:30,560 --> 00:11:31,920 and the other half is still coming 261 00:11:31,920 --> 00:11:33,600 so it waits for the other half. 262 00:11:34,080 --> 00:11:36,000 And that ties up incoming lines 263 00:11:36,000 --> 00:11:37,640 and it's extremely powerful 264 00:11:37,640 --> 00:11:39,160 and I'll show it to you here in a couple minutes. 265 00:11:40,500 --> 00:11:41,120 That's the... 266 00:11:45,360 --> 00:11:46,820 All you need is about one packet per second 267 00:11:46,820 --> 00:11:48,660 and it stops an Apache server dead. 268 00:11:50,660 --> 00:11:51,140 RUDEADYET 269 00:11:51,140 --> 00:11:52,300 is another similar one 270 00:11:52,300 --> 00:11:55,000 but it uses posts and it affects IIS. 271 00:11:55,360 --> 00:11:57,600 IIS is not affected by the slow loris attack 272 00:11:57,600 --> 00:11:59,000 with incomplete GET requests. 273 00:12:01,100 --> 00:12:03,260 But it is affected by incomplete POST requests. 274 00:12:04,420 --> 00:12:06,020 There are other variations of it now 275 00:12:06,020 --> 00:12:07,580 there's one using KeepAliveDOS 276 00:12:07,580 --> 00:12:08,220 that works 277 00:12:08,220 --> 00:12:09,820 I tried that and it's somewhat effective 278 00:12:09,820 --> 00:12:11,540 it's not as powerful as the slow loris attack 279 00:12:11,540 --> 00:12:13,800 but it's another way to send requests 280 00:12:15,360 --> 00:12:15,780 to the network. 281 00:12:15,780 --> 00:12:16,780 The gestures tool 282 00:12:16,780 --> 00:12:18,720 presumably uses one of these principles 283 00:12:18,720 --> 00:12:19,940 it calls it Xerxes 284 00:12:19,940 --> 00:12:22,400 it is a graphical interface 285 00:12:22,400 --> 00:12:24,300 looks like it runs on Ubuntu Linux to me 286 00:12:24,300 --> 00:12:24,740 but who knows 287 00:12:24,740 --> 00:12:26,520 and then it has its attacker 288 00:12:26,520 --> 00:12:29,140 one important thing about layer 7 attacks 289 00:12:29,140 --> 00:12:30,780 is you can run them through an anonymizer 290 00:12:30,780 --> 00:12:31,860 so you don't go to prison. 291 00:12:33,560 --> 00:12:36,060 The low-arbitrion cannon does not enjoy this feature 292 00:12:36,060 --> 00:12:37,880 because it has to send a lot of traffic 293 00:12:37,880 --> 00:12:38,760 from you to the other end 294 00:12:38,760 --> 00:12:40,260 if you try to run it through the Tor network 295 00:12:45,360 --> 00:12:47,060 it burns everything between you and the target 296 00:12:47,060 --> 00:12:50,100 the layer 7 attacks 297 00:12:50,100 --> 00:12:51,360 are like a guided missile 298 00:12:51,360 --> 00:12:53,200 it just sends a few packets 299 00:12:53,200 --> 00:12:54,220 that do no harm to anything 300 00:12:54,220 --> 00:12:55,420 and when they get to the server, blam 301 00:12:55,420 --> 00:12:56,700 the server becomes unavailable 302 00:12:56,700 --> 00:12:58,780 so you can run it through an anonymizer 303 00:12:58,780 --> 00:12:59,880 which is what he does 304 00:12:59,880 --> 00:13:02,380 which means that not only can they not find out 305 00:13:02,380 --> 00:13:03,140 where it's coming from 306 00:13:03,140 --> 00:13:04,820 but they also can't protect from it 307 00:13:04,820 --> 00:13:06,340 by any kind of simple firewall rules 308 00:13:06,340 --> 00:13:07,560 that search by source address 309 00:13:07,560 --> 00:13:09,760 because all the packets come from different source addresses 310 00:13:15,360 --> 00:13:16,580 that will stop them from using Tor 311 00:13:16,580 --> 00:13:17,880 and they'd have to use something else 312 00:13:17,880 --> 00:13:20,000 like a botnet of compromised machines to do it 313 00:13:20,000 --> 00:13:20,960 and that would make it a little harder 314 00:13:20,960 --> 00:13:22,600 but anyway his tool starts 315 00:13:22,600 --> 00:13:24,720 runs this thing through an anonymization network 316 00:13:24,720 --> 00:13:26,580 and then brings down the target 317 00:13:26,580 --> 00:13:29,900 and it's independently does a series of tests to the target 318 00:13:29,900 --> 00:13:30,960 and when the target goes down 319 00:13:30,960 --> 00:13:32,320 then it sends out one of those tweets 320 00:13:32,320 --> 00:13:33,140 Tango down 321 00:13:33,820 --> 00:13:34,960 anyway that's where we are 322 00:13:34,960 --> 00:13:37,260 up to maybe two years ago these things were running 323 00:13:38,180 --> 00:13:40,220 the link local DOS is much newer 324 00:13:40,800 --> 00:13:42,000 with IP version 6 325 00:13:45,360 --> 00:13:47,660 you have any version of any modern operating system 326 00:13:47,660 --> 00:13:48,860 any modern version of Linux 327 00:13:48,860 --> 00:13:50,980 any Windows, Vista or Windows 7 328 00:13:50,980 --> 00:13:52,560 or Windows XP 329 00:13:52,560 --> 00:13:54,260 if you turn on IP version 6 330 00:13:54,260 --> 00:13:55,600 although it's not on by default 331 00:13:55,600 --> 00:13:57,860 and your servers, your domain controllers 332 00:13:57,860 --> 00:14:00,280 your DNS servers, your email servers 333 00:14:00,280 --> 00:14:01,640 are all using IP version 6 334 00:14:01,640 --> 00:14:02,760 whether you like it or not 335 00:14:02,760 --> 00:14:05,020 unless you have gone out of your way to turn it off 336 00:14:05,020 --> 00:14:07,840 and like any other unwanted service 337 00:14:07,840 --> 00:14:09,100 if you're not using it 338 00:14:09,100 --> 00:14:10,720 it's opening you to attacks 339 00:14:11,320 --> 00:14:12,940 so in IP version 4 340 00:14:15,360 --> 00:14:17,420 unless you're weird enough to be using static IP addresses 341 00:14:17,420 --> 00:14:18,840 which most people aren't 342 00:14:18,840 --> 00:14:21,220 your machine boots up and it asks the router 343 00:14:21,220 --> 00:14:22,480 the DHCP server 344 00:14:22,480 --> 00:14:24,900 I need an IP it says okay use this IP 345 00:14:24,900 --> 00:14:26,280 then there's another back and forth 346 00:14:26,280 --> 00:14:28,080 to make sure nobody else is using that IP 347 00:14:28,080 --> 00:14:29,840 and it's the end of the game 348 00:14:29,840 --> 00:14:31,700 there will be no further DHCP traffic 349 00:14:31,700 --> 00:14:33,460 until you restart that machine 350 00:14:33,460 --> 00:14:35,900 or until a long time passes like four days 351 00:14:35,900 --> 00:14:37,780 that's a pull process 352 00:14:37,780 --> 00:14:40,040 I need an IP I ask for an IP 353 00:14:40,040 --> 00:14:42,620 but IP version 6 is not normally 354 00:14:43,560 --> 00:14:44,940 done in that fashion 355 00:14:45,360 --> 00:14:47,400 IP version 6 is generally 356 00:14:47,400 --> 00:14:49,280 addresses are distributed by router advertisement 357 00:14:49,280 --> 00:14:50,720 so the router 358 00:14:51,140 --> 00:14:52,860 pushes out a router advertisement 359 00:14:52,860 --> 00:14:54,240 and says I am the router 360 00:14:54,240 --> 00:14:56,940 everybody stop what you're doing and join my network now 361 00:14:57,720 --> 00:14:59,100 everybody has to stop 362 00:14:59,100 --> 00:15:00,760 make up an address and join the network 363 00:15:01,660 --> 00:15:03,040 it's a broadcast packet 364 00:15:03,040 --> 00:15:04,820 although the purists will tell me 365 00:15:04,820 --> 00:15:06,620 there is no broadcast in IP version 6 366 00:15:06,620 --> 00:15:09,100 but there is something called multicast to all nodes 367 00:15:09,100 --> 00:15:10,680 so the difference 368 00:15:12,280 --> 00:15:13,400 the difference 369 00:15:13,400 --> 00:15:15,060 between these things is theological 370 00:15:15,360 --> 00:15:16,840 in nature and I don't intend to go into it 371 00:15:16,840 --> 00:15:19,040 but the point is the router sends out 372 00:15:19,040 --> 00:15:20,380 one packet that goes to every node 373 00:15:20,380 --> 00:15:22,200 and every node now has to join the network 374 00:15:22,200 --> 00:15:23,480 which doesn't seem that bad 375 00:15:23,980 --> 00:15:25,340 here's the router advertisement packet 376 00:15:25,340 --> 00:15:27,280 going to a multicast to all nodes address 377 00:15:29,000 --> 00:15:30,280 FFO2 colon colon 1 378 00:15:30,280 --> 00:15:32,160 and telling people what network to join 379 00:15:32,160 --> 00:15:34,640 the problem is you can send out a lot of router advertisements 380 00:15:35,160 --> 00:15:36,060 and when you do 381 00:15:36,060 --> 00:15:38,240 the poor target joins all these networks 382 00:15:38,240 --> 00:15:39,520 and that would be alright 383 00:15:39,520 --> 00:15:42,700 except that Windows 384 00:15:42,700 --> 00:15:44,740 is extremely inefficient at doing that 385 00:15:45,360 --> 00:15:46,460 so let me show you a few of these attacks 386 00:15:46,460 --> 00:15:49,360 I should have some virtual machines set up 387 00:15:49,800 --> 00:15:51,520 now this is how I do it in class 388 00:15:51,520 --> 00:15:52,260 with my students 389 00:15:53,580 --> 00:15:55,280 I use virtual machines 390 00:15:55,280 --> 00:15:56,540 on an isolated network 391 00:15:57,880 --> 00:15:58,520 and I was 392 00:15:58,520 --> 00:16:01,120 well I'll tell you a little more when I get there 393 00:16:01,120 --> 00:16:02,960 so let's start with the old fashioned attacks 394 00:16:02,960 --> 00:16:05,060 here I've got a backtrack 5 Linux machine 395 00:16:05,060 --> 00:16:06,600 and it's running as a web server 396 00:16:07,580 --> 00:16:09,520 so if I go to local host 397 00:16:10,780 --> 00:16:11,500 and refresh 398 00:16:11,500 --> 00:16:12,880 I put up a web page here 399 00:16:12,880 --> 00:16:13,600 with a picture of a cat 400 00:16:15,360 --> 00:16:16,620 and it's handing out that glorious web page 401 00:16:16,620 --> 00:16:18,580 now if you run 402 00:16:19,160 --> 00:16:21,320 this page you can see 403 00:16:21,320 --> 00:16:23,100 the status of your server 404 00:16:24,040 --> 00:16:25,480 and let me see if I can figure out 405 00:16:25,480 --> 00:16:27,200 how to turn off some junk to save some room here 406 00:16:27,200 --> 00:16:28,320 can I right click 407 00:16:28,320 --> 00:16:30,180 let's see view toolbars 408 00:16:30,180 --> 00:16:31,480 ah good get rid of toolbars 409 00:16:32,140 --> 00:16:32,860 come on 410 00:16:35,500 --> 00:16:36,380 toolbars bookmarks 411 00:16:36,380 --> 00:16:37,280 there that's getting somewhere 412 00:16:37,280 --> 00:16:38,880 ok now that's the server status 413 00:16:38,880 --> 00:16:41,680 and down here these are the current connections 414 00:16:41,680 --> 00:16:43,980 there's one connection waiting here 415 00:16:45,360 --> 00:16:46,380 of hundreds of connections available 416 00:16:46,380 --> 00:16:49,200 so this server can handle hundreds of people viewing that web page 417 00:16:49,200 --> 00:16:50,780 so if I go over here 418 00:16:50,780 --> 00:16:52,620 and this guy views that web page 419 00:16:54,880 --> 00:16:56,380 it should show up here 420 00:16:56,380 --> 00:16:57,760 as another connection 421 00:16:57,760 --> 00:16:58,820 and so it does 422 00:16:58,820 --> 00:16:59,740 now I have a couple connections 423 00:16:59,740 --> 00:17:02,320 so now let's attack this poor Linux machine 424 00:17:02,320 --> 00:17:03,380 from this Windows machine 425 00:17:04,100 --> 00:17:05,900 we'll start with the old fashioned stuff 426 00:17:07,040 --> 00:17:08,300 the low orbit ion cannon 427 00:17:09,440 --> 00:17:11,280 let's get these things out of my way 428 00:17:11,280 --> 00:17:13,140 alright the low orbit ion cannon is here 429 00:17:14,340 --> 00:17:15,260 the thing that 430 00:17:15,360 --> 00:17:16,500 anonymous people use 431 00:17:16,500 --> 00:17:18,320 as a shortcut to go into prison 432 00:17:19,180 --> 00:17:19,880 and um 433 00:17:21,660 --> 00:17:23,160 I'll need an IP address 434 00:17:23,160 --> 00:17:23,680 here 435 00:17:23,680 --> 00:17:26,420 let me join this 436 00:17:26,420 --> 00:17:27,500 there we are 437 00:17:27,500 --> 00:17:31,240 ok 192.168.1.http 438 00:17:32,860 --> 00:17:36,260 192.168.198.173 439 00:17:37,200 --> 00:17:38,220 hopefully I got that right 440 00:17:38,220 --> 00:17:39,260 yeah it looks pretty good 441 00:17:39,260 --> 00:17:41,360 ok so 442 00:17:42,160 --> 00:17:44,920 this attack goes here 443 00:17:45,480 --> 00:17:47,280 I need a little more room on my screen 444 00:17:48,680 --> 00:17:49,420 come on 445 00:17:49,420 --> 00:17:49,900 come on 446 00:17:53,320 --> 00:17:53,800 ok 447 00:17:57,420 --> 00:17:58,440 this is Lion 448 00:17:59,640 --> 00:18:01,400 it lets you drag the corner 449 00:18:01,400 --> 00:18:02,600 from the middle now 450 00:18:02,600 --> 00:18:05,320 but it doesn't seem to refresh this page in any hurry 451 00:18:05,320 --> 00:18:06,780 well that's irritating 452 00:18:09,580 --> 00:18:10,780 turn to your computer 453 00:18:11,780 --> 00:18:13,660 well I don't like virtual machines much 454 00:18:13,660 --> 00:18:15,340 but under these conditions I'm kind of forced to use them 455 00:18:15,360 --> 00:18:15,720 but under these conditions I'm kind of forced to use them 456 00:18:16,800 --> 00:18:17,360 uh 457 00:18:19,340 --> 00:18:19,900 seems 458 00:18:21,440 --> 00:18:22,340 do what 459 00:18:24,660 --> 00:18:25,220 uh 460 00:18:26,600 --> 00:18:27,160 well 461 00:18:27,160 --> 00:18:29,460 it won't even respond to anything I do right now 462 00:18:30,820 --> 00:18:31,660 this is 463 00:18:31,660 --> 00:18:33,120 fairly common 464 00:18:33,880 --> 00:18:34,440 um 465 00:18:36,220 --> 00:18:37,620 I might have to restart 466 00:18:37,620 --> 00:18:39,000 might have to restart that one 467 00:18:39,000 --> 00:18:41,200 oh there it finally responded I think 468 00:18:41,200 --> 00:18:42,060 there that's good 469 00:18:42,060 --> 00:18:44,840 it's just a little slow I'm sort of getting used to this 470 00:18:45,360 --> 00:18:46,120 I have to lock on 471 00:18:47,000 --> 00:18:48,540 until the number appears here 472 00:18:50,620 --> 00:18:51,140 yeah 473 00:18:51,140 --> 00:18:51,560 yeah 474 00:18:53,460 --> 00:18:54,340 there we are 475 00:18:54,340 --> 00:18:56,300 number appears there and now 476 00:18:57,380 --> 00:18:59,660 I can do different kinds of attacks here 477 00:18:59,660 --> 00:19:00,560 I can do different kinds of attacks here 478 00:19:00,560 --> 00:19:02,540 and I would like to scroll down 479 00:19:02,540 --> 00:19:05,600 but I don't see a scroll bar because I'm being hosed here 480 00:19:07,220 --> 00:19:08,260 but I don't see a scroll bar because I'm being hosed here 481 00:19:08,260 --> 00:19:09,280 um 482 00:19:09,280 --> 00:19:09,840 um 483 00:19:12,640 --> 00:19:13,580 pardon me 484 00:19:13,580 --> 00:19:15,340 alright I'll have to go to full screen that's the only thing I have to do 485 00:19:15,360 --> 00:19:17,160 I'll make it big enough so I can see what I'm doing 486 00:19:17,160 --> 00:19:20,020 alright cause the lower body in canon in addition to sending you to prison 487 00:19:20,020 --> 00:19:20,820 isn't very well written 488 00:19:20,820 --> 00:19:22,440 it doesn't let you see what you need to see too well 489 00:19:22,440 --> 00:19:24,980 alright so I'm gonna send um 490 00:19:24,980 --> 00:19:26,760 ACTP requests here 491 00:19:27,400 --> 00:19:28,280 and um 492 00:19:30,240 --> 00:19:32,360 I need to get to the fire button 493 00:19:33,300 --> 00:19:34,180 I need to get to the fire button 494 00:19:34,180 --> 00:19:35,840 there I'm in charge in my laser 495 00:19:36,460 --> 00:19:36,900 there 496 00:19:36,900 --> 00:19:39,000 now it should be there it's sending stuff 497 00:19:39,000 --> 00:19:41,140 numbers okay it's sending complete requests back 498 00:19:41,140 --> 00:19:43,480 to my poor target which is here 499 00:19:44,040 --> 00:19:45,040 so my poor 500 00:19:45,360 --> 00:19:46,560 virtual machine here 501 00:19:46,560 --> 00:19:49,160 will now show that people are using up the connections 502 00:19:50,440 --> 00:19:50,880 and 503 00:19:50,880 --> 00:19:53,680 there they are see it's filling up with a bunch of C's 504 00:19:53,680 --> 00:19:55,340 now those C's are 505 00:19:55,340 --> 00:19:57,000 connections at the web server it is 506 00:19:57,000 --> 00:19:59,300 gradually filling up here so it's 507 00:19:59,300 --> 00:20:01,360 using up all the web server can do 508 00:20:01,360 --> 00:20:03,180 but what it's doing is complete connections 509 00:20:03,180 --> 00:20:05,340 they form a connection they download that little web 510 00:20:05,340 --> 00:20:06,900 page and then they wait to time out 511 00:20:06,900 --> 00:20:09,540 so this does fill up all the connections 512 00:20:09,540 --> 00:20:10,880 and make the web server unavailable 513 00:20:10,880 --> 00:20:12,760 but it does it in a very weak way 514 00:20:12,760 --> 00:20:15,300 because each connection terminates normally 515 00:20:15,360 --> 00:20:17,020 and then just ends it's time normally 516 00:20:17,020 --> 00:20:18,500 so it only ties it up for a couple seconds 517 00:20:19,460 --> 00:20:20,840 so that's what this one does 518 00:20:21,280 --> 00:20:23,400 let me get back to my virtual machine 519 00:20:24,860 --> 00:20:25,540 which is 520 00:20:26,660 --> 00:20:27,060 here 521 00:20:28,540 --> 00:20:28,940 alright 522 00:20:28,940 --> 00:20:30,840 and let's stop that one 523 00:20:32,120 --> 00:20:33,260 that should have stopped it 524 00:20:33,260 --> 00:20:34,900 and get rid of that one let's do the slow loris one 525 00:20:34,900 --> 00:20:36,960 which is much more powerful and 526 00:20:36,960 --> 00:20:39,300 OWASP wrote a windows version of it which is 527 00:20:39,300 --> 00:20:40,200 really nice 528 00:20:41,680 --> 00:20:43,400 and it's also small enough 529 00:20:43,400 --> 00:20:45,340 that I don't need some you have such a big window 530 00:20:45,360 --> 00:20:46,720 for it alright 531 00:20:47,120 --> 00:20:49,020 so now I have to put that address in here 532 00:20:49,940 --> 00:20:50,300 192 533 00:20:51,060 --> 00:20:52,060 give me a break 534 00:20:54,360 --> 00:20:55,320 I can get it 535 00:20:55,320 --> 00:20:57,160 out of here couldn't I yeah that would be 536 00:20:57,160 --> 00:20:58,940 fun copy it from there 537 00:20:58,940 --> 00:20:59,660 put it in here 538 00:21:01,820 --> 00:21:02,180 ok 539 00:21:03,020 --> 00:21:05,320 now this is going to run that attack let me just get this back to 540 00:21:05,320 --> 00:21:07,220 normal since I'm no longer attacking it it goes back 541 00:21:07,220 --> 00:21:09,260 to normal only one connection there's an extra one 542 00:21:09,260 --> 00:21:10,980 there I don't know what it is but I'm not worried about it 543 00:21:10,980 --> 00:21:12,640 I run that attack there we go 544 00:21:12,640 --> 00:21:15,340 now if I refresh this page you see it's filling up 545 00:21:15,360 --> 00:21:16,960 and it's filling up this time with ours 546 00:21:16,960 --> 00:21:18,760 those are pending requests 547 00:21:19,240 --> 00:21:21,200 each one of those will take 400 548 00:21:21,200 --> 00:21:22,980 seconds to time out by default 549 00:21:23,660 --> 00:21:25,260 so you don't need to send 550 00:21:25,260 --> 00:21:27,200 very many of them and it uses up all available 551 00:21:27,200 --> 00:21:29,120 incoming lines and this server is toast 552 00:21:30,120 --> 00:21:30,580 so 553 00:21:31,620 --> 00:21:33,180 that's the slow loris attack and the 554 00:21:33,180 --> 00:21:35,080 http post attack is similar so 555 00:21:35,080 --> 00:21:36,380 it's very powerful 556 00:21:37,260 --> 00:21:39,180 and very dangerous and now it's this easy 557 00:21:39,180 --> 00:21:41,680 and when you stop it will recover 558 00:21:41,680 --> 00:21:43,240 it recovers pretty fast 559 00:21:43,240 --> 00:21:45,320 in this case I don't know why it's not taking 400 seconds 560 00:21:45,360 --> 00:21:47,160 but maybe the default timing in apache 561 00:21:47,160 --> 00:21:49,380 on backtrack 5 is different than what I think 562 00:21:49,380 --> 00:21:51,080 it is I'm not quite sure what causes that 563 00:21:51,580 --> 00:21:53,260 but anyway now that we've shown you how to 564 00:21:53,260 --> 00:21:55,280 kill linux from windows let's go the other 565 00:21:55,280 --> 00:21:57,280 way with the more powerful 566 00:21:57,280 --> 00:21:59,340 attack let me clear all this stuff up 567 00:21:59,340 --> 00:22:01,300 and set up my poor windows machine to show you 568 00:22:01,300 --> 00:22:02,880 the evil that is about to happen to it 569 00:22:02,880 --> 00:22:05,200 so if I go here into ipconfig 570 00:22:07,680 --> 00:22:09,140 slash more or 571 00:22:09,140 --> 00:22:09,760 pipe more 572 00:22:11,480 --> 00:22:13,380 you'll see this machine is an ordinary windows 573 00:22:13,380 --> 00:22:15,120 machine I put on a static address of two 574 00:22:15,360 --> 00:22:16,840 colon colon two and ip version six 575 00:22:16,840 --> 00:22:18,600 it's got an ip version four address 576 00:22:18,600 --> 00:22:20,400 and really not much else going on 577 00:22:20,400 --> 00:22:21,860 now let me bring up 578 00:22:21,860 --> 00:22:25,040 a task manager window because 579 00:22:25,040 --> 00:22:27,120 that's the interesting way to see the damage 580 00:22:27,120 --> 00:22:28,280 that's going to happen to this machine 581 00:22:29,120 --> 00:22:30,700 task manager shows 582 00:22:31,300 --> 00:22:33,260 the cpu is now at zero percent 583 00:22:33,260 --> 00:22:35,580 so let me shove these things over near each other 584 00:22:35,580 --> 00:22:37,080 and shove it over the side there's my windows machine 585 00:22:37,080 --> 00:22:39,340 just sitting there now if I send 586 00:22:39,340 --> 00:22:41,060 it some ip version six 587 00:22:41,060 --> 00:22:41,780 packets here 588 00:22:43,300 --> 00:22:44,920 I'm going to do fake router six 589 00:22:45,360 --> 00:22:45,420 first 590 00:22:47,560 --> 00:22:48,780 fake router six 591 00:22:49,720 --> 00:22:50,940 this is the 592 00:22:50,940 --> 00:22:52,240 thc ipv6 593 00:22:52,240 --> 00:22:54,180 ipv6 attack suite from van 594 00:22:54,180 --> 00:22:56,160 hausen in europe some place 595 00:22:56,160 --> 00:22:57,940 and I do that on eth 596 00:22:57,940 --> 00:22:58,620 one 597 00:23:00,040 --> 00:23:01,580 and I'll send it 598 00:23:03,300 --> 00:23:03,880 defcon 599 00:23:03,880 --> 00:23:06,380 I can't get an n though 600 00:23:06,380 --> 00:23:08,120 but I can get that far of defcon 601 00:23:08,120 --> 00:23:09,720 I'm going to send that 602 00:23:09,720 --> 00:23:12,860 now it's sending some packets advertising that network 603 00:23:13,360 --> 00:23:14,760 don't need to wait any longer 604 00:23:15,360 --> 00:23:17,280 all the devices on that network have been commanded 605 00:23:17,280 --> 00:23:19,120 to join it and there it is 606 00:23:19,120 --> 00:23:20,680 it's made an address starting defco 607 00:23:20,680 --> 00:23:23,400 now this is what's supposed to happen when you add a router 608 00:23:23,400 --> 00:23:25,200 in normal course of events I add a router 609 00:23:25,200 --> 00:23:27,240 it advertises its prefix everybody joins 610 00:23:27,240 --> 00:23:28,600 and the game's over 611 00:23:29,080 --> 00:23:30,540 but if I send a flood 612 00:23:30,540 --> 00:23:31,900 of unwanted packets 613 00:23:33,600 --> 00:23:35,300 at the rate of hundreds per second 614 00:23:36,780 --> 00:23:37,220 eth 615 00:23:37,220 --> 00:23:38,960 one I'm going to stop it 616 00:23:38,960 --> 00:23:41,140 very soon there after each 617 00:23:41,140 --> 00:23:43,200 dot is a hundred I've sent about a thousand 618 00:23:44,060 --> 00:23:44,500 um 619 00:23:45,360 --> 00:23:46,580 this is now at a hundred percent 620 00:23:46,580 --> 00:23:49,140 and it's just going to sit there at a hundred percent 621 00:23:49,140 --> 00:23:50,880 for a long long time 622 00:23:51,520 --> 00:23:52,240 and um 623 00:23:52,940 --> 00:23:53,360 yeah 624 00:23:55,300 --> 00:23:55,720 and 625 00:23:57,480 --> 00:23:58,520 and what's worse 626 00:23:58,520 --> 00:24:01,320 is it's well I got this far I was trying to make 627 00:24:01,320 --> 00:24:03,280 a project for my students sitting outside a coffee house 628 00:24:03,280 --> 00:24:04,740 I said well this is fun but the problem is 629 00:24:04,740 --> 00:24:07,280 it's killed it so bad that you can't see the addresses 630 00:24:07,280 --> 00:24:09,220 if you run ipconfig now if I stop 631 00:24:09,220 --> 00:24:11,300 it really fast this will 632 00:24:11,300 --> 00:24:13,060 actually respond without waiting forever 633 00:24:13,060 --> 00:24:15,240 and you can see what it's done and that's why 634 00:24:15,360 --> 00:24:17,260 hopefully I stopped there you see it's joined 635 00:24:17,260 --> 00:24:18,460 all these networks 636 00:24:19,220 --> 00:24:20,680 page after page of networks 637 00:24:21,840 --> 00:24:23,240 that's what it's doing and it's 638 00:24:23,240 --> 00:24:25,280 still adding more to that list at the rate of about five 639 00:24:25,280 --> 00:24:27,240 per second so this is alright but 640 00:24:27,240 --> 00:24:29,120 when I first tried it I ran it for a while nothing 641 00:24:29,120 --> 00:24:31,160 seems to happen hey my windows machine doesn't respond 642 00:24:31,160 --> 00:24:33,060 at all what happened here so well this is no fun 643 00:24:33,060 --> 00:24:35,060 students don't learn anything they can't look at the damage 644 00:24:35,060 --> 00:24:37,200 so I thought well this is a bad project 645 00:24:37,200 --> 00:24:39,200 what do I do and then I thought hey wait a minute this would 646 00:24:39,200 --> 00:24:41,080 kill the domain controller and the email server 647 00:24:41,080 --> 00:24:43,300 and everything this is really bad this is 648 00:24:43,300 --> 00:24:45,300 so bad I can't tell my students at all I better tell my 649 00:24:45,360 --> 00:24:45,960 students at Microsoft quietly 650 00:24:47,580 --> 00:24:49,120 so I sent out a tweet 651 00:24:49,120 --> 00:24:51,120 well at first I just sent out a tweet saying 652 00:24:51,120 --> 00:24:52,620 hey this attack hurts Windows 7 653 00:24:52,620 --> 00:24:55,020 not surprising and then I said hey you know I need a 654 00:24:55,020 --> 00:24:56,640 security contact inside Windows so 655 00:24:56,640 --> 00:24:59,080 and other people on my Twitter feed immediately gave me 656 00:24:59,080 --> 00:25:01,180 good people inside Microsoft and 657 00:25:01,180 --> 00:25:03,260 they sent me to the right people and within two days 658 00:25:03,260 --> 00:25:05,240 I had an official answer from Microsoft saying 659 00:25:05,240 --> 00:25:07,280 yeah Van Hoozen told us about that a 660 00:25:07,280 --> 00:25:08,500 year ago and we don't care 661 00:25:09,620 --> 00:25:10,920 we're not going to do anything 662 00:25:10,920 --> 00:25:13,200 about it for current versions of Windows we do not care 663 00:25:13,200 --> 00:25:15,000 that Windows Vista, Windows 7, Windows Server 664 00:25:15,360 --> 00:25:19,540 Windows Server 2003, Windows Server 2008, XP are all going to die at the drop of a hat. 665 00:25:20,620 --> 00:25:23,860 We may put in Windows 8 or Windows 9 or something if we have nothing better to do. 666 00:25:24,280 --> 00:25:24,920 I said, fine. 667 00:25:25,440 --> 00:25:27,820 If you're going to be that way, I'll tell the whole world about it. 668 00:25:28,260 --> 00:25:31,660 And I gave it to my students for homework and I said, use an isolated network. 669 00:25:32,100 --> 00:25:33,720 Don't kill every machine at the college. 670 00:25:33,840 --> 00:25:37,480 Because you could kill every machine at the college, including our servers and everything 671 00:25:37,480 --> 00:25:37,800 else. 672 00:25:37,980 --> 00:25:40,960 And my students did not kill the whole college with it, which is nice of them. 673 00:25:42,720 --> 00:25:43,880 Therefore I'm still working there. 674 00:25:43,880 --> 00:25:45,120 I'm not out on the street with a tin cup. 675 00:25:45,560 --> 00:25:49,020 And so anyway, that's the power of that attack. 676 00:25:49,620 --> 00:25:52,100 And so let me talk a little bit about defenses. 677 00:25:52,320 --> 00:25:56,500 But I think before I do that, I'm going to hand it over to Matthew here. 678 00:25:56,820 --> 00:25:59,280 The only thing I want you to do is if you would like to try this. 679 00:25:59,360 --> 00:26:01,600 Now, Windows machines are vulnerable to this. 680 00:26:01,860 --> 00:26:05,440 And one version of BSD Unix is vulnerable to this attack. 681 00:26:07,140 --> 00:26:08,360 Mac OS is not. 682 00:26:09,080 --> 00:26:11,780 If you look at my Mac here, ifconfig. 683 00:26:13,040 --> 00:26:17,580 It will show, yeah, you see them here. 684 00:26:18,420 --> 00:26:19,840 Let's try pipe war. 685 00:26:21,180 --> 00:26:21,720 There we are. 686 00:26:21,860 --> 00:26:23,480 See here, the Mac got the attack too. 687 00:26:23,640 --> 00:26:24,460 The Mac is the host. 688 00:26:24,680 --> 00:26:28,820 And as you can see, it joined some of these, those are 2001s, so let's see. 689 00:26:31,060 --> 00:26:32,920 It joins, I think those are useless networks. 690 00:26:33,060 --> 00:26:35,520 It joins some of those useless networks, but it didn't join them all. 691 00:26:36,220 --> 00:26:37,720 Well, I think those might be from DEF CON. 692 00:26:37,840 --> 00:26:41,120 But anyway, what you see, if you expose the Mac to it, it joins about the first 10 and 693 00:26:41,120 --> 00:26:41,460 no more. 694 00:26:41,780 --> 00:26:45,420 It has the sense to ignore all router advertisements after the first 10 for some period of time. 695 00:26:45,580 --> 00:26:46,740 Which is a pretty good defense. 696 00:26:47,240 --> 00:26:50,560 And that's what I think Microsoft should do in Windows, but they are not interested in 697 00:26:50,560 --> 00:26:50,880 my opinion. 698 00:26:52,280 --> 00:26:53,180 Cisco patched it. 699 00:26:53,300 --> 00:26:54,020 Juniper didn't. 700 00:26:54,040 --> 00:26:59,280 But anyway, if you have any devices to test, Ryan's going to set up a network there and 701 00:26:59,280 --> 00:27:00,420 kill anybody that wants to join it. 702 00:27:00,480 --> 00:27:03,060 And if you want to participate in this, here's how you do it. 703 00:27:03,280 --> 00:27:03,680 There. 704 00:27:03,860 --> 00:27:05,980 You join a network called Do Not Use. 705 00:27:07,740 --> 00:27:11,440 And it's WPA2 encrypted and the password is Do Not Use. 706 00:27:11,780 --> 00:27:15,660 So if you join that network, he'll see how many people joined and then run this attack 707 00:27:15,660 --> 00:27:16,200 and kill you. 708 00:27:16,360 --> 00:27:20,560 And if it kills you, it's interesting because other devices are vulnerable besides Windows 709 00:27:20,560 --> 00:27:21,060 and BSD. 710 00:27:21,860 --> 00:27:24,860 And some people said they were going to bring interesting devices here. 711 00:27:25,080 --> 00:27:29,300 Any device that networks may be vulnerable to this, and I would like to know, and I'd 712 00:27:29,300 --> 00:27:33,820 like you to go to the question room afterwards and tell me so we can inform the vendor and 713 00:27:33,820 --> 00:27:34,640 get stuff patched. 714 00:27:34,660 --> 00:27:37,080 Because I think a bunch of people are vulnerable to this and they don't know. 715 00:27:37,420 --> 00:27:39,080 But anyway, let me hand it over to you. 716 00:27:39,120 --> 00:27:40,860 You can tell them your story about Losec. 717 00:27:41,000 --> 00:27:41,200 Okay. 718 00:27:41,800 --> 00:27:44,880 And then I'll come back and talk about defenses if we have time left. 719 00:27:46,620 --> 00:27:47,900 Your stuff should be on the desktop. 720 00:27:48,080 --> 00:27:48,940 Let me dig down to it. 721 00:27:49,220 --> 00:27:49,640 Hey, Sam. 722 00:27:49,880 --> 00:27:50,140 Yeah. 723 00:27:50,340 --> 00:27:52,020 Is it Do Not Use or Do Not Connect? 724 00:27:52,860 --> 00:27:54,840 Is it Do Not Use or Do Not Connect, Ryan? 725 00:27:55,920 --> 00:27:56,600 Do Not Connect. 726 00:27:56,980 --> 00:27:57,000 Do Not Connect. 727 00:27:57,000 --> 00:27:57,440 Oh, Do Not Connect. 728 00:27:57,620 --> 00:27:57,820 Okay. 729 00:27:58,080 --> 00:27:58,580 Thank you. 730 00:27:58,920 --> 00:28:00,520 And the key is Do Not Connect. 731 00:28:00,900 --> 00:28:01,260 Okay. 732 00:28:01,520 --> 00:28:04,280 So its name is Do Not Connect and the key is Do Not Connect. 733 00:28:04,560 --> 00:28:04,920 Okay. 734 00:28:08,680 --> 00:28:09,440 Thanks, Sam. 735 00:28:09,440 --> 00:28:16,300 Sam is the only person that I know who can make running a DDoS attack seem charming. 736 00:28:22,580 --> 00:28:26,560 So my name is Matthew Prince and I know Sam. 737 00:28:26,660 --> 00:28:31,720 We both live in San Francisco and we both got sort of dragged into the little security 738 00:28:35,860 --> 00:28:37,220 kerfuffle reluctantly. 739 00:28:37,220 --> 00:28:41,400 So I'm going to tell you the story of how I got dragged into it and talk to you about 740 00:28:41,400 --> 00:28:49,760 some of the DDoS attacks that we saw during the 23 days that they were active and then 741 00:28:49,760 --> 00:28:50,840 what we did to stop them. 742 00:28:51,580 --> 00:29:04,900 So on June 2nd at about 4.54 p.m. Greenwich Mean Time, the Lulz Security Twitter account 743 00:29:04,900 --> 00:29:07,200 announced that they had 4.54 p.m. 744 00:29:07,200 --> 00:29:09,300 Finally gotten around to actually making a web page. 745 00:29:09,920 --> 00:29:14,480 What was pretty amazing was that within about 15 minutes that web page was knocked offline 746 00:29:14,480 --> 00:29:17,720 by a fairly significant denial of service attack. 747 00:29:17,940 --> 00:29:23,020 I don't know the details of this particular attack because we hadn't been involved yet. 748 00:29:23,440 --> 00:29:28,500 About an hour after the web page was first announced, Lulz announced that they had actually 749 00:29:28,500 --> 00:29:35,780 solved this problem on a Twitter account and the only thing that had changed as far as 750 00:29:35,780 --> 00:29:36,480 I've been told. 751 00:29:37,200 --> 00:29:40,640 Is that nine minutes earlier, they signed up for Cloudflare. 752 00:29:41,500 --> 00:29:46,640 Now Cloudflare doesn't, we're a service, we make websites faster and we protect them from 753 00:29:46,640 --> 00:29:50,000 some attacks but we don't really think of ourselves as an anti-DDoS service. 754 00:29:50,280 --> 00:29:55,520 So it was somewhat of a surprise for the Lulz security people to do that. 755 00:29:55,600 --> 00:30:01,380 It was even more of a surprise when an hour later, Lulz security sent out a message to 756 00:30:01,380 --> 00:30:05,040 me saying, hey, we love your service so much. 757 00:30:05,140 --> 00:30:06,520 Can we exchange rum? 758 00:30:06,520 --> 00:30:09,240 Can we exchange rum for a free pro account? 759 00:30:10,300 --> 00:30:17,160 I had no idea who Lulz security was at this point and so I tweeted back a tweet which 760 00:30:17,160 --> 00:30:24,040 my legal counsel has since told me to remove which said, it depends on how many cases and 761 00:30:24,040 --> 00:30:25,060 how good the rum is. 762 00:30:28,420 --> 00:30:35,300 They never sent the rum and we never gave them a pro account but Cloudflare is free 763 00:30:35,300 --> 00:30:42,260 and thousands of sites sign up for it every single day and we typically don't have problems 764 00:30:42,260 --> 00:30:42,800 with them. 765 00:30:43,400 --> 00:30:46,240 These guys we had some more issues with. 766 00:30:47,140 --> 00:30:52,560 And so over the course of the next 23 days, they wreaked mayhem in lots of different ways 767 00:30:53,040 --> 00:30:58,840 and finally on June 25th, they called it quits. 768 00:30:58,940 --> 00:31:02,520 And what was interesting is that the way Cloudflare works, we're a reverse proxy. 769 00:31:03,020 --> 00:31:05,140 So all of the traffic which goes. 770 00:31:05,140 --> 00:31:11,600 To Lulz security passes through our network first, which has two significant effects. 771 00:31:11,820 --> 00:31:16,580 The first is anyone who attacks Lulz security was attacking us. 772 00:31:17,240 --> 00:31:18,920 So that was amusing. 773 00:31:20,860 --> 00:31:25,420 And then secondly, it meant that Lulz security was actually able to hide where their origin 774 00:31:25,420 --> 00:31:29,300 was, where they were actually hosting from. 775 00:31:29,560 --> 00:31:32,500 And that's a side effect of how our system is designed. 776 00:31:32,860 --> 00:31:34,680 But it was one that they used. 777 00:31:34,680 --> 00:31:35,880 To great effect. 778 00:31:36,880 --> 00:31:39,160 Sam actually contacted me a little while ago. 779 00:31:39,200 --> 00:31:43,360 He said he was going to do a talk on DDoS and would I, and we sort of talked about the 780 00:31:43,360 --> 00:31:47,700 experience and he said, would I be willing to share some information about it? 781 00:31:47,940 --> 00:31:52,940 And again, we have legal counsel and we're a real company and we have a privacy policy 782 00:31:52,940 --> 00:31:59,520 and even if you're an internationally wanted cyber criminal, we try to respect the privacy 783 00:31:59,520 --> 00:31:59,960 policy. 784 00:32:00,840 --> 00:32:03,040 And so I wrote the following email. 785 00:32:03,120 --> 00:32:04,340 There's a little bit more to it. 786 00:32:07,300 --> 00:32:13,820 Before they did that, I was going to tell them, thank you for this import. 787 00:32:16,060 --> 00:32:17,720 If you'reOFF- Sole 788 00:32:20,340 --> 00:32:21,260 Am. 789 00:32:30,120 --> 00:32:30,500 OK. 790 00:32:32,780 --> 00:32:36,820 So I can talk about some things. I can't talk about anything, everything. 791 00:32:37,260 --> 00:32:42,500 I can talk about things writ large. I can talk about how they affected us. 792 00:32:43,000 --> 00:32:47,860 I don't want to get the host necessarily that they were using in trouble. 793 00:32:48,020 --> 00:32:50,660 So I'm not going to be revealing their exact IP addresses. 794 00:32:50,920 --> 00:32:56,380 But let me tell you a little bit more about what happened over those 23 days. 795 00:32:56,380 --> 00:32:59,700 So this is the actual traffic to Lulz security's website. 796 00:33:00,960 --> 00:33:07,340 Over those 23 days, they received a little over 18 million page views as people went 797 00:33:07,340 --> 00:33:10,760 to that site. You can see it peaked early and then it's 798 00:33:10,760 --> 00:33:15,280 trailed off since then. The website is still actually on Cloudflare, 799 00:33:15,360 --> 00:33:17,460 although the website behind it has been taken down. 800 00:33:17,580 --> 00:33:20,900 So if you go to it today, you'll see an Apache configuration page. 801 00:33:21,680 --> 00:33:24,020 I don't know what they have planned next. 802 00:33:25,780 --> 00:33:29,420 What's interesting is that we can actually look at what is just the attack traffic and 803 00:33:29,420 --> 00:33:33,900 break that down. And, you know, I'd say that this attack traffic 804 00:33:33,900 --> 00:33:39,180 up until the spike kind of in the middle there was almost just background noise. 805 00:33:39,360 --> 00:33:44,540 It was not something that we were particularly concerned with. 806 00:33:44,740 --> 00:33:49,960 And, in fact, what I say on a slide in a couple of seconds is that the three weeks 807 00:33:49,960 --> 00:33:53,760 that Lulz security were on Cloudflare was actually three of the quietest weeks. 808 00:33:54,020 --> 00:33:55,020 I mean, that's a lot of time. I mean, that's a lot of time for denial-of-service 809 00:33:55,020 --> 00:34:00,040 attacks that we had seen, which is strange, because a lot of people were saying that they 810 00:34:00,040 --> 00:34:04,200 were attacking them. There was this one spike in the center, but 811 00:34:04,200 --> 00:34:09,660 that seems to have been caused by a couple of very distinct events that they engaged 812 00:34:09,660 --> 00:34:12,120 in. And I'll talk about what that is, and then 813 00:34:12,120 --> 00:34:16,580 I'll talk about exactly what the sort of attacks that we saw for Lulz, against Lulz, 814 00:34:16,680 --> 00:34:22,220 and what we did to defend ourselves and then the ones that were sort of annoying to us. 815 00:34:23,180 --> 00:34:27,660 So, one thing that was particularly interesting, this is on June 25th, this is the jester. 816 00:34:27,860 --> 00:34:33,400 I don't know who the jester is. Sam has given me some background. He publishes 817 00:34:33,400 --> 00:34:40,520 a web page. He spent a huge amount of time trying to figure out what the backing, where 818 00:34:40,520 --> 00:34:45,680 the Lulz security site was hacked, and he proudly pronounced what has become gospel, 819 00:34:45,880 --> 00:34:51,790 which was that www.lulzsecurity.com was at 204.197.3. 820 00:34:52,220 --> 00:35:04,360 And lulzsecurity.com was at 111.90.139.55. I know where the site was on June 25th, and 821 00:35:04,360 --> 00:35:11,240 I will tell you it wasn't there at all. In fact, they used seven different hosts over 822 00:35:11,240 --> 00:35:15,980 the course of 23 days. The original host was in Montreal, Canada. 823 00:35:16,260 --> 00:35:22,040 They were briefly in Malaysia, but it was in early June. It was that's the 111 address 824 00:35:22,220 --> 00:35:24,260 that's accurate. I don't know where the other address comes from. 825 00:35:25,600 --> 00:35:30,760 Most of the hosts that they used were actually U.S.-based hosts, including one large host 826 00:35:30,760 --> 00:35:37,300 that specifically specializes in DDoS mitigation. Ultimately, they're using German hosting, 827 00:35:37,440 --> 00:35:42,940 and that's where they still are today. One thing that was interesting was that a lot 828 00:35:42,940 --> 00:35:46,940 of people claimed that they had found some way to knock Lulz security offline, and they 829 00:35:46,940 --> 00:35:51,320 posted pictures online. This is actually a service that we offer at Cloudflare, which 830 00:36:02,140 --> 00:36:04,600 is a local one, and it is usually free of charge. 831 00:36:05,120 --> 00:36:09,700 What's interesting is that it's not like they sold the data, but they actually did 832 00:36:09,700 --> 00:36:12,400 it online. So they actually came in with the information that they needed. 833 00:36:12,400 --> 00:36:12,920 It's never been considered as a public service. The idea of what they did was they actually 834 00:36:12,920 --> 00:36:16,000 sent traffic to the host and sent it to the server and sent it back. 835 00:36:16,000 --> 00:36:17,760 They would send a message to the host saying, I'm happy to see you, and they gave you 836 00:36:17,760 --> 00:36:21,800 their contact information. And they actually get a text message that 837 00:36:21,800 --> 00:36:27,800 2.2.2.2, which is an invalid. There's no host. There's no web server running there. I think 838 00:36:27,800 --> 00:36:31,620 they just picked a random IP address. And what that did was it caused our system to 839 00:36:31,620 --> 00:36:37,340 kick into the always online mode. That actually caused that cache version to exist for a limited 840 00:36:37,340 --> 00:36:41,200 period of time until that cache expired. At that point, they pointed it back to a host 841 00:36:41,200 --> 00:36:45,680 for a short amount of time, then pointed it back to a fake address to get it up. I am 842 00:36:45,680 --> 00:36:51,120 not aware of any person or any time when the Lowell security site was actually knocked 843 00:36:51,120 --> 00:36:56,900 offline, in spite of the fact that a lot of people were trying to do that. On the other 844 00:36:56,900 --> 00:37:02,540 hand, they knocked a lot of people offline, which was interesting to watch. 845 00:37:04,180 --> 00:37:08,280 A lot of the attacks that we saw, you know, again, as I said, we were really surprised. 846 00:37:08,560 --> 00:37:13,460 We had everyone on high alert. We were watching for big attacks to come in. And the attacks 847 00:37:13,460 --> 00:37:20,660 that we saw were generally actually significantly less than we would have expected. Pissing 848 00:37:20,660 --> 00:37:21,100 off the hash is not a bad thing. It's not a bad thing. It's not a bad thing. It's not 849 00:37:21,100 --> 00:37:25,640 a bad thing. But the hackers that populate Twitter is not nearly as dangerous as pissing 850 00:37:25,640 --> 00:37:33,020 off the Chinese cyber mafia or the eastern European cyber mafia or people that run really 851 00:37:33,020 --> 00:37:39,420 big extortion attacks. They run big DDoSs. These guys, they run, you know, they're clever. 852 00:37:39,560 --> 00:37:46,160 But it's not the same league. We saw some layer 7 attacks that were relatively 853 00:37:46,160 --> 00:37:51,080 harmless, while slow Loris and some of those tools are excellent. 854 00:37:51,080 --> 00:37:54,900 So, you know, it's interesting to attack an individual web server. CloudFlare was specifically 855 00:37:54,900 --> 00:37:59,680 designed not only to stop layer 7 attacks dead, but we actually then record all the 856 00:37:59,680 --> 00:38:03,980 IP addresses that are committing those attacks, which just makes it, I mean, it's actually, 857 00:38:04,020 --> 00:38:06,760 we actually are happy when people attack us over layer 7. 858 00:38:07,460 --> 00:38:12,800 The more annoying attacks for us are the layer 3, layer 4 DDoS attacks that we see. But, 859 00:38:12,920 --> 00:38:17,040 you know, we run this, we run a network which is an any-casted network. And what that means 860 00:38:17,040 --> 00:38:21,060 is that we have a bunch of machines, hundreds and hundreds and hundreds of machines that 861 00:38:21,080 --> 00:38:25,800 run in 14 different data centers all around the world, listening on the same IP address. 862 00:38:26,100 --> 00:38:31,160 So that tends to take distributed denial of service attacks or high volume attacks and 863 00:38:31,160 --> 00:38:35,820 spread them out over a very large surface area, which makes it much more difficult to 864 00:38:35,820 --> 00:38:40,460 launch something like that against us. What is more interesting, though, what the 865 00:38:40,460 --> 00:38:44,620 annoying attacks that hurt us were a couple of different things. 866 00:38:44,880 --> 00:38:49,920 The first was a, someone had a really big network and a lot of traffic. And they pointed 867 00:38:51,080 --> 00:38:56,680 at us, and it happened that they were geographically proximate, or sort of networked geographically 868 00:38:56,680 --> 00:39:00,700 proximate to our San Jose data center. And so they were doing enough bandwidth to our 869 00:39:00,700 --> 00:39:04,900 San Jose data center that what we did was we took all of our clients other than Lowell 870 00:39:04,900 --> 00:39:09,380 Security and we moved them to other data centers. No one ever noticed. But the San Jose data 871 00:39:09,380 --> 00:39:15,700 center for that period of time was only serving Lowell Security. Kept them online, though. 872 00:39:17,520 --> 00:39:21,060 Another attack which was really interesting, it's actually not a particular attack, but 873 00:39:21,080 --> 00:39:26,120 a very big threat to most people, was a threat to us, was using Google as a reflector. So 874 00:39:26,120 --> 00:39:30,080 we have special rules that are in place for Google's IP addresses in order to make sure 875 00:39:30,080 --> 00:39:34,640 that we're never blocking legitimate crawler traffic from coming to us. 876 00:39:34,840 --> 00:39:39,280 And so someone who was actually very clever found out that if they sent a lot of SIN requests 877 00:39:39,280 --> 00:39:44,040 with fake headers pointing back at our IP addresses to Google, Google would act back 878 00:39:44,040 --> 00:39:50,980 to those. And that actually created some issues for us internally. It was a pretty easy solution. 879 00:39:51,080 --> 00:39:55,620 We blocked the acts that didn't have a SIN attached to them, and we called our friends 880 00:39:55,620 --> 00:39:59,940 at Google and said, you'll never get origin traffic coming from this, so just firewall 881 00:39:59,940 --> 00:40:04,340 it off. And that was solved within a few minutes. But that was actually a clever attack 882 00:40:04,340 --> 00:40:09,280 that looked at the nature of how our system worked and challenged us based on that. 883 00:40:09,700 --> 00:40:16,160 The last one, which was the most annoying, someone did a thorough scan of our IP address 884 00:40:16,160 --> 00:40:21,020 ranges and found some exposed router controls. 885 00:40:21,020 --> 00:40:26,840 Some interfaces that were out there. And figured out the routers that we were using 886 00:40:26,840 --> 00:40:31,160 or just dictionary attacked against the routers, we're not sure. And they were able to launch 887 00:40:31,160 --> 00:40:35,220 attacks that actually shut down some of our routers. And they were able to bypass any 888 00:40:35,220 --> 00:40:38,940 cast because those were specific to that. The solution, again, was fairly straightforward. 889 00:40:39,360 --> 00:40:45,420 We just blocked those IP addresses off to the outside network. But it was the attack 890 00:40:45,420 --> 00:40:49,880 that actually caused us the biggest problem and knocked a couple of our routers offline 891 00:40:49,880 --> 00:40:51,000 for a while. 892 00:40:51,020 --> 00:40:55,340 A couple of minutes. But largely, again, when I compare the big attacks 893 00:40:55,340 --> 00:41:00,800 that we see when a client of ours gets a letter in the mail that says, hi, I'm the helpful 894 00:41:00,800 --> 00:41:06,100 Chinese government agency, by the way, we've detected on your network that someone is going 895 00:41:06,100 --> 00:41:11,880 to attack you. If you send us $10,000, we can probably do something about it. Obviously 896 00:41:11,880 --> 00:41:17,960 not a real Chinese agency. And they really can do something about it because they're 897 00:41:17,960 --> 00:41:18,500 launching it. 898 00:41:19,760 --> 00:41:25,760 Those are big attacks. These were relatively small by comparison. 899 00:41:26,720 --> 00:41:28,140 Sam, I think I'm losing power. 900 00:41:30,060 --> 00:41:40,140 So, yeah. You can just make sure it's plugged in. So, a couple of things. I think I got 901 00:41:40,140 --> 00:41:44,040 it there. So, sorry about that. 902 00:41:49,500 --> 00:41:53,680 So, a couple of things that were interesting. The first was, you know, again, when the 903 00:41:53,680 --> 00:41:58,140 jester and all those guys were attacking, that's that sort of background noise pattern. 904 00:41:58,380 --> 00:42:04,060 What really started to, it seems, trigger pissing people off was when the little security 905 00:42:04,060 --> 00:42:13,400 guys went after Minecraft. And that was the real spike in traffic. And then the drop back 906 00:42:13,400 --> 00:42:18,180 off in traffic was caused when they stopped attacking Minecraft. 907 00:42:18,180 --> 00:42:23,100 In fact, internally in our office, the biggest debates were in terms of whether we should 908 00:42:23,100 --> 00:42:29,140 drop them off our network or not came from the Minecraft aficionados who said, you're 909 00:42:29,140 --> 00:42:31,140 now causing me pain and that's not cool. 910 00:42:32,960 --> 00:42:41,400 So I guess the lesson is that if you're going to, you know, launch DDoSes against people 911 00:42:41,400 --> 00:42:43,480 indiscriminately, don't pick on Minecraft. 912 00:42:45,480 --> 00:42:48,160 So, you know, we've watched... 913 00:42:48,160 --> 00:42:53,100 I have very little information on who actually the little security folks are. 914 00:42:53,260 --> 00:43:02,120 I will say that one of the user names that signed up for the CloudFlare account is very, 915 00:43:02,220 --> 00:43:04,340 very similar to one of the user names that's been arrested. 916 00:43:04,560 --> 00:43:08,400 I don't know if that means that it's just a coincidence or that they've actually been 917 00:43:08,400 --> 00:43:10,440 taken offline. We haven't seen much activity. 918 00:43:10,680 --> 00:43:13,340 They haven't moved their host around. And again, their website is down now. 919 00:43:13,860 --> 00:43:18,080 But it was an interesting 23 days watching kind of the attacks and as all the 920 00:43:18,160 --> 00:43:22,960 world tried to take them down, seeing how we could help keep it up for better or worse. 921 00:43:23,340 --> 00:43:28,140 So if this is of any interest to you, I'm East Dakota on Twitter and we're CloudFlare. 922 00:43:28,240 --> 00:43:29,220 So thanks for having me. 923 00:43:35,620 --> 00:43:36,300 All right. 924 00:43:37,420 --> 00:43:38,200 Thank you, Matthew. 925 00:43:38,300 --> 00:43:43,680 I really appreciate you coming to do that because I am trying to improve my game. 926 00:43:44,520 --> 00:43:47,480 You know, I've been a breaker for quite a while. 927 00:43:47,480 --> 00:43:48,860 Let me see if I can find my presentation. 928 00:43:49,360 --> 00:43:49,940 There we are. 929 00:43:50,220 --> 00:43:56,220 You know, I've been giving a lot of talks and, like, attack is easier than defense. 930 00:43:56,400 --> 00:43:57,340 So my talk is always the same. 931 00:43:57,400 --> 00:43:58,100 I have this new attack. 932 00:43:58,220 --> 00:43:59,180 It blows everything away. 933 00:43:59,320 --> 00:43:59,800 Ha, ha, ha. 934 00:44:00,040 --> 00:44:01,380 And if you don't like it, tough. 935 00:44:01,680 --> 00:44:03,680 You have to, like, wait for Microsoft to patch it or something. 936 00:44:03,840 --> 00:44:07,540 Basically you're hosed, which is a common message you'll hear at DEF CON and other conferences. 937 00:44:07,660 --> 00:44:08,520 But I'm trying to move up. 938 00:44:08,640 --> 00:44:11,780 So I told you this stuff. 939 00:44:11,980 --> 00:44:13,860 By the way, there are some defenses. 940 00:44:14,160 --> 00:44:16,220 See, I'm trying to move into defense, which is tougher. 941 00:44:16,220 --> 00:44:17,920 Most of the time defense is difficult. 942 00:44:18,320 --> 00:44:21,820 Now if you want to block those router advertisement floods, you can turn off IP version 6. 943 00:44:21,940 --> 00:44:22,700 That will protect you. 944 00:44:22,740 --> 00:44:26,520 But IP version 6 is necessary and it does things you probably want, like home groups 945 00:44:26,520 --> 00:44:27,720 and direct access. 946 00:44:28,260 --> 00:44:32,480 You can turn off router discovery with a net SH command at the command line. 947 00:44:32,620 --> 00:44:36,720 And that will mean that your machine does not listen, does not do anything when it gets 948 00:44:36,720 --> 00:44:37,080 RAs. 949 00:44:37,160 --> 00:44:38,400 And it will protect it from this attack. 950 00:44:38,640 --> 00:44:41,680 It will mean you have to put a static IP version 6 address on it, which is probably 951 00:44:41,680 --> 00:44:42,900 the right thing to do on a server. 952 00:44:43,940 --> 00:44:45,620 You can block it with the Windows firewall. 953 00:44:46,280 --> 00:44:49,100 And you only accept router advertisements from the authorized router. 954 00:44:49,240 --> 00:44:54,180 And that will protect your clients, although it's pretty easy to defeat that by just making 955 00:44:54,180 --> 00:44:56,840 rogue router advertisements that appear to come from that source address. 956 00:44:57,040 --> 00:44:58,760 But it will stop the attacks to some extent. 957 00:44:59,140 --> 00:45:01,220 And Cisco makes a switch with RA guard. 958 00:45:02,360 --> 00:45:06,620 Cisco patched their own vulnerabilities for this as soon as they were told by Mark Hauser. 959 00:45:06,680 --> 00:45:08,840 And they made a proprietary protection for your network. 960 00:45:09,000 --> 00:45:11,440 So if you buy a Cisco switch with RA guard, okay, good. 961 00:45:11,620 --> 00:45:12,460 Right on time here. 962 00:45:12,840 --> 00:45:14,720 Anyway, you can evade that pretty easily. 963 00:45:16,340 --> 00:45:20,520 By putting in fragmented router advertisements will go right past Cisco's RA guard. 964 00:45:20,680 --> 00:45:22,940 So for every defense, there is another attack. 965 00:45:23,400 --> 00:45:28,480 But anyway, as far as defending, my conclusion has been for a long time, the only reason 966 00:45:28,480 --> 00:45:30,760 your website is up is because nobody hates you. 967 00:45:30,820 --> 00:45:32,800 If even one person hated you, you'd be down. 968 00:45:32,980 --> 00:45:34,000 That's what the jester proves. 969 00:45:34,180 --> 00:45:36,000 That's why I think the jester is so important for network security. 970 00:45:36,220 --> 00:45:41,060 He proves that just one angry man can take down a lot of websites and you're helpless 971 00:45:41,060 --> 00:45:41,620 basically. 972 00:45:41,860 --> 00:45:46,020 Now, it's not entirely true that you're helpless, but the defense seems to be a little difficult 973 00:45:46,020 --> 00:45:46,440 to put in. 974 00:45:46,480 --> 00:45:47,880 I tried playing with some defenses. 975 00:45:48,100 --> 00:45:49,140 You can use mod security. 976 00:45:49,580 --> 00:45:55,360 Now, in a laboratory condition, mod security's latest version has an anti-layer 7-DOS feature, 977 00:45:55,660 --> 00:45:58,760 but all it does is stop too many connections from the same IP address. 978 00:45:59,020 --> 00:46:04,020 So it will save you from a test on your network with that old WASP tool, but it won't stop 979 00:46:04,020 --> 00:46:08,020 the jester because he goes through Tor or some similar network and all the attack packets 980 00:46:08,020 --> 00:46:08,980 come from different networks. 981 00:46:09,980 --> 00:46:13,860 You can pay a service like Akamai to protect you, and they'll use a few tricks to protect 982 00:46:13,860 --> 00:46:14,120 you. 983 00:46:16,020 --> 00:46:20,060 The load balancers will protect your server by only letting complete requests make it 984 00:46:20,060 --> 00:46:20,520 to the server. 985 00:46:20,960 --> 00:46:24,700 But the load balancer itself will go down if you go in enough traffic. 986 00:46:24,880 --> 00:46:26,680 It's a defense, but it's not a perfect defense. 987 00:46:26,880 --> 00:46:30,200 It took something like four times as many packets to free the load balancer in my test, 988 00:46:30,320 --> 00:46:30,860 so it's something. 989 00:46:31,800 --> 00:46:33,880 You can also do things like counterattack. 990 00:46:34,100 --> 00:46:34,380 H.D. 991 00:46:34,380 --> 00:46:35,260 Moore had a good one here. 992 00:46:35,360 --> 00:46:40,240 Somebody tried attacking him with a botnet, so he pointed his DNS address back to their 993 00:46:40,240 --> 00:46:42,260 command and control server, so they blew themselves away. 994 00:46:43,340 --> 00:46:43,740 . 995 00:46:44,420 --> 00:46:48,220 And that's effective, of course, but it does mean your site is down while it's happening, 996 00:46:48,320 --> 00:46:49,880 and it's questionably legal. 997 00:46:50,040 --> 00:46:51,520 I mean, now he's taken the flame. 998 00:46:51,600 --> 00:46:55,540 It's like if I had a shield and I've collected bullets back to shoot back at the bad guy 999 00:46:55,540 --> 00:46:56,060 shooting at me. 1000 00:46:56,380 --> 00:46:57,040 I don't know. 1001 00:46:57,180 --> 00:47:01,080 Anyway, there may be some legal issues there, but it did work, and it'll work against flood 1002 00:47:01,080 --> 00:47:03,620 attacks like anonymous with the low-orbit ion cannon. 1003 00:47:03,900 --> 00:47:09,940 But I was very pleased to observe CloudFlare here because I've got the same talk I give 1004 00:47:09,940 --> 00:47:10,100 everywhere. 1005 00:47:10,220 --> 00:47:10,900 There's this horrible attack. 1006 00:47:11,080 --> 00:47:11,980 There's not much you can do. 1007 00:47:11,980 --> 00:47:16,260 And now I'm contacting people out of the blue that have vulnerabilities exposed on Pastebin 1008 00:47:16,720 --> 00:47:19,880 to try to get them to fix their stuff, and they're typically small businesses that don't 1009 00:47:19,880 --> 00:47:24,640 know much, that don't have any security team, and I can't tell them to purchase and implement 1010 00:47:24,640 --> 00:47:28,580 a extra server to protect your server, but what I could tell them to do is just use 1011 00:47:28,580 --> 00:47:30,640 CloudFlare, which is a free service. 1012 00:47:31,600 --> 00:47:35,260 And that's not too hard to do, and it really will protect you, and I was very pleased to 1013 00:47:35,260 --> 00:47:36,600 observe that it really stopped the jester. 1014 00:47:36,700 --> 00:47:39,620 The jester really wants to take him down, and he really can't. 1015 00:47:39,980 --> 00:47:41,440 It's the first thing I've seen that would do that. 1016 00:47:41,440 --> 00:47:45,520 That you could easily deploy without having an expensive network security team. 1017 00:47:45,680 --> 00:47:48,600 So I'm going to be playing with it with my students next semester. 1018 00:47:48,780 --> 00:47:52,380 We're going to be setting up all these defenses and trying to blast through them and try to 1019 00:47:52,380 --> 00:47:53,020 make them good and strong. 1020 00:47:53,180 --> 00:47:54,500 Defense is much harder than attack. 1021 00:47:55,640 --> 00:47:57,140 Anyway, I guess that's it. 1022 00:47:57,320 --> 00:47:59,920 Did anybody actually get murdered here, Ryan? 1023 00:48:02,580 --> 00:48:03,040 What's that? 1024 00:48:05,080 --> 00:48:05,500 Yeah. 1025 00:48:07,080 --> 00:48:09,700 Did anybody's machine actually go down from attacking his network? 1026 00:48:10,660 --> 00:48:11,080 Anybody? 1027 00:48:11,440 --> 00:48:11,980 Anybody want to talk about it? 1028 00:48:12,060 --> 00:48:12,800 No volunteers. 1029 00:48:13,040 --> 00:48:15,860 Well, you know, when you volunteer to ruin machines up here, you don't get too many volunteers. 1030 00:48:16,080 --> 00:48:16,260 Okay. 1031 00:48:16,320 --> 00:48:16,740 Fair enough. 1032 00:48:17,300 --> 00:48:18,200 So I guess that's it. 1033 00:48:18,660 --> 00:48:19,860 I'll see you next year. 1034 00:48:23,020 --> 00:48:24,360 Oh, there's a Q&A room.