1 00:00:00,000 --> 00:00:02,680 Okay, so first thing I'm going to do, I'm going to introduce myself. 2 00:00:02,940 --> 00:00:06,260 My name is Marcus Carey, and I'm the community manager, 3 00:00:06,480 --> 00:00:08,440 and I do security research at Rapid7. 4 00:00:09,440 --> 00:00:12,060 And a couple months ago, I started playing around, 5 00:00:12,160 --> 00:00:15,860 actually trying to write stuff, and this was before I joined Rapid7. 6 00:00:15,980 --> 00:00:18,100 I've been in Rapid7 like six months or something now. 7 00:00:18,740 --> 00:00:22,320 Before I started with Rapid7, I started trying to be able to test 8 00:00:23,260 --> 00:00:26,280 network infrastructure devices, and then I got to Rapid7 9 00:00:26,280 --> 00:00:29,740 as a community manager, and I just started to, 10 00:00:29,820 --> 00:00:32,980 I kept on trying to do some of the stuff I was doing before, 11 00:00:33,160 --> 00:00:35,880 and since we do Metasploit at Rapid7, 12 00:00:36,100 --> 00:00:38,800 I started adding stuff to Metasploit. 13 00:00:39,420 --> 00:00:42,780 Real quick background, I was a former U.S. Navy. 14 00:00:43,100 --> 00:00:44,300 I've been all over the world. 15 00:00:44,380 --> 00:00:48,080 I was a CT in the Navy, and I learned a lot of cool stuff there. 16 00:00:48,580 --> 00:00:52,540 Thanks, all those CTs out there, all those ex-Navy guys out there. 17 00:00:53,780 --> 00:00:56,260 So I'm going to introduce my team. 18 00:00:56,260 --> 00:00:57,940 These guys also work for Rapid7. 19 00:00:58,400 --> 00:01:00,940 Real quick, I'm going to let them introduce themselves real quick. 20 00:01:05,640 --> 00:01:07,160 My name is David Rude. 21 00:01:08,120 --> 00:01:10,320 I'm the exploit developer for Metasploit. 22 00:01:11,360 --> 00:01:14,020 Basically, I'm in charge of pretty much every single module 23 00:01:14,020 --> 00:01:15,120 that goes into Metasploit. 24 00:01:15,220 --> 00:01:16,680 I have to do code review of everything. 25 00:01:18,500 --> 00:01:23,440 And my past experience, I've been working in exploit dev 26 00:01:23,440 --> 00:01:26,240 probably for five or six years. 27 00:01:26,260 --> 00:01:31,060 Prior to Metasploit, I worked for iDefense, 28 00:01:31,180 --> 00:01:35,580 doing a lot of zero-day validation and stuff like that. 29 00:01:41,880 --> 00:01:42,520 I'm Will. 30 00:01:42,960 --> 00:01:44,620 I'm a pentester at Rapid7. 31 00:01:44,880 --> 00:01:46,160 Been there about three years. 32 00:01:47,060 --> 00:01:50,520 Do all sorts of pentesting, anything from network pentests, 33 00:01:50,600 --> 00:01:51,400 web app pentests. 34 00:01:51,440 --> 00:01:53,700 I did talk on DDoSing, so we've done a little bit of that. 35 00:01:55,180 --> 00:01:56,240 I'm happy to be here. 36 00:01:59,520 --> 00:02:00,940 Okay, real quick. 37 00:02:01,100 --> 00:02:02,840 So what I'm going to do today, 38 00:02:03,000 --> 00:02:06,420 everything hopefully will be in the trunk within the next 24 hours. 39 00:02:07,400 --> 00:02:07,800 Dave. 40 00:02:10,760 --> 00:02:14,000 So what I'm going to do real quick is I'm going to go a quick little outline. 41 00:02:14,220 --> 00:02:16,940 I know everybody in here may not know what Metasploit is. 42 00:02:17,180 --> 00:02:18,220 There's a lot of people that do. 43 00:02:18,380 --> 00:02:23,760 So be patient with me if I'm going to start off a little bit slow here. 44 00:02:23,880 --> 00:02:26,000 But in the end, we're going to have live demos. 45 00:02:26,240 --> 00:02:29,300 We're going to walk through some code on how we did this. 46 00:02:29,760 --> 00:02:33,380 And we're going to talk about from a pentester's perspective. 47 00:02:33,920 --> 00:02:35,040 Here's the actual outline. 48 00:02:36,200 --> 00:02:39,680 And we're going to just hopefully we'll have fun. 49 00:02:39,740 --> 00:02:41,420 Hopefully you'll learn something. 50 00:02:41,620 --> 00:02:44,580 And after the talk, I'll be over there in the speaker lines 51 00:02:44,580 --> 00:02:49,300 for anybody that wants to beat me up or anything like that or ask questions. 52 00:02:51,220 --> 00:02:55,660 Real quick, Metasploit framework, the Metasploit project was founded 53 00:02:55,660 --> 00:02:56,220 in 2008. 54 00:02:56,240 --> 00:03:02,480 2003 by H.D. Moore, who is the CSO of Rapid7 now. 55 00:03:03,120 --> 00:03:07,480 And so basically, we actually, we kind of, it kind of reminds me 56 00:03:07,480 --> 00:03:10,220 of the kind of like the Sourcefire story, how Sourcefire started up 57 00:03:10,220 --> 00:03:11,460 with an open source tool. 58 00:03:11,740 --> 00:03:18,600 And then we, Metasploit got picked up by Rapid7. 59 00:03:18,860 --> 00:03:20,420 I'm stuttering like a mug up here. 60 00:03:22,800 --> 00:03:25,920 But basically, the Metasploit framework, 61 00:03:25,920 --> 00:03:30,760 it's still open source, a BSD license, and a lot of other commercial people use it. 62 00:03:30,840 --> 00:03:32,360 We use it in commercial use. 63 00:03:33,380 --> 00:03:36,360 And we use, we have Metasploit Express and Metasploit Pro. 64 00:03:36,600 --> 00:03:40,300 But everything here I'm going to talk about is going to be available in a Metasploit framework. 65 00:03:40,880 --> 00:03:44,140 And it is my intent, and I'm kind of like a giving community guy. 66 00:03:44,320 --> 00:03:45,180 A lot of people know me. 67 00:03:45,360 --> 00:03:49,260 So my whole purpose of doing this is trying to help organizations out. 68 00:03:49,460 --> 00:03:53,420 I come from a military background, government background, so I've always wanted 69 00:03:53,420 --> 00:03:55,900 to help people secure their jobs. 70 00:03:55,900 --> 00:03:56,660 I've always wanted to help people secure their systems and such. 71 00:03:58,500 --> 00:04:01,740 All right, a little bit about the Metasploit framework architecture. 72 00:04:02,220 --> 00:04:06,120 And this slide right here, I'm not going to read the slides to you. 73 00:04:06,240 --> 00:04:08,860 But basically, there's a lot of things in Metasploit framework. 74 00:04:09,100 --> 00:04:11,660 And these slides will be available afterwards, of course. 75 00:04:12,100 --> 00:04:15,460 The thing we want to concentrate on here is modules. 76 00:04:15,940 --> 00:04:23,040 And some, and we use a combination of these modules to actually do, and actually most 77 00:04:23,040 --> 00:04:25,680 of this stuff has been used a long time. 78 00:04:25,900 --> 00:04:28,080 Just primarily for network exploitation. 79 00:04:29,420 --> 00:04:32,320 And I came to the Metasploit team from a defensive background. 80 00:04:32,620 --> 00:04:37,480 So my whole thing was like, I want to actually help people defend networks 81 00:04:37,890 --> 00:04:43,120 and actually test their network infrastructure instead of just trying to exploit in host. 82 00:04:45,370 --> 00:04:51,840 And so here, all these modules play some part in Vsploit and Metasploit as a whole. 83 00:04:53,890 --> 00:04:55,880 In particular, we're talking about auxiliary modules. 84 00:04:55,900 --> 00:05:00,860 And in the end, when Dave comes up, he's going to talk about how anybody can contribute 85 00:05:00,860 --> 00:05:02,980 to do Vsploit modules. 86 00:05:03,380 --> 00:05:07,820 And as far as Metasploit development goes, if you want to actually start doing stuff 87 00:05:07,820 --> 00:05:12,520 that helps the community out, this is a really, really low threshold to actually start doing 88 00:05:12,520 --> 00:05:13,660 Metasploit development. 89 00:05:16,160 --> 00:05:21,460 So the whole point of this, I've deployed enterprise IDSs. 90 00:05:21,720 --> 00:05:24,200 I've built networks at large government places. 91 00:05:24,500 --> 00:05:25,800 I've did all kinds of defense. 92 00:05:25,900 --> 00:05:26,180 I've done all kinds of defensive stuff. 93 00:05:26,480 --> 00:05:33,000 And sometimes, you want to actually test to see if stuff's working, but you don't want 94 00:05:33,000 --> 00:05:34,840 to use live exploits. 95 00:05:35,140 --> 00:05:38,340 And a lot of people are concerned about running exploits on their network. 96 00:05:38,540 --> 00:05:41,400 A lot of people are adverse to that, and I definitely understand. 97 00:05:41,760 --> 00:05:44,300 So the Vsploit thing is like doing paintball. 98 00:05:44,980 --> 00:05:47,180 So hopefully it doesn't knock anything over. 99 00:05:47,560 --> 00:05:55,560 And I can't say anything is 100% flawless, but in an ideal situation, we've had discussions, 100 00:05:55,900 --> 00:05:59,040 even this morning, where we were talking about, there could be a possibility to start 101 00:05:59,040 --> 00:06:04,300 sending stuff, and IPS may shut a connection down if you have it in active mode, if you 102 00:06:04,300 --> 00:06:08,340 send it stuff that looks like exploitation or attack responses. 103 00:06:10,560 --> 00:06:14,820 So basically, what I'm trying to do is, is it really a new spin on auxiliary modules? 104 00:06:16,300 --> 00:06:18,720 Again, I'm not really trying to exploit anything. 105 00:06:19,680 --> 00:06:21,440 I'm kind of a nice guy. 106 00:06:21,680 --> 00:06:24,860 Some people say I look like Mr. T or Kimball Slice or something. 107 00:06:25,900 --> 00:06:28,100 But I'm a very nice guy. 108 00:06:29,580 --> 00:06:30,820 I'm scared of the mountains. 109 00:06:30,880 --> 00:06:31,300 It sucked. 110 00:06:31,540 --> 00:06:32,940 I actually drove here from Maryland. 111 00:06:33,240 --> 00:06:34,540 It was a four-day drive. 112 00:06:36,300 --> 00:06:37,240 That was crazy. 113 00:06:41,980 --> 00:06:43,780 So, man, I hate the mountains. 114 00:06:44,180 --> 00:06:45,020 I'm telling you. 115 00:06:46,620 --> 00:06:51,380 Okay, again, the purpose of the whole Vsploit thing is to actually evaluate devices on their 116 00:06:51,380 --> 00:06:51,780 own merit. 117 00:06:52,240 --> 00:06:54,300 Now, what I'm saying is on their own merit. 118 00:06:54,460 --> 00:06:55,880 I don't want to evade it. 119 00:06:55,880 --> 00:06:56,040 I don't want to evade anything. 120 00:06:56,440 --> 00:07:00,140 I want to try to be able to test devices exactly as they say. 121 00:07:01,360 --> 00:07:04,220 I want to see if things do what they do. 122 00:07:04,500 --> 00:07:10,340 I mean, there's a funny commercial where Dennis Green is saying, it's a funny American beer 123 00:07:10,340 --> 00:07:10,700 commercial. 124 00:07:11,220 --> 00:07:14,740 I want to see if the device is what it says it is, pretty much. 125 00:07:16,660 --> 00:07:19,440 So I don't want to do any kind of traffic evasion. 126 00:07:20,380 --> 00:07:24,820 The main thing is I want to ensure proper network device placement because there's a lot of 127 00:07:24,820 --> 00:07:29,100 different networks where people don't even understand their own infrastructure, so it's 128 00:07:29,100 --> 00:07:35,240 absolutely impossible for them to place a device like an IDS or IPS or DLP because they 129 00:07:35,240 --> 00:07:37,080 just don't know the layout of their own network. 130 00:07:37,860 --> 00:07:40,260 And it's really, really true. 131 00:07:40,460 --> 00:07:45,540 And even if a consultant came in, say, and a consultant comes in, they want to actually 132 00:07:45,540 --> 00:07:50,300 deploy IDSs on someone's network, half the time the people that they're supposed to help 133 00:07:50,300 --> 00:07:53,960 them, they don't know where to place the devices on their network anyway. 134 00:07:54,820 --> 00:07:59,900 So this is an attempt for people, in-house security people, to be able to test out stuff, 135 00:07:59,960 --> 00:08:04,400 send these things to trigger alerts, and if it's not triggering alerts, you know that 136 00:08:04,400 --> 00:08:06,060 you have your devices placed in the wrong place. 137 00:08:06,600 --> 00:08:09,300 So it's also an opportunity to train security staff. 138 00:08:11,280 --> 00:08:12,860 And I'm going to talk about this now. 139 00:08:12,940 --> 00:08:18,020 One of the things that I actually wrote that didn't make it here, and Dave said because 140 00:08:18,020 --> 00:08:24,340 I suck at writing code, it didn't make it into the trunk yet, but I actually wrote a scheduling 141 00:08:24,340 --> 00:08:29,100 function into Metasploit, and it'll be in there pretty soon, where you can actually 142 00:08:29,760 --> 00:08:31,320 schedule exploitation to happen. 143 00:08:31,720 --> 00:08:35,640 So you can say, I want an exploit to happen at 2 o'clock on a Saturday night. 144 00:08:36,220 --> 00:08:38,560 And it could be an exploit or it could be a vSploit module. 145 00:08:38,880 --> 00:08:40,400 So that'll be in Metasploit pretty quick. 146 00:08:40,600 --> 00:08:41,740 Didn't make it for this talk. 147 00:08:42,140 --> 00:08:49,700 But the thing is, if you have a managed security provider, MSSP or whatever they call it, or 148 00:08:49,700 --> 00:08:53,960 just your regular NOC or SNOC or whatever you want to call it, you want to know if they're 149 00:08:53,960 --> 00:08:56,460 actually watching things at 3 or 4 in the morning. 150 00:08:56,680 --> 00:09:02,480 So the ability to actually schedule exploitation and to actually schedule exploits is going 151 00:09:02,480 --> 00:09:03,860 to be in Metasploit very, very soon. 152 00:09:05,040 --> 00:09:07,580 If I could code better, I'd be in there today for this demo. 153 00:09:09,780 --> 00:09:13,280 But I actually had it working, but HD said my code sucked. 154 00:09:15,940 --> 00:09:16,420 Okay. 155 00:09:16,580 --> 00:09:20,760 So all right. 156 00:09:20,780 --> 00:09:23,420 So really, really the real important thing here. 157 00:09:23,420 --> 00:09:28,780 It's like, you know, in the whole AV world, you have the e-car file where you can actually 158 00:09:28,780 --> 00:09:29,980 drop it and it alerts. 159 00:09:30,300 --> 00:09:33,320 Well, there's not a really good test case for network-based traffic. 160 00:09:33,660 --> 00:09:38,000 And so one of the big things is the last bullet is good test cases are hard to emulate. 161 00:09:38,240 --> 00:09:41,580 I've tested out big enterprise IDS systems. 162 00:09:41,700 --> 00:09:45,060 I've tested out DLP solutions at major government customers. 163 00:09:45,540 --> 00:09:51,300 And even sometimes the vendors don't have a really easy way for people to test out stuff. 164 00:09:51,680 --> 00:09:52,540 With DLP. 165 00:09:52,540 --> 00:09:57,140 With DLP, sometimes they have files that look like DLP for the host side, but it's kind 166 00:09:57,140 --> 00:10:02,420 of hard to generate traffic in any kind of way to actually point it towards something 167 00:10:02,420 --> 00:10:04,600 and send stuff that should trip those alerts. 168 00:10:05,980 --> 00:10:13,260 So some of the things I'm talking about testing here is IDSs, IPSs, DLP stuff, firewalls, 169 00:10:13,260 --> 00:10:19,100 and basically NetFlow collection, all these different things, and again, it's just to 170 00:10:19,100 --> 00:10:22,400 be able to test, educate, and be able to respond. 171 00:10:24,620 --> 00:10:29,140 So what I'm calling interesting traffic, I used to do a lot of network engineering and 172 00:10:29,140 --> 00:10:32,660 we had this term, it's probably a Cisco term, interesting traffic. 173 00:10:33,620 --> 00:10:40,860 So basically what you want to do from a client, and this is one of the things that you can 174 00:10:40,860 --> 00:10:43,020 do from a web browser or many other things. 175 00:10:43,240 --> 00:10:47,600 So you have Metasploit Framework on one side, you have a web browser on one side, and you 176 00:10:47,600 --> 00:10:51,520 can actually do requests, and then Metasploit Framework is going to send you data that looks 177 00:10:51,520 --> 00:10:52,380 like PI IP address. 178 00:10:52,400 --> 00:10:54,600 It's going to send you data that looks like PI or whatever other kind of traffic. 179 00:10:55,640 --> 00:11:00,600 Also another big thing that I tried to do, and this was like dead simple, so some of 180 00:11:00,600 --> 00:11:03,920 the things I'm talking about is not going to be rocket science, but it works really 181 00:11:03,920 --> 00:11:04,840 well, right? 182 00:11:05,260 --> 00:11:10,940 Basically being able to do DNS queries over different times, and actually when the scheduling 183 00:11:10,940 --> 00:11:17,300 piece works, we're going to be able to emulate malware at scheduled times on your network. 184 00:11:20,060 --> 00:11:21,680 So real quick. 185 00:11:21,680 --> 00:11:29,420 IDS and IPS are mostly signature-based, and most organizations run signature-based IDSs. 186 00:11:29,620 --> 00:11:34,220 Looks for known traffic, so if it looks for known traffic, we just have to know what it's 187 00:11:34,220 --> 00:11:40,780 looking for, and we can actually emulate that traffic in a controlled way without actually 188 00:11:40,780 --> 00:11:41,520 popping boxes. 189 00:11:42,660 --> 00:11:48,920 We can emulate SQL injections, we can emulate attack responses, and other kind of suspicious 190 00:11:48,920 --> 00:11:49,320 behavior. 191 00:11:50,660 --> 00:11:51,660 And IDSs are really good. 192 00:11:51,660 --> 00:11:53,160 IDSs should be able to catch all that stuff. 193 00:11:54,660 --> 00:12:01,820 So DLP, in my opinion, I mean, even some IDSs have a DLP-type functionality where you can 194 00:12:01,820 --> 00:12:05,320 put in social security, regular expressions, and all kind of other things. 195 00:12:06,020 --> 00:12:07,560 Most of them are concerned with PII. 196 00:12:07,760 --> 00:12:12,800 Since all these data breaches are occurring lately, it's a big market for DLP solutions 197 00:12:12,800 --> 00:12:13,160 now. 198 00:12:14,120 --> 00:12:19,200 And I'll tell you, it's good to know if you make a million-dollar investment if that actual 199 00:12:19,200 --> 00:12:20,840 investment is actually paying off. 200 00:12:21,200 --> 00:12:21,640 It's good to know. 201 00:12:21,660 --> 00:12:25,160 And many times, people can't actually validate if their stuff works. 202 00:12:25,780 --> 00:12:28,420 So the ideal situation is this. 203 00:12:28,480 --> 00:12:32,160 If you're going to try to go out and procure stuff, you would want to use something like 204 00:12:32,160 --> 00:12:35,180 vSploit to actually test to see if those things work. 205 00:12:35,420 --> 00:12:36,440 As they say they work. 206 00:12:36,520 --> 00:12:39,380 If they say they catch credit cards, test it with credit cards. 207 00:12:40,200 --> 00:12:41,640 Socials, whatever you're trying to do. 208 00:12:41,760 --> 00:12:42,640 Medical information. 209 00:12:42,920 --> 00:12:48,380 And a real important piece is to be able to custom the traffic, and Dave's going to be 210 00:12:48,380 --> 00:12:49,000 talking about it. 211 00:12:49,500 --> 00:12:49,900 Custom. 212 00:12:49,900 --> 00:12:53,780 Be able to actually write your own vSploit modules to meet your environment. 213 00:12:53,980 --> 00:12:58,000 If you're a government person, if you're a bank, there's all kind of different ways 214 00:12:58,000 --> 00:13:05,460 to actually, a need to actually have the ability to generate traffic that's relevant 215 00:13:05,460 --> 00:13:06,260 to your environment. 216 00:13:08,880 --> 00:13:11,120 Okay, and also, this is a big thing here. 217 00:13:11,280 --> 00:13:15,440 SIMs are big, and there's a million different definitions for SIMs. 218 00:13:15,460 --> 00:13:16,540 I think this is the latest. 219 00:13:18,400 --> 00:13:21,360 This is kind of like the latest one I see a lot of analysts using. 220 00:13:21,660 --> 00:13:23,360 So I'm rolling with that, right? 221 00:13:23,600 --> 00:13:29,160 So basically they collect system logs, but one of the things that a lot of people have 222 00:13:29,650 --> 00:13:35,860 is they may have all these devices dispersed all over the network, and I have really good 223 00:13:35,860 --> 00:13:43,360 friends that do large deployments of SIMs, and many times IDSs aren't even sending data 224 00:13:43,360 --> 00:13:43,900 to the SIM. 225 00:13:44,340 --> 00:13:46,220 This is a good way to like, all right. 226 00:13:46,540 --> 00:13:53,000 Send data to all over my network, put in IP address range, send the data, is my SIM seeing 227 00:13:53,000 --> 00:13:53,920 this traffic? 228 00:13:54,280 --> 00:13:59,560 Basically to test your SIMs to see if they're logging that network-based traffic from your 229 00:13:59,560 --> 00:14:01,520 DLPs, your IPSs, and all that stuff. 230 00:14:03,920 --> 00:14:09,760 So basically, here's what I did, and I apologize for people at the far back, because this is 231 00:14:09,760 --> 00:14:13,860 probably not that good, but once, I'm going to do a demo, and so when you see the demo, 232 00:14:13,920 --> 00:14:15,040 you'll see it much better. 233 00:14:16,760 --> 00:14:22,900 So basically I created a PII module, and what the PII module does is it actually just 234 00:14:22,900 --> 00:14:28,560 generates web traffic that you can actually connect to it with your browser, and I have 235 00:14:28,560 --> 00:14:35,200 it refreshing, so you have an option where it refreshes, and generally speaking, it generates 236 00:14:35,200 --> 00:14:41,140 a thousand lines of PII data, and I even built a loan check in it to actually generate real 237 00:14:41,140 --> 00:14:44,760 looking credit card numbers, because some devices are smart enough to like do a loan 238 00:14:44,760 --> 00:14:45,020 check. 239 00:14:45,020 --> 00:14:49,420 And so basically this will look like, if you place it in the right place in your network, 240 00:14:49,580 --> 00:14:52,140 it will look like credit cards or SSNs are leaking. 241 00:14:52,540 --> 00:14:56,600 And also, you have the capability to generate any kind of other traffic that you want to 242 00:14:56,600 --> 00:14:57,200 trigger. 243 00:14:57,800 --> 00:15:03,360 It meets a lot of criteria of different devices like DLP and IDSs, because it generates a 244 00:15:03,360 --> 00:15:05,660 three-way handshake, and you're pulling data across the network. 245 00:15:06,280 --> 00:15:11,720 And that was a big, big challenge, but it's easy to do with Metasploit framework to be 246 00:15:11,720 --> 00:15:12,960 able to generate these things. 247 00:15:13,180 --> 00:15:14,920 So this web server module. 248 00:15:15,020 --> 00:15:21,920 It's typically used for stuff like DB, well, browser autopone, and other kind of things 249 00:15:21,920 --> 00:15:25,920 in Metasploit, but I'm using everything for a totally different purpose than it is. 250 00:15:26,060 --> 00:15:28,480 I'm trying to use Metasploit more for good than evil. 251 00:15:31,000 --> 00:15:35,860 Okay, also, I played around with all kinds of stuff. 252 00:15:36,120 --> 00:15:41,360 I basically created a module that actually lets you download, randomly download stuff. 253 00:15:42,380 --> 00:15:44,580 Metasploit hosts that and sends files. 254 00:15:44,920 --> 00:15:45,000 Okay. 255 00:15:45,460 --> 00:15:46,280 Harmless stuff. 256 00:15:48,140 --> 00:15:51,060 The web beaconing, and I actually have... 257 00:15:51,060 --> 00:15:54,600 I think I might have changed the name of this to web querying. 258 00:15:54,760 --> 00:16:01,460 But actually, when I got to Vegas after four days of travel, my Windows 7 laptop was totally 259 00:16:01,460 --> 00:16:03,440 blue screened, and I lost everything. 260 00:16:03,820 --> 00:16:08,880 So this is actually like a good attempt of making good on a presentation. 261 00:16:10,060 --> 00:16:13,420 So the web beaconing simply is... 262 00:16:13,420 --> 00:16:14,980 In a lot of government organizations, you have to have something that's at the top of your 263 00:16:14,980 --> 00:16:21,120 organizations, I see it time and time again that like someone like U.S. CERT or some outside 264 00:16:21,120 --> 00:16:26,720 third party has to notify a government agency that they've been compromised and are 265 00:16:26,720 --> 00:16:33,880 beaconing to China or whatever it may be. They've been affected with Zeus or I mean any 266 00:16:33,880 --> 00:16:38,780 other kind of malware and it happens all the time. And what's funny about that is even 267 00:16:38,780 --> 00:16:46,100 though people may block that traffic, I often wonder like why didn't the organization see 268 00:16:46,100 --> 00:16:52,300 that traffic first? And so one of the things I think this is one of the most important 269 00:16:52,300 --> 00:16:57,000 things that I've been doing is playing around with this web beaconing and actually doing 270 00:16:57,000 --> 00:17:01,580 more, doing research on the different types of malware and botnets and actually allowing 271 00:17:01,580 --> 00:17:08,440 people to upload their own list of DNS entries to actually test this out. And what's cool 272 00:17:08,440 --> 00:17:08,760 about it is that it's not just a one-time thing. It's a one-time thing. It's not just a 273 00:17:08,780 --> 00:17:13,320 one-time thing. I'm actually kind of a packet junkie still. So I do wireshark captures to make 274 00:17:13,320 --> 00:17:17,800 sure that everything is really happening. So basically the scenario would be this. You set 275 00:17:17,800 --> 00:17:23,020 Metasploit on your network on a different, on any kind of VLAN and just to test your 276 00:17:23,020 --> 00:17:27,500 network, just put it on your network and start doing these malicious queries. You know, I 277 00:17:27,500 --> 00:17:33,460 have Zeus, Mariposa, and also the ability to do anything you want. I mean people are looking 278 00:17:33,460 --> 00:17:38,760 for different signatures and it actually can, you can iterate this over a, on a lot of 279 00:17:38,760 --> 00:17:45,400 a number of times. Also vulnerable headers. There's several vendors that actually do like 280 00:17:45,400 --> 00:17:51,420 passive vulnerability scanning, like Tenable, Sourcefire actually can monitor. I think they 281 00:17:51,420 --> 00:17:57,280 have, they have a product called RNA which is those, it actually sees what kind of devices you 282 00:17:57,280 --> 00:18:01,400 have in your network. And so sometimes people don't know. So one of these, this vulnerable 283 00:18:01,400 --> 00:18:06,140 header thing, what I did is I took a list of vulnerable headers, right, and I was like, just 284 00:18:06,140 --> 00:18:08,740 drop these on the network to see if anybody's paying attention. And so that's kind of 285 00:18:08,740 --> 00:18:13,980 interesting. So if you have an IS4 or 5 server on your network that pops up and you don't 286 00:18:13,980 --> 00:18:18,580 know it, I mean, I mean do you have the ability to even see that? So these are the kind of 287 00:18:18,580 --> 00:18:26,580 things I'm talking about testing. And so here's a PCAP of the actual, and, and you can probably 288 00:18:26,580 --> 00:18:33,220 see over there, if you can't see it, then it's, it's an old vulnerable header. Okay, I'm 289 00:18:33,220 --> 00:18:37,340 gonna, I'm gonna, I'm gonna switch over to Dave real quick and he's gonna be talking about, 290 00:18:38,740 --> 00:18:47,520 uh, writing, uh, vSploit modules for a second. So, um, can I get a quick show of hands of how 291 00:18:47,520 --> 00:18:54,060 many people have actually written a module for Metasploit? Okay, so not too many of you. 292 00:18:54,140 --> 00:18:59,900 Alright. Um, this is just gonna be like a really quick overview of, uh, some of the features 293 00:18:59,900 --> 00:19:08,720 and, uh, some of the, you know, like, the ways of developing a module for, for Metasploit. So, 294 00:19:10,800 --> 00:19:16,800 um, first of all, Metasploit's written in, in Ruby, so if you're gonna write a module for Ruby, or for 295 00:19:16,800 --> 00:19:23,500 Metasploit, it's really good to know Ruby, and, um, here's a few links, uh, and there's, uh, some 296 00:19:23,500 --> 00:19:30,100 book titles on there. Uh, the slides will be available, like, after the talk, so you can go back 297 00:19:30,100 --> 00:19:37,420 and look at them then. So, Metasploit has a whole bunch of support for just about everything you can imagine. 298 00:19:37,420 --> 00:19:45,280 Um, a lot of it originated for, like, a need for, uh, protocol support and all kinds of other kind of 299 00:19:45,280 --> 00:19:53,640 support that we needed for exploit development and post-exploit, post-exploitation and auxiliary modules 300 00:19:53,640 --> 00:19:59,600 and everything like that. So, we have pretty much anything you can think of in there. Um, and this 301 00:19:59,600 --> 00:20:03,520 comes in really handy when you're developing a module because you don't have to reinvent the wheel. 302 00:20:03,760 --> 00:20:05,140 It's already there for you. 303 00:20:06,780 --> 00:20:07,400 And, um, 304 00:20:07,420 --> 00:20:14,900 this is just a few of the, the mix-ins that we have, and, um, what, what a mix-in is, is basically like a 305 00:20:14,900 --> 00:20:21,980 library that you can include into your module and just call methods out of it. Um, and we have ATP 306 00:20:21,980 --> 00:20:31,920 server, uh, client, we have a scanner module, and, uh, SMTP, uh, modules, so we have a lot of 307 00:20:31,920 --> 00:20:37,400 functionality in there, and there's many, many more in there. You just have to look at the code, 308 00:20:37,400 --> 00:20:38,700 and kind of dig in. 309 00:20:46,980 --> 00:20:53,900 All right, so I'm gonna actually give you guys a little view of some code. 310 00:20:57,580 --> 00:20:58,260 . 311 00:21:01,480 --> 00:21:02,160 . 312 00:21:02,160 --> 00:21:02,500 . 313 00:21:02,500 --> 00:21:02,680 . 314 00:21:02,680 --> 00:21:03,620 . 315 00:21:03,620 --> 00:21:04,120 . 316 00:21:05,040 --> 00:21:05,600 . 317 00:21:09,240 --> 00:21:22,240 So, one of the modules that Marcus was just talking about is the web PII module, and basically what it does is it sets up a web server, and it dumps a whole lot of, uh, data that looks like personal information. 318 00:21:22,900 --> 00:21:23,460 . 319 00:21:24,080 --> 00:21:24,640 . 320 00:21:24,640 --> 00:21:24,880 . 321 00:21:25,820 --> 00:21:26,380 . 322 00:21:26,380 --> 00:21:27,080 . 323 00:21:27,080 --> 00:21:27,620 . 324 00:21:28,020 --> 00:21:28,060 . 325 00:21:33,600 --> 00:21:33,640 . 326 00:21:46,960 --> 00:21:47,000 . 327 00:21:48,440 --> 00:21:48,480 . 328 00:21:48,560 --> 00:21:48,600 . 329 00:21:48,600 --> 00:21:48,640 . 330 00:21:48,640 --> 00:21:48,660 . 331 00:21:48,800 --> 00:21:48,840 . 332 00:21:48,840 --> 00:21:48,860 . 333 00:21:48,860 --> 00:21:48,880 . 334 00:21:48,880 --> 00:21:48,900 . 335 00:21:48,900 --> 00:21:48,920 . 336 00:21:48,920 --> 00:21:48,940 . 337 00:21:48,940 --> 00:21:48,960 . 338 00:21:48,960 --> 00:21:48,980 . 339 00:21:48,980 --> 00:21:49,000 . 340 00:21:49,000 --> 00:21:49,020 . 341 00:21:49,020 --> 00:21:49,040 . 342 00:21:49,040 --> 00:21:49,060 . 343 00:21:49,060 --> 00:21:49,080 . 344 00:21:49,080 --> 00:21:49,100 . 345 00:21:49,100 --> 00:21:49,120 . 346 00:21:49,120 --> 00:21:49,140 . 347 00:21:49,140 --> 00:21:55,260 is going to be changing to Metasploit 4. And with each module, you inherit the type of 348 00:21:55,260 --> 00:22:02,080 module that you're going to be writing, which is the MSF auxiliary in this case. And right 349 00:22:02,080 --> 00:22:09,380 here with the include, this is actually the mixins. Both of these are mixins. We actually 350 00:22:09,380 --> 00:22:19,440 wrote the PII mixin today. And what that does is generate all that PII data for you. So you 351 00:22:19,440 --> 00:22:26,780 can write any module you want. If you want that module to, you know, exfiltrate PII information, 352 00:22:27,160 --> 00:22:32,480 you can do that. Just include this mixin and it's there for you. All the generating code is 353 00:22:32,480 --> 00:22:39,260 there. So you don't have to sit there and try to generate and match, you know, any kind of 354 00:22:39,380 --> 00:22:49,020 format for the PII. It's already there and done for you. And then we have the initialize for 355 00:22:49,020 --> 00:23:00,540 the class itself. Each module is a class. And this right here, this is the information structure. 356 00:23:01,000 --> 00:23:06,780 So this gives all the information to the users about what your module does, what the name 357 00:23:06,780 --> 00:23:07,660 of the module is. 358 00:23:08,320 --> 00:23:08,920 Okay. 359 00:23:09,380 --> 00:23:15,520 Who wrote the module. What revision number you're actually on when the module, like, 360 00:23:15,580 --> 00:23:23,680 when it was last updated. And you can also include, like, references for anything that you 361 00:23:23,680 --> 00:23:27,000 write. If you find information out on the web and you think other people are going to find 362 00:23:27,000 --> 00:23:31,340 it useful, you can add those references into your module. And anyone who views your code 363 00:23:31,340 --> 00:23:38,860 can see that references. There's a lot of other things. It gets a little bit more complicated 364 00:23:39,740 --> 00:23:46,940 like you have default options and you can register options that you want for your module. 365 00:23:47,180 --> 00:23:55,560 So when someone is using your module, they have to configure it. They need a, you know, in this 366 00:23:55,560 --> 00:24:00,880 case, we're using meta refresh as one of the options. So you can tell the module whether or not 367 00:24:00,880 --> 00:24:07,880 you want to auto refresh the web page with the PII data that it's dropping. And you can also change 368 00:24:07,880 --> 00:24:12,140 the amount of time and the number of PII entries that's generated. 369 00:24:16,580 --> 00:24:23,420 So this is just a function that Marcus wrote called create page. And it has this really awesome 370 00:24:24,900 --> 00:24:28,720 ASCII sheep. I love the ASCII sheep. 371 00:24:29,800 --> 00:24:31,440 It's my greatest accomplishment. 372 00:24:31,860 --> 00:24:33,400 It is your greatest accomplishment. 373 00:24:38,420 --> 00:24:44,760 All right. And so right here he's actually building up the HTML of the web page that he's 374 00:24:44,760 --> 00:24:50,600 dropping. And you can see here he does a little check for the meta refresh option. So when you're 375 00:24:50,600 --> 00:24:56,260 actually writing a module and you want to get the information that the user configured, you 376 00:24:56,260 --> 00:25:00,480 access it through the data store. Everything is stored in the data store whenever there's an 377 00:25:00,480 --> 00:25:06,740 option that a user can set. So as long as you know the name of the option, you can get the 378 00:25:06,740 --> 00:25:09,480 information out of that. It's just like a variable. 379 00:25:14,740 --> 00:25:20,560 So, yeah, here he's just setting up the HTML. He's doing some more checking on some options. 380 00:25:22,220 --> 00:25:29,220 And right here we're using the mixin, the PII mixin that we wrote today to actually generate the 381 00:25:29,740 --> 00:25:33,360 PII data. And that's what this create PII call right here is. 382 00:25:35,580 --> 00:25:44,280 And that's actually what generates everything for you. And that will put the PII data on the page 383 00:25:44,280 --> 00:25:45,500 right here. 384 00:25:49,580 --> 00:25:56,060 Okay. And then this on request URI function, that's actually an overloaded function from the 385 00:25:57,500 --> 00:26:00,180 HTTP server mixin. 386 00:26:00,600 --> 00:26:03,340 So what happens is when a request is sent to the HTTP server, you're going to get an 387 00:26:03,360 --> 00:26:03,460 error. 388 00:26:03,460 --> 00:26:08,800 And then when the request for your web server comes in, this function is what's called. 389 00:26:09,200 --> 00:26:16,740 And you have the CLI and the request variables that are passed to the function. 390 00:26:17,300 --> 00:26:22,080 And that can give you detailed information about what the request was, where it came from, 391 00:26:23,000 --> 00:26:27,860 a whole lot of information about the client, user agent, everything. 392 00:26:28,860 --> 00:26:33,340 Everything that you could think of is in there in terms of a web request. 393 00:26:33,360 --> 00:26:35,660 That would be coming your way. 394 00:26:36,740 --> 00:26:40,580 So right here is where he's calling that create page function that we went over. 395 00:26:42,660 --> 00:26:48,480 And this is the function that builds the page and has the awesome ASCII sheet that I love. 396 00:26:50,560 --> 00:26:53,000 And right here, the send response function. 397 00:26:53,800 --> 00:26:58,940 This is also part of the HTTP server mixin. 398 00:26:59,960 --> 00:27:01,720 So you can just call this directly. 399 00:27:01,720 --> 00:27:07,100 You don't have to do any kind of strange namespace convention or anything like that, 400 00:27:07,200 --> 00:27:08,480 because you've already done it with the include. 401 00:27:09,380 --> 00:27:13,540 And this will just send the response to the client. 402 00:27:15,740 --> 00:27:17,640 And right here is the run function. 403 00:27:19,500 --> 00:27:26,840 And whenever you're writing an auxiliary module, to actually run the module, the command is run. 404 00:27:27,060 --> 00:27:31,700 So the initial starting point of the module starts in the run. 405 00:27:31,720 --> 00:27:33,900 So it's pretty simple. 406 00:27:35,800 --> 00:27:38,160 So that's just one of the modules that we did. 407 00:27:39,660 --> 00:27:46,140 Now I'll give you guys a quick look at the PII mixin that we wrote today. 408 00:27:47,880 --> 00:27:50,280 And this is the one that generates everything for you. 409 00:27:52,340 --> 00:27:54,140 So mixins are a little bit different. 410 00:27:55,320 --> 00:27:56,760 They're not really like a module. 411 00:27:57,080 --> 00:27:58,740 They're just something that you can include. 412 00:27:58,740 --> 00:28:03,520 It's a library that you include into your module and use the functionality of that library. 413 00:28:06,220 --> 00:28:11,100 So this is just defining the namespace of the library itself. 414 00:28:11,440 --> 00:28:13,280 So it starts off with MSF. 415 00:28:14,500 --> 00:28:17,660 And then down here, you define that it's an auxiliary module. 416 00:28:18,340 --> 00:28:26,720 And finally, that the namespace should end with PII, which is the name of the mixin. 417 00:28:28,740 --> 00:28:39,200 And down here, you have the initialize function, which is actually sort of an override of the auxiliary modules initialize. 418 00:28:40,520 --> 00:28:46,300 And this is what will set up options for that particular mixin. 419 00:28:46,660 --> 00:28:51,500 So the module itself, the auxiliary module, will inherit these options. 420 00:28:52,560 --> 00:28:58,440 So you'll have an entries option and an email domain option. 421 00:28:58,440 --> 00:29:00,940 Within the module, if you include this. 422 00:29:06,180 --> 00:29:06,780 Okay. 423 00:29:06,860 --> 00:29:11,240 So here's some awesome Marcus code right here. 424 00:29:13,160 --> 00:29:15,760 I always pick on Marcus, but he's a really cool guy. 425 00:29:15,940 --> 00:29:16,760 I like Marcus. 426 00:29:19,240 --> 00:29:20,020 All right. 427 00:29:20,140 --> 00:29:27,020 So right here, he's doing some code to create something that looks like a... 428 00:29:27,020 --> 00:29:28,480 I don't know. 429 00:29:28,520 --> 00:29:29,600 What are you trying to create here? 430 00:29:32,400 --> 00:29:33,520 All right. 431 00:29:36,100 --> 00:29:41,980 So some function that looks like it's creating an account number of some kind. 432 00:29:43,600 --> 00:29:48,500 And here we have a function that's creating social security numbers. 433 00:29:51,140 --> 00:29:56,660 And date of birth, passwords, some other stuff. 434 00:29:56,660 --> 00:29:59,220 Here's some, like, general PII stuff. 435 00:29:59,780 --> 00:30:02,520 First names, last names, that kind of stuff. 436 00:30:03,060 --> 00:30:06,780 And here he's just checking the options to see how many entries to generate. 437 00:30:08,000 --> 00:30:11,080 And then everything returns back to the module that's using this. 438 00:30:11,400 --> 00:30:13,820 So it's pretty easy stuff. 439 00:30:15,260 --> 00:30:24,660 Another thing I wanted to show you guys is some of the support that we have in Metasploit for some really interesting, like, string manipulation and randomization. 440 00:30:25,960 --> 00:30:34,280 Mostly it's used in, like, exploit dev situations, but it could be useful in any kind of module, I imagine. 441 00:30:34,640 --> 00:30:37,540 So we have all kinds of stuff in here. 442 00:30:37,700 --> 00:30:44,300 We have an array of all the states, upper, alpha, lower, all that stuff. 443 00:30:45,440 --> 00:30:50,540 We can do, let's see, JavaScript comments. 444 00:30:50,680 --> 00:30:52,820 We can convert a string to JavaScript comments. 445 00:30:53,580 --> 00:30:54,560 To Perl. 446 00:30:54,560 --> 00:30:56,040 To Java. 447 00:30:58,460 --> 00:30:59,200 UTF-8. 448 00:31:04,680 --> 00:31:05,160 Okay. 449 00:31:05,760 --> 00:31:06,440 All right. 450 00:31:06,500 --> 00:31:08,400 So just showing you that real quick. 451 00:31:08,720 --> 00:31:09,340 All right. 452 00:31:09,640 --> 00:31:11,220 So we'll move on now. 453 00:31:14,320 --> 00:31:15,100 Thanks, Dave. 454 00:31:15,380 --> 00:31:20,440 Real quick, Will's going to come up and he's going to talk about how people can use this from a pen tester's perspective. 455 00:31:32,200 --> 00:31:33,080 All right. 456 00:31:33,180 --> 00:31:40,400 So when I was brainstorming with Marcus, I was starting to talk about things that I just can't do on a pen test or are bad ideas. 457 00:31:40,720 --> 00:31:44,200 So one thing I'm not going to want to do is install malware on the corporate domain. 458 00:31:44,320 --> 00:31:45,720 I mean, obviously a terrible idea. 459 00:31:47,060 --> 00:31:53,080 Two, exfiltrating real PII data that puts me in a bad position and it's bad for the customer I'm working with. 460 00:31:53,900 --> 00:31:56,520 And then exploiting critical servers or systems. 461 00:31:56,800 --> 00:32:07,300 So I mean, depending on the scope of the engagement or what the goals are, there's certain servers that I'm just not going to want to attack because they're so business critical that if they went down, that could be a major issue. 462 00:32:08,400 --> 00:32:11,660 But there still are things that we can test for as part of those. 463 00:32:11,820 --> 00:32:13,460 So egress ports are one. 464 00:32:13,560 --> 00:32:19,400 So if we're modeling sort of the malware, we want to test what the command and control can go back out on. 465 00:32:19,480 --> 00:32:22,260 So if I'm on the corporate domain, I can begin to test using vSplit. 466 00:32:22,260 --> 00:32:24,360 Test all of my outbound connections. 467 00:32:24,780 --> 00:32:26,560 And then I know how I can make outbound connections. 468 00:32:28,140 --> 00:32:30,160 Resolving blacklisted domains is another one. 469 00:32:30,480 --> 00:32:32,220 So I don't need to draw malware to do it. 470 00:32:32,300 --> 00:32:34,440 I can use vSplit to test these sorts of things. 471 00:32:35,620 --> 00:32:37,220 Sending known IDS signatures. 472 00:32:37,400 --> 00:32:39,120 That's another one that's in there. 473 00:32:39,280 --> 00:32:46,340 And that can also help on the pen test because then I can know what I might be able to get through if I was attacking it, if it was an IPS rather than an IDS. 474 00:32:46,900 --> 00:32:49,200 So we can send sets of rules, see how it behaves. 475 00:32:49,920 --> 00:32:52,240 And then exfiltrating simulated PII data. 476 00:32:53,100 --> 00:32:59,000 So rather than actually sending customer PII data, so the credit card numbers, I can send the simulated ones. 477 00:32:59,420 --> 00:33:04,920 And the other thing I can do is I can sit with my client and I can say, is your network operations team catching this? 478 00:33:05,380 --> 00:33:07,540 Or we can do it with the scheduled part. 479 00:33:07,700 --> 00:33:08,680 We can do it at 2 a.m. 480 00:33:08,880 --> 00:33:09,940 One, did it get caught? 481 00:33:10,100 --> 00:33:12,540 And two, did you see the anomalous usage at that hour? 482 00:33:12,800 --> 00:33:19,820 So there's really good stuff that we can begin to test in sort of a simulated fashion rather than having to actually use data. 483 00:33:20,500 --> 00:33:22,100 So I wrote a module to do. 484 00:33:22,240 --> 00:33:22,540 Email. 485 00:33:22,800 --> 00:33:26,620 And basically what it does is it will send the simulated PII data. 486 00:33:26,780 --> 00:33:28,840 And you can set it to do, for instance, Gmail. 487 00:33:29,060 --> 00:33:35,140 So it will connect to a Gmail server and actually send out via email a group of credit card numbers or whatever. 488 00:33:35,560 --> 00:33:37,000 And then also web. 489 00:33:37,160 --> 00:33:47,440 So another cool one would be if you wanted to post it to Pastebin or Wikipedia, you could test it out actually posting simulated PII data. 490 00:33:49,120 --> 00:33:51,120 Sorry, I'm trying to rush because we're running out of time here. 491 00:33:51,120 --> 00:33:54,940 So future thoughts, some other really cool stuff, host-based DLP testing. 492 00:33:55,200 --> 00:33:59,520 So if you imagine our corporate environment, they have host-based DLP across the environment. 493 00:33:59,800 --> 00:34:01,980 It may be very difficult to test in each instance. 494 00:34:02,200 --> 00:34:08,060 But if you were to say create a meterpreter EXE, put it on all of them, have it run it, connect back to Metasploit, 495 00:34:08,160 --> 00:34:13,940 and then you could in an automated fashion actually test out if the data can leave that workstation and get out, 496 00:34:14,020 --> 00:34:17,500 for instance, via Gmail, which is a common way of getting it out. 497 00:34:18,180 --> 00:34:20,160 And then you could, using post modules, 498 00:34:20,160 --> 00:34:21,860 add in other exfiltration methods. 499 00:34:22,100 --> 00:34:26,700 So if there was a new exfiltration method you wanted, you could just modify the post module, 500 00:34:26,960 --> 00:34:30,760 still use the PII mixin, so it would be very short, very easy. 501 00:34:30,960 --> 00:34:34,780 And you could, with the client, say here's how I was able to get data out. 502 00:34:34,960 --> 00:34:39,900 Here's where your host-based DLP is failing you or your network-based DLP, whatever it is. 503 00:34:40,520 --> 00:34:43,200 Then also IDS fingerprinting, which was Bandit's idea. 504 00:34:43,300 --> 00:34:44,040 It was a really cool idea. 505 00:34:44,740 --> 00:34:49,180 So you know the signatures, you have known signatures for certain IDSs. 506 00:34:49,180 --> 00:34:52,420 And then you begin to send those signatures from the system, 507 00:34:52,500 --> 00:34:55,740 and you can actually in a passive way fingerprint the IDS itself. 508 00:34:56,060 --> 00:34:58,220 So there's a lot of cool stuff that could be done with it, 509 00:34:58,260 --> 00:35:01,720 and it could actually bring a lot of value in terms of the pen testing portion. 510 00:35:03,400 --> 00:35:04,280 Do you want to do your demos? 511 00:35:07,340 --> 00:35:09,660 Okay, real quick, I'm going to try to get some demos, 512 00:35:09,780 --> 00:35:11,540 and hopefully the demo guys are kind. 513 00:35:25,640 --> 00:35:25,980 Okay. 514 00:35:26,120 --> 00:35:27,520 How does that look at the back? 515 00:35:27,600 --> 00:35:28,620 Do I need to increase the size? 516 00:35:33,540 --> 00:35:35,140 Try to raise this up a little bit. 517 00:35:40,860 --> 00:35:42,980 Okay, so right now, like I said, 518 00:35:43,080 --> 00:35:46,980 hopefully we're going to get as many of these modules in the trunk soon afterwards. 519 00:35:48,300 --> 00:35:48,640 Okay. 520 00:35:49,180 --> 00:35:50,600 If we can keep Dave sober, 521 00:35:52,280 --> 00:35:55,200 we're going to get this stuff in the trunk as soon as possible. 522 00:36:05,060 --> 00:36:07,100 So basically I used some research. 523 00:36:09,480 --> 00:36:12,020 So basically I've been researching all over the place, 524 00:36:12,120 --> 00:36:14,120 and actually one of our customers asked, 525 00:36:14,240 --> 00:36:16,200 can we simulate Mariposa? 526 00:36:16,200 --> 00:36:18,540 And some of these things, 527 00:36:18,680 --> 00:36:23,420 and the whole point of this is sometimes on your network there may be things 528 00:36:23,420 --> 00:36:28,080 that have been confiscated by the federal agents and all that stuff, 529 00:36:28,240 --> 00:36:30,680 but many times you can go into old networks 530 00:36:30,680 --> 00:36:34,420 and you can see people beaconing out to all kinds of crazy malware 531 00:36:34,420 --> 00:36:38,400 that's been retired a long time ago, but people aren't seeing it. 532 00:36:38,640 --> 00:36:43,920 So I think it's very, for things like Mariposa, Zeus, and all these things, 533 00:36:44,060 --> 00:36:46,180 what I did is I downloaded a list of all these things, 534 00:36:46,180 --> 00:36:48,580 all the DNS servers historically that they've been using, 535 00:36:48,700 --> 00:36:51,200 and I went out, I basically did DNS, 536 00:36:51,420 --> 00:36:56,260 I actually used a vSupply module to go out and see which ones still responded, 537 00:36:56,440 --> 00:37:00,200 and personally I really don't care if some of these, 538 00:37:00,260 --> 00:37:02,100 I know some of these have been confiscated and such, 539 00:37:02,320 --> 00:37:05,500 but if they reply, I'm kind of wondering why are organizations 540 00:37:06,140 --> 00:37:08,380 not blacklisting some DNS names. 541 00:37:08,940 --> 00:37:13,360 So I think that you can show with this, 542 00:37:13,480 --> 00:37:14,640 I'm just going to run this real quick, 543 00:37:14,640 --> 00:37:18,120 and it's straight out, I don't know what the ISP is here, 544 00:37:18,440 --> 00:37:25,520 but it just goes out and it starts resolving DNS entries 545 00:37:25,520 --> 00:37:29,060 associated with Mariposa, historically. 546 00:37:30,700 --> 00:37:35,980 And what's kind of cool about this is this is a pretty safe thing to do on any network. 547 00:37:36,960 --> 00:37:40,980 Instead of actually having to install malware on a machine and look at it, 548 00:37:41,080 --> 00:37:43,360 and you can't really do that, 549 00:37:43,360 --> 00:37:45,140 you wouldn't want to do that on a real environment, 550 00:37:45,720 --> 00:37:49,420 you can actually just do this and it would simulate that traffic. 551 00:37:50,140 --> 00:37:51,380 It's hung up for a second, 552 00:37:51,480 --> 00:37:53,220 and I don't know if it's having a problem resolving something. 553 00:37:54,140 --> 00:37:56,580 But essentially it's pretty, it's dead simple. 554 00:37:56,780 --> 00:37:58,460 You put in an array of known bad stuff, 555 00:37:58,660 --> 00:38:00,540 and you just do DNS queries on it. 556 00:38:04,900 --> 00:38:05,500 Okay, cool. 557 00:38:06,680 --> 00:38:10,760 So another thing I want to show you real quick is the WebPI module. 558 00:38:34,400 --> 00:38:35,480 I'm going to go back and look at webPI. 559 00:38:35,480 --> 00:38:35,900 Oh, wait. 560 00:38:35,900 --> 00:38:36,900 Okay, so you can see that the problem is in the webpi module. 561 00:38:36,900 --> 00:38:37,500 and when you go to your webpi module you're going to see it's coming up with this very nice, 562 00:38:37,500 --> 00:38:43,240 this is the end of the webpi module. 563 00:38:48,200 --> 00:38:51,820 That's sending me a position on that IP address there. 564 00:38:55,100 --> 00:38:56,760 Just go to it in a browser. 565 00:39:02,440 --> 00:39:08,960 Basically it generates a list, and this is 1,000 pages of data that looks to be credit 566 00:39:08,960 --> 00:39:13,580 cards, CVV, social, and all kinds of other stuff. 567 00:39:13,900 --> 00:39:19,220 Right here it says metasplay.org here, but if you're concerned with any kind of emails 568 00:39:19,220 --> 00:39:23,660 or anything else leaking out of your organization, you can easily replace that. 569 00:39:24,000 --> 00:39:29,000 With a little bit of Ruby knowledge, you can actually go in and edit this to be relevant 570 00:39:29,000 --> 00:39:29,800 to your organization. 571 00:39:30,580 --> 00:39:36,120 Now I'm thinking this could be if you're interested in, like if you're a bank, if you have credit 572 00:39:36,120 --> 00:39:36,640 card numbers. 573 00:39:37,520 --> 00:39:38,720 If you have your... 574 00:39:38,720 --> 00:39:43,800 These first couple of digits here usually indicate what kind of bank it is. 575 00:39:43,960 --> 00:39:49,080 So if I was a bank, I would put fake stuff there and let it leak out of the network to 576 00:39:49,080 --> 00:39:50,580 see if my systems are seeing it. 577 00:39:50,740 --> 00:39:54,380 Or if you're a medical institution and you have medical information, you can actually 578 00:39:54,380 --> 00:39:54,800 do that. 579 00:39:55,400 --> 00:39:58,680 Now, any time this refresh, it generates a... 580 00:39:58,680 --> 00:40:00,120 I didn't do the auto refresh thing. 581 00:40:01,000 --> 00:40:05,260 So you can actually do something, because every 15 seconds it's going to generate 1,000 entries. 582 00:40:05,420 --> 00:40:08,640 So over time you can actually calculate, and you can actually change this. 583 00:40:08,640 --> 00:40:14,220 To say, if you're a pen tester, like Will said, hey, look, I put a server on your network 584 00:40:14,220 --> 00:40:17,780 and I leaked all this data out, I took all this information out. 585 00:40:17,860 --> 00:40:19,460 Did you actually see any of that data? 586 00:40:20,100 --> 00:40:25,000 You're not leaking real data out, but you're just seeing if the organization even has the 587 00:40:25,000 --> 00:40:25,380 visibility. 588 00:40:25,740 --> 00:40:28,240 Do they have their monitoring devices in the right place? 589 00:40:29,700 --> 00:40:31,780 And one of the other things is... 590 00:40:34,180 --> 00:40:36,100 The next one I'm going to show you real quick. 591 00:40:38,060 --> 00:40:38,460 Is... 592 00:40:38,460 --> 00:40:38,620 Okay. 593 00:40:38,640 --> 00:40:42,020 I've actually been playing around with the snort rules. 594 00:40:42,340 --> 00:40:43,340 What's up, guys over there? 595 00:40:43,880 --> 00:40:45,300 My source for our guys in the house. 596 00:40:48,740 --> 00:40:53,420 And I'm going to just do web front page. 597 00:40:54,700 --> 00:41:00,140 So in a case, there's not a lot of environments that have all their snort rules turned on, 598 00:41:00,280 --> 00:41:03,580 but every once in a while there's environments that you might want this rule, this rule, 599 00:41:03,640 --> 00:41:03,920 and this rule. 600 00:41:04,140 --> 00:41:08,260 So what I'm saying, in those particular cases, what you want to do is you want to be able 601 00:41:08,260 --> 00:41:12,640 to send information to those particular servers that you're concerned about and actually 602 00:41:12,640 --> 00:41:12,880 see. 603 00:41:13,080 --> 00:41:23,620 So I actually looked in the VRT rules and I'm actually using a scanner mix-in. 604 00:41:23,820 --> 00:41:26,060 And a scanner mix-in, you can actually send it to several devices. 605 00:41:26,360 --> 00:41:32,540 So if you have a VLAN of like a Class C and you want to actually be able to send stuff 606 00:41:32,540 --> 00:41:36,520 to that whole entire Class C, you can put it in a range or you can put it in a singular 607 00:41:36,520 --> 00:41:37,060 IP address. 608 00:41:37,060 --> 00:41:46,780 What I'm going to do is I'm going to set our host to metasupply.com and I can run 609 00:41:46,780 --> 00:41:47,020 this. 610 00:41:47,420 --> 00:41:53,940 And what it does is just does HTTP requests that should generate some of these rules. 611 00:41:54,240 --> 00:41:58,600 Now I haven't vetted every one of these work yet, but I know I played around with snort 612 00:41:58,600 --> 00:42:01,180 a little bit and it definitely does trigger some of the rules. 613 00:42:01,420 --> 00:42:06,980 So if you're actually interested in some of these things going to your servers, you're 614 00:42:06,980 --> 00:42:07,300 You can do it. 615 00:42:07,500 --> 00:42:11,640 Now this is not intended to try to flood snort or blind operators or anything. 616 00:42:11,860 --> 00:42:19,580 It's just an attempt to be able to point particular rules, I mean what I call attributes, towards 617 00:42:19,580 --> 00:42:26,640 certain different assets and be able to see if you actually have your IDS configured properly. 618 00:42:28,220 --> 00:42:30,580 So I think that we're at the end now. 619 00:42:30,860 --> 00:42:32,960 And I appreciate everyone for coming. 620 00:42:33,080 --> 00:42:33,760 Thank you very much. 621 00:42:37,100 --> 00:42:37,520 Thank you. 622 00:42:38,000 --> 00:42:38,320 Thank you.