1 00:00:00,000 --> 00:00:03,360 All right, I think we're going to start a little bit early because it looks like there's a lot of people here. 2 00:00:04,520 --> 00:00:11,940 Thanks for coming. I'm Val Smith, and basically I do malware analysis, penetration testing, exploit development, 3 00:00:12,140 --> 00:00:13,520 reverse engineering, all that kind of stuff. 4 00:00:14,000 --> 00:00:19,380 I'm one of the founders of Offensive Computing, Metasploit contributor, and CDC NSF. 5 00:00:20,800 --> 00:00:23,300 And I'm Del Chai. Pretty much a lot of the same. 6 00:00:23,300 --> 00:00:31,380 What I do is analysis of logs, analysis of traffic, and I also do development of IDS signatures, 7 00:00:31,760 --> 00:00:37,400 also CDC NSF, and the spiritual advisor for Offensive Computing. 8 00:00:39,760 --> 00:00:40,540 Yeah, definitely. 9 00:00:40,800 --> 00:00:42,140 And there's no joke. You can go to the page. 10 00:00:43,080 --> 00:00:46,940 Okay, so just a real quick background of what Offensive Computing is, in case you don't know. 11 00:00:47,080 --> 00:00:49,400 We're a big online malware research database. 12 00:00:50,260 --> 00:00:51,900 We do all kinds of analysis. 13 00:00:52,040 --> 00:00:53,280 And we basically have a... 14 00:00:53,300 --> 00:00:57,480 We have a malware blog, so when interesting viruses come out, we talk about it on there. 15 00:00:59,660 --> 00:01:09,000 So basically we get our samples from members to the community, donations, honeypots, all that kind of stuff. 16 00:01:09,440 --> 00:01:14,500 Typically we get samples of interesting viruses and malware pretty quick when they come out. 17 00:01:14,600 --> 00:01:21,680 A couple examples are Rustok, which is a pretty intense rootkit, the Dolphin Stadium Trojan, the Semantic Worm. 18 00:01:21,800 --> 00:01:23,060 So we've got like... 19 00:01:23,300 --> 00:01:28,580 160,000 samples, which I think is pretty much the biggest publicly known archive on the net. 20 00:01:28,840 --> 00:01:31,000 And we do auto-analysis on these samples. 21 00:01:31,140 --> 00:01:34,140 So if you go to our site, you'll get a bunch of information about them. 22 00:01:35,420 --> 00:01:38,920 So a little bit about what the auto-analysis is and what is on our database. 23 00:01:39,260 --> 00:01:46,780 There's a searchable web interface where we get file types, multiple checksums, packer detection, which I'll go into a little bit. 24 00:01:47,020 --> 00:01:48,720 And we do a bunch of antivirus scans. 25 00:01:48,900 --> 00:01:53,240 If you've seen something like VirusTotal or one of those, it's similar, except we store more information. 26 00:01:53,300 --> 00:01:58,520 And you can actually search for specific viruses and get copies if you want them. 27 00:01:59,360 --> 00:02:01,900 And that's a nice visualization of the herpes virus. 28 00:02:04,020 --> 00:02:04,500 Okay. 29 00:02:04,940 --> 00:02:08,940 So we have all this malware, thousands and thousands of samples. 30 00:02:09,180 --> 00:02:10,220 What do we do with it? 31 00:02:10,720 --> 00:02:11,540 What's the point? 32 00:02:12,740 --> 00:02:16,980 Well, besides having an archive with analysis that we can check... 33 00:02:19,520 --> 00:02:20,820 Wow, they're loud next door. 34 00:02:21,000 --> 00:02:21,480 Anyway. 35 00:02:23,300 --> 00:02:27,320 We can mine the data for interesting information, especially the strings in the malware. 36 00:02:27,620 --> 00:02:29,940 This is a little more useful than you might think. 37 00:02:30,140 --> 00:02:35,380 Even though a lot of malware is packed or encoded, you can still find a lot of good information. 38 00:02:35,560 --> 00:02:36,840 We'll show some good examples of that. 39 00:02:37,120 --> 00:02:40,800 This talk's going to be kind of light, kind of entertaining and funny, hopefully. 40 00:02:40,980 --> 00:02:43,600 So relax and we'll get to it. 41 00:02:44,600 --> 00:02:53,000 Some of the other good information inside the malware that we'll find is like URLs for command and control callback, droppers, email addresses, IP addresses. 42 00:02:53,080 --> 00:02:53,280 That kind of stuff. 43 00:02:53,300 --> 00:02:53,600 That kind of thing. 44 00:02:55,160 --> 00:02:58,720 So I want to go into a little bit about how this information has been gathered. 45 00:02:59,040 --> 00:03:03,040 We call this talk malware secrets, but it could also be called malware statistics. 46 00:03:03,260 --> 00:03:06,720 Because we're going to go into some statistics that we gathered from this huge collection. 47 00:03:07,940 --> 00:03:13,760 So like I said earlier, the way we get our malware is through honeypots, submissions, spam attachments, that kind of thing. 48 00:03:14,100 --> 00:03:19,320 So it's sort of a dirty collection in the sense that there could be all kinds of files in there. 49 00:03:20,140 --> 00:03:23,200 We do some things to verify that they're actually valid PE files. 50 00:03:23,300 --> 00:03:24,920 But it could be anything. 51 00:03:26,100 --> 00:03:34,680 So each of these files was not manually verified by hand because if it takes like four to eight hours per sample and we have 100,000 samples, we never get done. 52 00:03:35,020 --> 00:03:38,500 So we're relying on a combination of things to know that it's pretty much valid. 53 00:03:40,260 --> 00:03:42,960 We're also going to talk about some antivirus company statistics. 54 00:03:43,540 --> 00:03:48,260 And I want to stress this isn't to be taken as gospel. 55 00:03:48,440 --> 00:03:52,940 It's sort of a fuzzy information to give you some ideas about how things work. 56 00:03:53,000 --> 00:03:53,280 But don't take it for granted. 57 00:03:53,280 --> 00:03:55,380 We don't necessarily take it as set in stone. 58 00:03:56,200 --> 00:04:00,380 We use Linux-based scanners currently to scan our collection. 59 00:04:00,720 --> 00:04:02,420 And we'll go into which ones in a bit. 60 00:04:03,460 --> 00:04:05,780 Now I'm going to turn it over here to this guy in a second. 61 00:04:07,580 --> 00:04:08,440 Oh, real quick. 62 00:04:08,660 --> 00:04:11,260 The results of our auto-analysis are saved into a database. 63 00:04:12,100 --> 00:04:15,600 So we have this huge database with all this information that we can look up. 64 00:04:15,720 --> 00:04:19,160 When you go to our website, there's an interface to this database where you can get this information. 65 00:04:20,340 --> 00:04:22,300 We did a lot of data mining with Perl scripts. 66 00:04:23,280 --> 00:04:24,420 Shell scripts, that sort of thing. 67 00:04:24,700 --> 00:04:28,700 These results are somewhat fuzzy, not necessarily 100% accurate. 68 00:04:28,800 --> 00:04:29,460 But it's pretty good. 69 00:04:29,560 --> 00:04:30,840 And it gives you some interesting trends. 70 00:04:32,120 --> 00:04:35,560 Another thing about our collection is there's a lot of genetically similar samples. 71 00:04:35,880 --> 00:04:38,900 So variants, that's what we mean by genetically similar. 72 00:04:39,300 --> 00:04:43,020 But they have different checksums, but same basic functionality. 73 00:04:44,460 --> 00:04:45,240 You're up, man. 74 00:04:45,540 --> 00:04:46,020 Okay. 75 00:04:46,360 --> 00:04:53,260 My part of the deal is that once things have been reverse engineered, unpacked, and stored in the database, 76 00:04:53,280 --> 00:04:57,560 my part is to go through and what I call shred. 77 00:04:57,860 --> 00:05:02,300 And I go through the strings results of the malware we get searching for specific things. 78 00:05:02,740 --> 00:05:07,440 At first I was doing this by hand, and I discovered that that takes a lot of hand. 79 00:05:07,700 --> 00:05:09,300 So I started to write a tool. 80 00:05:09,420 --> 00:05:10,680 The tool's name is PISDA. 81 00:05:10,940 --> 00:05:18,380 And what PISDA does is it's a series of automatic, automatically goes through the database systematically 82 00:05:19,040 --> 00:05:23,000 and looks and runs a set of 26 unique, 83 00:05:23,280 --> 00:05:28,560 regex and PCRE checks against the strings results of the database, 84 00:05:29,360 --> 00:05:34,680 extracting information such as IP addresses, email addresses, or custom strings. 85 00:05:34,900 --> 00:05:39,100 There's actually a command line function that will allow you to put whatever string you want in there. 86 00:05:39,200 --> 00:05:40,400 So if you're looking for something specific. 87 00:05:41,160 --> 00:05:46,740 And what it does then is it takes the results from that, puts it into a database with a unique marker 88 00:05:46,740 --> 00:05:50,000 as to which piece of malware it came from. 89 00:05:50,160 --> 00:05:53,140 From there, we can correlate things such as, 90 00:05:53,280 --> 00:06:00,140 how many people are using unique, or how many people are using the same pieces of malware, 91 00:06:00,420 --> 00:06:02,360 where they're coming from, what the results are. 92 00:06:03,060 --> 00:06:09,440 And from there, it will automatically, at this point, it automatically generates snort signatures and pushes them out. 93 00:06:09,860 --> 00:06:14,280 So my goal, and I have not achieved it quite yet, 94 00:06:15,000 --> 00:06:20,100 is that from the time a new piece of malware is entered the database until an IDS signature is generated, 95 00:06:20,220 --> 00:06:21,380 is roughly five minutes. 96 00:06:22,340 --> 00:06:23,200 And we have. 97 00:06:23,280 --> 00:06:25,320 Let me show you guys some examples of what we've found. 98 00:06:27,660 --> 00:06:29,380 This is one of the more interesting ones. 99 00:06:29,520 --> 00:06:36,180 777.gif came from approximately 36 unique sources from around the world. 100 00:06:36,400 --> 00:06:44,380 This is a call that was found inside of different pieces of malware to download this particular file. 101 00:06:44,880 --> 00:06:48,740 And I've just got a small sampling of the places that it was found. 102 00:06:49,020 --> 00:06:52,060 But if you actually download 777.gif, 103 00:06:52,180 --> 00:06:53,260 you'll find that it's, 104 00:06:53,260 --> 00:06:55,480 it's not quite a GIF file. 105 00:06:56,140 --> 00:06:59,760 It's actually a little bit of HTML, a little CSS. 106 00:07:00,760 --> 00:07:03,360 And it calls its malware buddies and says, 107 00:07:03,480 --> 00:07:05,060 hey, we're having a party at this computer. 108 00:07:05,260 --> 00:07:06,000 Come on down. 109 00:07:07,520 --> 00:07:11,140 So that's one example of the things that we find correlating the data from PISDA. 110 00:07:12,840 --> 00:07:15,500 And also, we found some really unique things. 111 00:07:15,800 --> 00:07:19,500 And this is a good list of some of the oddball bits that we found. 112 00:07:20,320 --> 00:07:21,280 The NeuroSmart, 113 00:07:21,940 --> 00:07:22,420 StartSmart, 114 00:07:22,420 --> 00:07:27,020 was one that caught me by the short and curlies because I wasn't expecting to find that ever. 115 00:07:28,340 --> 00:07:33,860 Current theory right now is that it actually is making ISOs of your hard drive 116 00:07:34,620 --> 00:07:36,120 and then taking them down. 117 00:07:36,300 --> 00:07:37,700 But that, again, is strictly theory. 118 00:07:37,940 --> 00:07:39,240 Some of the other ones, 119 00:07:39,260 --> 00:07:43,420 you can see where it's executing pieces of malware that it downloaded. 120 00:07:45,680 --> 00:07:48,380 And there's some nice email addresses here. 121 00:07:48,480 --> 00:07:51,640 These email addresses were used as phone homes. 122 00:07:52,420 --> 00:07:59,580 And part of the vetting process is to make sure that the email addresses we're getting are actually being used as phone homes. 123 00:07:59,700 --> 00:08:04,680 Because a lot of times, malware will create false pages that say, 124 00:08:04,860 --> 00:08:06,680 you know, hi, my name's Bill from Yahoo. 125 00:08:06,960 --> 00:08:09,760 If you need help, go to help at yahoo.com, 126 00:08:09,980 --> 00:08:14,120 which obviously isn't going to be any kind of repository. 127 00:08:14,540 --> 00:08:19,480 So part of having the PISDA database is to filter those out, 128 00:08:19,660 --> 00:08:21,420 but to keep the unique ones. 129 00:08:21,420 --> 00:08:23,960 And the last two you see there, 130 00:08:24,180 --> 00:08:26,340 although they seem to look random, 131 00:08:27,340 --> 00:08:32,800 operating theory is that they're encoded in such a way that they may be passing data 132 00:08:32,800 --> 00:08:36,520 in the first part of the email address. 133 00:08:37,460 --> 00:08:40,560 Hey, real quick, actually, we were looking at this. 134 00:08:40,620 --> 00:08:43,720 We tried a bunch of different types of encoders like XORs and ROT13. 135 00:08:44,060 --> 00:08:47,140 Does anybody out there recognize this type of encoding? 136 00:08:47,380 --> 00:08:48,900 Have an idea of what it might be? 137 00:08:50,180 --> 00:08:50,680 Okay. 138 00:08:50,740 --> 00:08:51,400 I'll just open this up. 139 00:08:51,420 --> 00:08:52,660 If somebody would, we'll keep working on it. 140 00:08:52,780 --> 00:08:54,640 But there's lots and lots of these in there. 141 00:08:54,760 --> 00:08:58,240 This is what I do late nights when I'm sitting there home alone, 142 00:08:58,400 --> 00:09:00,920 listening to Pink Floyd, you know, with the black lights on. 143 00:09:03,940 --> 00:09:09,860 And so the thing is, is automated IDF signatures, is that a good idea? 144 00:09:10,060 --> 00:09:12,120 Well, these are the questions I expected you to ask. 145 00:09:13,480 --> 00:09:18,340 It's not the best idea in the world, because sometimes we could have false positives. 146 00:09:18,900 --> 00:09:20,220 And we could have... 147 00:09:20,220 --> 00:09:20,820 We could... 148 00:09:20,820 --> 00:09:26,800 We could automatically create 100,000 signatures, and suddenly the ID has to be clogged. 149 00:09:27,200 --> 00:09:30,340 So right now, it's done manually. 150 00:09:31,720 --> 00:09:33,540 Automatically is just one switch away. 151 00:09:33,860 --> 00:09:35,600 I mean, dash A will make it automatic. 152 00:09:36,380 --> 00:09:40,340 And I've tested that at home, and I've watched my machine go up in smoke. 153 00:09:40,760 --> 00:09:43,840 So I'm working on a way of throttling it. 154 00:09:43,960 --> 00:09:47,780 But the idea is, again, to get accurate signatures out. 155 00:09:47,940 --> 00:09:50,780 So the problem is still being crunched. 156 00:09:50,780 --> 00:09:50,800 Okay. 157 00:09:50,820 --> 00:09:50,840 So let's talk about the database. 158 00:09:50,840 --> 00:09:50,980 So there's a lot of things that we've crunched on. 159 00:09:51,460 --> 00:09:57,720 The database, I have a database that's broken up into three sections, a black list, a white 160 00:09:57,720 --> 00:09:58,640 list, and a gray list. 161 00:09:58,860 --> 00:10:02,800 So a black list would be something we know is bad, we've confirmed is bad. 162 00:10:02,940 --> 00:10:06,860 There's no question whatsoever in this world, like your 777.gif. 163 00:10:07,280 --> 00:10:09,900 A gray list is something we're not quite sure of. 164 00:10:10,000 --> 00:10:15,100 And the reason I do that is because I've discovered a lot lately, websites that are 165 00:10:15,100 --> 00:10:16,000 supposedly innocent. 166 00:10:16,320 --> 00:10:17,120 They are innocent. 167 00:10:17,400 --> 00:10:20,800 A good example was Ma and Pa Kettle Grocery Store. 168 00:10:20,800 --> 00:10:22,720 It was a web page, somewhere in Kansas. 169 00:10:22,920 --> 00:10:24,500 It was a one-page web page. 170 00:10:24,740 --> 00:10:28,700 It just said, you know, all the dry goods you need, come on down, we'll be happy to 171 00:10:28,700 --> 00:10:29,100 see you. 172 00:10:29,520 --> 00:10:34,400 The site had been compromised, but instead of putting something silly on there like, 173 00:10:34,500 --> 00:10:39,640 you know, we are pwned you or something or lolcats or whatever, what they did was they 174 00:10:39,640 --> 00:10:41,760 made a sub-directory and filled it with malware. 175 00:10:42,720 --> 00:10:48,340 And then, okay, consecutive attacks through email or other methods would point back there, 176 00:10:48,520 --> 00:10:50,780 and the owners of the web page would never see it. 177 00:10:50,800 --> 00:10:53,260 They would never know that they're actually a malware repository. 178 00:10:53,880 --> 00:10:58,040 So we would discover things like that, and we'd try to report them. 179 00:10:58,180 --> 00:11:00,340 But sometimes, it's not possible. 180 00:11:01,560 --> 00:11:06,340 Also, delayed deployment because sometimes, there are things that hit the gray list. 181 00:11:06,700 --> 00:11:11,580 The gray list, when we're not really sure, we can delete the deployment of it and manually 182 00:11:11,580 --> 00:11:12,240 check it. 183 00:11:12,460 --> 00:11:19,480 I can't stress enough that the majority of this has been manual labor, actually, one 184 00:11:19,480 --> 00:11:20,680 person sitting down. 185 00:11:20,680 --> 00:11:23,000 and vetting these things out 186 00:11:23,000 --> 00:11:24,360 to make sure they're right or wrong 187 00:11:24,360 --> 00:11:25,720 and then going to automation 188 00:11:25,720 --> 00:11:27,780 because without that 189 00:11:27,780 --> 00:11:29,720 you really open the doors 190 00:11:29,720 --> 00:11:30,720 to make some big mistakes 191 00:11:30,720 --> 00:11:33,540 and I prevented a lot of big mistakes 192 00:11:33,540 --> 00:11:34,380 by doing that 193 00:11:34,380 --> 00:11:36,700 so the PISDA database 194 00:11:36,700 --> 00:11:39,600 is the result of quite a bit 195 00:11:39,600 --> 00:11:41,520 of manual hands-on 196 00:11:41,520 --> 00:11:43,960 it's not just I ran a script 197 00:11:43,960 --> 00:11:45,980 and went and got a bottle of Jack Daniels 198 00:11:45,980 --> 00:11:47,260 and watched Hunt for Red October 199 00:11:47,260 --> 00:11:49,540 I actually sat there 200 00:11:49,540 --> 00:11:50,700 and vetted these things out 201 00:11:50,700 --> 00:11:51,680 by going to the websites 202 00:11:51,680 --> 00:11:53,500 and verifying that these things 203 00:11:53,500 --> 00:11:54,740 are actually malicious 204 00:11:59,280 --> 00:12:00,740 we're not going to catch everything 205 00:12:00,740 --> 00:12:02,540 and the answer to that is 206 00:12:02,540 --> 00:12:03,000 what is? 207 00:12:03,380 --> 00:12:05,100 the idea behind this 208 00:12:05,100 --> 00:12:06,580 is to be an aid to analysts 209 00:12:06,580 --> 00:12:08,000 because as an analyst 210 00:12:08,000 --> 00:12:11,360 your time is valuable 211 00:12:11,360 --> 00:12:13,240 and with this system 212 00:12:13,240 --> 00:12:15,640 you can automate enough of it 213 00:12:15,640 --> 00:12:17,480 that you spend more time 214 00:12:17,480 --> 00:12:18,960 doing the actual 215 00:12:18,960 --> 00:12:19,520 work 216 00:12:19,540 --> 00:12:20,760 I don't want to say legitimate 217 00:12:20,760 --> 00:12:22,340 but resultful work 218 00:12:22,340 --> 00:12:24,340 than spending your time 219 00:12:24,340 --> 00:12:25,740 manually going through things 220 00:12:25,740 --> 00:12:27,000 and manually vetting things 221 00:12:27,000 --> 00:12:29,380 so it's not meant to be an end-all be-all 222 00:12:29,380 --> 00:12:31,060 but it's meant to be an assistant tool 223 00:12:31,060 --> 00:12:32,600 it's something you can run over here 224 00:12:32,600 --> 00:12:34,140 while you're doing something over there 225 00:12:34,720 --> 00:12:37,420 and to help the analysts 226 00:12:37,420 --> 00:12:38,640 do their job better 227 00:12:39,120 --> 00:12:40,620 and the name PISDA 228 00:12:40,620 --> 00:12:42,660 well I was in a mood one night 229 00:12:42,660 --> 00:12:43,920 and I think there's only 230 00:12:43,920 --> 00:12:46,400 one or two people out there 231 00:12:46,400 --> 00:12:48,380 I think who I can see you smiling already 232 00:12:48,380 --> 00:12:49,520 who know exactly what you're doing 233 00:12:49,540 --> 00:12:50,180 and I think that's really what that means 234 00:12:52,220 --> 00:12:53,660 I'm a moody coder 235 00:12:58,320 --> 00:13:00,400 so what's going to be done with PISDA? 236 00:13:00,540 --> 00:13:01,320 it's under improvement 237 00:13:01,320 --> 00:13:02,640 I'm still writing the code 238 00:13:02,640 --> 00:13:04,600 it's a mix of 239 00:13:04,600 --> 00:13:05,680 it's Perl mostly 240 00:13:05,680 --> 00:13:07,160 it's some shell 241 00:13:07,920 --> 00:13:09,320 and people keep asking me 242 00:13:09,320 --> 00:13:10,520 to convert it to Python 243 00:13:10,520 --> 00:13:11,980 which is something I'm working on 244 00:13:11,980 --> 00:13:14,200 but I've got to learn Python first 245 00:13:16,320 --> 00:13:19,100 so and PISDA will be available 246 00:13:20,260 --> 00:13:21,160 on OC 247 00:13:21,160 --> 00:13:23,260 what I'm hoping to do 248 00:13:23,260 --> 00:13:24,060 is I'm hoping to push 249 00:13:24,060 --> 00:13:26,600 the PISDA signatures to OC 250 00:13:26,600 --> 00:13:27,640 so they'll be available 251 00:13:27,640 --> 00:13:28,200 the same 252 00:13:28,200 --> 00:13:29,220 the OC website 253 00:13:29,220 --> 00:13:30,200 so they'll be available 254 00:13:30,200 --> 00:13:30,880 in this manner 255 00:13:30,880 --> 00:13:31,880 similar to the 256 00:13:31,880 --> 00:13:33,640 actual pieces of malware 257 00:13:33,640 --> 00:13:35,640 also it tags 258 00:13:35,640 --> 00:13:37,880 when the signatures are created 259 00:13:37,880 --> 00:13:39,820 they're tagged with a unique ID number 260 00:13:39,820 --> 00:13:41,940 which correlates to the ID number 261 00:13:41,940 --> 00:13:43,880 of the malware in the database 262 00:13:43,880 --> 00:13:46,520 so they're easy to put two and two together 263 00:13:46,520 --> 00:13:48,340 in case of a false positive 264 00:13:48,340 --> 00:13:48,640 or 265 00:13:48,640 --> 00:13:49,520 you know 266 00:13:49,540 --> 00:13:50,680 in a more likely case 267 00:13:50,680 --> 00:13:52,820 it's like I can write a better rule than that 268 00:13:52,820 --> 00:13:54,420 and some people can 269 00:13:54,420 --> 00:13:56,440 and I really respect that 270 00:13:56,440 --> 00:13:57,800 because there's people who 271 00:13:57,800 --> 00:14:00,240 have a lot better skills 272 00:14:00,240 --> 00:14:02,700 at writing IDS rules than I do 273 00:14:04,300 --> 00:14:06,420 it's not meant to be a catch-all 274 00:14:06,420 --> 00:14:06,840 again 275 00:14:06,840 --> 00:14:07,800 it's not meant to be 276 00:14:07,800 --> 00:14:10,100 the end of all things 277 00:14:10,100 --> 00:14:12,040 but with a little bit of work 278 00:14:12,040 --> 00:14:14,140 my goal is to improve 279 00:14:15,160 --> 00:14:16,840 improve the response time 280 00:14:17,440 --> 00:14:18,360 like I said 281 00:14:18,360 --> 00:14:19,340 the idea 282 00:14:19,340 --> 00:14:19,500 the idea 283 00:14:19,500 --> 00:14:19,520 the idea 284 00:14:19,520 --> 00:14:21,280 is to have a window 285 00:14:21,280 --> 00:14:23,300 from when a new piece of malware 286 00:14:23,300 --> 00:14:24,600 hits the OC database 287 00:14:24,600 --> 00:14:26,400 until the time the signatures are released 288 00:14:26,400 --> 00:14:27,500 to be about five minutes 289 00:14:28,620 --> 00:14:29,460 that's the goal 290 00:14:29,460 --> 00:14:31,920 and I'm very very close to that goal 291 00:14:33,340 --> 00:14:34,220 okay so 292 00:14:34,820 --> 00:14:36,140 I'm going to kind of go pretty quick 293 00:14:36,140 --> 00:14:37,260 because I think we've got probably 294 00:14:37,260 --> 00:14:38,780 another 40 slides 295 00:14:38,780 --> 00:14:39,720 and 10 minutes 296 00:14:39,720 --> 00:14:40,000 so 297 00:14:40,000 --> 00:14:40,940 okay 298 00:14:41,760 --> 00:14:42,940 one of the things we did 299 00:14:42,940 --> 00:14:44,760 was gather statistics about packers 300 00:14:44,760 --> 00:14:46,240 this is what people use 301 00:14:46,240 --> 00:14:47,320 to obfuscate their malware 302 00:14:47,320 --> 00:14:48,380 and make it hard to analyze 303 00:14:49,020 --> 00:14:49,500 because 304 00:14:49,500 --> 00:14:50,460 a couple of things we thought were interesting 305 00:14:50,460 --> 00:14:51,820 is which packers you use the most 306 00:14:51,820 --> 00:14:53,720 and also which ones you use the least 307 00:14:53,720 --> 00:14:55,360 why do we only have a couple of samples 308 00:14:55,360 --> 00:14:56,580 with a specific packer 309 00:14:56,580 --> 00:14:58,640 or those may be targeted attacks of some kind 310 00:15:00,540 --> 00:15:02,820 so one of the interesting things we found is 311 00:15:02,820 --> 00:15:04,840 we could actually detect in a lot of cases 312 00:15:04,840 --> 00:15:06,980 what compilers are being used 313 00:15:07,620 --> 00:15:09,620 and this is on a sample set of about 314 00:15:10,300 --> 00:15:12,100 35 to 40,000 samples 315 00:15:13,480 --> 00:15:14,560 so you know 316 00:15:15,480 --> 00:15:16,260 there's the results 317 00:15:16,260 --> 00:15:18,960 basically Microsoft Visual C++ is the 318 00:15:18,960 --> 00:15:20,280 the most commonly used compiler 319 00:15:20,280 --> 00:15:22,640 but Visual Basic, Delphi, etc. 320 00:15:24,780 --> 00:15:25,880 so this is a slide 321 00:15:25,880 --> 00:15:26,980 if you came to my talk yesterday 322 00:15:26,980 --> 00:15:27,980 you might have seen this slide 323 00:15:27,980 --> 00:15:30,280 these are the most commonly used packers 324 00:15:30,960 --> 00:15:33,420 UPEX by far being the most commonly used 325 00:15:33,420 --> 00:15:34,800 and then all the rest 326 00:15:37,460 --> 00:15:39,820 so these are the least used packers 327 00:15:39,820 --> 00:15:41,380 so out of our entire collection 328 00:15:41,880 --> 00:15:43,300 we've only got a few samples 329 00:15:43,300 --> 00:15:46,200 let me explain what these numbers mean here real quick 330 00:15:47,740 --> 00:15:48,940 so basically right now we've got a lot of samples here 331 00:15:48,960 --> 00:15:50,420 right here is the name of the packer 332 00:15:50,420 --> 00:15:52,960 this is how many samples we had 333 00:15:53,600 --> 00:15:55,960 and this is the percentage it represents 334 00:15:55,960 --> 00:15:57,380 of this particular graph 335 00:15:57,380 --> 00:15:58,540 not of the entire total 336 00:15:59,120 --> 00:16:01,220 so like for example morphine 337 00:16:01,220 --> 00:16:03,540 we only detected morphine in one sample 338 00:16:03,540 --> 00:16:05,940 out of 30 to 40,000 339 00:16:05,940 --> 00:16:07,500 which I think is kind of interesting 340 00:16:07,500 --> 00:16:09,140 because morphine is a pretty good packer 341 00:16:09,140 --> 00:16:10,900 I don't know why more people aren't using it 342 00:16:12,880 --> 00:16:15,820 okay so now I'm gonna talk a little bit about AV testing 343 00:16:16,640 --> 00:16:18,700 hopefully there's no AV companies in the audience 344 00:16:18,960 --> 00:16:22,620 so there's lots of sort of misinformation about AV testing 345 00:16:22,620 --> 00:16:23,700 and how it should be done 346 00:16:24,500 --> 00:16:25,840 who performs the best 347 00:16:25,840 --> 00:16:29,500 it turns out that testing AV correctly is actually pretty hard 348 00:16:29,500 --> 00:16:33,440 I don't as far as I know nobody out there really does it the right way 349 00:16:34,300 --> 00:16:36,000 there's a whole set of things you need to do 350 00:16:36,000 --> 00:16:37,220 you need to verify your samples 351 00:16:37,920 --> 00:16:40,800 in some method so that you know yes these are real malware 352 00:16:40,800 --> 00:16:42,660 these actually you know are valid 353 00:16:42,660 --> 00:16:46,700 and then there's all kinds of stuff to test in the antivirus 354 00:16:47,400 --> 00:16:47,840 like 355 00:16:47,840 --> 00:16:50,480 you need to test their static signature capabilities 356 00:16:50,480 --> 00:16:51,600 their heuristic capabilities 357 00:16:51,600 --> 00:16:54,820 different products actually do quite a bit of different things 358 00:16:54,820 --> 00:16:57,060 so there's kind of a lot of variables 359 00:16:59,240 --> 00:17:00,640 just straight up detect 360 00:17:00,640 --> 00:17:05,160 just straight up testing how well each antivirus company detects a sample 361 00:17:05,160 --> 00:17:07,560 is not really that useful 362 00:17:07,560 --> 00:17:09,140 but it's somewhat interesting 363 00:17:09,140 --> 00:17:10,780 and that's basically what we did 364 00:17:10,780 --> 00:17:11,840 so we'll talk about it a bit 365 00:17:13,660 --> 00:17:17,440 so we tested around 30 something thousand samples with this 366 00:17:17,840 --> 00:17:22,060 and about 446 of them weren't detected by any antivirus company 367 00:17:22,060 --> 00:17:23,640 which turns out to be not 368 00:17:23,640 --> 00:17:26,560 you know so taken collectively they don't do too bad 369 00:17:26,560 --> 00:17:27,040 individually 370 00:17:27,820 --> 00:17:29,340 some of them are better than others 371 00:17:29,340 --> 00:17:33,900 out of these 446 files we didn't manually test all of them 372 00:17:33,900 --> 00:17:37,560 but we took a quick sampling and the ones that we did test were indeed malicious 373 00:17:40,480 --> 00:17:42,800 so here's some examples of sort of the 374 00:17:42,800 --> 00:17:47,240 the detection rates of the antivirus products that we tested 375 00:17:47,840 --> 00:17:50,020 uh... you can see there that pretty much bit defender 376 00:17:50,460 --> 00:17:53,260 has a high detection rate now this could mean a lot of things either 377 00:17:53,260 --> 00:17:54,920 it detects whatever 378 00:17:55,420 --> 00:17:57,260 like it has a a very large 379 00:17:57,740 --> 00:17:59,980 signature set which isn't necessarily very good 380 00:18:00,360 --> 00:18:02,660 has a lot of false positives or or maybe it's good 381 00:18:03,340 --> 00:18:05,360 uh... so this is just some sort of informational 382 00:18:05,900 --> 00:18:07,820 slide for you to take into account 383 00:18:07,820 --> 00:18:11,140 uh... i wouldn't necessarily use this to decide oh i'm gonna buy bit defender 384 00:18:11,140 --> 00:18:12,200 because it's the best one 385 00:18:12,580 --> 00:18:14,500 that's not really what this means it's just 386 00:18:14,500 --> 00:18:16,880 on our sample set this is how they did 387 00:18:19,860 --> 00:18:23,340 so this is sort of the converse graph of the previous slide 388 00:18:23,780 --> 00:18:28,720 uh... this shows you which ones miss the most so obviously bit defender misses the 389 00:18:28,720 --> 00:18:30,820 least that's why it's its graph is a little bit smaller 390 00:18:31,520 --> 00:18:34,100 again same uh... take this kind of with a grain of salt 391 00:18:35,760 --> 00:18:38,780 so what else can we find by uh... analyzing all this malware 392 00:18:39,300 --> 00:18:41,860 uh... one of the most interesting things that i found to do is 393 00:18:42,540 --> 00:18:45,120 figure out is malware using your company for some reason 394 00:18:45,480 --> 00:18:46,620 you know you have a name brand 395 00:18:47,240 --> 00:18:47,480 your 396 00:18:47,840 --> 00:18:51,060 you're out there doing business is malware leveraging that you know if you 397 00:18:51,060 --> 00:18:52,160 have a little huge name 398 00:18:52,620 --> 00:18:55,540 maybe they're going to try to trick people into coming to their site by 399 00:18:55,540 --> 00:18:57,140 modifying your name slightly or whatever 400 00:18:57,720 --> 00:18:59,320 are they using you for a drop point 401 00:19:00,020 --> 00:19:03,520 uh... like he was talking before putting malware on your website without you 402 00:19:03,520 --> 00:19:03,940 knowing it 403 00:19:03,940 --> 00:19:05,700 this kind of stuff we can actually detect 404 00:19:08,080 --> 00:19:08,880 okay so 405 00:19:09,240 --> 00:19:11,780 these are going to be a bunch of examples of funny stuff that we found in 406 00:19:11,780 --> 00:19:12,060 malware 407 00:19:12,700 --> 00:19:15,660 uh... parsing the strings yields a whole bunch of different results 408 00:19:16,040 --> 00:19:17,440 like for here there's a lot of just 409 00:19:17,840 --> 00:19:18,160 information websites 410 00:19:20,400 --> 00:19:23,400 uh... we parsed our malware for the word hack 411 00:19:23,860 --> 00:19:26,480 looking for specific urls and we found a whole bunch 412 00:19:27,020 --> 00:19:30,700 uh... one interesting thing to do might be to to go to each one of these pages 413 00:19:30,700 --> 00:19:31,600 and see what's on them 414 00:19:32,840 --> 00:19:36,740 uh... looking for government we find a lot of brazilian sites brazilian bank 415 00:19:36,740 --> 00:19:39,420 trojans are pretty prevalent out there on the internet right now 416 00:19:39,900 --> 00:19:42,860 and uh... for some reason they reference government sites all the time 417 00:19:43,300 --> 00:19:46,180 maybe it's because uh... these are the people that are trying to detect them 418 00:19:46,180 --> 00:19:47,620 and and they're trying to avoid being caught 419 00:19:49,480 --> 00:19:52,040 all kinds of international connections in the malware 420 00:19:52,040 --> 00:19:55,180 uh... there's a website called vx.netlux.org 421 00:19:55,180 --> 00:19:59,860 which is similar to my site it's a virus collection except it's a lot more 422 00:19:59,860 --> 00:20:02,800 basically you don't have to have an account you don't have to do anything you just go 423 00:20:02,800 --> 00:20:03,520 and download whatever 424 00:20:03,520 --> 00:20:07,100 so i think a lot of the the malware actually goes downloads 425 00:20:07,100 --> 00:20:09,760 they're just droppers and they download something more 426 00:20:09,760 --> 00:20:12,140 more nefarious from the netlux site 427 00:20:16,740 --> 00:20:17,820 so a couple other things i want to say about the netlux site is that uh... we have a lot of 428 00:20:17,820 --> 00:20:19,840 other interesting things, some email addresses that show up 429 00:20:19,840 --> 00:20:20,440 all the time. 430 00:20:21,140 --> 00:20:23,620 I think these X-Focus guys, they used to write a lot of 431 00:20:23,620 --> 00:20:26,140 exploits, and probably the malware authors were just 432 00:20:26,140 --> 00:20:29,400 ripping exploits out of the code, dropping it into their 433 00:20:29,400 --> 00:20:30,720 malware, and that's why they're showing up. 434 00:20:31,000 --> 00:20:33,800 Hopefully they're not authoring massive amounts of 435 00:20:33,800 --> 00:20:33,960 malware. 436 00:20:37,220 --> 00:20:39,280 Obviously, these are the kind of things that show up a whole 437 00:20:39,280 --> 00:20:42,000 bunch, banks, social security numbers, credit card. 438 00:20:43,220 --> 00:20:45,420 So one of the trends we've noticed is the financial 439 00:20:45,420 --> 00:20:48,580 motivation behind malware is growing quite a bit. 440 00:20:49,360 --> 00:20:50,780 So just interesting URLs. 441 00:20:52,480 --> 00:20:53,880 I thought this was kind of funny. 442 00:20:57,680 --> 00:21:00,500 I don't know if you can patent that, but it might be worth a 443 00:21:00,500 --> 00:21:00,680 shot. 444 00:21:02,300 --> 00:21:04,620 So yeah, you can find stuff like botnets. 445 00:21:05,700 --> 00:21:07,400 This is pretty much some botnet commands. 446 00:21:08,700 --> 00:21:11,080 I don't know why someone would put this in a malware sample, 447 00:21:13,960 --> 00:21:14,840 but whatever. 448 00:21:15,780 --> 00:21:17,720 Maybe after they own you, they want you to know what 449 00:21:17,720 --> 00:21:18,260 they think of you. 450 00:21:20,640 --> 00:21:22,280 This came up thousands of times. 451 00:21:22,540 --> 00:21:25,120 I don't know why anyone would use this thing, but there's 452 00:21:25,120 --> 00:21:25,820 credit card generator. 453 00:21:27,220 --> 00:21:29,900 Yeah, if you see this, don't do it. 454 00:21:35,220 --> 00:21:36,680 I thought this one was a little bit funny. 455 00:21:37,820 --> 00:21:40,840 Some malware out there is using TFTP to hack your box. 456 00:21:42,840 --> 00:21:43,920 This was kind of interesting. 457 00:21:44,040 --> 00:21:44,840 It's a little bit hard to read. 458 00:21:45,420 --> 00:21:49,080 But what this shows me is that whoever wrote this piece of 459 00:21:49,080 --> 00:21:51,900 malware had access to the R bot source code, and it sort of 460 00:21:51,900 --> 00:21:54,940 gives you some hints as to who they might be, the path on 461 00:21:54,940 --> 00:21:57,200 their computer where they're coding this up. 462 00:21:59,720 --> 00:22:01,460 So this guy's kind of a friendly hacker. 463 00:22:03,820 --> 00:22:06,140 Someone who doesn't speak English very well, I guess. 464 00:22:07,380 --> 00:22:09,920 I'm not sure what a web station is, but he hacked it. 465 00:22:12,300 --> 00:22:15,080 These guys apparently own a lot of stuff and say goodbye. 466 00:22:16,060 --> 00:22:17,180 More source code. 467 00:22:17,320 --> 00:22:18,140 This is interesting. 468 00:22:18,320 --> 00:22:19,120 Hotmail hack tool. 469 00:22:19,360 --> 00:22:20,320 Visual Basic Script. 470 00:22:23,220 --> 00:22:24,500 Cancer and Jesus owned you. 471 00:22:28,140 --> 00:22:30,100 So I thought this was really interesting. 472 00:22:30,300 --> 00:22:33,660 He's asking you not to send the police to him, but he's 473 00:22:33,660 --> 00:22:36,860 telling you where he is, and who his crew is, and who he is. 474 00:22:38,380 --> 00:22:40,660 So why would you encode this in your virus? 475 00:22:40,720 --> 00:22:41,140 I don't know. 476 00:22:44,040 --> 00:22:44,900 This poor guy. 477 00:22:50,280 --> 00:22:51,260 Yeah, I don't know. 478 00:22:51,300 --> 00:22:52,020 I feel sorry for him. 479 00:22:53,880 --> 00:22:55,540 I don't know if you guys recognize that picture. 480 00:22:55,620 --> 00:22:57,160 That's the Barbie bank robbers. 481 00:22:58,320 --> 00:23:01,300 But yeah, banks show up all the time in our malware 482 00:23:01,300 --> 00:23:02,920 collection, just tons and tons of banks. 483 00:23:03,240 --> 00:23:05,760 So I think a lot of the malware is actually trying to 484 00:23:05,760 --> 00:23:06,920 steal your account. 485 00:23:07,580 --> 00:23:09,920 Have you ever seen those keyboards that you use your 486 00:23:09,920 --> 00:23:10,960 mouse instead of typing? 487 00:23:11,260 --> 00:23:12,720 That really doesn't do you any good. 488 00:23:13,980 --> 00:23:15,400 So don't do online banking. 489 00:23:17,460 --> 00:23:18,180 All right. 490 00:23:18,300 --> 00:23:21,840 So basically, in conclusion, we've got this huge collection 491 00:23:21,840 --> 00:23:24,340 of malware, and it provides a lot of interesting data mining 492 00:23:24,340 --> 00:23:24,800 opportunities. 493 00:23:25,760 --> 00:23:28,100 You can also do A-V testing to get some ideas. 494 00:23:28,460 --> 00:23:30,280 It's not the best way to test A-V, but you get 495 00:23:30,280 --> 00:23:30,860 some good results. 496 00:23:33,040 --> 00:23:35,000 So basically, thanks for listening. 497 00:23:35,120 --> 00:23:35,740 My time's up. 498 00:23:36,120 --> 00:23:37,140 And I appreciate it. 499 00:23:37,220 --> 00:23:37,900 You got anything to add? 500 00:23:38,160 --> 00:23:38,540 Thank you. 501 00:23:39,700 --> 00:23:40,060 Thank you. 502 00:23:40,500 --> 00:23:40,860 Thank you. 503 00:23:41,280 --> 00:23:41,640 Thank you. 504 00:23:44,800 --> 00:23:45,340 Thank you. 505 00:23:45,340 --> 00:23:47,800 Thanks to everyone who came to the party last night at Crave. 506 00:23:47,820 --> 00:23:49,280 Yeah, that was a great party last night. 507 00:23:49,360 --> 00:23:53,700 And a big shout out to the NSF for helping Flyer and help 508 00:23:53,700 --> 00:23:54,240 run the thing. 509 00:23:55,860 --> 00:23:58,300 CDC, Metasploit, Poundvax, 303. 510 00:23:58,440 --> 00:23:58,840 Thanks. 511 00:23:59,660 --> 00:24:00,200 Thanks, guys.