1 00:00:00,000 --> 00:00:02,920 My name's Simon, I'm from New Zealand. 2 00:00:03,740 --> 00:00:05,880 All the Kiwis in the audience, put your horns up. 3 00:00:07,440 --> 00:00:07,900 Yes. 4 00:00:09,280 --> 00:00:12,180 Okay, I'm from Mintz Research. 5 00:00:12,480 --> 00:00:15,500 I was looking through the DEF CON program and I saw these people like 6 00:00:15,500 --> 00:00:18,040 founder of XYZ company, so I thought 7 00:00:20,700 --> 00:00:22,440 founder of XYZ company 8 00:00:22,440 --> 00:00:26,120 and so I thought, I can be a founder of a company too, so 9 00:00:26,120 --> 00:00:27,720 I'm founder of Mintz Research. 10 00:00:30,000 --> 00:00:34,140 Okay, so the original concept for the contest came about when I was 11 00:00:34,140 --> 00:00:36,860 drinking beer at DeepSec with a dude called Rich. 12 00:00:38,460 --> 00:00:41,560 We're talking about the PDF mail-to vulnerability, which had came out 13 00:00:41,560 --> 00:00:44,340 and we got the sample and 14 00:00:44,860 --> 00:00:47,280 ran it through VirusTotal, it was all detected. 15 00:00:47,460 --> 00:00:50,860 Then we modified it a little bit, ran it through VirusTotal again 16 00:00:50,860 --> 00:00:54,440 and then you got like two or three, maybe four engines 17 00:00:54,440 --> 00:00:57,420 detecting it, so we thought, hmm, this isn't very good. 18 00:00:57,500 --> 00:00:59,980 The signatures for this kind of stuff are a bit shabby. 19 00:01:00,000 --> 00:01:00,160 Shit. 20 00:01:02,620 --> 00:01:05,540 Then, so we released the idea for the contest 21 00:01:06,340 --> 00:01:08,800 that we're going to be running a race to zero at DEF CON 22 00:01:08,800 --> 00:01:12,660 and the media got a hold of it and they went mad. 23 00:01:14,020 --> 00:01:15,920 Some good, some bad 24 00:01:15,920 --> 00:01:18,060 and a lot of sensationalist reporting. 25 00:01:18,360 --> 00:01:22,020 So we got the guys from Offensive Computing, they say a golden opportunity 26 00:01:22,020 --> 00:01:23,600 for the antivirus industry. 27 00:01:24,520 --> 00:01:27,700 Then Trend Micro came along, it'll do more harm than good 28 00:01:27,700 --> 00:01:29,840 and Kapersky, my favourite, 29 00:01:30,320 --> 00:01:34,060 what about a live bank robbing contest to test bank security systems? 30 00:01:34,340 --> 00:01:38,800 Maybe a drug distribution trial ends at school to test narcotics police. 31 00:01:39,420 --> 00:01:40,940 I think that's a good idea, Eugene. 32 00:01:44,180 --> 00:01:45,880 Then SoFast rocked up and they're like, 33 00:01:46,040 --> 00:01:49,740 do you want to be a victim of this game? 34 00:01:52,120 --> 00:01:53,800 Cheers to the Von Dev guys there. 35 00:01:55,660 --> 00:01:57,340 You might have seen these t-shirts around. 36 00:02:00,040 --> 00:02:02,260 So, our motivations for the contest. 37 00:02:02,920 --> 00:02:06,280 We wanted to highlight the shortcomings in blacklisting technologies. 38 00:02:07,440 --> 00:02:10,100 We wanted to see which vendors were doing a good job 39 00:02:10,100 --> 00:02:13,900 and observe the real world difficulty of avoiding detection 40 00:02:13,900 --> 00:02:15,320 by the different AV products. 41 00:02:15,960 --> 00:02:20,000 And also look at the costs and the time spent on each of the samples 42 00:02:20,000 --> 00:02:22,100 to get them through the different engines 43 00:02:22,100 --> 00:02:23,920 and how much skill was required. 44 00:02:24,720 --> 00:02:27,340 And also, I was a Pearl Zealot from way back 45 00:02:27,340 --> 00:02:29,820 and everyone's like, Pearl sucks, Pearl sucks, 46 00:02:30,000 --> 00:02:31,000 you've got to get into Python. 47 00:02:31,860 --> 00:02:34,060 So, we're all right then, I'll learn Python. 48 00:02:34,380 --> 00:02:37,220 And so the whole engine and interface stuff was written in Python. 49 00:02:39,800 --> 00:02:43,580 So, what's the main problem with antivirus? 50 00:02:44,020 --> 00:02:47,880 We all know that signature or pattern-based blacklisting is dead. 51 00:02:48,180 --> 00:02:51,040 But things are starting to get better in the AV industry. 52 00:02:51,820 --> 00:02:54,220 Particularly in the home versions of software. 53 00:02:54,920 --> 00:02:58,200 They're starting to incorporate the behavioural-based technologies. 54 00:03:00,140 --> 00:03:02,020 Yet, things are slowly getting better. 55 00:03:02,120 --> 00:03:03,820 But there's still problems with your browser. 56 00:03:03,980 --> 00:03:07,140 Like, your browser's almost like a little mini operating system nowadays. 57 00:03:07,500 --> 00:03:10,040 And there's still all the file-based exploits as well. 58 00:03:14,500 --> 00:03:17,680 However, AV in the enterprise is still a big problem 59 00:03:17,680 --> 00:03:20,980 and it's still lagging behind the desktop versions of the software. 60 00:03:21,720 --> 00:03:23,440 So, with the desktop version, 61 00:03:23,520 --> 00:03:25,660 they've got the behavioural-based technologies in there, 62 00:03:25,720 --> 00:03:27,040 but that's sort of like the sounding board 63 00:03:27,040 --> 00:03:28,440 before it goes into the enterprise. 64 00:03:28,860 --> 00:03:29,840 And this is... 65 00:03:30,380 --> 00:03:34,900 F-Secure have got lots of honeypots all around the world 66 00:03:34,900 --> 00:03:36,280 and they collect... 67 00:03:37,240 --> 00:03:39,840 Like, they look at boxes that are sending out malware 68 00:03:39,840 --> 00:03:43,640 and they log their IP address and load it into Google KML 69 00:03:43,640 --> 00:03:46,500 or the key markup language and then plot it on Google Maps. 70 00:03:46,800 --> 00:03:47,920 And you can zoom around 71 00:03:47,920 --> 00:03:50,120 and you can see all the infected hosts on the net. 72 00:03:52,180 --> 00:03:55,080 And here we see there's a navy.mil box that's infected. 73 00:03:55,400 --> 00:03:56,960 It's probably running antivirus. 74 00:03:57,160 --> 00:03:58,500 The antivirus might be out of date 75 00:03:58,500 --> 00:03:59,860 or it's probably... 76 00:03:59,860 --> 00:04:02,700 It probably just hasn't got any behavioural-based detection in there. 77 00:04:04,160 --> 00:04:06,180 Just before I came over to Vegas, 78 00:04:06,280 --> 00:04:10,080 I was involved in an incident at a corporate in New Zealand, 79 00:04:10,200 --> 00:04:12,240 3,000 seats, which is big in New Zealand. 80 00:04:12,660 --> 00:04:14,180 Like, it's nothing over here, I suppose. 81 00:04:14,820 --> 00:04:18,360 But they had got that antivirus on the desktop 82 00:04:18,360 --> 00:04:21,960 and the users had gone to their web mail via HTTPS 83 00:04:21,960 --> 00:04:24,320 and downloaded postcard.exe, 84 00:04:24,420 --> 00:04:27,520 which is that hallmark virus that got released recently, 85 00:04:28,160 --> 00:04:29,300 and clicked on it, 86 00:04:29,300 --> 00:04:31,160 and then it just went all through the organisation. 87 00:04:31,460 --> 00:04:33,540 It was copying itself to Samba shares 88 00:04:33,540 --> 00:04:35,140 and other people were clicking on it 89 00:04:35,140 --> 00:04:36,840 and it was just a mess. 90 00:04:37,120 --> 00:04:38,980 And they wondered, well, we've got antivirus. 91 00:04:39,040 --> 00:04:41,180 Why isn't this picking it up? 92 00:04:41,420 --> 00:04:44,920 And it's because there's no signature for it yet. 93 00:04:47,520 --> 00:04:49,080 Okay, so the real problem is, 94 00:04:49,240 --> 00:04:50,960 and this is a quote from a mate of mine, 95 00:04:51,140 --> 00:04:52,640 because they've finally realised, 96 00:04:53,300 --> 00:04:55,040 and they meaning the antivirus industry, 97 00:04:55,380 --> 00:04:57,280 that you have to assume your users 98 00:04:57,280 --> 00:04:59,220 have the mental capacity of a two-year-old, 99 00:04:59,220 --> 00:05:01,580 they're more likely to smear shit on the keyboard 100 00:05:01,580 --> 00:05:03,600 than actually use a product correctly. 101 00:05:06,960 --> 00:05:10,020 So, even if they've got this behavioural-based technology, 102 00:05:10,480 --> 00:05:13,460 we have to make it as simple to use as possible for them, 103 00:05:13,500 --> 00:05:15,480 because they're just going to be clicking next, next, next. 104 00:05:15,840 --> 00:05:18,520 Oh, postcard.exe wants to connect to the internet. 105 00:05:18,760 --> 00:05:20,960 Must be downloading some more postcards for me. 106 00:05:21,000 --> 00:05:21,840 Next, next, next. 107 00:05:24,780 --> 00:05:26,480 So, even when you've got these products 108 00:05:26,480 --> 00:05:29,120 that have got the behavioural technologies in them, 109 00:05:30,840 --> 00:05:32,820 that normally when you install them, 110 00:05:33,700 --> 00:05:35,260 it'll be an extra option, 111 00:05:35,400 --> 00:05:37,040 it'll be like the advanced feature set, 112 00:05:37,200 --> 00:05:38,740 or the expert level, 113 00:05:38,940 --> 00:05:40,940 or in McAfee's case here, the maximum protection. 114 00:05:41,760 --> 00:05:44,440 But normally the users, when they're installing a product, 115 00:05:44,540 --> 00:05:46,340 they're clicking next, next, next, next, next, 116 00:05:46,460 --> 00:05:48,480 and they don't see that there. 117 00:05:48,720 --> 00:05:50,360 They just, oh, maximum protection? 118 00:05:50,800 --> 00:05:52,420 I'll just go with standard, thanks. 119 00:05:55,440 --> 00:05:57,600 So, if there's one positive message 120 00:05:57,600 --> 00:05:58,740 that comes out of this contest, 121 00:05:58,740 --> 00:05:59,960 after all the negative shit, 122 00:06:00,580 --> 00:06:03,800 is mum or mom and dad at home 123 00:06:03,800 --> 00:06:05,800 need to enable their behavioural-based detection. 124 00:06:06,240 --> 00:06:07,840 And if the AV doesn't have it, 125 00:06:07,880 --> 00:06:10,180 or it's out of date, or it's an average product, 126 00:06:10,360 --> 00:06:12,000 go out and buy the upgraded version, 127 00:06:12,180 --> 00:06:13,320 and then turn it on. 128 00:06:14,020 --> 00:06:16,380 And there's also the whitelisting technologies 129 00:06:16,380 --> 00:06:17,240 like CoreTrace, 130 00:06:18,500 --> 00:06:21,720 which are sort of the alternative to AV, 131 00:06:21,920 --> 00:06:24,520 but then you still need to include AV with those products 132 00:06:24,520 --> 00:06:27,720 to detect the exploits for unpatched software. 133 00:06:28,040 --> 00:06:28,720 There's mum and dad at home, 134 00:06:28,740 --> 00:06:29,900 and mum and dad don't patch their boxes, 135 00:06:30,020 --> 00:06:32,980 so they need to have detection for the JPEG exploits, 136 00:06:33,000 --> 00:06:34,680 and ANI, WMF. 137 00:06:36,560 --> 00:06:38,000 Okay, so we'll get on to the engine. 138 00:06:39,900 --> 00:06:42,780 I developed this on Xen, 139 00:06:42,860 --> 00:06:45,920 so each of the VMs down the bottom there were, 140 00:06:46,900 --> 00:06:48,080 so where it says AV, 141 00:06:48,220 --> 00:06:51,020 that's a copy of Windows XP running in a Xen VM. 142 00:06:51,760 --> 00:06:54,280 And so all 10 of them were running on this laptop, 143 00:06:54,480 --> 00:06:58,200 so it's pretty, with a 256 mega RAM each. 144 00:06:58,820 --> 00:07:02,060 At the top, the Cherry PY would accept connections. 145 00:07:03,260 --> 00:07:04,480 It would auth the user, 146 00:07:05,060 --> 00:07:07,000 and then they'd upload their sample. 147 00:07:07,640 --> 00:07:09,280 The sample would get archived, 148 00:07:09,340 --> 00:07:11,060 and then dropped on the CIFS share, 149 00:07:11,240 --> 00:07:13,960 and then the session scheduler would connect 150 00:07:13,960 --> 00:07:15,640 to each of the AV instances and say, 151 00:07:15,740 --> 00:07:17,940 hey, go and check on the CIFS share, 152 00:07:18,040 --> 00:07:19,740 I've got a new file for you to scan. 153 00:07:21,000 --> 00:07:23,060 The results would then get stored in the database, 154 00:07:23,200 --> 00:07:24,800 and then I could look at them 155 00:07:24,800 --> 00:07:26,420 and analyze them after the contest. 156 00:07:29,800 --> 00:07:33,040 Oh, sorry, when we did it in production 157 00:07:33,040 --> 00:07:34,620 out in the contest area, 158 00:07:34,820 --> 00:07:38,060 it was two VMware ESXi boxes, 159 00:07:38,260 --> 00:07:40,960 and they each had five VMs each on them. 160 00:07:43,500 --> 00:07:45,140 Okay, so the engines I used, 161 00:07:45,960 --> 00:07:49,740 Clam AV, Nod32, Fprop, Virus Buster, 162 00:07:49,840 --> 00:07:50,800 all the common ones. 163 00:07:51,880 --> 00:07:53,240 Symantec weren't in there because 164 00:07:53,240 --> 00:07:55,460 the way that I integrated the engines 165 00:07:55,460 --> 00:07:58,020 was via the command line scanner. 166 00:07:58,740 --> 00:08:02,600 So I'd wrap that up with all the different parameters, 167 00:08:02,720 --> 00:08:05,620 like slash heuristic and slash archive, 168 00:08:05,660 --> 00:08:07,900 and all the ones that they had available 169 00:08:07,900 --> 00:08:08,820 for each of the engines. 170 00:08:08,860 --> 00:08:10,080 Some of them were quite minimalist, 171 00:08:10,140 --> 00:08:13,020 and that probably wasn't a good indication 172 00:08:13,020 --> 00:08:14,660 of how well that antivirus product 173 00:08:14,660 --> 00:08:16,060 may perform in the wild. 174 00:08:19,800 --> 00:08:21,960 But most of them were pretty good. 175 00:08:23,100 --> 00:08:24,820 And this is an example here of 176 00:08:24,820 --> 00:08:26,640 after someone has uploaded the file, 177 00:08:26,800 --> 00:08:27,900 it'll scan it through, 178 00:08:27,900 --> 00:08:29,240 and this is the stoned virus, 179 00:08:29,500 --> 00:08:30,920 which is a very old DOS one, 180 00:08:32,040 --> 00:08:33,560 just showing all the detections. 181 00:08:33,560 --> 00:08:35,260 So it's 10 out of 10 detection rate. 182 00:08:37,280 --> 00:08:39,200 The samples that I gave the contestants, 183 00:08:40,180 --> 00:08:42,460 there was 10 levels. 184 00:08:43,120 --> 00:08:45,300 So the first one was the old DOS stoned virus. 185 00:08:46,100 --> 00:08:48,240 And then we went through a few Trojans, 186 00:08:48,280 --> 00:08:49,600 Netsky, Bagel, Sasa, 187 00:08:49,820 --> 00:08:50,980 all the common ones there. 188 00:08:51,440 --> 00:08:53,920 And then level eight was MS Word vulnerability. 189 00:08:53,940 --> 00:08:56,440 I think it was MS07014. 190 00:08:57,900 --> 00:08:59,120 Then the ANI exploit, 191 00:08:59,340 --> 00:09:00,620 and finally was the, 192 00:09:02,020 --> 00:09:03,100 was Slammer exploit. 193 00:09:05,480 --> 00:09:06,520 Which is the SQL. 194 00:09:10,480 --> 00:09:11,780 So I think this is probably 195 00:09:11,780 --> 00:09:13,500 what my girlfriend thinks about me 196 00:09:13,500 --> 00:09:14,680 when I'm doing this kind of shit. 197 00:09:16,620 --> 00:09:18,500 You've probably all seen this on XKCD. 198 00:09:24,360 --> 00:09:27,380 Okay, so were malware or exploits, 199 00:09:27,900 --> 00:09:30,960 harder to bypass through the engines. 200 00:09:32,400 --> 00:09:33,980 With the blacklisting technologies, 201 00:09:34,480 --> 00:09:36,400 the malware was, 202 00:09:37,700 --> 00:09:39,680 once the teams had worked out 203 00:09:39,680 --> 00:09:41,100 the first malware sample, 204 00:09:41,200 --> 00:09:42,020 or after stoned, 205 00:09:42,040 --> 00:09:43,220 stoned was probably quite hard, 206 00:09:43,300 --> 00:09:44,980 and I shouldn't have included it as level one. 207 00:09:45,200 --> 00:09:47,160 But it sort of weeded out the real players. 208 00:09:48,940 --> 00:09:50,520 Once they got past that, 209 00:09:50,600 --> 00:09:51,700 and then they got the Trojans, 210 00:09:51,720 --> 00:09:53,800 all they needed to do was work out their packer, 211 00:09:53,820 --> 00:09:54,400 and get it working, 212 00:09:54,560 --> 00:09:56,700 and then they'd fly through all the 213 00:09:56,700 --> 00:09:58,280 virus samples. 214 00:09:58,460 --> 00:09:59,900 Then they'd get onto the exploits, 215 00:09:59,900 --> 00:10:01,540 and then that's where people slowed down again, 216 00:10:01,640 --> 00:10:03,060 and took a bit more time. 217 00:10:05,320 --> 00:10:07,280 I enabled heuristics where available, 218 00:10:07,460 --> 00:10:08,060 as I said before. 219 00:10:08,600 --> 00:10:11,120 And the exploit signatures for some of the engines 220 00:10:11,120 --> 00:10:12,120 were really tight, 221 00:10:12,240 --> 00:10:13,900 and that's where those products were winning. 222 00:10:17,160 --> 00:10:19,420 Okay, so techniques that the teams use. 223 00:10:20,480 --> 00:10:23,460 Team 4919 used a custom Trojan dropper 224 00:10:23,460 --> 00:10:25,580 to get through all the virus samples. 225 00:10:27,020 --> 00:10:28,500 Protected and executable with T, 226 00:10:28,700 --> 00:10:30,400 and decrypts and executes it at runtime. 227 00:10:32,360 --> 00:10:34,360 MGM used git tick count, 228 00:10:34,560 --> 00:10:38,060 so they were just spinning the CPU for a long time, 229 00:10:38,200 --> 00:10:40,880 and the AV engines would just eventually time out. 230 00:10:41,340 --> 00:10:43,560 And with the way I was doing the scanning, 231 00:10:43,740 --> 00:10:48,300 if the engine didn't return a result within 60 seconds, 232 00:10:48,440 --> 00:10:49,300 it was task killed, 233 00:10:49,460 --> 00:10:51,020 and then it would just return a clean. 234 00:10:51,600 --> 00:10:55,220 So, I didn't want it locking up. 235 00:10:55,220 --> 00:11:00,280 But then they can get past it with tricky techniques like this. 236 00:11:02,140 --> 00:11:05,720 Team Retim also did a custom Trojan dropper, 237 00:11:05,820 --> 00:11:09,080 and they included a Mandelbrot fractal generator 238 00:11:09,080 --> 00:11:10,260 inside their dropper, 239 00:11:10,320 --> 00:11:12,180 so that when you executed the code, 240 00:11:12,360 --> 00:11:13,820 it popped up the fractal. 241 00:11:13,900 --> 00:11:15,100 It was pretty cool. 242 00:11:17,620 --> 00:11:19,540 But the problem with the droppers was 243 00:11:20,180 --> 00:11:21,520 that the file that they dropped 244 00:11:21,520 --> 00:11:24,780 was exactly the same as the sample I'd given them. 245 00:11:24,780 --> 00:11:27,180 So when the user sees the CXE on the desktop 246 00:11:27,180 --> 00:11:28,000 and they go to run it, 247 00:11:28,100 --> 00:11:29,660 the antivirus is going to pick it up anyway. 248 00:11:30,220 --> 00:11:32,200 But for the concept of the contest, 249 00:11:33,400 --> 00:11:35,280 they got through the engines all right, 250 00:11:35,360 --> 00:11:37,520 but I probably should have stipulated more 251 00:11:37,520 --> 00:11:40,700 that they should actually be modifying the samples more, 252 00:11:40,840 --> 00:11:42,900 not just repacking them. 253 00:11:43,160 --> 00:11:45,140 And if they did pack them and drop them, 254 00:11:45,260 --> 00:11:48,360 then modify them so they're not the same. 255 00:11:51,720 --> 00:11:54,460 Okay, so some techniques for the exploit stuff. 256 00:11:54,780 --> 00:11:56,200 Team 4919, 257 00:11:57,840 --> 00:11:59,760 within the original Slammer payload, 258 00:11:59,940 --> 00:12:02,060 there's a loop for reserving space on the stack. 259 00:12:03,040 --> 00:12:05,600 And Team 4919 replaced this 260 00:12:05,600 --> 00:12:06,840 with three push-AD instructions, 261 00:12:07,500 --> 00:12:08,760 saving three bytes. 262 00:12:09,700 --> 00:12:13,300 And they did some other obfuscation mechanisms there. 263 00:12:14,380 --> 00:12:17,100 And they also replaced the RNG loop 264 00:12:17,100 --> 00:12:20,540 with a single RDTSC instruction. 265 00:12:22,560 --> 00:12:24,140 There are only four teams 266 00:12:24,780 --> 00:12:26,940 to complete the contest out of a total of 10. 267 00:12:27,800 --> 00:12:30,720 And the teams that didn't complete the contest, 268 00:12:31,000 --> 00:12:33,220 they pretty much couldn't get past level one. 269 00:12:38,260 --> 00:12:39,700 So this graph here shows 270 00:12:40,560 --> 00:12:44,080 the number of detections for the particular engines. 271 00:12:46,900 --> 00:12:50,100 And we can see there that McAfee pretty, like, got 90. 272 00:12:50,320 --> 00:12:52,460 I think there was over 200 samples 273 00:12:53,160 --> 00:12:54,720 and McAfee there detected 274 00:12:54,780 --> 00:12:57,380 about 90 of them, 90 of the 200. 275 00:12:57,680 --> 00:12:59,840 So just under 50%. 276 00:13:04,120 --> 00:13:05,840 Okay, here's level one with the stone virus. 277 00:13:05,980 --> 00:13:07,220 You can see there that F-Prop, 278 00:13:07,360 --> 00:13:09,600 like I remember when I used to run DOS, 279 00:13:09,680 --> 00:13:11,420 F-Prop was the virus scanner. 280 00:13:11,780 --> 00:13:14,060 So it's not surprising that they can detect 281 00:13:14,060 --> 00:13:15,920 multiple variants of stone there. 282 00:13:16,000 --> 00:13:17,780 Even when people have obfuscated them 283 00:13:17,780 --> 00:13:18,720 and re-upload them, 284 00:13:18,920 --> 00:13:20,420 F-Prop was still kicking ass. 285 00:13:23,160 --> 00:13:23,960 Netsky.p, 286 00:13:25,160 --> 00:13:26,960 again, samples would be uploaded, 287 00:13:27,180 --> 00:13:28,200 the engines would scan them. 288 00:13:28,260 --> 00:13:30,920 This is the results for level two Netsky.p. 289 00:13:31,400 --> 00:13:32,880 Trend Micro there did pretty well. 290 00:13:34,600 --> 00:13:35,900 Now it gets a bit more interesting 291 00:13:35,900 --> 00:13:37,300 when you get into the exploit samples 292 00:13:37,300 --> 00:13:39,680 because if the AB company have written 293 00:13:39,680 --> 00:13:41,860 a really tight detection for that sample, 294 00:13:42,060 --> 00:13:43,580 then it's going to be bloody hard 295 00:13:43,580 --> 00:13:45,220 to get it through all the engines. 296 00:13:45,480 --> 00:13:47,640 So if they are targeting the actual exploit, 297 00:13:47,720 --> 00:13:49,180 like in the text field, 298 00:13:49,300 --> 00:13:52,480 if the, like, a line here 299 00:13:52,480 --> 00:13:54,420 is longer than 255 characters, 300 00:13:54,800 --> 00:13:56,460 it's going to be a virus 301 00:13:56,460 --> 00:13:57,700 or it's going to be malicious 302 00:13:57,700 --> 00:13:59,700 because we know it's never going to be 303 00:13:59,700 --> 00:14:00,620 any longer than that. 304 00:14:01,480 --> 00:14:03,700 So you can see there Kapersky did really well 305 00:14:03,700 --> 00:14:05,600 on MS07-014 exploit. 306 00:14:08,060 --> 00:14:09,180 And no, 307 00:14:09,400 --> 00:14:11,820 one team did get past this, 308 00:14:11,980 --> 00:14:14,160 but the problem was 309 00:14:14,160 --> 00:14:15,620 with Bitdefender, 310 00:14:15,680 --> 00:14:18,140 the Trojan included an executable 311 00:14:18,140 --> 00:14:20,520 and the Bitdefender engine 312 00:14:20,520 --> 00:14:22,460 was looking for the MZ header within the 313 00:14:22,480 --> 00:14:22,920 Word doc. 314 00:14:23,600 --> 00:14:26,600 So team 4919 315 00:14:26,600 --> 00:14:28,780 couldn't get past that bit. 316 00:14:29,120 --> 00:14:30,600 The Kapersky engine 317 00:14:30,600 --> 00:14:32,460 had the actual 318 00:14:32,460 --> 00:14:34,300 targeted code 319 00:14:34,300 --> 00:14:35,140 for the exploit. 320 00:14:36,460 --> 00:14:37,980 So here we looked at 321 00:14:37,980 --> 00:14:40,440 the Chicago street sweepers 322 00:14:40,440 --> 00:14:42,520 that XOR encoded the executable 323 00:14:42,520 --> 00:14:43,460 within the Word document, 324 00:14:43,700 --> 00:14:46,100 so they bypassed the Bitdefender check 325 00:14:46,100 --> 00:14:47,500 that team 4919 326 00:14:48,250 --> 00:14:49,360 was missing. 327 00:14:50,290 --> 00:14:52,340 But then they were hit 328 00:14:52,480 --> 00:14:53,680 with the roadblock of Kapersky 329 00:14:54,300 --> 00:14:54,900 and the 330 00:14:57,000 --> 00:14:58,720 they couldn't get past that 331 00:14:58,720 --> 00:14:59,700 until they thought well 332 00:14:59,700 --> 00:15:02,140 maybe Kapersky's checking the version of the 333 00:15:02,140 --> 00:15:04,380 Word doc and also for this 334 00:15:04,380 --> 00:15:06,160 and matching that against 335 00:15:06,160 --> 00:15:08,140 the check 336 00:15:08,140 --> 00:15:09,620 basically, the length check 337 00:15:09,620 --> 00:15:10,860 which was exploitable. 338 00:15:11,360 --> 00:15:13,860 So they then modified the versioning number 339 00:15:14,460 --> 00:15:16,240 and got the sample through. 340 00:15:16,360 --> 00:15:18,360 But I haven't tested it fully 341 00:15:18,360 --> 00:15:19,700 to see if it would work 342 00:15:19,700 --> 00:15:21,480 because I didn't have a vulnerable version of Office. 343 00:15:22,480 --> 00:15:24,380 The teams didn't have a vulnerable version of Office 344 00:15:24,380 --> 00:15:25,340 to test it on so 345 00:15:25,340 --> 00:15:26,780 it made it quite hard. 346 00:15:29,220 --> 00:15:30,440 Now with the Slammer exploit 347 00:15:30,440 --> 00:15:32,460 this was the hardest level, 348 00:15:32,540 --> 00:15:33,600 level 10, and 349 00:15:33,600 --> 00:15:36,400 a lot of teams took quite a while to get this one 350 00:15:36,400 --> 00:15:38,320 sorted. NC there McAfee 351 00:15:38,320 --> 00:15:40,260 was pretty good on detecting 352 00:15:40,260 --> 00:15:41,900 all the variants that they were uploading 353 00:15:41,900 --> 00:15:42,680 through the portal. 354 00:15:50,560 --> 00:15:52,200 Cool. Okay. Can I have 355 00:15:52,480 --> 00:15:54,440 Scott Lewis from Wargames up here please? 356 00:15:55,740 --> 00:15:56,340 Okay. 357 00:15:56,440 --> 00:15:58,380 So the results. So only four teams 358 00:15:58,380 --> 00:15:59,740 managed to complete all the levels. 359 00:16:00,960 --> 00:16:02,440 Honourable mention for 360 00:16:02,440 --> 00:16:03,980 reteam in 2 hours 361 00:16:03,980 --> 00:16:06,500 and 20 minutes and he didn't use IDA 362 00:16:06,500 --> 00:16:08,160 to do any of the reverse 363 00:16:08,160 --> 00:16:10,080 engineering or anything. 364 00:16:11,180 --> 00:16:12,380 So reteam 365 00:16:12,380 --> 00:16:12,980 up here please. 366 00:16:17,000 --> 00:16:17,600 Yep. 367 00:16:18,680 --> 00:16:20,300 And they also had the dirtiest 368 00:16:20,300 --> 00:16:22,360 hack because with the Word exploit 369 00:16:22,480 --> 00:16:24,280 they just packed it up in an 370 00:16:24,280 --> 00:16:26,040 EXE and then called Office when running. 371 00:16:27,120 --> 00:16:28,500 So one of the things I just wanted to mention 372 00:16:28,500 --> 00:16:30,380 why I was interested in being involved. 373 00:16:30,620 --> 00:16:32,320 For those of you who were here last night you know 374 00:16:32,320 --> 00:16:34,380 that I was the model for David Lightman in the movie 375 00:16:34,380 --> 00:16:36,240 Wargames. And for those of you who 376 00:16:36,600 --> 00:16:38,420 subscribed to Wired it's also in 377 00:16:38,420 --> 00:16:40,220 this month's current issue. So 378 00:16:40,220 --> 00:16:42,320 that was really kind of my interest looking at this because 379 00:16:42,320 --> 00:16:44,140 I think we all know signature based 380 00:16:44,140 --> 00:16:46,100 detection methods really suck. 381 00:16:46,480 --> 00:16:48,500 And we have to go to heuristics, behavioural 382 00:16:48,500 --> 00:16:50,400 based modelling, but even we talked about it 383 00:16:50,400 --> 00:16:52,460 last night at the Wargames Q&A. 384 00:16:52,480 --> 00:16:54,540 About the adolescence of P1 385 00:16:54,540 --> 00:16:56,100 if you've never read that. Using agent based 386 00:16:56,100 --> 00:16:57,920 systems, genetic programming, 387 00:16:58,520 --> 00:16:59,480 learning systems. 388 00:17:00,000 --> 00:17:02,360 Even before John Cosa really formalized 389 00:17:02,360 --> 00:17:03,960 this at Stanford. So really 390 00:17:04,420 --> 00:17:06,480 the AV companies really have to 391 00:17:06,480 --> 00:17:08,420 move to the next generation and can't 392 00:17:08,420 --> 00:17:10,020 rely on any of these signature based detection 393 00:17:10,020 --> 00:17:12,460 systems. That's really what excited me about all this. 394 00:17:12,680 --> 00:17:14,100 And the Mercury, I'm sorry 395 00:17:14,100 --> 00:17:16,340 VentureBeat is going to be having a little story about this as well. 396 00:17:26,800 --> 00:17:28,420 Okay the team most deserving 397 00:17:28,420 --> 00:17:30,560 of a beer was the team that included 398 00:17:30,560 --> 00:17:32,220 a loop in the dropper looking for the 399 00:17:32,220 --> 00:17:34,420 string beer. So can that team 400 00:17:34,420 --> 00:17:36,280 please come forward? I can't remember who you guys are. 401 00:17:36,620 --> 00:17:37,820 But yep, choice. 402 00:17:58,060 --> 00:17:58,700 Cool. 403 00:17:58,900 --> 00:17:59,940 And the winner is, 404 00:18:00,120 --> 00:18:02,140 and the winner gets a 405 00:18:02,140 --> 00:18:04,320 handcuff key and an 406 00:18:04,320 --> 00:18:06,220 electronic lock picking kit because you're 407 00:18:06,220 --> 00:18:07,240 probably going to jail. 408 00:18:08,420 --> 00:18:10,420 The Chicago Street Sweepers.