1 00:00:00,000 --> 00:00:05,480 So I'm Sam Bowne from City College, San Francisco, and R-Snake has agreed to join me, which is wonderful, 2 00:00:06,000 --> 00:00:10,260 because I had a talk that was only supposed to be 20 minutes, and they gave me an hour, 3 00:00:11,140 --> 00:00:15,080 and coincidentally, three weeks ago, he wrote a wonderful new tool called Slow Lors. 4 00:00:15,220 --> 00:00:18,740 At least that's when I became aware of it, and I said, we've got to just add you to this talk, and he agreed. 5 00:00:19,400 --> 00:00:24,420 So there's two things you're going to get today, and the stuff on the CD is completely out of date. 6 00:00:25,280 --> 00:00:28,920 Anyway, the two things I want to show you, and I'm planning to be really quick about this, 7 00:00:28,920 --> 00:00:30,580 because I want you to do it. 8 00:00:31,460 --> 00:00:33,140 Now, how many people here brought laptops? 9 00:00:34,540 --> 00:00:35,300 That's pretty good. 10 00:00:35,580 --> 00:00:39,420 Okay, how many of you already have a Linux laptop? 11 00:00:41,420 --> 00:00:43,760 Okay, now, that's good. 12 00:00:44,620 --> 00:00:47,620 Now, what you really need for this is you need two machines, 13 00:00:47,840 --> 00:00:50,660 or you need a machine and a virtual machine, which is how I wrote the instructions. 14 00:00:51,320 --> 00:00:53,460 Anyway, a little bit more about that later. 15 00:00:53,680 --> 00:00:56,860 But that's why I call it hands-on training, because I'm modeling this after my classes, 16 00:00:57,280 --> 00:00:58,580 and my students do it this way. 17 00:00:58,640 --> 00:00:58,820 It's sitting. 18 00:00:58,920 --> 00:01:01,700 So that's me. 19 00:01:01,780 --> 00:01:04,480 If you want to reach me, that's how to get me. 20 00:01:04,760 --> 00:01:06,720 And here's the two attacks we're going to talk about today. 21 00:01:07,040 --> 00:01:11,660 SSL Strip, written by Moxie Marlin Spike, not the new one he just talked about today, 22 00:01:12,580 --> 00:01:15,600 or yesterday, which is great, but I'm not ready for that one. 23 00:01:15,660 --> 00:01:18,780 The one he talked about last year, which sits in the middle 24 00:01:18,780 --> 00:01:21,380 and turns secure connections into insecure connections. 25 00:01:22,000 --> 00:01:25,200 And we're going to do that, and hopefully all of you will also do it, 26 00:01:25,260 --> 00:01:26,820 and you can walk out of here with the toy to play with. 27 00:01:27,740 --> 00:01:28,840 And then Slow Loris. 28 00:01:28,920 --> 00:01:32,540 Slow Loris, which is unbelievable, that just shuts down an entire web server 29 00:01:32,540 --> 00:01:35,200 with no more bandwidth than just a ping. 30 00:01:35,540 --> 00:01:36,980 And it's not the ping of death. 31 00:01:37,180 --> 00:01:41,900 It's a steady chain of incomplete HTTP get requests, which fills up a queue, 32 00:01:42,680 --> 00:01:47,280 and with very low bandwidth, you bring down just the one server you're targeting 33 00:01:47,280 --> 00:01:50,280 instead of a SYN flood that's like a flamethrower 34 00:01:50,280 --> 00:01:52,660 just blasting everything down between you and the victim. 35 00:01:54,860 --> 00:01:56,320 So SSL Strip first. 36 00:01:57,020 --> 00:01:58,240 I just went on the web. 37 00:01:58,240 --> 00:02:00,580 I got a list of the most popular web 2.0 sites, 38 00:02:00,780 --> 00:02:05,040 and most of them are either completely stupid and use plain text authentication, 39 00:02:05,480 --> 00:02:06,720 and you'll see them on the wall of sheep, 40 00:02:07,620 --> 00:02:12,860 or they're intelligent and they use HTTPS, which is moderately secure. 41 00:02:13,100 --> 00:02:15,080 I must say, after listening to the talks yesterday, 42 00:02:15,320 --> 00:02:17,680 I have less faith in its security than I used to have. 43 00:02:17,800 --> 00:02:21,720 But in any case, it does, you know, go through the motions of encrypting stuff 44 00:02:21,720 --> 00:02:25,760 and doing some pretense at checking with a certificate authority, 45 00:02:26,000 --> 00:02:28,160 although by no means as well as I used to think it. 46 00:02:28,240 --> 00:02:31,840 But anyway, then there are people like WordPress and Twitter 47 00:02:31,840 --> 00:02:34,340 that do something halfway stupid. 48 00:02:34,860 --> 00:02:37,980 They're smart enough not to be completely stupid and just use HTTP, 49 00:02:38,320 --> 00:02:40,320 but they use mixed mode authentication. 50 00:02:41,200 --> 00:02:43,300 And that is a really bad idea. 51 00:02:43,820 --> 00:02:45,600 And this has been known for a long time, 52 00:02:45,680 --> 00:02:49,980 but telling people it's a bad idea is not as powerful as showing them it's a bad idea 53 00:02:49,980 --> 00:02:53,340 and having you show them right in front of them on your laptop 54 00:02:53,340 --> 00:02:55,260 why it's a bad idea is even better. 55 00:02:55,300 --> 00:02:57,680 So my only contribution to this is theater. 56 00:02:58,240 --> 00:03:00,740 I'm just here to make it fun to hijack these sessions. 57 00:03:01,540 --> 00:03:02,880 So Facebook, for example. 58 00:03:03,720 --> 00:03:05,340 Facebook is an HTTP page. 59 00:03:05,960 --> 00:03:09,720 But the button, when you click login, is HTTPS. 60 00:03:09,940 --> 00:03:12,700 My bank used to be this way, and I fought with them for years, 61 00:03:12,760 --> 00:03:13,840 and all I could get was lies. 62 00:03:14,080 --> 00:03:16,900 And when I got enough complaints, then I would get elevated to next level lies, 63 00:03:17,000 --> 00:03:18,980 and I couldn't get past people that would just lie to me. 64 00:03:19,720 --> 00:03:22,200 This is totally insecure for a lot of good reasons. 65 00:03:22,540 --> 00:03:27,780 But anyway, the particular reason that makes it insecure that we're going to use today, 66 00:03:28,240 --> 00:03:30,820 is that I can't see that that button is secure. 67 00:03:31,520 --> 00:03:34,100 So if an attacker puts themselves in the middle, 68 00:03:34,160 --> 00:03:36,000 and they proxy the traffic, 69 00:03:36,200 --> 00:03:37,480 if I try to go to Facebook, 70 00:03:37,760 --> 00:03:39,760 I get the outside HTTP page, 71 00:03:39,960 --> 00:03:43,200 and the attacker creates a secure connection to the Facebook server 72 00:03:43,200 --> 00:03:45,220 and hands it to me in HTTP. 73 00:03:45,620 --> 00:03:47,000 So the page looks the same, 74 00:03:47,100 --> 00:03:48,420 the button looks the same, 75 00:03:48,540 --> 00:03:49,640 there's no clue, 76 00:03:49,800 --> 00:03:53,460 the browser will not pop up a warning saying this page is insecure or anything, 77 00:03:53,640 --> 00:03:54,740 and I'll log in. 78 00:03:54,900 --> 00:03:56,040 I'll never know what happened. 79 00:03:56,600 --> 00:03:58,220 Now there is one way to know what happened, 80 00:03:58,220 --> 00:04:00,880 although it's ridiculous to think an end user would do this, 81 00:04:01,020 --> 00:04:03,140 which is to look at the source code of the web page, 82 00:04:03,280 --> 00:04:07,260 and notice that the method that used to be HTTPS is now HTTP. 83 00:04:08,000 --> 00:04:09,300 But that's pretty lame. 84 00:04:10,280 --> 00:04:11,200 And by the way, 85 00:04:11,860 --> 00:04:14,440 in the real world, there are a variety of ways to get in the middle. 86 00:04:15,340 --> 00:04:19,140 Now, the simplest way, and the way that I believe they use here to make the wall of sheep, 87 00:04:19,300 --> 00:04:20,600 is they just get in the middle. 88 00:04:20,660 --> 00:04:24,660 Some place there's a main access point for all of us getting to the internet at the con, 89 00:04:25,160 --> 00:04:28,200 and they just intercept the traffic there, or copy it, 90 00:04:28,700 --> 00:04:30,220 that's the simplest way to get in the middle, 91 00:04:30,260 --> 00:04:31,900 but it requires physical access to the network. 92 00:04:32,320 --> 00:04:34,760 The one we're going to use here is totally lame, 93 00:04:34,880 --> 00:04:38,220 because I'm not actually making exactly an attack tool, 94 00:04:38,360 --> 00:04:39,320 although it's very close to it, 95 00:04:39,340 --> 00:04:40,840 I'm just making a demonstration so you can see it. 96 00:04:41,200 --> 00:04:44,500 So we're just going to set the proxy in the browser to go somewhere, 97 00:04:44,620 --> 00:04:45,660 instead of directly to the internet, 98 00:04:45,760 --> 00:04:47,640 to go to a proxy server, and that'll be the attacker. 99 00:04:48,300 --> 00:04:51,600 But of course, if you really want to do this to other people in a wireless network, 100 00:04:51,720 --> 00:04:52,880 then you do it with ARP poisoning. 101 00:04:53,120 --> 00:04:55,480 And I imagine this is fairly familiar ground with people. 102 00:04:55,820 --> 00:04:58,080 If I want to find the gateway out of my network, 103 00:04:58,220 --> 00:05:01,760 I have an IP address, and I have to resolve that to a MAC address, 104 00:05:02,020 --> 00:05:05,360 so I use ARP, and ARP is a really stupid, simple-minded protocol, 105 00:05:05,660 --> 00:05:09,320 and you can just trick it with a lot of fake ARP replies, 106 00:05:09,880 --> 00:05:13,720 and it will believe that the gateway is not the real router out of the room, 107 00:05:13,780 --> 00:05:14,860 it's the attacker over here. 108 00:05:15,080 --> 00:05:16,860 It'll pass my traffic over to them. 109 00:05:17,120 --> 00:05:20,760 And it's not hard to detect if you're looking for it, 110 00:05:20,800 --> 00:05:23,920 but most machines, client machines, will just fall for it, 111 00:05:23,960 --> 00:05:24,820 and they'll reroute the traffic. 112 00:05:25,000 --> 00:05:27,640 So these ARP requests and ARP replies 113 00:05:27,640 --> 00:05:30,540 will be tricked into sending your data to the attacker, 114 00:05:30,740 --> 00:05:33,100 and if the attacker then forwards it onto the gateway, 115 00:05:33,280 --> 00:05:34,720 you will see everything just fine, 116 00:05:34,840 --> 00:05:37,780 but the attacker can read everything you do and indeed change it. 117 00:05:37,980 --> 00:05:41,820 And the result is you'll see your network slow down a little, 118 00:05:41,940 --> 00:05:44,660 but we're all so used to that, especially on wireless networks, 119 00:05:44,800 --> 00:05:46,000 that usually people already freak out. 120 00:05:46,960 --> 00:05:49,040 So let me just show you this thing working, 121 00:05:49,180 --> 00:05:50,940 and it got really easy to do, 122 00:05:51,060 --> 00:05:54,500 because I spent the last couple of days writing scripts to make this more fun. 123 00:05:55,420 --> 00:05:57,060 So let me see. 124 00:05:57,640 --> 00:05:58,080 If this works. 125 00:05:58,160 --> 00:06:00,100 Now, that is supposed to look like that, by the way. 126 00:06:01,580 --> 00:06:02,540 That is not a mistake. 127 00:06:04,300 --> 00:06:07,640 But what you're going to do, and actually at this point, 128 00:06:07,680 --> 00:06:09,700 it's probably time to start these instructions going around the room, 129 00:06:09,760 --> 00:06:12,820 because I know a lot of people tap away on their laptops while they're watching 130 00:06:12,820 --> 00:06:16,740 talks, because I do it, too, and I'm trying to adapt to this instead of resisting it. 131 00:06:17,160 --> 00:06:18,660 And so I want you to start doing it. 132 00:06:19,720 --> 00:06:21,600 So I brought along printed instructions, 133 00:06:21,760 --> 00:06:23,720 and I have a couple of students that are willing to hand them out. 134 00:06:23,820 --> 00:06:26,180 So if you want a copy of the printed instructions, you can do it on your laptop. 135 00:06:26,340 --> 00:06:27,140 Just raise your hand. 136 00:06:27,140 --> 00:06:28,460 And these guys will try to get them to you. 137 00:06:29,060 --> 00:06:30,120 And you can follow along. 138 00:06:30,260 --> 00:06:31,860 I'm not going to do it step by step here, 139 00:06:31,980 --> 00:06:34,800 but I'm going to give you instructions where you can all totally do this. 140 00:06:35,320 --> 00:06:36,360 And it shouldn't be hard. 141 00:06:36,500 --> 00:06:39,300 And that's what I want to use the breakout room for after this talk is 142 00:06:39,300 --> 00:06:41,920 for people to come there that want to do it and have some kind of problem. 143 00:06:42,140 --> 00:06:44,020 And my students and I will help you really 144 00:06:44,020 --> 00:06:45,640 get it working, because I want you to walk out of here 145 00:06:45,640 --> 00:06:47,420 with a laptop with these attacks running on it. 146 00:06:47,860 --> 00:06:49,960 I think that's more cool than watching a talk. 147 00:06:50,520 --> 00:06:52,160 A talk without a demo is one thing. 148 00:06:52,200 --> 00:06:53,300 A talk with a demo is better. 149 00:06:53,380 --> 00:06:56,280 And a talk where I can go play with it is what I really want you to have. 150 00:06:57,140 --> 00:06:57,780 Anyway, so 151 00:06:57,780 --> 00:07:00,260 let me go here. 152 00:07:01,840 --> 00:07:03,880 And so what I've done is I've downloaded 153 00:07:04,580 --> 00:07:08,020 Moxie Marlin Stripes SSL strip tool here, I just unzipped it. 154 00:07:08,140 --> 00:07:10,700 And his tool just includes a 155 00:07:12,020 --> 00:07:14,960 series of little script files. 156 00:07:15,180 --> 00:07:17,420 And I've added a few things like these pictures of sheep. 157 00:07:19,220 --> 00:07:22,660 So when you do the instructions, first you go to Mark's site and you download 158 00:07:22,660 --> 00:07:26,460 this serious professional tool and then you go to my site and download this silly 159 00:07:26,460 --> 00:07:27,120 thing called sheep. 160 00:07:27,140 --> 00:07:29,400 Which you unzip and add to it. 161 00:07:29,520 --> 00:07:31,620 And the end result to that is if you get to the right directory. 162 00:07:32,880 --> 00:07:36,520 And then that directory. 163 00:07:36,780 --> 00:07:41,160 OK, then all you have to do is sudo bash DEF CON. 164 00:07:44,920 --> 00:07:45,420 What's that? 165 00:07:46,780 --> 00:07:48,920 Well, it's your. Yeah, that's right. 166 00:07:49,400 --> 00:07:52,620 Well, I'm using a really simple password. 167 00:07:52,900 --> 00:07:54,180 Old Microsoft one. 168 00:07:54,500 --> 00:07:57,060 P at S S W 0 R D because I've got no 169 00:07:57,140 --> 00:07:58,660 security there. 170 00:07:58,740 --> 00:08:00,440 The wall of stripped sheep is running OK. 171 00:08:01,580 --> 00:08:02,020 And. 172 00:08:03,400 --> 00:08:04,300 It should be. 173 00:08:06,420 --> 00:08:07,480 Yeah, that's good. 174 00:08:08,120 --> 00:08:09,560 Firefox has crashed on me. 175 00:08:09,620 --> 00:08:10,740 That's to be expected. 176 00:08:13,120 --> 00:08:14,680 In fact, you're warning me about that. 177 00:08:15,040 --> 00:08:17,460 So this thing actually exits cleanly now. 178 00:08:17,560 --> 00:08:18,020 Ha ha. 179 00:08:18,320 --> 00:08:20,420 And that took me hours to make it work. 180 00:08:22,120 --> 00:08:23,480 And now I can restart it. 181 00:08:23,520 --> 00:08:25,200 It should launch. Life is good. 182 00:08:25,300 --> 00:08:26,660 The wall of stripped sheep. OK. 183 00:08:27,240 --> 00:08:27,760 Now. 184 00:08:29,780 --> 00:08:31,600 We'll just shove that over to the side. 185 00:08:32,840 --> 00:08:34,840 And let's set up our victim here. 186 00:08:35,220 --> 00:08:37,900 Now, I said you should put yourself in the middle with some cool, 187 00:08:37,980 --> 00:08:39,540 sneaky technique like art poisoning. 188 00:08:39,920 --> 00:08:43,160 But since I'm lame, I'm just going to do it right here. 189 00:08:44,720 --> 00:08:46,840 The Linux machine is 172. 190 00:08:48,300 --> 00:08:48,820 16. 191 00:08:51,440 --> 00:08:51,960 864. 192 00:08:53,620 --> 00:08:54,140 OK. 193 00:08:55,280 --> 00:08:56,600 OK. And now. 194 00:08:57,520 --> 00:08:59,140 Let's move this thing over to the side. 195 00:08:59,540 --> 00:09:00,460 Let's try Twitter. 196 00:09:02,100 --> 00:09:03,920 And my name is going to be Twitch. 197 00:09:05,560 --> 00:09:08,700 My password is going to be complete fool. 198 00:09:11,340 --> 00:09:12,520 And then I log in. 199 00:09:14,540 --> 00:09:17,440 And Twitter noticed I was wrong and I was wrong 200 00:09:17,440 --> 00:09:20,100 more than they thought because it just caught it right there. 201 00:09:20,280 --> 00:09:22,420 And that was supposed to be a secure connection. 202 00:09:23,100 --> 00:09:25,840 And like I say, these four websites are all vulnerable. 203 00:09:25,840 --> 00:09:31,020 Facebook, Facebook has this jazz. 204 00:09:31,880 --> 00:09:33,420 So I can be face man. 205 00:09:35,320 --> 00:09:39,680 And over here I can be secret and log in. 206 00:09:42,160 --> 00:09:43,780 And that's going to go to Facebook. 207 00:09:44,160 --> 00:09:47,160 Facebook server will decide it's no good, but I stole it here. 208 00:09:47,620 --> 00:09:53,920 And so I just took that team list of top 15 websites and I found four of them that 209 00:09:53,920 --> 00:09:55,700 I were apparently the top 15. 210 00:09:55,840 --> 00:09:58,540 They're all the same destinations or not ones I use and they all work. 211 00:09:58,640 --> 00:10:00,560 This attack completely finds the password. 212 00:10:01,180 --> 00:10:05,240 If you go to another site that might not work and you want to see it. 213 00:10:05,280 --> 00:10:09,980 This is a script I wrote that looks for the format of how they lay the password out. 214 00:10:10,220 --> 00:10:13,340 If they don't lay it out that way, you can always get this button to see 215 00:10:13,340 --> 00:10:16,400 the raw data, which is the raw output of the SSL strip tool. 216 00:10:17,480 --> 00:10:21,120 And that is here. 217 00:10:21,560 --> 00:10:24,980 And that is probably more instructive, but not as much fun. 218 00:10:24,980 --> 00:10:25,840 Whoops, whoops, whoops. 219 00:10:26,040 --> 00:10:28,260 I'm hitting the wrong buttons on my window. 220 00:10:28,480 --> 00:10:30,620 There we are. That's what it really looks like. 221 00:10:30,700 --> 00:10:35,000 It caught a secure post, which, of course, should never have been read. 222 00:10:35,240 --> 00:10:39,020 But it is read because the proxy in the middle is able to change the 223 00:10:39,020 --> 00:10:44,160 the connection to the client to HTTP. 224 00:10:44,620 --> 00:10:45,640 So it gets it in a clear. 225 00:10:45,740 --> 00:10:48,780 It's a really simple attack, but it works really well. 226 00:10:49,140 --> 00:10:50,760 So I hope you guys have fun with that. 227 00:10:51,200 --> 00:10:54,740 And I want to show you the other one and then he can talk about it, which is slow. 228 00:10:54,980 --> 00:10:57,940 Of course, and I believe we got it working right before the talk here. 229 00:10:58,300 --> 00:11:00,780 So slow loss is even more exciting. 230 00:11:01,920 --> 00:11:04,760 And I think I'm just going to demonstrate 231 00:11:04,760 --> 00:11:07,220 it and not even bother with any more of this PowerPoint slides. 232 00:11:09,720 --> 00:11:14,560 I've set up a web server on my Windows host machine and I went to the host's 233 00:11:14,560 --> 00:11:19,040 file and named it example dot com for no terribly good reason. 234 00:11:19,140 --> 00:11:19,800 But that's what I did. 235 00:11:22,960 --> 00:11:23,960 Example dot com. 236 00:11:23,960 --> 00:11:26,500 And I put a file in there called Sam Dot HTN. 237 00:11:26,520 --> 00:11:30,320 This is a copy of my web page just so you'd see something kind of pretty. 238 00:11:33,560 --> 00:11:38,600 And if I have trouble with this demonstration, we have a backup plan, 239 00:11:39,220 --> 00:11:41,800 but it was working before. Let me just put the IP address in here. 240 00:11:41,920 --> 00:11:42,900 I think that works better. 241 00:11:43,760 --> 00:11:51,500 IP address of my Windows machine is two sixteen eight sixty two. 242 00:11:57,420 --> 00:12:00,440 I am practicing, but that shouldn't have any effect from this direction 243 00:12:00,820 --> 00:12:02,960 because that's Firefox on the Windows machine is proxy. 244 00:12:03,080 --> 00:12:04,440 These are good points. Good questions, though. 245 00:12:04,580 --> 00:12:06,420 However, let me just go back here. 246 00:12:06,640 --> 00:12:10,320 This is Apache running on Windows and I've got it right here 247 00:12:11,200 --> 00:12:14,500 and I can control the Apache server and I can just restart it. 248 00:12:16,620 --> 00:12:17,460 Let's just do that. 249 00:12:17,740 --> 00:12:19,320 This is Vista, by the way. 250 00:12:20,920 --> 00:12:22,380 I usually on Windows seven, 251 00:12:22,500 --> 00:12:26,780 but this machine had the beta of Windows seven, not the R.C. 252 00:12:26,840 --> 00:12:28,800 So it's starting to freak out on me. 253 00:12:30,680 --> 00:12:32,700 And it's let's see if that did it. 254 00:12:38,040 --> 00:12:39,780 All right, one more thing, let's go here. 255 00:12:41,920 --> 00:12:42,580 All right. 256 00:12:44,160 --> 00:12:48,260 Well, then we'll go to Plan B, let me hand it off to him and I've got another machine here. 257 00:12:49,900 --> 00:12:51,620 And I'll get this working on this one. 258 00:12:51,680 --> 00:12:55,380 Well, he tells you about our solar's on this one. 259 00:12:55,920 --> 00:12:58,660 Hi, everybody. Yeah, I'd have gone in. 260 00:13:00,660 --> 00:13:04,280 So I'm kind of in pain here, so I'm moving a little slower than usual. 261 00:13:07,240 --> 00:13:08,000 But what's that? 262 00:13:09,440 --> 00:13:10,160 Ah, yeah. 263 00:13:10,280 --> 00:13:10,840 And we got a beer. 264 00:13:12,520 --> 00:13:15,460 Yeah, I mean, wait, what is this? 265 00:13:15,600 --> 00:13:15,960 No. 266 00:13:19,320 --> 00:13:22,620 Uh, so, um, uh, well, he gets it set up. 267 00:13:22,740 --> 00:13:23,720 My name is our snake. 268 00:13:24,000 --> 00:13:26,380 I run hackers that org and slackers that org. 269 00:13:26,980 --> 00:13:29,980 I also run a small consultancy in Austin called Sec Theory. 270 00:13:30,940 --> 00:13:35,280 So I created this tool, I don't know, about a month ago maybe. 271 00:13:35,880 --> 00:13:37,540 And it got quite a bit of publicity 272 00:13:38,580 --> 00:13:41,860 for good and for bad, mostly mostly bad. 273 00:13:42,440 --> 00:13:42,840 But 274 00:13:42,840 --> 00:13:46,060 I am not the first person to come up with this tool. 275 00:13:46,620 --> 00:13:48,920 Apparently it's been out there for the concept. 276 00:13:48,920 --> 00:13:52,220 The concept, at least, has been out there since like 2005, 2004, maybe even, 277 00:13:52,980 --> 00:13:56,540 which is which makes me look like I'm stealing other people's work. 278 00:13:56,640 --> 00:13:57,860 But I assure you, I had no idea. 279 00:13:58,220 --> 00:14:00,460 It's mostly because I don't read every single page on the Internet. 280 00:14:00,620 --> 00:14:01,940 I just don't have the time. 281 00:14:03,100 --> 00:14:06,740 But so it was actually I think 282 00:14:08,040 --> 00:14:09,540 Ivan Ristik might have written in his 283 00:14:09,540 --> 00:14:12,000 book and a couple other people mentioned it a long time ago. 284 00:14:12,180 --> 00:14:14,640 So but anyway, one day I was in the shower. 285 00:14:14,720 --> 00:14:15,640 Great mental image, I'm sure. 286 00:14:16,240 --> 00:14:18,720 And I decided this Apache kind of 287 00:14:18,920 --> 00:14:20,380 tells some weird stuff and maybe it's vulnerable. 288 00:14:21,260 --> 00:14:26,840 So a weekend later, I actually had some code that actually seemed to work pretty well. 289 00:14:27,360 --> 00:14:32,520 So we shipped it off to Apache and Apache had some very weird response. 290 00:14:32,840 --> 00:14:34,660 They said, this is expected behavior. 291 00:14:34,820 --> 00:14:35,620 Go read this page. 292 00:14:36,180 --> 00:14:37,180 It's like, well, thanks. 293 00:14:37,480 --> 00:14:39,460 You know, go read, go read the manual, 294 00:14:40,130 --> 00:14:44,660 which is a fantastic way to kind of shove somebody off into the into the corner. 295 00:14:44,880 --> 00:14:46,760 Not a particularly good way to solve a problem. 296 00:14:47,200 --> 00:14:48,520 So if it's expected behavior, 297 00:14:48,920 --> 00:14:51,240 that's fine and everything cool. 298 00:14:52,300 --> 00:14:53,160 That's fine and everything. 299 00:14:53,280 --> 00:14:56,180 But it would be awfully nice if they'd fix it since I use Apache. 300 00:14:56,380 --> 00:14:58,000 And a lot of people I know use Apache. 301 00:14:58,200 --> 00:14:59,200 I'm going to switch mics here. 302 00:15:02,120 --> 00:15:06,360 So let me start with a little bit of the background and what was actually going on 303 00:15:06,360 --> 00:15:09,380 at the time, sort of the ecology of the Internet. 304 00:15:09,860 --> 00:15:12,420 So Iran was having this election thing. 305 00:15:12,520 --> 00:15:16,740 And I'm a I'm I consider myself fairly aware of what's going on in the world. 306 00:15:16,860 --> 00:15:17,720 I listen to NPR. 307 00:15:18,600 --> 00:15:21,760 But, you know, I didn't know a whole lot about what was really going on. 308 00:15:21,840 --> 00:15:23,380 Well, it turns out there was this whole 309 00:15:24,020 --> 00:15:26,940 election thing going on and people were pretty upset about it. 310 00:15:27,940 --> 00:15:31,180 Apparently there was some ballot stuffing of some sort and 311 00:15:33,200 --> 00:15:34,800 something very close to civil war, 312 00:15:34,920 --> 00:15:37,460 although I don't think it was ever called that, was breaking out. 313 00:15:38,180 --> 00:15:39,620 So I knew about this. 314 00:15:40,080 --> 00:15:43,460 This is something I was aware of just because I listen to NPR in the mornings 315 00:15:43,460 --> 00:15:46,780 on the way to work. I didn't know about anything else beyond that, though. 316 00:15:46,780 --> 00:15:48,660 So I probably should have done my homework. 317 00:15:48,940 --> 00:15:52,080 But so there's a whole bunch of reasons why people think this is voter fraud. 318 00:15:52,500 --> 00:15:55,920 The best reason I heard is up at the top there, impossible tallies. 319 00:15:56,180 --> 00:15:58,800 There's actually more votes in certain regions than there are people. 320 00:15:59,940 --> 00:16:01,740 So that's that's a pretty good indicator. 321 00:16:07,020 --> 00:16:08,780 So regardless of whether you believe all 322 00:16:08,780 --> 00:16:11,780 this is true or not, this is just the ecology of what was happening at the moment. 323 00:16:12,580 --> 00:16:16,380 Around that same time, a lot of people were using Twitter to inside Iran. 324 00:16:16,780 --> 00:16:19,900 To kind of message out what was going on, saying, oh, there's atrocities. 325 00:16:19,940 --> 00:16:23,900 People are getting shot or killed or incarcerated or whatever. 326 00:16:24,080 --> 00:16:26,900 And there's this guy named Austin Heap or I'm not sure if that's really his name, 327 00:16:26,940 --> 00:16:29,880 but that's what he's going by, who is kind of leading the charge, 328 00:16:30,000 --> 00:16:32,980 helping people communicate out, creating proxies. 329 00:16:33,700 --> 00:16:36,100 And this is one screenshot where he's 330 00:16:36,100 --> 00:16:39,580 helping people create a VM where you can go and proxy through it. 331 00:16:40,460 --> 00:16:43,760 Incidentally, the username is Root and the password is Pound Iran. 332 00:16:44,080 --> 00:16:46,640 And the username is Iran and the password is election. 333 00:16:46,780 --> 00:16:49,020 So if you install this, you might want to change that. 334 00:16:49,060 --> 00:16:50,120 Otherwise, people can own your network. 335 00:16:51,340 --> 00:16:55,320 So so this is what was happening at the time. 336 00:16:55,440 --> 00:16:57,960 When I before I released this, there was a bunch of people 337 00:16:58,460 --> 00:17:02,380 who were taking offense to all this and wanted to tell the Iranian government what they thought. 338 00:17:02,520 --> 00:17:04,460 So they're using this thing called page reboots. 339 00:17:04,460 --> 00:17:06,300 You just type in the URL and JavaScript space. 340 00:17:06,400 --> 00:17:07,840 It makes a whole bunch of like recurring 341 00:17:07,840 --> 00:17:10,620 requests once every 30 seconds in this case or once a second or whatever. 342 00:17:11,220 --> 00:17:14,140 So if you get a couple of thousand machines all at the same time doing this, 343 00:17:14,580 --> 00:17:16,700 it turns into a denial. 344 00:17:16,780 --> 00:17:19,440 Service tool that's distributed, which is pretty nice. 345 00:17:19,980 --> 00:17:22,740 So there was like hundreds and hundreds and hundreds of these posts all saying, 346 00:17:22,860 --> 00:17:26,500 go, go, go to page reboot, go hit this thing and and take it down. 347 00:17:27,680 --> 00:17:33,080 So meanwhile, I was, you know, kind of totally unaware of all this stuff going 348 00:17:33,080 --> 00:17:35,760 on and I was developing this really cute little tool that I thought, you know, 349 00:17:35,780 --> 00:17:36,900 it's pretty neat. It could take down websites. 350 00:17:37,480 --> 00:17:39,140 It was interesting because it was low bandwidth. 351 00:17:39,240 --> 00:17:41,340 It kept sockets alive, which has some interesting implications. 352 00:17:41,440 --> 00:17:42,380 I'll talk about in a bit. 353 00:17:42,880 --> 00:17:46,680 It only affected certain web servers, so it's not the entire ecosystems of all 354 00:17:46,780 --> 00:17:49,060 web servers everywhere, but Apache is pretty big. 355 00:17:49,180 --> 00:17:49,980 So that was nice. 356 00:17:50,160 --> 00:17:51,640 It didn't work through load balancers. 357 00:17:51,680 --> 00:17:53,540 So I felt a little bit better about talking about it. 358 00:17:53,580 --> 00:17:55,560 So it's not going to take down like eBay, PayPal. 359 00:17:55,840 --> 00:17:57,200 It's not going to take down Amazon. 360 00:17:57,480 --> 00:18:00,080 You know, it's it's it's kind of limited in what its usefulness is. 361 00:18:00,500 --> 00:18:04,060 It managed to work around what I thought was probably the best filter at the time. 362 00:18:04,320 --> 00:18:10,580 The HP except filters because except filters only work with get and head. 363 00:18:10,680 --> 00:18:12,840 So I use post. Pretty simple. 364 00:18:13,640 --> 00:18:15,500 So this is what the attack looks like. 365 00:18:15,580 --> 00:18:16,540 So you make a post 366 00:18:16,780 --> 00:18:19,940 request to some URL carriage return new line. 367 00:18:20,440 --> 00:18:22,480 You don't have to put in the real host name. 368 00:18:22,640 --> 00:18:24,160 In fact, I didn't have to put in any host name. 369 00:18:24,480 --> 00:18:27,080 But this is nice if there's like segmentation of logging. 370 00:18:27,380 --> 00:18:30,800 You have logs go to one log file instead of the instead of the attacked one. 371 00:18:30,960 --> 00:18:32,480 So if there's virtual hosts, you know, 372 00:18:32,520 --> 00:18:34,800 it kind of it doesn't look like you're attacking the target you're really going 373 00:18:34,800 --> 00:18:38,640 after user agent content length, which is just garbage information. 374 00:18:39,080 --> 00:18:40,720 And then some random header. 375 00:18:40,840 --> 00:18:42,500 So the very last thing should have been 376 00:18:42,500 --> 00:18:44,220 a carriage return new line carriage return new line. 377 00:18:44,360 --> 00:18:46,240 Well, I don't put that second carriage return 378 00:18:46,780 --> 00:18:47,960 carriage return new line in there. 379 00:18:48,060 --> 00:18:49,800 I just sort of sit there for, you know, 380 00:18:49,800 --> 00:18:53,320 I don't know, a minute, five minutes or whatever, and then submit another header 381 00:18:53,320 --> 00:18:57,160 and then another header. So it just it's so slow that Apache just 382 00:18:57,160 --> 00:19:00,260 sort of sits there and says, OK, well, I'm ready for the information. 383 00:19:00,460 --> 00:19:03,000 Whenever you're ready any day now, I'm all ready. 384 00:19:03,420 --> 00:19:05,800 And IAS has the kind of opposite model, 385 00:19:05,940 --> 00:19:08,860 which is if you're coming to me and you're requesting data, that's great. 386 00:19:09,300 --> 00:19:10,620 If you're not, then you're going to have 387 00:19:10,620 --> 00:19:12,440 to step aside so there's somebody behind you in line. 388 00:19:12,700 --> 00:19:16,220 So that that basically makes Apache 389 00:19:16,780 --> 00:19:18,880 vulnerable. And incidentally, the reason why they are vulnerable is because they're 390 00:19:18,880 --> 00:19:21,300 trying to protect themselves from a different type of denial of service attack, 391 00:19:21,460 --> 00:19:24,880 which is creating a massive amount of load on the box. 392 00:19:25,660 --> 00:19:27,040 So the nice thing about this particular 393 00:19:27,040 --> 00:19:31,400 attack is that the load on the box is actually very, very low while this attack 394 00:19:31,400 --> 00:19:35,220 is performing. In fact, it's so low that if it's kind of a high traffic website, 395 00:19:35,500 --> 00:19:39,240 your your load will actually go down in the process, which is kind of nice. 396 00:19:41,500 --> 00:19:44,460 So it's nice if you're the one who wants to use the website. 397 00:19:44,580 --> 00:19:46,400 Right. So this is the secondary side 398 00:19:46,780 --> 00:19:50,540 benefit of this. If I have 256 sockets open or whatever 399 00:19:50,540 --> 00:19:54,700 the number is to the to the host and that's configurable, if I have all the sockets 400 00:19:54,700 --> 00:19:58,620 open, why not use them? So if I want to be the only person on the website, 401 00:19:59,300 --> 00:20:01,660 why not just reuse one of the existing sockets? 402 00:20:02,520 --> 00:20:03,980 And here's what it would look like. 403 00:20:04,120 --> 00:20:07,760 And then once I'm ready to actually start instantiating and actually performing 404 00:20:07,760 --> 00:20:12,980 requests, I'll just kind of use my own slow loris tool as a proxy and and connect back. 405 00:20:13,140 --> 00:20:15,480 I never built that, but it would have been fairly trivial to do. 406 00:20:16,900 --> 00:20:20,540 So there's a whole bunch of other side benefits to this particular variant of this attack. 407 00:20:20,720 --> 00:20:22,160 But ultimately, it's pretty low bandwidth. 408 00:20:22,260 --> 00:20:26,440 It's about 4000 packets to take down a Web server for about five minutes. 409 00:20:26,720 --> 00:20:27,940 So pretty low bandwidth. 410 00:20:29,160 --> 00:20:30,940 So you saw Apache's response. 411 00:20:31,180 --> 00:20:34,480 Go read the read the documents on on it if you if you want to. 412 00:20:34,780 --> 00:20:37,360 I did. And and my team did. 413 00:20:37,480 --> 00:20:40,360 And we all went through it and it really didn't cover this at all. 414 00:20:40,440 --> 00:20:41,720 It was it was pretty, pretty bad. 415 00:20:41,920 --> 00:20:46,080 Ultimately, they are basically saying we've known about this for years, except that accepted risk. 416 00:20:46,120 --> 00:20:46,700 We're willing to deal. 417 00:20:46,780 --> 00:20:46,980 With it. 418 00:20:47,420 --> 00:20:49,860 So I sort of felt like it was time to go release it. 419 00:20:49,960 --> 00:20:51,820 You know, you know, I've done my due diligence. 420 00:20:52,000 --> 00:20:53,400 I've talked to Apache. They don't seem to care. 421 00:20:53,560 --> 00:20:54,320 It's been out there anyway. 422 00:20:54,500 --> 00:20:56,140 So so let's go talk about it. 423 00:20:56,180 --> 00:21:01,240 Now, mind you, I have like maybe 20000 people who visit my website, you know, maybe 1000 people on Twitter. 424 00:21:01,340 --> 00:21:05,960 So, you know, if I release it, you know, a third of those people will actually read the post. 425 00:21:06,080 --> 00:21:09,680 A third of those people will, you know, maybe go download a third of those people will actually care. 426 00:21:09,800 --> 00:21:11,380 A third of those people actually do something with it. 427 00:21:11,440 --> 00:21:15,460 So it's kind of like, you know, to me, it was sort of really not an issue to release this. 428 00:21:16,780 --> 00:21:26,960 So what was going on at the time, though, is anonymous released this gigantic thing where there is manifesto about how they're going to go attack Iran and, you know, how they're felt, you know, they should be punished and so on. 429 00:21:27,800 --> 00:21:31,860 It was there's like a Twitter, I'm sorry, a YouTube video about it. 430 00:21:33,100 --> 00:21:40,060 And so the Iranian government was pretty much totally all of their network was actually being totally saturated. 431 00:21:40,860 --> 00:21:44,860 You can kind of see what one of their network connections there before and after. 432 00:21:45,560 --> 00:21:46,360 So it was. 433 00:21:46,780 --> 00:21:47,040 It was pretty bad. 434 00:21:47,120 --> 00:21:53,320 It was taking down all of Iran instead of just the websites that they were actually interested in taking down the leadership websites. 435 00:21:53,700 --> 00:21:59,520 So they needed to be able to the people inside the country need to be able to contact outside of the country. 436 00:21:59,660 --> 00:22:04,420 And because the entire Iranian infrastructure was going down, they weren't able to do that. 437 00:22:04,560 --> 00:22:07,940 And so, you know, they're sort of pleading, please don't do this denial of service attack. 438 00:22:08,080 --> 00:22:11,060 You're hurting the people inside the country who actually need to be able to protest. 439 00:22:12,140 --> 00:22:16,080 Incidentally, the number of new tour notes inside the IP space 440 00:22:16,080 --> 00:22:20,720 for Iran also shot up about ten thousand percent in a week. 441 00:22:22,280 --> 00:22:28,120 So in this ecosystem, me being unaware of all that junk, I released Solaris. 442 00:22:29,180 --> 00:22:30,220 Who isn't this neat? 443 00:22:30,420 --> 00:22:33,000 So I have one little thing like, hey, go check out my website. 444 00:22:33,140 --> 00:22:36,100 There it is on Twitter and my own blog post. 445 00:22:36,300 --> 00:22:37,600 And that's pretty much all it is. 446 00:22:37,640 --> 00:22:39,540 And things are pretty, pretty quiet for a little while. 447 00:22:39,600 --> 00:22:43,500 I would say a good half an hour, hour of kind of people were kind of retweeting here and there. 448 00:22:44,240 --> 00:22:45,040 Funny comments. 449 00:22:45,040 --> 00:22:48,160 Like sometimes some issues are facepalm, egg in the face. 450 00:22:48,580 --> 00:22:50,540 We have accept filtering, but not for post. 451 00:22:50,680 --> 00:22:51,780 I mean, you know, it's ha ha ha. 452 00:22:51,840 --> 00:22:54,940 You know, people are kind of getting it, you know, which I thought was kind of amusing. 453 00:22:56,520 --> 00:23:00,700 So at the same time, you know, things are kind of flaring up inside Iran. 454 00:23:00,900 --> 00:23:01,100 Right. 455 00:23:02,060 --> 00:23:04,480 And, you know, this is from anonymous. 456 00:23:05,200 --> 00:23:08,940 Solaris, meet 4chan, 4chan, Solaris, 4chan. 457 00:23:08,940 --> 00:23:12,820 Oh, hi, Solaris, meet Scientology, Scientology, Scientology. 458 00:23:15,860 --> 00:23:18,860 So, yeah, good luck. 459 00:23:19,540 --> 00:23:20,980 So it also hit Slashdot. 460 00:23:21,700 --> 00:23:23,660 And this is kind of where it really exploded. 461 00:23:24,580 --> 00:23:26,000 I don't know who submitted it, but. 462 00:23:27,260 --> 00:23:31,760 So interestingly enough, I don't think the Slashdot guys actually post very much anymore, but they did post on this one. 463 00:23:31,840 --> 00:23:34,540 They're like, you know, please don't try it on us, but we think we're not vulnerable. 464 00:23:35,100 --> 00:23:40,260 So I think people were it's kind of a little fear factor, even though we weren't really advertising it as a horrible, horrible thing. 465 00:23:40,320 --> 00:23:41,780 It's just, hey, why don't we fix this issue? 466 00:23:42,580 --> 00:23:44,820 So then Anonymous on their own. 467 00:23:46,160 --> 00:23:53,220 WhyWeProtest.net website started mentioning it, you know, do not use conventional DDoS attacks against Iranian targets as this wastes bandwidth needed for all Iranians. 468 00:23:53,260 --> 00:23:56,720 Rather use something like Solaris, which can take down HP servers without using much bandwidth at all. 469 00:24:00,580 --> 00:24:03,920 This code just hit the wild and should be quite effective as Slashdot did earlier today. 470 00:24:04,120 --> 00:24:08,640 Brand new technique tool to bring down on the DDoS sides without running bandwidth for Iranian rebels, blah, blah, blah. 471 00:24:09,560 --> 00:24:10,400 Great. OK. 472 00:24:11,800 --> 00:24:14,420 So then there starts kind of gets another 473 00:24:15,040 --> 00:24:17,500 question on Twitter. Solaris is an interesting DDoS attack package. 474 00:24:17,600 --> 00:24:19,700 It might be useful for Iranian elections without slowing traffic. 475 00:24:20,500 --> 00:24:23,820 Hey, Arsnake, just started using Solaris to attack Leader.ir. 476 00:24:26,260 --> 00:24:26,820 Great. 477 00:24:28,260 --> 00:24:30,180 And stuff I can't read. 478 00:24:30,480 --> 00:24:37,680 And 42 pages later, I think we have about 30,000 downloads from our Web page. 479 00:24:38,040 --> 00:24:40,280 Six, seven thousand downloads from Millworm. 480 00:24:40,900 --> 00:24:41,980 It's I mean, 481 00:24:42,620 --> 00:24:44,680 I have no idea how many places 482 00:24:45,040 --> 00:24:45,980 have been attacked since then. 483 00:24:48,440 --> 00:24:49,160 So, yeah. 484 00:24:57,780 --> 00:25:01,580 So there's a lot of pages that a lot of different web servers that are affected, 485 00:25:01,820 --> 00:25:03,540 some WAFs, some kind of interesting stuff. 486 00:25:03,760 --> 00:25:05,700 But really, I mean, Apache is the big boy, right? 487 00:25:05,820 --> 00:25:07,860 I mean, I think somebody said, you know, 488 00:25:07,900 --> 00:25:09,860 it's great that WebSense you can take down the block pages. 489 00:25:10,100 --> 00:25:13,120 I mean, I'm sure people will find uses for all for a number of different stuff. 490 00:25:13,240 --> 00:25:14,420 And incidentally, this technique 491 00:25:15,040 --> 00:25:19,960 is it can be easily echoed into FTP and send mail and a bunch of other protocols 492 00:25:19,960 --> 00:25:21,600 that also have sort of similar issues. 493 00:25:22,500 --> 00:25:26,460 Internet Storm Center did three different posts on this. 494 00:25:26,620 --> 00:25:29,640 And incidentally, they said that the threat level was green. 495 00:25:30,400 --> 00:25:34,520 So everything's cool on the Internet, even though an entire country is going offline. 496 00:25:36,440 --> 00:25:39,860 It's like, OK, I have a feeling if that were happening in the United States, 497 00:25:39,940 --> 00:25:42,720 that would not be green, but that's just a wild guess. 498 00:25:43,760 --> 00:25:44,900 So other attacks. 499 00:25:45,040 --> 00:25:47,900 You know, people like, who the fuck is blah, blah, blah. 500 00:25:48,060 --> 00:25:49,860 Who you are, I'm going to kill you, blah, blah, blah. 501 00:25:50,320 --> 00:25:52,380 And and it turns out that it's it's low. 502 00:25:52,500 --> 00:25:53,440 I'm sorry about that. 503 00:25:54,360 --> 00:25:56,900 A friend of mine like, oh, the CEO mentioned 504 00:25:56,900 --> 00:26:00,600 slow low or something was responsible for one of his tax. 505 00:26:01,920 --> 00:26:04,760 You know, this guy said the IAS was seemed to be vulnerable, 506 00:26:05,000 --> 00:26:07,520 which it's not we're not in any our tests that we did. 507 00:26:07,620 --> 00:26:09,940 So apparently other people getting hit by it. 508 00:26:09,960 --> 00:26:11,680 I have a whole bunch of other examples. 509 00:26:11,820 --> 00:26:13,780 I just I need to kind of run through this. 510 00:26:13,780 --> 00:26:16,760 So Apache, someone issued a bug. 511 00:26:16,900 --> 00:26:21,400 I don't even know who it was and said that was said, you know, this is a problem. 512 00:26:21,480 --> 00:26:22,100 We should go fix it. 513 00:26:22,180 --> 00:26:25,020 But it was like immediately marked as resolved and invalid. 514 00:26:25,220 --> 00:26:26,560 So not a problem. 515 00:26:26,660 --> 00:26:27,840 We're writing this one off. 516 00:26:28,420 --> 00:26:30,960 And then on their own private mailing lists, 517 00:26:31,160 --> 00:26:33,520 they're saying we all know our architecture is wrong. 518 00:26:37,700 --> 00:26:42,720 And they have a wiki page for it now that says it has drawn attention to a significant weakness 519 00:26:42,720 --> 00:26:43,760 in Apache HVD. 520 00:26:44,480 --> 00:26:45,120 All right. 521 00:26:45,200 --> 00:26:48,480 So I don't see how those three things all line up with one another. 522 00:26:48,680 --> 00:26:48,780 But 523 00:26:50,360 --> 00:26:53,260 so there's a website, Gerdeb.ir, 524 00:26:53,920 --> 00:26:56,480 which has a bunch of Iranian rebels on it 525 00:26:57,160 --> 00:27:00,080 with a bunch of circles over their faces saying, you know, if you have any information 526 00:27:00,080 --> 00:27:02,320 about them, you know, please contact us. 527 00:27:02,760 --> 00:27:03,240 So 528 00:27:04,300 --> 00:27:06,180 that's obviously a problem for people living there. 529 00:27:06,280 --> 00:27:08,540 So someone created a EXE version 530 00:27:08,540 --> 00:27:11,100 called Cyberware for Iran. 531 00:27:11,980 --> 00:27:16,840 It's a Q-Solaris, I don't know, I think someone just ported it over to EXE. 532 00:27:16,900 --> 00:27:21,040 If you feel like downloading an EXE and running it and it's a denial of service tool, go right ahead. 533 00:27:23,260 --> 00:27:23,960 Good luck. 534 00:27:24,520 --> 00:27:29,600 So there's a Python version now, a PHP version, that questionable EXE version. 535 00:27:29,820 --> 00:27:32,720 I heard there's another one called SlugSend that's been out there for a while. 536 00:27:33,540 --> 00:27:38,040 And I actually think there's another Ruby version that just got released. 537 00:27:38,140 --> 00:27:39,100 Someone just mentioned it. 538 00:27:39,980 --> 00:27:40,460 So. 539 00:27:41,100 --> 00:27:41,920 And there might be more. 540 00:27:42,120 --> 00:27:43,980 I'm sure there's personal implementations as well. 541 00:27:45,120 --> 00:27:46,800 So Microsoft got in on the action. 542 00:27:47,060 --> 00:27:50,520 This is a must read if you use Apache to protect yourself against SlugSolaris. 543 00:27:50,960 --> 00:27:52,360 From Michael Howard, there's CISO. 544 00:27:52,780 --> 00:27:55,420 All right. I think ISS or 545 00:27:55,420 --> 00:27:58,280 IIS sales guys probably made quite a hit off of this, right? 546 00:28:00,860 --> 00:28:01,740 So mitigating it. 547 00:28:01,860 --> 00:28:03,640 So there's a bunch of different ways to mitigate this. 548 00:28:04,240 --> 00:28:06,640 You know, one, you could use a different web server, 549 00:28:06,720 --> 00:28:08,560 which is pretty scary because now you need to recode everything. 550 00:28:09,660 --> 00:28:10,860 You could use a proxy. 551 00:28:11,100 --> 00:28:12,020 Maybe as a worker pool model. 552 00:28:12,220 --> 00:28:14,660 But that means you need to put something in line and trust that it also doesn't 553 00:28:14,660 --> 00:28:17,740 have its own issues or use a firewall, which could create other types of denial 554 00:28:17,740 --> 00:28:20,920 service because now you're sending, you know, spoof, send flood or whatever. 555 00:28:21,080 --> 00:28:22,700 And now it's now taken down in a different way. 556 00:28:22,960 --> 00:28:27,140 You can use this mod anti-Loris, mod no-Loris or user MPM. 557 00:28:27,200 --> 00:28:28,440 I've heard all of these things work. 558 00:28:29,000 --> 00:28:32,780 One of my favorite ones is this guy is one of the developers. 559 00:28:32,820 --> 00:28:36,620 And he said, oh, a linear time search for each new connection on SHM 560 00:28:36,620 --> 00:28:40,360 signage will be modified in place by another process without locking. 561 00:28:40,460 --> 00:28:40,860 Awesome. 562 00:28:41,100 --> 00:28:42,000 What could possibly go wrong? 563 00:28:42,080 --> 00:28:42,440 Ship it. 564 00:28:44,300 --> 00:28:45,380 That's a race condition, everyone. 565 00:28:45,540 --> 00:28:45,920 That's bad. 566 00:28:47,240 --> 00:28:50,980 And then lastly, you know, Apache can fix the problem because that I mean, 567 00:28:51,000 --> 00:28:52,660 that seems like the most easy for me, right? 568 00:28:52,760 --> 00:28:54,940 If I don't have to do anything, I mean, IS isn't vulnerable. 569 00:28:55,060 --> 00:28:56,240 Why not? Why not? Why not? 570 00:28:56,300 --> 00:28:57,440 Apache seems good for me. 571 00:28:58,280 --> 00:29:00,340 So there's a whole bunch of improvements to Tor. 572 00:29:02,060 --> 00:29:02,840 I'm sorry, just a little. 573 00:29:02,880 --> 00:29:04,740 You could add Tor into it and normally 574 00:29:05,280 --> 00:29:08,340 putting it through a Tor node really wouldn't give you much lift. 575 00:29:08,440 --> 00:29:10,760 But in this case it does, since it doesn't need a lot of bandwidth. 576 00:29:11,100 --> 00:29:13,260 Normally, you don't want to do anything to slow down your DOS attack. 577 00:29:13,420 --> 00:29:15,920 But in this case, it really doesn't matter because it's not a very fast attack anyway. 578 00:29:17,560 --> 00:29:20,500 Proxy support, like I was mentioning earlier, so I can proxy through slow. 579 00:29:20,580 --> 00:29:23,300 So I'm the I'm the only guy at a very, very large table. 580 00:29:23,420 --> 00:29:25,080 You know, as a great chicken, you know, 581 00:29:27,340 --> 00:29:30,480 the ubiquitous obvious next step is to turn it into distributed version, 582 00:29:30,660 --> 00:29:33,680 which I will never do, you can make it configurable, 583 00:29:34,200 --> 00:29:37,780 have a user agent that's configurable and so on, which is I mean, it's already 584 00:29:37,780 --> 00:29:40,260 open source, you can just modify it in place anyway. 585 00:29:40,300 --> 00:29:41,080 But, you know, it might make it. 586 00:29:41,100 --> 00:29:41,740 Easier for somebody. 587 00:29:42,660 --> 00:29:45,220 There's a Web page I found that it's actually predates the Loris 588 00:29:45,220 --> 00:29:47,300 with a whole bunch of different variants of attacks. 589 00:29:48,060 --> 00:29:51,880 So I could add a whole bunch of different attacks in there, but I'm 590 00:29:52,380 --> 00:29:55,560 probably never going to do any of these things simply because I think the point's been made. 591 00:29:55,640 --> 00:29:58,260 I think the real thing is that Apache just needs to fix this. 592 00:29:59,180 --> 00:29:59,540 But 593 00:30:01,100 --> 00:30:03,020 ultimately, I just hope Hezbollah doesn't kill me. 594 00:30:04,600 --> 00:30:05,180 Thanks, everybody. 595 00:30:16,640 --> 00:30:17,500 Well, that's great. 596 00:30:17,680 --> 00:30:19,180 You know, I had no idea about any of that. 597 00:30:19,500 --> 00:30:24,720 Just Fabian Rodriguez came and took one of my classes and he told me this new slow Loris thing was great. 598 00:30:26,160 --> 00:30:27,720 So I decided to try it out. 599 00:30:27,840 --> 00:30:30,440 By the way, my demo didn't work earlier, right? 600 00:30:31,120 --> 00:30:33,600 That's because I forgot I left slow Loris on. 601 00:30:37,480 --> 00:30:41,000 And it was killing my web server, restarting it did no good. 602 00:30:42,700 --> 00:30:43,180 Duh. 603 00:30:43,500 --> 00:30:47,660 Anyway, so it's off right now. 604 00:30:49,260 --> 00:30:51,340 OK, so I got a Web site here. 605 00:30:51,500 --> 00:30:53,400 I can refresh it. Blam. 606 00:30:53,420 --> 00:30:55,320 That Web site is on this Windows host. 607 00:30:55,520 --> 00:30:56,400 It's the Apache server. 608 00:30:56,540 --> 00:30:57,980 The Linux is attacking it. 609 00:30:58,100 --> 00:31:00,860 And if I attack it with slow Loris here, 610 00:31:03,540 --> 00:31:04,440 it's off. 611 00:31:07,340 --> 00:31:09,560 And but what I thought is even cooler 612 00:31:09,560 --> 00:31:11,080 is if I stop it, 613 00:31:11,100 --> 00:31:12,460 if I stop attacking it with slow Loris. 614 00:31:15,400 --> 00:31:15,960 It's back. 615 00:31:17,140 --> 00:31:20,740 Now, this is not that this is beautiful, and that's why I love this. 616 00:31:20,800 --> 00:31:23,940 I mean, I'm not really interested in taking down any websites or promoting any crime or anything. 617 00:31:24,220 --> 00:31:25,860 I'm trying to teach people how to do networking. 618 00:31:26,120 --> 00:31:29,040 That was my primary interest in all this hacking stuff because it's exciting. 619 00:31:29,160 --> 00:31:31,200 It makes students come to class and do their homework and stuff. 620 00:31:31,360 --> 00:31:32,280 I mean, people here, 621 00:31:33,380 --> 00:31:35,940 people here love this stuff so much you can't make them stop. 622 00:31:36,200 --> 00:31:38,280 You're going to throw them in jail and they still won't stop hacking. 623 00:31:38,480 --> 00:31:39,340 And I said, that's what I want. 624 00:31:39,400 --> 00:31:40,940 I want my students to have that much desire. 625 00:31:41,100 --> 00:31:42,120 They're going to do their homework so. 626 00:31:43,880 --> 00:31:47,100 So I try to teach them boring stuff like the OSI model. 627 00:31:47,240 --> 00:31:47,480 Right. 628 00:31:48,560 --> 00:31:50,240 But now this is the point. 629 00:31:50,340 --> 00:31:51,660 Layer one attack, right? 630 00:31:51,740 --> 00:31:52,460 You cut a cable. 631 00:31:54,120 --> 00:31:56,920 That's that's the most common problem, right? 632 00:31:59,540 --> 00:32:02,140 Then you got layer four, layer four. 633 00:32:02,540 --> 00:32:04,500 Layer four is the old fashioned sin flood. 634 00:32:04,660 --> 00:32:04,820 Right. 635 00:32:04,880 --> 00:32:08,020 You're just going to flood the packet with flood the network with sin packets. 636 00:32:08,240 --> 00:32:10,400 Every sin that comes in forces 637 00:32:10,400 --> 00:32:14,920 forces the server to pump out a sin act and then wait for an act that's coming. 638 00:32:15,220 --> 00:32:18,400 And depending on which type of server software you're using, 639 00:32:18,560 --> 00:32:21,380 it has different ways of remembering that there's one coming. 640 00:32:21,500 --> 00:32:24,040 But anyway, it has to do some extra work to wait for that. 641 00:32:24,200 --> 00:32:26,900 And so that's more effective than just sending in the same number of pings. 642 00:32:27,120 --> 00:32:30,440 But it takes a lot of packets to bring down a server because you're at layer four. 643 00:32:30,960 --> 00:32:35,480 Then I read about a company called Hactic doing a penetration test, I think, in Israel. 644 00:32:35,660 --> 00:32:40,160 And they found that if you targeted your attacks at layer seven, you could bring down 645 00:32:40,160 --> 00:32:44,000 a website with almost no bandwidth because instead of just flooding a network 646 00:32:44,000 --> 00:32:47,880 with useless traffic, you hunt on their website and find what will really hurt them. 647 00:32:48,000 --> 00:32:51,820 Like you find their search engine and you make a short search that has 10,000 results. 648 00:32:52,140 --> 00:32:55,940 Then you send that every second and you have to send a little bit and they have 649 00:32:55,940 --> 00:32:59,040 to do a lot of work and they found they could bring down almost anything on their 650 00:32:59,040 --> 00:33:01,820 target with three laptops with DSL connections. 651 00:33:02,060 --> 00:33:07,040 You don't need a botnet, but you have to customize the exploit to this website. 652 00:33:07,220 --> 00:33:08,140 And that's a lot of work. 653 00:33:08,220 --> 00:33:09,600 And this is the awesome tool. 654 00:33:10,160 --> 00:33:11,440 You don't have to customize it. 655 00:33:11,560 --> 00:33:15,020 It works without any knowledge of the website and it works at layer seven. 656 00:33:15,560 --> 00:33:19,100 So it wastes something they don't have much of at the server and you don't have 657 00:33:19,100 --> 00:33:22,420 to pump out any time. So with a 56K modem, you can take down a real website. 658 00:33:23,260 --> 00:33:24,600 Anyway, so I thought that's cool. 659 00:33:24,920 --> 00:33:25,880 That gets their attention. 660 00:33:26,360 --> 00:33:30,280 And anyway, so if you want to do it, some people got printed handouts. 661 00:33:30,620 --> 00:33:31,940 It's all on my website. 662 00:33:32,920 --> 00:33:36,640 This is how you if you want to do exactly I've got instructions just step by step 663 00:33:36,640 --> 00:33:39,680 showing you exactly what to download, what command to put in to do it my way, 664 00:33:40,160 --> 00:33:42,200 which is on Ubuntu Linux, a virtual machine on Windows. 665 00:33:42,400 --> 00:33:43,640 But if you have some other kind of Linux 666 00:33:44,040 --> 00:33:48,480 or indeed a Linux target as well as a Linux attacker, that would be fine. 667 00:33:50,100 --> 00:33:54,500 And since, as I hoped, we are finishing up early, we will have time to help people 668 00:33:54,500 --> 00:33:57,580 do it and they're going to move me to a breakout room, which is one or three 669 00:33:58,060 --> 00:34:01,620 in a few minutes here. And if anybody wants to set this thing up or you want to 670 00:34:01,620 --> 00:34:04,340 help or you want to talk about anything, you can come meet me there. 671 00:34:05,220 --> 00:34:06,600 So we have plenty of time for questions. 672 00:34:06,780 --> 00:34:08,680 You've got a microphone, too, right? So 673 00:34:08,680 --> 00:34:12,880 so I think we have like at least 10 minutes left for questions, even like 20 minutes. 674 00:34:13,040 --> 00:34:13,900 So, yeah, go ahead. 675 00:34:26,060 --> 00:34:29,640 Oh, yeah, I did, but it even dropped before that because everyone was trying. 676 00:34:29,800 --> 00:34:33,580 I'm sorry. He said, did I see the the traffic drop 677 00:34:33,580 --> 00:34:37,280 after they stopped using the other tool and started using a slow loris? 678 00:34:37,340 --> 00:34:38,540 Well, slow loris doesn't. 679 00:34:38,680 --> 00:34:40,540 Send really that much traffic at all. 680 00:34:41,000 --> 00:34:44,740 So there would have been really very, very little, if any sort of spike. 681 00:34:44,860 --> 00:34:46,140 But it definitely dropped significantly 682 00:34:46,140 --> 00:34:49,060 after they stopped doing the other get request flood stuff. 683 00:34:51,380 --> 00:34:53,640 The others out there. There we go. 684 00:34:54,160 --> 00:34:56,060 Did anyone try to slow loris your site? 685 00:34:57,540 --> 00:34:58,960 I'm sure they did. 686 00:34:59,080 --> 00:35:00,120 I'm positive they did. 687 00:35:01,460 --> 00:35:03,200 But so so why didn't they make it? 688 00:35:03,260 --> 00:35:03,880 Are you on IIS? 689 00:35:04,100 --> 00:35:06,460 I don't talk about my own security anymore. 690 00:35:08,680 --> 00:35:09,460 I'm a smart man. 691 00:35:10,960 --> 00:35:13,180 Did the Iranian government contact you? 692 00:35:13,620 --> 00:35:15,620 The Iranian government did not contact me, 693 00:35:15,680 --> 00:35:17,760 but I'm sure they will make contact any minute here. 694 00:35:21,660 --> 00:35:23,580 You see a laser pointer at me. 695 00:35:23,620 --> 00:35:24,740 Just tell me to duck. 696 00:35:29,280 --> 00:35:30,900 Well, I'm not seeing any more questions. 697 00:35:31,580 --> 00:35:32,900 I guess we can end early. 698 00:35:33,140 --> 00:35:34,160 That's all right. OK.