1 00:00:00,000 --> 00:00:05,740 So this is a cloud computing weapon of mass destruction. If 2 00:00:05,740 --> 00:00:13,800 this isn't the right talk for you, the door is that way. I'm 3 00:00:13,800 --> 00:00:17,840 David Bryan, technology enthusiast, hacker 4 00:00:17,840 --> 00:00:22,840 extraordinaire, security consultant. I also help run the 5 00:00:22,840 --> 00:00:26,460 network at DEF CON and do all sorts of fun things with OWASP 6 00:00:26,460 --> 00:00:30,600 and DEF CON groups and whatnot. How many people here are part of 7 00:00:30,600 --> 00:00:34,240 a DEF CON group? Yes? No? You should start one in your city. 8 00:00:34,480 --> 00:00:37,860 It's fun. Get together and meet and talk about things like this 9 00:00:37,860 --> 00:00:43,180 on a regular basis. Hi, I'm Mike Anderson and if the lack of 10 00:00:43,180 --> 00:00:45,940 information in my bio hasn't clued you off, I'm new. This is 11 00:00:45,940 --> 00:00:48,840 my first DEF CON and I've been at a company called NetSpy for 12 00:00:48,840 --> 00:00:56,440 just a year now. This is my company, NetSpy. We do a lot of 13 00:00:56,460 --> 00:00:59,060 different stuff but we kind of got to keep this presentation 14 00:00:59,060 --> 00:01:03,540 pretty short so I'm going to breeze through it. We do all 15 00:01:03,540 --> 00:01:05,960 sorts of vulnerability assessment, pen testing, code 16 00:01:05,960 --> 00:01:10,100 reviews. Next slide. All right. Does everybody know what the 17 00:01:10,100 --> 00:01:15,320 cloud is? Custom server images, central storage, all sorts of 18 00:01:15,320 --> 00:01:19,040 fun things. No physical systems to worry about. Have anybody had 19 00:01:19,040 --> 00:01:21,640 problems with power in their data center? Has anybody had 20 00:01:21,640 --> 00:01:24,340 problems with cooling in their data center? I think we all have. 21 00:01:24,640 --> 00:01:26,300 This is kind of a nice environment because you don't 22 00:01:26,300 --> 00:01:28,000 have to worry about that. In fact, you don't have to pay 23 00:01:28,000 --> 00:01:34,160 minions to manage it. You just deploy machines. It has custom 24 00:01:34,160 --> 00:01:37,580 APIs which you can then go in and manage your storage, manage 25 00:01:37,580 --> 00:01:41,140 your machines, deploy new machines, ramp up machines as 26 00:01:41,140 --> 00:01:47,900 your load increases, that kind of thing. Storage. It also has a 27 00:01:47,900 --> 00:01:50,380 queuing system where you can send a shitload of messages into 28 00:01:50,380 --> 00:01:52,400 it and it will parse them out and send them to you in nice 29 00:01:52,820 --> 00:01:56,240 pretty timing format and all that fun stuff. There's more seats up 30 00:01:56,300 --> 00:01:58,880 in front here, by the way. There's like five seats up in the 31 00:01:58,880 --> 00:02:02,460 front here and there's like ten seats over here. So keep coming 32 00:02:02,460 --> 00:02:09,960 up. You're going to start a brawl, man. All right. So what 33 00:02:09,960 --> 00:02:13,100 can I do in the cloud? Obviously scale large, scale and deploy 34 00:02:13,100 --> 00:02:19,020 large environments. Can it get rain? Maybe. It's a cloud, 35 00:02:19,160 --> 00:02:22,920 right? That's what we're here to talk about. You can move your 36 00:02:22,920 --> 00:02:26,280 servers very quickly from the U.K. to Singapore. I don't know if 37 00:02:26,300 --> 00:02:29,700 you're in the U.K. or east and west across Americas. You can 38 00:02:29,700 --> 00:02:33,060 have large amounts of bandwidth just at your hand or at your whim. 39 00:02:33,220 --> 00:02:39,340 It's kind of nice. All right. So what's required? All you need 40 00:02:39,340 --> 00:02:42,580 to start an account with Amazon EC2, which is the environment we 41 00:02:42,580 --> 00:02:46,380 did our tests on, is an e-mail address, a credit card, and you 42 00:02:46,380 --> 00:02:50,400 need to look at an API. There's no contact information. There's no 43 00:02:50,840 --> 00:02:53,160 contract. They don't try and figure out who you actually are. 44 00:02:53,380 --> 00:02:55,460 It's just sign up and you're good to go. 45 00:02:56,320 --> 00:02:58,940 I mean, there is a terms of service that you have to hit 46 00:02:58,940 --> 00:03:03,820 accept on. Click, right? There's no signing. There's no nothing. 47 00:03:03,980 --> 00:03:06,760 There's a EULA. Yeah, EULA, basically. Everybody knows 48 00:03:06,760 --> 00:03:10,840 that EULA is a rock solid, right? All right. So our 49 00:03:10,840 --> 00:03:14,460 question is, is it a useful tool or a weapon of mass destruction? 50 00:03:17,540 --> 00:03:21,740 So in the cloud computing weapon of mass destruction, basically 51 00:03:21,740 --> 00:03:23,780 this is what we're going to talk about, sort of an outline, 52 00:03:26,820 --> 00:03:29,700 and we'll also do a demo if we can try and get the presentation 53 00:03:29,700 --> 00:03:34,820 in before the end of the hour here. So some of the threat 54 00:03:34,820 --> 00:03:38,800 agents. So a threat agent can be anyone from a business rival, 55 00:03:39,020 --> 00:03:42,920 organized crime, or foreign powers, a pirate maybe, as the 56 00:03:42,920 --> 00:03:46,220 picture would indicate. And what they're basically in this for is 57 00:03:46,220 --> 00:03:49,180 maybe bragging rights or money and power even. It's become a 58 00:03:49,180 --> 00:03:53,180 serious topic. It's no longer just a game. And here's an 59 00:03:53,180 --> 00:03:55,820 example of a threat agent attacking for money or power, 60 00:03:56,300 --> 00:03:59,580 China. They got owned for political reasons, actually. 61 00:04:01,620 --> 00:04:04,820 So some of the key terms that we're going to talk about in 62 00:04:04,820 --> 00:04:07,620 this talk is DDoS, distributed denial of service attack. How 63 00:04:07,620 --> 00:04:11,460 many people have heard of that? All right. Good. Good. 64 00:04:11,840 --> 00:04:17,180 Fragmentation attacks, yes. A few less. And our tool doesn't 65 00:04:17,180 --> 00:04:19,280 specifically focus on fragmentation attacks. It's 66 00:04:19,280 --> 00:04:23,920 mainly on SIN floods and TCP denial of service type attacks. 67 00:04:24,560 --> 00:04:26,280 And SIN flood, they're pretty much the same thing. They're 68 00:04:26,300 --> 00:04:26,680 pretty much the same thing. All right. Does everybody know what 69 00:04:26,680 --> 00:04:35,240 TCP is? TCP IP? Everybody should raise their hands. All right. 70 00:04:35,300 --> 00:04:38,780 Does everybody know what a command and control is? So in a 71 00:04:38,780 --> 00:04:42,400 typical bot net, you've got a command and control network with 72 00:04:42,400 --> 00:04:46,580 a herder. The herder is, you know, a threat agent, a person 73 00:04:46,980 --> 00:04:52,880 who is actually saying to these bots or zombies, do this. It 74 00:04:52,880 --> 00:04:55,280 takes a long time to gather these machines. I mean, you're 75 00:04:55,280 --> 00:04:56,280 talking months and months and months and months and months. 76 00:04:56,300 --> 00:04:56,620 It takes months and months and months and months and months and 77 00:04:56,620 --> 00:05:00,080 months of painstaking rooting or exploiting Windows-based 78 00:05:00,080 --> 00:05:03,760 machines, trying to get them across. And you're also having to 79 00:05:03,760 --> 00:05:06,360 worry about, you know, is it antivirus enabled? Will it catch 80 00:05:06,360 --> 00:05:11,180 my stuff? Will I, you know, have maybe some sort of a 56K 81 00:05:11,180 --> 00:05:14,780 leased line? Or is it a modem connection that I've now, you 82 00:05:14,780 --> 00:05:16,980 know, basically taken over a computer that has no bandwidth? 83 00:05:17,220 --> 00:05:21,140 Well, that's no good to me as a herder. And what's more, once 84 00:05:21,140 --> 00:05:23,220 you've established a bot net, you still have to pay maintenance 85 00:05:23,220 --> 00:05:25,940 costs. You have to keep ahead of the antivirus researchers. You 86 00:05:25,940 --> 00:05:28,360 have to update it. You have to keep track of all kinds of 87 00:05:28,360 --> 00:05:32,600 different things, which can take a lot of time. And most systems 88 00:05:32,600 --> 00:05:37,780 are Windows. Hmm. So just sort of a diagram of what a typical 89 00:05:37,780 --> 00:05:40,420 command and control would look like, where you've got a herder 90 00:05:40,420 --> 00:05:42,820 in one corner, and then you've got the machines that are 91 00:05:42,820 --> 00:05:47,880 actually attacking the victim. So our concept, we call 92 00:05:47,880 --> 00:05:50,980 Thunderclap. I don't know why we came up with this. I think, 93 00:05:50,980 --> 00:05:54,440 you know, thinking of the cloud and all that fun stuff. But 94 00:05:54,820 --> 00:05:55,920 anyway, basically it's a program that allows you to 95 00:05:55,940 --> 00:06:01,800 run a DDoS attack from the cloud. We've written some modules 96 00:06:01,800 --> 00:06:04,660 that aren't quite fully flushed out to use social media as a 97 00:06:04,660 --> 00:06:09,340 herder for them. But basically the cloud environment allows you 98 00:06:09,340 --> 00:06:12,040 to do rapid deployment of these systems. You can say, all right, 99 00:06:12,640 --> 00:06:15,360 let's deploy ten systems, and boom, they're up and running. 100 00:06:16,300 --> 00:06:20,020 You know, there is some restrictions within the, like, 101 00:06:20,120 --> 00:06:22,660 the Amazon environment for how many machines you can deploy at 102 00:06:22,660 --> 00:06:25,020 a time. However, there's no restrictions for you to be able 103 00:06:25,020 --> 00:06:27,520 to go out and use more credit cards to deploy more 104 00:06:27,520 --> 00:06:31,520 environments. So, and, you know, e-mail addresses, those are 105 00:06:31,520 --> 00:06:39,760 really hard to come by. All right. So, in our environment, 106 00:06:40,100 --> 00:06:43,800 the herder, the command and control network is actually in 107 00:06:43,800 --> 00:06:47,060 the cloud with the botnet. So there's plentiful bandwidth 108 00:06:47,060 --> 00:06:49,780 there, and it can be guided anonymously through social media 109 00:06:49,780 --> 00:06:52,760 or Tor, and it can be really hard to track. Because if you 110 00:06:52,760 --> 00:06:55,000 have these instances in EC2, for example, and you have a lot of 111 00:06:55,020 --> 00:06:57,400 data, for example, when you shut them down, none of your data is 112 00:06:57,400 --> 00:07:01,440 persistent, especially logs. So nobody can come in and check what 113 00:07:01,440 --> 00:07:05,900 you were doing. It's totally gone when you're done. All right. 114 00:07:05,920 --> 00:07:08,980 So, same diagram, except now think of it as all being in the 115 00:07:08,980 --> 00:07:12,960 cloud rather than having devices that are dispersed throughout 116 00:07:12,960 --> 00:07:17,600 the Internet, essentially. Makes it a little easier to track, 117 00:07:17,780 --> 00:07:21,560 maybe a little easier to shut down. But, well, we'll talk 118 00:07:21,560 --> 00:07:25,000 about that later. All right. So attack types, data types, and 119 00:07:25,020 --> 00:07:28,180 TCP full connection, packet fragmentation. Again, we didn't 120 00:07:28,180 --> 00:07:31,080 implement this in the proof of concept. And then TCP SYN flood. 121 00:07:32,020 --> 00:07:35,920 You know, these are really basic attack types. The full 122 00:07:35,920 --> 00:07:40,040 connection would use a lot more resources on our end, so we try 123 00:07:40,040 --> 00:07:42,280 not to use that as much because we're going to have to actually 124 00:07:42,280 --> 00:07:45,300 open up the socket, reserve some memory for the receiving 125 00:07:45,300 --> 00:07:47,980 connection to come back so we can get a SYN, SYNACK, ACT, that 126 00:07:47,980 --> 00:07:51,680 kind of thing. TCP flood, SYN flood, is a little bit more 127 00:07:51,680 --> 00:07:54,800 dangerous and a lot more bandwidth intensive because all 128 00:07:55,020 --> 00:07:56,740 we're doing is sending SYNs and we're not waiting for an ACT. 129 00:07:56,880 --> 00:08:04,340 We're just going along. So using this sort of attack, we can 130 00:08:04,340 --> 00:08:06,560 target a website, server service, doesn't really matter 131 00:08:06,560 --> 00:08:08,580 what it is. And it doesn't matter how many of them there 132 00:08:08,580 --> 00:08:11,040 are. We can target something that's been dispersed. We can 133 00:08:11,040 --> 00:08:14,540 target a centralized resource. And we can make money off of it. 134 00:08:14,680 --> 00:08:16,980 We can basically say we're going to denial of service you for an 135 00:08:16,980 --> 00:08:20,380 hour today unless you pay us $5,000. And if you don't pay us, 136 00:08:20,480 --> 00:08:23,660 it'll be two hours tomorrow. I mean, and if that doesn't work, 137 00:08:23,800 --> 00:08:25,000 we can try and send a SYN to the server. And if you don't pay 138 00:08:25,020 --> 00:08:27,780 us, we can try and sell this service to competing companies. 139 00:08:28,060 --> 00:08:30,960 Like we can come to target and say, hey, do you want us to shut 140 00:08:30,960 --> 00:08:33,760 down Walmart for six hours right after the release of the new 141 00:08:33,760 --> 00:08:36,200 PlayStation? Because we'll do that. And you only have to pay 142 00:08:36,200 --> 00:08:40,880 us $5,000. And you can make tons of money this way probably. I 143 00:08:40,880 --> 00:08:47,460 mean, we haven't tested it. Maybe today we will. Anyway, 144 00:08:47,560 --> 00:08:50,700 so ensure your website is down for good. You know, again, 145 00:08:50,800 --> 00:08:55,000 blackmailing, doing all sorts of low life things. So it's a 146 00:08:55,020 --> 00:08:57,440 good thing. So the outcome is threat agents can hold your 147 00:08:57,440 --> 00:09:01,220 environment hostage. Quite easily, cheaply. And who's 148 00:09:01,220 --> 00:09:05,240 watching again? Now, when I say cheaply, guess how much it cost 149 00:09:05,240 --> 00:09:08,900 for us to run a two-hour test against a site that was six 150 00:09:08,900 --> 00:09:15,420 gigabits of traffic? Six dollars. It was six dollars for us 151 00:09:15,420 --> 00:09:20,680 to kill a website for two hours. That's pretty cheap. I mean, I 152 00:09:20,680 --> 00:09:23,260 think it cost us $30 for the machine time to get everything 153 00:09:23,260 --> 00:09:25,000 prepped and, you know, make sure it was up and running. And, you 154 00:09:25,800 --> 00:09:28,600 know, once that's up and established, it probably would 155 00:09:28,600 --> 00:09:32,120 have cost us all of about $12 to run that whole attack. And we 156 00:09:32,120 --> 00:09:34,900 could, you know, potentially continue to run that day over 157 00:09:34,900 --> 00:09:39,680 day over day. And who's watching again? No one contacted 158 00:09:39,680 --> 00:09:44,080 us. Is anybody from Amazon here? They're not going to raise their 159 00:09:44,080 --> 00:09:49,340 hands. Damn. We found that, you know, we generated a lot of 160 00:09:49,880 --> 00:09:54,440 anomalous traffic and anomalous type situations in the cloud. 161 00:09:54,500 --> 00:09:55,000 And no one is going to raise their hands. So, you know, we 162 00:09:56,780 --> 00:09:59,840 didn't even get an e-mail, which is how you're supposed to 163 00:09:59,840 --> 00:10:06,280 communicate with them, which is a little frustrating. All right. 164 00:10:06,320 --> 00:10:10,860 So Thunderclap. So this is the tool that we built to run this 165 00:10:10,860 --> 00:10:13,460 test. And more or less, all you had to do to make an environment 166 00:10:13,460 --> 00:10:16,520 is get the credit card, sign up, and you have to make a machine 167 00:10:16,520 --> 00:10:19,180 image, which can take a little while. You just have to make 168 00:10:19,180 --> 00:10:22,760 sure that your tool is persistent across reboots. And 169 00:10:22,760 --> 00:10:24,840 then you can just deploy zombies. There's a little drop 170 00:10:25,020 --> 00:10:27,600 down. You can say I want to deploy 10 to one contract or 171 00:10:27,600 --> 00:10:31,960 click yes, I agree again. But it wasn't a huge obstacle for us. 172 00:10:34,600 --> 00:10:37,880 We had to create the tools. And in the development process, I 173 00:10:37,880 --> 00:10:40,420 kind of went through a couple of iterations using Scapey, 174 00:10:40,420 --> 00:10:44,080 HPing, and libdnet. I settled on the last two because Scapey 175 00:10:44,080 --> 00:10:47,020 didn't offer me the same amount of control over setting up and 176 00:10:47,020 --> 00:10:50,400 destroying sockets. And you have to develop attacks. And this is 177 00:10:50,400 --> 00:10:52,660 actually pretty easy because it doesn't take much to do a TCP 178 00:10:52,660 --> 00:10:55,000 full or a send no data attack. It's pretty easy. You have to 179 00:10:55,000 --> 00:10:57,400 just kind of fiddling with it to get the most bang for your 180 00:10:57,400 --> 00:11:01,780 buck. That takes some time. And we developed a randomized 181 00:11:02,180 --> 00:11:07,240 source IP with libdnet as well. However, attacking from the 182 00:11:07,240 --> 00:11:09,820 cloud, everything is NATed. And so as soon as we tried to go 183 00:11:09,820 --> 00:11:13,920 outbound, it would drop it because it wasn't a source NATed 184 00:11:13,920 --> 00:11:17,120 traffic that it would allow out. But you could potentially attack 185 00:11:17,120 --> 00:11:21,480 inside the cloud. And it's untraceable at that point. I 186 00:11:21,480 --> 00:11:24,460 don't know. This 12 address is coming from our networks. How 187 00:11:24,460 --> 00:11:24,860 does that work? 188 00:11:26,920 --> 00:11:31,040 All right. So we're going to try and do a demo. Hopefully the 189 00:11:31,040 --> 00:11:35,080 demo gods will be with us. Basically the site that we're 190 00:11:35,080 --> 00:11:39,420 going to try and attack today is media.defcon.org, which I'm 191 00:11:39,420 --> 00:11:46,720 told has a 100-meg pipe. All right. So we should be able to 192 00:11:46,720 --> 00:11:52,800 just say images. By the way, does anybody see this? No, they 193 00:11:52,800 --> 00:11:53,540 don't. All right. 194 00:11:54,660 --> 00:12:03,440 Okay. Let me give you a window here. Oh, boy. I have to shrink 195 00:12:03,440 --> 00:12:05,320 this some more, I think. Stand by. 196 00:12:32,260 --> 00:12:33,860 All right. So unless, of course, someone has already done 197 00:12:33,860 --> 00:12:39,000 it for us. Oh, wait. No, I'm just kidding. All right. So we 198 00:12:39,000 --> 00:12:42,080 should be able to hit this. And basically we've pre-configured 199 00:12:42,080 --> 00:12:48,800 our environment with the script. The tool is on the CDE. But all 200 00:12:48,800 --> 00:12:52,840 I should have to do is say launch these, launch this image. 201 00:12:55,780 --> 00:13:01,720 Power on. I can launch min servers, max servers. I'm going 202 00:13:01,720 --> 00:13:07,120 to say let's go for eight. So we'll launch eight servers. Hit 203 00:13:07,120 --> 00:13:15,160 launch. I should be able to go to instances. Hasn't anybody 204 00:13:15,160 --> 00:13:19,060 seen the Katy Perry video? California girls, right? So 205 00:13:19,060 --> 00:13:24,520 Minnesota girls. Go check it out. It's our soundtrack. It's our 206 00:13:25,000 --> 00:13:31,020 soundtrack. We'll play it later. All right. So these guys are 207 00:13:31,020 --> 00:13:36,540 starting now. Let's see if they've come up. Come on. 208 00:13:37,100 --> 00:13:40,640 Refresh. Takes a little bit. But so essentially what's 209 00:13:40,640 --> 00:13:43,580 happening now is these machines are booting up. They go out, 210 00:13:43,680 --> 00:13:47,680 they pull the script off of our S3 environment, which the S3 or 211 00:13:47,680 --> 00:13:49,900 the cloud front environment, it's a storage environment, 212 00:13:50,560 --> 00:13:54,800 pulls the script down, starts it up, and then starts a Python 213 00:13:55,000 --> 00:13:58,900 attack thread. And goes and grabs the targets, goes and 214 00:13:58,900 --> 00:14:02,220 grabs the DDoS config off of that environment, and boom, it 215 00:14:02,220 --> 00:14:09,960 just starts spewing packets. I don't know what's going on with 216 00:14:09,960 --> 00:14:19,000 my network connection here. Let's see. I think they might 217 00:14:19,000 --> 00:14:24,840 have. Or our Internet connection is goofy. Is that 100 218 00:14:25,000 --> 00:14:28,580 megabit pipe shared with us? Oh, there we go. So now we got two 219 00:14:28,580 --> 00:14:33,740 running. So these machines are starting up sending 10,000 220 00:14:33,740 --> 00:14:37,060 packets per second. Every five seconds they will send that 221 00:14:37,060 --> 00:14:39,820 traffic and go and check the targets file and go, all right, 222 00:14:39,840 --> 00:14:41,700 do I have more targets to process? Do I have more targets 223 00:14:41,700 --> 00:14:45,680 to process? Did we get the, I don't know if we've done this 224 00:14:45,680 --> 00:14:48,320 yet, but we're going to put these images and the tool up on 225 00:14:49,680 --> 00:14:53,340 SourceForge and allow you guys to basically run the scheme 226 00:14:53,340 --> 00:14:54,980 yourself. Yeah, there's a lot of stuff going on. We're going to 227 00:14:55,000 --> 00:14:59,160 see. There's a zip file on the CD with all this stuff. All right. 228 00:14:59,200 --> 00:15:01,120 So now we've got the instances running. Let's see if we can 229 00:15:01,120 --> 00:15:11,280 get to this. Hmm, it's not responding. Hmm, I think we 230 00:15:11,280 --> 00:15:19,420 killed it. I'm told this has 100 megabyte or 100 megabit site 231 00:15:19,420 --> 00:15:24,540 link. And it's not responding. Can anybody else confirm? 232 00:15:26,380 --> 00:15:33,020 Just go to media.defcon.org. Oh, it came up. So, again, you 233 00:15:33,020 --> 00:15:36,520 know, this is demo guides may or may not be with us, but, oh. 234 00:15:41,440 --> 00:15:43,580 I can't bring it up on AT&T's network. 235 00:15:44,720 --> 00:15:50,280 Ah, AT&T's network. All right, we're going to launch a couple 236 00:15:50,280 --> 00:15:50,660 more here. 237 00:15:59,440 --> 00:16:01,440 We should see how many it will let us bring up. 238 00:16:03,280 --> 00:16:15,340 That would be fun. All right. So I'm going to SSHN and just do a 239 00:16:15,340 --> 00:16:19,480 quick TCP dump, make sure it's going. All right. 240 00:16:45,020 --> 00:16:45,440 Here we go. 241 00:16:45,440 --> 00:16:53,300 Bear with us. Yeah, it's going. So if we go, here, I'll show you. 242 00:16:55,000 --> 00:17:04,200 I don't know if anybody can see that, but. So there's all the 243 00:17:04,200 --> 00:17:11,680 AT traffic. It's just going. Does anyone have some response 244 00:17:11,680 --> 00:17:17,860 times? So what we can do is we can launch more machines. 245 00:17:19,000 --> 00:17:19,320 . 246 00:17:25,380 --> 00:17:25,700 . 247 00:17:25,700 --> 00:17:27,780 Ten seconds? All right. I think we're about to see how 248 00:17:27,780 --> 00:17:29,180 many they'll let us put up at once. 249 00:17:34,640 --> 00:17:37,920 I don't know. It might cost us $50 today. We'll see. 250 00:17:43,520 --> 00:17:45,780 Well. That's what we were told. We never had to test it. 251 00:17:45,960 --> 00:17:47,440 Yeah, we didn't have to. We only had to bring up three 252 00:17:47,860 --> 00:17:49,320 machines, actually, to bring down the one site that we were 253 00:17:49,320 --> 00:17:57,360 doing. So now we're at 20 machines pending, hopefully, 254 00:17:57,520 --> 00:18:04,920 shortly. Yeah, I don't think it does. I think Jeff has it all 255 00:18:04,920 --> 00:18:09,280 turned off. That was specifically for our presentation. 256 00:18:09,820 --> 00:18:12,960 Yeah. Oh, where's my mouse? There it is. 257 00:18:19,460 --> 00:18:20,980 It's taking a lot longer to load, though. 258 00:18:27,440 --> 00:18:29,480 We're on port 80, so it's not even doing SSL. 259 00:18:29,580 --> 00:18:36,100 Yeah, we're just doing port 80. Well, it should be the same 260 00:18:36,740 --> 00:18:40,540 instance of the server service, right? 443 and 80, I would 261 00:18:40,540 --> 00:18:40,920 assume. 262 00:18:41,160 --> 00:18:41,480 . 263 00:18:47,960 --> 00:18:50,340 That would probably run into the same problem our TCP full 264 00:18:50,340 --> 00:18:53,360 connection runs into, where we'd have to encrypt and decrypt the 265 00:18:53,360 --> 00:18:56,560 traffic, as well. All right. Let's do another 10. 266 00:18:56,660 --> 00:18:57,820 We'll see how many more we can go here. 267 00:19:01,460 --> 00:19:02,720 I hope this is the right IP. 268 00:19:03,500 --> 00:19:03,860 . 269 00:19:06,140 --> 00:19:09,840 Oh, there we go. So I can only do 20 instances at a time. 270 00:19:09,940 --> 00:19:11,400 All right. Anybody got another credit card? 271 00:19:11,840 --> 00:19:12,200 . 272 00:19:14,140 --> 00:19:16,320 I think there's a thousand of them in this room. 273 00:19:16,740 --> 00:19:17,100 So. 274 00:19:17,200 --> 00:19:17,520 . 275 00:19:17,520 --> 00:19:17,840 . 276 00:19:19,280 --> 00:19:19,740 . 277 00:19:19,740 --> 00:19:23,460 All right. We'll let those go, but we can kind of continue on 278 00:19:23,460 --> 00:19:24,240 with our talk here. 279 00:19:26,140 --> 00:19:26,600 . 280 00:19:30,200 --> 00:19:30,660 . 281 00:19:30,660 --> 00:19:31,800 Ah, thank you, PowerPoint. 282 00:19:34,540 --> 00:19:35,000 . 283 00:19:39,440 --> 00:19:39,900 . 284 00:19:39,900 --> 00:19:40,200 . 285 00:19:40,200 --> 00:19:40,260 . 286 00:19:41,180 --> 00:19:41,640 Okay. 287 00:19:43,940 --> 00:19:47,640 So then our step three here is profit. And it's a series of 288 00:19:47,640 --> 00:19:51,760 tubes. So you can only fit so much through them at one time, is the idea. 289 00:19:52,760 --> 00:19:57,620 This is the inner workings of Thunderclap. We just put in a sort of diagram here because I didn't feel like 290 00:19:57,620 --> 00:20:01,980 putting all the code up and explaining it. But it starts, reads a config, and reads targets. 291 00:20:03,160 --> 00:20:04,300 Goes on to the attack phase. 292 00:20:06,600 --> 00:20:12,900 And here it picks the entire list of targets and spawns a thread to deal each target its specific attack 293 00:20:12,900 --> 00:20:17,440 type, which you can specify in the file. And it'll run that for a certain amount of time. 294 00:20:17,500 --> 00:20:17,620 . 295 00:20:17,640 --> 00:20:19,320 And you can specify the amount of time, too. 296 00:20:19,800 --> 00:20:23,700 So you can have each round for the attack take a minute or 30 seconds or one second. 297 00:20:23,900 --> 00:20:33,080 So if we really wanted to, we could probably tone these VMs up and shorten their attack time and increase the amount of bandwidth they're supposed to send in that time. 298 00:20:33,360 --> 00:20:33,700 . 299 00:20:35,300 --> 00:20:37,680 Then it checks to see if it's supposed to be running as a daemon. 300 00:20:37,780 --> 00:20:39,360 And if it is, it'll just loop. 301 00:20:39,440 --> 00:20:41,600 It'll keep doing that over and over until you tell it to stop. 302 00:20:42,060 --> 00:20:44,820 Otherwise, it kills all its threads and exits gracefully. 303 00:20:45,040 --> 00:20:47,380 I'm trying to get it so it'll actually shut down the instance. 304 00:20:47,640 --> 00:20:48,040 . 305 00:20:48,040 --> 00:20:51,300 I have a whole bunch of other stuff on my plate, too. 306 00:20:52,120 --> 00:20:54,840 And then we get to the defense and how you can protect yourself. 307 00:20:55,580 --> 00:20:58,780 The most boring slide in this entire presentation. 308 00:20:59,400 --> 00:21:02,220 Does everybody have a CSIRT at their company? 309 00:21:02,980 --> 00:21:05,360 A computer incident security response team? 310 00:21:05,720 --> 00:21:06,240 Yes. 311 00:21:07,080 --> 00:21:08,000 Everybody should. 312 00:21:08,380 --> 00:21:11,440 You should have an incident response procedures, plans, policies. 313 00:21:11,920 --> 00:21:14,240 NIST 861 is a great document to review. 314 00:21:14,240 --> 00:21:25,900 I think the biggest thing that happens is if you get a DDoS attack run against you, if you don't have those policies and procedures in place to be able to respond to that, and the coordination with the other groups within your company. 315 00:21:26,160 --> 00:21:33,320 If you're a very large enterprise, this attack may go on for hours and hours before someone is actually able to respond to it or identifies it. 316 00:21:33,920 --> 00:21:43,060 So that's my sort of, hey, get together, do NIST 861, or at least review it and create your own response procedures. 317 00:21:43,060 --> 00:21:45,120 And then make sure that all the teams coordinate. 318 00:21:45,380 --> 00:21:46,200 That's the biggest thing. 319 00:21:49,160 --> 00:21:51,480 So, there are a lot of great things about cloud computing. 320 00:21:52,500 --> 00:21:53,260 It's fast. 321 00:21:53,480 --> 00:21:54,080 It's super fast. 322 00:21:54,260 --> 00:21:55,860 You can do what you want when you need it. 323 00:21:56,000 --> 00:21:57,160 And it's really cheap. 324 00:21:57,460 --> 00:21:58,140 Super cheap. 325 00:21:58,380 --> 00:22:00,520 You can do what you want no matter what your budget is. 326 00:22:01,320 --> 00:22:03,120 And all it requires is a credit card. 327 00:22:03,220 --> 00:22:05,100 There's literally no barrier of entry. 328 00:22:07,280 --> 00:22:08,600 There are some problems with it. 329 00:22:08,960 --> 00:22:12,460 Unrelated to this, the government can subpoena information on the cloud. 330 00:22:12,640 --> 00:22:13,040 So it's not a big deal. 331 00:22:13,060 --> 00:22:14,320 There's no monitoring or response. 332 00:22:14,700 --> 00:22:16,560 And it allows for quick and nimble server deployment. 333 00:22:16,800 --> 00:22:20,900 Which is a double-edged sword, kind of, when somebody starts using cloud computing for this purpose. 334 00:22:21,680 --> 00:22:26,600 It's a low cost, not only to run your server or your service, but also to run attacks like a denial of service. 335 00:22:26,920 --> 00:22:31,580 And you can use stolen credit cards or other sorts of stolen money to create your environment. 336 00:22:32,000 --> 00:22:33,680 And stolen email addresses? 337 00:22:34,840 --> 00:22:35,320 Right? 338 00:22:35,420 --> 00:22:36,640 Because nobody has those. 339 00:22:38,140 --> 00:22:38,760 All right. 340 00:22:38,760 --> 00:22:46,100 So I guess really kind of what it boils down to is this environment is unmonitored and it's new territory. 341 00:22:46,760 --> 00:22:52,380 As we come to the new territory, it's like a playing field or a walk in the park. 342 00:22:52,500 --> 00:22:55,500 Anybody can come along and do these attacks, run this stuff. 343 00:22:55,740 --> 00:22:58,200 And no one is necessarily going to be the wiser. 344 00:22:58,340 --> 00:22:59,620 At least from what I've seen. 345 00:23:01,100 --> 00:23:05,760 However, I did have a friend of mine who said, oh, you know, I was scanning for port 25 through Amazon. 346 00:23:05,880 --> 00:23:08,660 And I actually got a notice saying, please stop doing this. 347 00:23:08,760 --> 00:23:09,900 That's unauthorized. 348 00:23:10,240 --> 00:23:12,880 But they don't care about all the other ports that are out there. 349 00:23:12,960 --> 00:23:19,300 They just, you know, probably got a nasty email from someone saying, hey, you have spammers in your Amazon environment. 350 00:23:19,440 --> 00:23:20,100 Stop it. 351 00:23:20,640 --> 00:23:21,240 Oh, okay. 352 00:23:25,900 --> 00:23:26,300 Right. 353 00:23:29,380 --> 00:23:31,680 Well, actually, you know what? 354 00:23:31,720 --> 00:23:34,840 So stolen credit cards aren't the only way you can get a credit card. 355 00:23:34,900 --> 00:23:38,740 You can actually walk into a bank, give them cash, and they give you a credit card. 356 00:23:51,440 --> 00:23:51,880 . 357 00:24:01,300 --> 00:24:02,000 Yeah, yeah. 358 00:24:03,600 --> 00:24:08,740 So the comment is, basically, you know, as cloud providers start to realize that they're being frauded by the internet, 359 00:24:08,740 --> 00:24:12,620 they're being frauded by the credit cards that are fraudulent or stolen or whatever because, you know, 360 00:24:12,620 --> 00:24:15,520 they're basically not going to get payment once those accounts come due. 361 00:24:15,820 --> 00:24:19,660 They'll start to actually patrol it and put the kibosh on that kind of activity. 362 00:24:19,800 --> 00:24:20,160 Absolutely. 363 00:24:21,180 --> 00:24:28,500 However, I mean, I could also go create legitimate contracts and have all that fun stuff in place and start to do these attacks. 364 00:24:28,760 --> 00:24:32,200 And they still probably wouldn't, you know, necessarily see that you're doing these attacks. 365 00:24:33,120 --> 00:24:35,560 Again, it's unmonitored from my perspective. 366 00:24:35,560 --> 00:24:43,300 I didn't get an email or get a message saying, hey, we saw a lot of, you know, anomalous TCP 80 SINs without any data behind it. 367 00:24:43,980 --> 00:24:45,360 What are you guys doing in the cloud? 368 00:24:45,660 --> 00:24:49,220 Or we saw you sending information from IPs that we don't own. 369 00:24:49,620 --> 00:24:51,840 Like spoofing the source IPs? 370 00:24:51,940 --> 00:24:57,960 I mean, any IDS sensor, in my opinion, should go, okay, these are my IPs. 371 00:24:57,960 --> 00:25:01,600 If I start to see source IPs in the cloud that aren't mine, that's bad. 372 00:25:01,860 --> 00:25:03,580 That means somebody's doing something weird. 373 00:25:04,780 --> 00:25:05,260 So. 374 00:25:07,400 --> 00:25:07,960 All right. 375 00:25:08,000 --> 00:25:19,040 So I guess in conclusion, you know, unmonitored, as far as, like I said, as far as a lack of IDS or IPs, it does allow for quick and nimble deployments, which is great. 376 00:25:19,540 --> 00:25:22,040 You know, being able to scale up and scale down your environment. 377 00:25:22,180 --> 00:25:27,240 You know, again, we only had to initially deploy three machines to actually DDoS the environment. 378 00:25:27,680 --> 00:25:31,140 But we could have ramped that up to 20 machines going really fast. 379 00:25:31,840 --> 00:25:35,340 And actually the HPing with the dash F, the flood. 380 00:25:35,560 --> 00:25:36,380 Works great. 381 00:25:37,720 --> 00:25:39,200 Just for doing a quick and dirty one. 382 00:25:40,380 --> 00:25:43,660 Of course, it wouldn't allow you to just turn the machines on and they start attacking. 383 00:25:44,000 --> 00:25:44,940 But anyway. 384 00:25:45,680 --> 00:25:47,340 You can reduce your server costs. 385 00:25:47,520 --> 00:25:49,620 Reduce your operational costs. 386 00:25:49,940 --> 00:25:52,960 I mean, if you think about it, you don't have to have people in your data center managing your servers. 387 00:25:54,180 --> 00:25:57,060 However, your data can be subpoenaed without your consent. 388 00:25:57,380 --> 00:25:58,720 Which I think is a really big thing. 389 00:25:59,000 --> 00:26:02,800 So if you do use cloud environments, make sure you have a key. 390 00:26:02,800 --> 00:26:05,680 Or make sure you encrypt the data that you're storing up there. 391 00:26:05,760 --> 00:26:09,960 And that your key is stored offsite at your primary business location. 392 00:26:10,620 --> 00:26:14,980 So that if that data is subpoenaed, they actually have to come and subpoena your company in order to get the key. 393 00:26:20,060 --> 00:26:20,380 Yeah. 394 00:26:25,900 --> 00:26:26,540 Another comment. 395 00:26:26,580 --> 00:26:27,860 You could also keep the key at home. 396 00:26:28,980 --> 00:26:34,560 However, I don't know about accessing that key and monitoring of that key in a home environment. 397 00:26:34,880 --> 00:26:38,200 You know, your kid might find the key and decide to sell it off to some Russian hacker. 398 00:26:39,320 --> 00:26:40,220 I don't know. 399 00:26:41,440 --> 00:26:41,920 All right. 400 00:26:41,980 --> 00:26:43,620 So what about logging? 401 00:26:43,880 --> 00:26:47,400 You know, as soon as these machines are powered off, there's no logs. 402 00:26:47,520 --> 00:26:48,300 There's no trace. 403 00:26:48,420 --> 00:26:50,520 There's no evidence that these machines were running. 404 00:26:50,560 --> 00:26:51,860 At least not from our perspective. 405 00:26:52,040 --> 00:26:53,820 Because they're all running out of memory. 406 00:26:54,400 --> 00:26:56,320 That's the beauty of the cloud environment. 407 00:26:57,860 --> 00:27:00,940 They are applying an image to a base image. 408 00:27:01,240 --> 00:27:04,300 And this allows them to reduce their storage space requirements. 409 00:27:05,900 --> 00:27:09,420 But with that, it's just like running a machine in a RAM disk. 410 00:27:09,640 --> 00:27:11,220 I don't know if anybody's done RAM disks before. 411 00:27:11,420 --> 00:27:15,240 But as soon as you power that machine off, all the contents of that machine are gone. 412 00:27:15,440 --> 00:27:19,520 Unless you, say, write this stuff back to a storage device somewhere. 413 00:27:20,120 --> 00:27:20,600 So. 414 00:27:22,420 --> 00:27:25,680 So we'll be having a Q&A session in room 112 after this. 415 00:27:25,860 --> 00:27:27,640 But before that, we should probably figure out 416 00:27:27,860 --> 00:27:29,280 what the media.defcon.org is doing. 417 00:27:30,360 --> 00:27:31,160 Do we have time? 418 00:27:32,320 --> 00:27:33,000 What's our time? 419 00:27:35,120 --> 00:27:35,840 All right. 420 00:27:36,700 --> 00:27:37,980 Well, no one's telling me, so. 421 00:27:42,980 --> 00:27:45,160 So you can see our attack is still running in the background. 422 00:27:45,960 --> 00:27:46,680 Let's see here. 423 00:27:56,560 --> 00:27:57,640 13-second pings? 424 00:27:58,520 --> 00:27:59,920 Oh, page load? 425 00:28:00,080 --> 00:28:00,380 Okay. 426 00:28:02,200 --> 00:28:03,380 Oh, I see. Yeah, yeah. 427 00:28:09,060 --> 00:28:09,460 HTTP? 428 00:28:14,940 --> 00:28:16,660 We could probably do that. 429 00:28:18,480 --> 00:28:18,920 Let's see. 430 00:28:29,220 --> 00:28:33,740 Well, except the Python script doesn't know how to do SSL. 431 00:28:34,020 --> 00:28:34,800 We could teach it. 432 00:28:34,900 --> 00:28:35,780 Yeah, we could teach it. 433 00:28:35,800 --> 00:28:36,360 It's not that hard. 434 00:28:36,420 --> 00:28:39,220 It's just that it's not configured to do SSL at this time. 435 00:28:42,740 --> 00:28:43,340 Future releases? 436 00:28:43,780 --> 00:28:44,420 Future, yes. 437 00:28:44,480 --> 00:28:44,960 In the future. 438 00:28:46,660 --> 00:28:46,900 All right. 439 00:28:54,420 --> 00:28:57,120 So here's our DDoS config, basically. 440 00:28:58,420 --> 00:28:59,360 I don't think so. 441 00:29:02,540 --> 00:29:05,200 So packets to send should be 10,000 per second. 442 00:29:05,400 --> 00:29:06,440 Number of threads, one. 443 00:29:07,420 --> 00:29:08,840 Let's change the wait time. 444 00:29:09,500 --> 00:29:11,600 Let's go down to three seconds for these guys. 445 00:29:15,480 --> 00:29:16,640 And now we have to go up. 446 00:29:16,660 --> 00:29:17,640 Upload this file. 447 00:29:54,840 --> 00:29:55,760 Give it a moment. 448 00:29:57,600 --> 00:29:59,260 Oh, where's my terminal? 449 00:29:59,500 --> 00:30:00,220 There it is. 450 00:30:03,020 --> 00:30:04,160 Without a lock, it crashes. 451 00:30:04,860 --> 00:30:05,340 Yeah. 452 00:30:13,340 --> 00:30:14,680 We've got 15 minutes left. 453 00:30:19,940 --> 00:30:20,300 Let's see. 454 00:30:20,300 --> 00:30:21,980 That can't be sending that. 455 00:30:22,140 --> 00:30:23,540 Well, maybe it is. 456 00:30:23,560 --> 00:30:23,780 I don't know. 457 00:30:29,660 --> 00:30:30,180 How's it doing? 458 00:30:31,820 --> 00:30:32,960 I don't think it's doing it. 459 00:30:35,240 --> 00:30:36,280 100 megabits is good. 460 00:30:36,720 --> 00:30:37,080 Yeah. 461 00:30:38,160 --> 00:30:40,500 Well, we should be sending a boatload of traffic to it. 462 00:30:40,700 --> 00:30:43,640 But, again, the demo gods may not be with us today. 463 00:30:46,060 --> 00:30:46,460 Yeah. 464 00:30:46,600 --> 00:30:47,380 All right. 465 00:30:47,400 --> 00:30:48,260 Everybody in the room, check. 466 00:30:49,040 --> 00:30:49,840 All right. 467 00:30:49,840 --> 00:30:50,260 Well, thank you. 468 00:30:51,580 --> 00:30:51,980 . 469 00:30:55,300 --> 00:30:55,700 . 470 00:30:55,700 --> 00:30:56,440 . 471 00:30:56,440 --> 00:30:56,520 . 472 00:30:56,520 --> 00:30:57,640 . 473 00:30:57,640 --> 00:30:57,660 .