1 00:00:00,000 --> 00:00:07,840 Hey everybody, so I guess we'll get started because we're going to be, we went 15 minutes over at Black Hat when we had a lot more time. 2 00:00:08,640 --> 00:00:15,520 Can you guys hear us okay? Hear me okay? I'm sorry, I've been in Vegas since Tuesday and I already sound like Kathleen Turner from all the smoke. 3 00:00:16,460 --> 00:00:25,120 So my name is Alex Damos, this is Chris Palmer and Chris Ritter, and we're here to talk about the security of computer forensic software 4 00:00:25,120 --> 00:00:32,200 and things to be concerned about if you use it and perhaps things to be interested in if you think it will be used against you. 5 00:00:33,440 --> 00:00:39,340 So we'll do a little introduction about this stuff, talk about the attack surfaces for computer forensic software, attack classes, 6 00:00:39,540 --> 00:00:44,000 some bug finding techniques that we've used over the last couple of months to find what we think are some interesting bugs. 7 00:00:45,100 --> 00:00:51,560 We're going to talk about the sleuth kit, which is probably the premier open source forensic toolkit out there by Brian Carrier. 8 00:00:51,660 --> 00:00:54,640 Is Brian here? He shows up every once in a while. No? 9 00:00:55,940 --> 00:01:02,660 And then we're going to talk about issues with guidance and case forensic and guidance and case enterprise, some conclusions. 10 00:01:02,980 --> 00:01:12,920 And then at the end we have an extra special bonus talk by Chris Ritter, who's a fellow at the Stanford Law School Center for Information Society? 11 00:01:13,400 --> 00:01:14,640 Internet. Internet and Society. 12 00:01:15,040 --> 00:01:22,480 So he works with Jennifer Granik and he's done some interesting research into the impact security issues might have into the admissibility of evidence and the use of evidence. 13 00:01:22,680 --> 00:01:25,000 So kind of before we get started it would be interesting to see, 14 00:01:25,120 --> 00:01:26,300 what the audience is like. 15 00:01:26,480 --> 00:01:30,880 Who here has ever used forensic software at all to do forensics? 16 00:01:31,000 --> 00:01:31,400 Okay, wow. 17 00:01:31,980 --> 00:01:33,960 Who here has used guidance and case? 18 00:01:34,240 --> 00:01:34,900 Any addition. 19 00:01:35,280 --> 00:01:36,740 Who here has used end case enterprise? 20 00:01:37,720 --> 00:01:38,640 Wow, pretty good number. 21 00:01:38,740 --> 00:01:39,660 Who here has used the sleuth kit? 22 00:01:41,060 --> 00:01:41,460 Okay. 23 00:01:41,640 --> 00:01:45,920 And who here thinks they have a reasonable expectation that end case will eventually be used on their hard drive? 24 00:01:47,720 --> 00:01:48,120 Okay. 25 00:01:48,600 --> 00:01:51,060 So you can go introduce yourselves, shake hands. 26 00:01:53,580 --> 00:01:54,540 So who are we? 27 00:01:55,120 --> 00:01:58,360 So Chris Palmer and I are researchers and consultants at a company called ISEC Partners, 28 00:01:58,520 --> 00:02:01,880 a little company we started two and a half years ago out of the destruction of at stake. 29 00:02:03,700 --> 00:02:05,080 And please send us your resumes. 30 00:02:05,320 --> 00:02:06,440 Okay, that's all I'll say about that. 31 00:02:06,680 --> 00:02:08,500 We're working consultants, we're not full time researchers. 32 00:02:08,800 --> 00:02:15,760 So kind of the techniques we're talking about came from doing actual black box and gray box penetration testing of real world applications. 33 00:02:16,760 --> 00:02:22,380 And we got into this because we use the sleuth kit and end case on our day to day basis. 34 00:02:22,500 --> 00:02:23,280 We're not forensics experts. 35 00:02:23,400 --> 00:02:24,340 We don't do a lot of forensics work. 36 00:02:24,340 --> 00:02:28,400 But we do have clients that have come to us to do some incident response and try to figure some things out. 37 00:02:28,560 --> 00:02:29,500 So we own these products. 38 00:02:29,600 --> 00:02:36,060 And while using them, we kind of switched our minds from forensic mode to software security people mode and thought, 39 00:02:36,220 --> 00:02:39,040 wow, these things are pretty crazy in what they're doing. 40 00:02:39,220 --> 00:02:41,420 They're very, very ambitious products. 41 00:02:41,760 --> 00:02:44,060 And maybe that should be looked into. 42 00:02:45,340 --> 00:02:49,720 So as a result, we looked at the two things that we use, the sleuth kit and end case. 43 00:02:50,520 --> 00:02:52,360 And we think we have found some interesting bugs. 44 00:02:53,320 --> 00:02:54,320 You know, there can be errors. 45 00:02:54,340 --> 00:02:58,000 There can be arguments made back and forth of how useful these specific bugs are. 46 00:02:58,200 --> 00:03:02,280 I think the point of this talk today is about the amount of the attack surface we touched 47 00:03:02,280 --> 00:03:04,800 and the amount of bugs that came out of the attack surface we touched 48 00:03:05,230 --> 00:03:09,660 and what that means for the reliability of these products going forward and how people should treat them. 49 00:03:11,220 --> 00:03:16,200 We actually found our first bug in about two hours after starting fuzzing of the commercial product. 50 00:03:17,220 --> 00:03:19,380 So this is definitely kind of a virgin territory. 51 00:03:19,640 --> 00:03:22,320 I think these products don't get looked at from a security perspective too often. 52 00:03:22,620 --> 00:03:24,320 I know there's been a lot of anti-frenzy. 53 00:03:24,340 --> 00:03:28,240 There's been a lot of forensic stuff about hiding data, playing with your time stamps, stuff like that. 54 00:03:28,400 --> 00:03:32,920 But there hasn't been a lot of discussion about attacking them to actually attack the forensic examiner's workstation 55 00:03:32,920 --> 00:03:36,080 or change how data is being redisplayed. 56 00:03:36,300 --> 00:03:40,600 Or I've never seen any research about attacking the remote forensic software, 57 00:03:40,840 --> 00:03:43,620 which is about a third of our talk and we'll do right at the end. 58 00:03:44,280 --> 00:03:49,740 So we've spent a lot more time on the paper than these slides, 59 00:03:50,280 --> 00:03:52,380 considering some of these slides were written about 12 minutes ago. 60 00:03:52,380 --> 00:03:54,840 So I strongly recommend that you download our paper. 61 00:03:55,360 --> 00:03:58,800 It was co-authored by Jesse Burns and Tim Newsham of iSecPartners 62 00:03:58,800 --> 00:04:00,980 and they did a ton of work and we're very grateful to them. 63 00:04:01,900 --> 00:04:06,020 But Jesse went home and Tim prefers surfing to Vegas, so he's not here. 64 00:04:06,180 --> 00:04:08,360 But if you go to iSecPartners.com you can download the paper. 65 00:04:08,600 --> 00:04:14,880 And tonight we're going to upload a big 16 megabyte tar file of all of the file system fuzzing tools that we created. 66 00:04:15,180 --> 00:04:18,360 A bunch of Python scripts, some fun stuff, so if you guys want to do your own investigation. 67 00:04:18,600 --> 00:04:21,620 It might actually be useful if you want to attack file system drivers. 68 00:04:22,380 --> 00:04:23,580 And operating systems as well. 69 00:04:23,940 --> 00:04:26,960 But if you want to look at forensic software, please take a look. 70 00:04:27,040 --> 00:04:28,580 And be responsible in your disclosure. 71 00:04:29,600 --> 00:04:31,940 Okay, so what is interesting about forensic software? 72 00:04:32,140 --> 00:04:34,160 So kind of the interesting thing that we don't have a slide about, 73 00:04:34,300 --> 00:04:36,180 because it's so obvious, is it's really important, right? 74 00:04:37,520 --> 00:04:40,980 Computer forensic software, you know, the small number of products that are used 75 00:04:40,980 --> 00:04:45,180 have almost a court enforced monopoly because the ones that get used over and over again 76 00:04:45,180 --> 00:04:46,780 get accepted by courts over and over again. 77 00:04:46,940 --> 00:04:50,000 And so there's a small group of pieces of software that are extraordinarily important. 78 00:04:50,320 --> 00:04:52,200 And there's a lot of people sitting in jail today. 79 00:04:52,380 --> 00:04:53,840 Because those products work, right? 80 00:04:53,960 --> 00:04:56,240 And we're not up here saying that these products don't work. 81 00:04:56,340 --> 00:04:59,180 They generally, the vast majority of the time work, right? 82 00:04:59,260 --> 00:05:02,540 And the vast majority of the evidence that pops out of them is probably very accurate. 83 00:05:03,680 --> 00:05:05,520 What we're talking about is the corner cases, right? 84 00:05:05,580 --> 00:05:06,700 Which is whenever you're talking about security. 85 00:05:07,660 --> 00:05:10,340 One of the other interesting things about these products is the attack surface. 86 00:05:10,620 --> 00:05:14,840 The attack surface on end case forensic is absolutely stunning. 87 00:05:14,980 --> 00:05:20,540 When you think about the percentage of code that is doing dangerous parsing 88 00:05:20,540 --> 00:05:22,140 against attacker controlled data. 89 00:05:22,380 --> 00:05:23,800 And when we talk about attacker controlled data, 90 00:05:24,000 --> 00:05:26,920 you're talking about somebody who is generally either, 91 00:05:26,980 --> 00:05:28,620 who's either being sued in a civil case 92 00:05:28,620 --> 00:05:32,200 or who's suspected of being a criminal by the criminal justice system, right? 93 00:05:32,320 --> 00:05:36,340 So you're already talking about kind of a population of not nice people, perhaps. 94 00:05:37,240 --> 00:05:41,320 You know, this product doesn't load up generally the hard drives of fourth graders. 95 00:05:41,740 --> 00:05:44,440 It's used on people that maybe know and want to do some bad things. 96 00:05:45,200 --> 00:05:49,340 And if you think about, you know, Microsoft Word does a couple different file formats. 97 00:05:49,420 --> 00:05:52,260 But they're one major file format that Microsoft invented. 98 00:05:52,380 --> 00:05:56,600 They've had, what, six, seven remotely exploitable buffer overflows from one file format. 99 00:05:57,300 --> 00:06:01,400 End case forensic, it claims to be able to read something like eight or ten different file systems. 100 00:06:01,560 --> 00:06:05,560 And over 270 different file types can be displayed within the application. 101 00:06:06,620 --> 00:06:13,820 And I leave it as a challenge for you to try to write something that parses 270 file types in C++ securely. 102 00:06:14,040 --> 00:06:17,040 That is not an easy thing to do, as we'll see. 103 00:06:17,200 --> 00:06:19,240 So the attack surface is huge. 104 00:06:19,720 --> 00:06:22,100 The attack surface in some of these cases is automatic. 105 00:06:22,760 --> 00:06:24,040 It's automatically looked at by the product. 106 00:06:24,140 --> 00:06:28,040 If you look at a file system, obviously a lot of the file system structures will be parsed automatically. 107 00:06:28,720 --> 00:06:31,800 And then products like, you know, the sleuth kit's a lot less ambitious. 108 00:06:32,240 --> 00:06:35,800 But a product like end case, you can click a lot of buttons and it goes and does all your work for you. 109 00:06:35,900 --> 00:06:37,320 It automatically finds exchange databases. 110 00:06:37,700 --> 00:06:40,260 It automatically finds outlook files, PSTs. 111 00:06:40,540 --> 00:06:42,960 It automatically goes and finds your Thunderbird mail spool. 112 00:06:43,400 --> 00:06:46,000 That's the kind of stuff that automatically can often be attacked 113 00:06:46,000 --> 00:06:48,020 and a person doesn't have to actually go and look at an image. 114 00:06:49,580 --> 00:06:51,960 So we'll talk about kind of the different classes of attack 115 00:06:52,380 --> 00:06:53,160 and what it means for forensic software. 116 00:06:53,440 --> 00:06:55,920 So evidence hiding is an obvious one. 117 00:06:56,040 --> 00:07:01,340 If you can do something to a hard drive to make it so that a normal user with their operating system 118 00:07:01,340 --> 00:07:06,040 sees and uses a bunch of data and that is invisible to the examiner, that's kind of a big deal, right? 119 00:07:06,220 --> 00:07:08,760 Now that's not a big deal that you can use to frame somebody else, 120 00:07:08,960 --> 00:07:10,940 but it's certainly something that these products don't want to have 121 00:07:10,940 --> 00:07:14,220 because if you're, you know, a police officer, you don't want to get tricked like that 122 00:07:14,220 --> 00:07:16,160 in some kind of embarrassing, easy way. 123 00:07:16,260 --> 00:07:18,340 Now that's something that can be worked around by using multiple products, 124 00:07:19,260 --> 00:07:20,720 but I think, you know, 125 00:07:20,720 --> 00:07:24,360 if every forensic examiner used three products to look at every hard drive they look at, 126 00:07:24,480 --> 00:07:27,060 there'd be a lot less caseload and, you know, 127 00:07:27,080 --> 00:07:29,500 forensic examiners would have to be about three times as many, right? 128 00:07:30,380 --> 00:07:31,420 So that's kind of a big deal. 129 00:07:31,920 --> 00:07:32,520 Code execution. 130 00:07:32,860 --> 00:07:34,660 So I'm going to make this clear 131 00:07:34,660 --> 00:07:37,300 because this is something that we've been misquoted by journalists in the past. 132 00:07:37,400 --> 00:07:39,560 We are not claiming arbitrary code execution. 133 00:07:40,080 --> 00:07:42,600 We are claiming that we have found a lot of memory corruption bugs, 134 00:07:42,840 --> 00:07:45,120 in some cases controlling certain things like EIP. 135 00:07:45,900 --> 00:07:50,580 Whether or not that is exploitable is a mental exercise 136 00:07:50,720 --> 00:07:51,220 for the listener. 137 00:07:52,620 --> 00:07:55,420 Because when people claim exploitability and you don't have a working exploit, 138 00:07:56,740 --> 00:07:59,840 you know, it gets kind of a big fight in the media 139 00:07:59,840 --> 00:08:01,840 and the actual message would get overturned 140 00:08:02,360 --> 00:08:05,620 and since we've had a little bit of a contentious relationship with guidance so far, 141 00:08:05,780 --> 00:08:08,380 we don't want to get stuck on little stupid things like that. 142 00:08:09,280 --> 00:08:10,800 So we didn't write any exploit code, 143 00:08:10,940 --> 00:08:12,100 we're not releasing any exploit code, 144 00:08:12,620 --> 00:08:13,980 but these bugs, as you'll see, 145 00:08:14,720 --> 00:08:17,080 control some very interesting parts of memory 146 00:08:17,580 --> 00:08:19,180 and therefore if people spend a lot of time, 147 00:08:19,180 --> 00:08:20,720 I think our evidence supports the idea 148 00:08:20,720 --> 00:08:22,580 that these products probably have 149 00:08:22,580 --> 00:08:25,920 a decent number of code execution vulnerabilities in them 150 00:08:25,920 --> 00:08:27,900 and people need to prepare for that 151 00:08:27,900 --> 00:08:29,520 from a protection standpoint 152 00:08:29,520 --> 00:08:31,620 and they need to prepare for it from a legal standpoint. 153 00:08:32,100 --> 00:08:33,360 And then denial of service. 154 00:08:34,260 --> 00:08:36,500 There's a lot of bugs you can do to make these things just kind of 155 00:08:36,500 --> 00:08:37,900 either not be able to look at your hard drive, 156 00:08:38,140 --> 00:08:40,020 crash all the time, hang all the time, 157 00:08:40,520 --> 00:08:44,020 you know, that happens sometimes with these products on a day-to-day basis anyway. 158 00:08:45,860 --> 00:08:47,560 And if you're an attacker, 159 00:08:47,640 --> 00:08:48,980 could make it happen over and over again, 160 00:08:49,180 --> 00:08:50,180 you might be able to get away with something, 161 00:08:50,420 --> 00:08:52,000 you might be able to make their life hard, 162 00:08:52,120 --> 00:08:53,780 you might just want to be a jerk, right? 163 00:08:53,960 --> 00:08:57,960 So, you know, I'm not sure what the actual impact 164 00:08:57,960 --> 00:08:59,000 of denial of service would be, 165 00:08:59,060 --> 00:09:00,560 although a lot of those denial of service bugs, 166 00:09:00,800 --> 00:09:01,520 if you kind of look at them, 167 00:09:01,540 --> 00:09:02,920 maybe they become exploitable in the end. 168 00:09:04,580 --> 00:09:06,860 So, you know, a couple techniques that you can use 169 00:09:06,860 --> 00:09:07,480 for finding this stuff. 170 00:09:08,460 --> 00:09:10,400 There's the dumb old way, random fuzzing. 171 00:09:10,880 --> 00:09:11,640 It's not sexy. 172 00:09:12,640 --> 00:09:14,180 We're not going to say that it's like some kind of 173 00:09:14,180 --> 00:09:16,840 super elite attack technique. 174 00:09:17,120 --> 00:09:18,460 Unfortunately, it works really, really well. 175 00:09:19,340 --> 00:09:20,140 Against these products. 176 00:09:21,020 --> 00:09:23,160 And you can use our tools to do things like 177 00:09:23,160 --> 00:09:25,380 generate a file system, put a bunch of PDFs on them, 178 00:09:25,520 --> 00:09:27,020 put a bunch of exchange databases on them, 179 00:09:27,160 --> 00:09:28,480 and then fuzz both the files 180 00:09:28,480 --> 00:09:29,980 without touching the file system, 181 00:09:30,140 --> 00:09:32,040 or you can fuzz the file system and mess up things 182 00:09:32,040 --> 00:09:32,920 like file system structures, 183 00:09:33,400 --> 00:09:35,180 obviously attacking totally different parts of the code. 184 00:09:36,420 --> 00:09:37,780 And then you can do a lot of targeted, 185 00:09:37,880 --> 00:09:40,080 manual mangling of things. 186 00:09:41,100 --> 00:09:42,000 You know, as a human being, 187 00:09:42,100 --> 00:09:43,540 it's sometimes a lot easier to figure out something 188 00:09:43,540 --> 00:09:44,960 that would kind of trip up these products 189 00:09:45,640 --> 00:09:46,740 as a human being and think, 190 00:09:46,840 --> 00:09:48,640 oh, this is something that would be hard for me to code around 191 00:09:48,640 --> 00:09:49,560 if I had to build the product. 192 00:09:50,200 --> 00:09:51,560 And so we did a lot of that, too. 193 00:09:51,780 --> 00:09:52,940 And so Chris is going to talk about 194 00:09:52,940 --> 00:09:53,820 some of the individual bugs. 195 00:10:00,980 --> 00:10:02,000 Okay, hi, I'm Chris. 196 00:10:03,380 --> 00:10:06,200 So there's, the slides detail a bunch of different bugs, 197 00:10:06,360 --> 00:10:08,440 and we don't have a whole ton of time, 198 00:10:09,120 --> 00:10:10,760 so I'm going to be skipping a lot of them 199 00:10:10,760 --> 00:10:12,780 and just jumping to the funny, cool ones. 200 00:10:13,880 --> 00:10:15,400 Or, you know, glossing them over. 201 00:10:15,500 --> 00:10:16,820 But again, visit the paper, 202 00:10:16,920 --> 00:10:18,620 and all the details are there. 203 00:10:18,640 --> 00:10:24,160 So our fuzzer just does some kind of obvious stuff. 204 00:10:25,060 --> 00:10:28,260 And again, this shouldn't have produced much 205 00:10:28,260 --> 00:10:28,900 in the way of results, 206 00:10:29,180 --> 00:10:31,220 but even in 2007, 207 00:10:31,460 --> 00:10:33,560 a random number generator can cause tons of trouble, 208 00:10:33,660 --> 00:10:34,540 and that's kind of sad. 209 00:10:36,180 --> 00:10:37,580 But that's where we are. 210 00:10:38,640 --> 00:10:41,640 So, you know, we picked just some of the obvious targets. 211 00:10:42,500 --> 00:10:44,160 You know, the most common file systems, 212 00:10:44,220 --> 00:10:45,560 most common document types. 213 00:10:45,980 --> 00:10:48,280 And again, we've only just barely scratched 214 00:10:48,280 --> 00:10:50,680 the huge attack surface of these products. 215 00:10:51,600 --> 00:10:53,720 So who knows what else lurks. 216 00:10:56,140 --> 00:10:57,940 Also, in addition to the random fuzzing, 217 00:10:58,020 --> 00:10:59,740 we did do some, as Alex was saying, 218 00:10:59,900 --> 00:11:04,020 some manual, you know, targeted manipulation. 219 00:11:04,200 --> 00:11:07,020 Things that would seem like, as a developer, 220 00:11:07,260 --> 00:11:08,800 you'd think, well, where would I go wrong 221 00:11:08,800 --> 00:11:10,920 if I were trying to understand NTFS? 222 00:11:11,260 --> 00:11:12,740 You know, so we tried to, like, 223 00:11:13,400 --> 00:11:15,860 see if the developers of the products 224 00:11:15,860 --> 00:11:16,760 had gone wrong there. 225 00:11:16,760 --> 00:11:19,060 And in some cases, they did. 226 00:11:21,300 --> 00:11:22,580 The usual stuff. 227 00:11:22,800 --> 00:11:23,800 Make a super long file. 228 00:11:23,960 --> 00:11:25,540 Super deeply nested directories. 229 00:11:25,800 --> 00:11:29,040 And that one happens to be a particularly good one. 230 00:11:29,160 --> 00:11:30,180 Or a funny one. 231 00:11:30,540 --> 00:11:32,760 So first, the Sleuth Kit by Brian Carrier. 232 00:11:32,940 --> 00:11:33,900 It's open source. 233 00:11:34,320 --> 00:11:34,880 Wonderful. 234 00:11:35,300 --> 00:11:37,360 That helped us do better, 235 00:11:37,500 --> 00:11:39,100 what we think is much better testing. 236 00:11:39,760 --> 00:11:42,380 The availability of code lets us see exactly 237 00:11:42,380 --> 00:11:43,940 what code is going wrong. 238 00:11:44,320 --> 00:11:45,660 We were even able to 239 00:11:45,660 --> 00:11:49,160 patch over the first round of bugs 240 00:11:49,160 --> 00:11:52,060 and then find more deeply hidden bugs. 241 00:11:52,360 --> 00:11:54,180 When you're doing this kind of random fuzzing, 242 00:11:54,260 --> 00:11:56,300 you'll often just hit a bug 243 00:11:56,300 --> 00:11:58,660 and there may be a bug 244 00:11:58,660 --> 00:12:00,260 that the first bug is hiding. 245 00:12:00,580 --> 00:12:02,180 And so, with having code, 246 00:12:02,440 --> 00:12:04,420 we were able to dig a little deeper 247 00:12:04,420 --> 00:12:06,100 than we were with proprietary product. 248 00:12:08,360 --> 00:12:10,820 So, Sleuth Kit works in a Unix-y way. 249 00:12:11,020 --> 00:12:12,960 There's just a million little programs each. 250 00:12:13,020 --> 00:12:13,840 Do one thing. 251 00:12:14,180 --> 00:12:14,700 Two. 252 00:12:14,700 --> 00:12:16,880 Or with a file system image. 253 00:12:17,420 --> 00:12:18,880 And then it's up to you 254 00:12:18,880 --> 00:12:20,140 to script the pieces together 255 00:12:20,140 --> 00:12:21,560 and make something useful out of it. 256 00:12:21,980 --> 00:12:23,160 So it's nerdy. 257 00:12:24,020 --> 00:12:26,320 And we found problems in four of the 23. 258 00:12:28,840 --> 00:12:30,900 Nothing new in this slide that you've already seen. 259 00:12:31,000 --> 00:12:32,680 But the defects are crashes 260 00:12:32,680 --> 00:12:35,260 and strange parsing of data structures. 261 00:12:36,960 --> 00:12:38,940 So here's an obvious one. 262 00:12:39,040 --> 00:12:41,220 Hopefully everyone can see what's wrong in this code. 263 00:12:41,340 --> 00:12:43,400 And I made it easy by making the code red. 264 00:12:45,140 --> 00:12:46,640 So, easy fix. 265 00:12:46,740 --> 00:12:47,580 Simple problem. 266 00:12:47,780 --> 00:12:49,240 But it just causes a crash, 267 00:12:49,440 --> 00:12:51,040 depending on your allocator. 268 00:12:51,180 --> 00:12:52,820 And most allocators these days 269 00:12:52,820 --> 00:12:54,160 probably wouldn't like that too well. 270 00:12:55,420 --> 00:12:57,360 Dereferencing memory after it's been freed. 271 00:12:58,580 --> 00:12:59,200 Let's see. 272 00:12:59,260 --> 00:13:01,380 I'm going to skip to a particularly fun one. 273 00:13:01,440 --> 00:13:01,900 Here's one. 274 00:13:02,440 --> 00:13:05,540 So, again, we see the code has some defense 275 00:13:06,300 --> 00:13:07,640 against a possible problem. 276 00:13:10,480 --> 00:13:12,980 It checks in that top of that while loop. 277 00:13:13,100 --> 00:13:14,580 It makes sure that the FS data 278 00:13:14,700 --> 00:13:17,420 on pointer is valid, not null. 279 00:13:17,680 --> 00:13:20,600 But it gets changed before the check is rerun. 280 00:13:20,960 --> 00:13:22,060 And at the bottom, 281 00:13:22,120 --> 00:13:24,380 we may be dereferencing a null pointer 282 00:13:24,380 --> 00:13:26,700 or an otherwise bad pointer. 283 00:13:28,420 --> 00:13:30,080 This one might be... 284 00:13:30,080 --> 00:13:31,780 This one's kind of complicated. 285 00:13:32,740 --> 00:13:35,540 There's a side effect happening on that IDXE. 286 00:13:36,460 --> 00:13:38,640 But a good point to make here is 287 00:13:38,640 --> 00:13:42,240 these functions like getU48, getU16, getU32, 288 00:13:42,240 --> 00:13:45,700 they read the file system, 289 00:13:45,940 --> 00:13:47,940 which, again, is attacker-controlled data, 290 00:13:48,240 --> 00:13:50,860 10 gigabytes of potentially malicious stuff. 291 00:13:51,300 --> 00:13:54,720 And it reads that user data, 292 00:13:54,900 --> 00:13:58,160 turns it into a 16-bit or 48-bit or 32-bit number, 293 00:13:58,340 --> 00:14:01,340 and then uses it as an offset or a pointer 294 00:14:01,340 --> 00:14:03,540 or some other value that controls 295 00:14:03,540 --> 00:14:05,640 how the application is going to do its job 296 00:14:05,640 --> 00:14:07,800 without checking for things like 297 00:14:07,800 --> 00:14:09,740 does this pointer point anywhere sane? 298 00:14:10,920 --> 00:14:12,060 Do we have... 299 00:14:12,060 --> 00:14:14,440 Are we looking for the 10 millionth item 300 00:14:14,440 --> 00:14:16,100 in a list of 100 items? 301 00:14:16,280 --> 00:14:16,940 That kind of thing. 302 00:14:17,360 --> 00:14:18,840 A lot of problems like that where 303 00:14:18,840 --> 00:14:21,740 there's a lot of trust in the file system, 304 00:14:22,540 --> 00:14:23,980 which, of course, is misplaced. 305 00:14:25,680 --> 00:14:26,260 Let's see. 306 00:14:26,300 --> 00:14:28,640 I want to skip ahead since I've only got a few minutes. 307 00:14:28,900 --> 00:14:30,860 But these are all along the same lines. 308 00:14:30,980 --> 00:14:33,420 Lots of crashes, bad pointers that go nowhere, 309 00:14:34,660 --> 00:14:36,280 denying service, infinite loops 310 00:14:36,280 --> 00:14:39,640 due to strange integers that go wrong. 311 00:14:40,140 --> 00:14:41,960 But let's move on to encase, 312 00:14:42,060 --> 00:14:43,700 a proprietary product for Windows, 313 00:14:44,020 --> 00:14:46,640 and it's pretty much the opposite of the sleuth kit. 314 00:14:47,240 --> 00:14:48,560 It's Windows-y, right? 315 00:14:48,600 --> 00:14:49,600 It has a specific... 316 00:14:49,600 --> 00:14:52,220 I'm sorry, a sophisticated user interface, 317 00:14:52,520 --> 00:14:54,820 and it integrates all the features that you would want. 318 00:14:55,160 --> 00:14:57,620 It can handle different file systems. 319 00:14:57,980 --> 00:15:00,880 It can handle different data types, 320 00:15:00,980 --> 00:15:02,440 and it can even, you know, just... 321 00:15:02,440 --> 00:15:04,280 Again, you all have seen encase. 322 00:15:04,280 --> 00:15:05,200 Lots of hands went up. 323 00:15:05,360 --> 00:15:07,900 It'll show you the data right in a little view pane. 324 00:15:08,000 --> 00:15:09,980 You can get a hex view or a document view 325 00:15:09,980 --> 00:15:12,040 or all sorts of nice things. 326 00:15:12,060 --> 00:15:15,140 So it does have some programmability, of course. 327 00:15:15,180 --> 00:15:17,360 It's got its own built-in language called InScript. 328 00:15:17,840 --> 00:15:21,140 So it's very different than the sleuth kit approach, 329 00:15:21,760 --> 00:15:24,820 as well as in its opaqueness. 330 00:15:25,060 --> 00:15:26,700 In addition to being proprietary, 331 00:15:27,180 --> 00:15:30,400 it's also packed or pseudo-encrypted, 332 00:15:31,020 --> 00:15:33,540 and there's some relatively simple 333 00:15:34,880 --> 00:15:37,360 anti-debugging mechanisms in there 334 00:15:37,360 --> 00:15:39,120 to further annoy us. 335 00:15:39,320 --> 00:15:41,320 But we just attached WinDebug 336 00:15:41,320 --> 00:15:42,280 after it starts, 337 00:15:42,460 --> 00:15:45,020 and then it doesn't seem to mind that too well. 338 00:15:45,160 --> 00:15:45,460 So... 339 00:15:45,460 --> 00:15:47,040 Or it doesn't seem to mind that. 340 00:15:47,220 --> 00:15:48,880 So we were still able to do things, 341 00:15:49,340 --> 00:15:52,820 you know, use WinDebug to analyze encase. 342 00:15:53,860 --> 00:15:56,280 And then, of course, there's also a copy protection dongle, 343 00:15:56,380 --> 00:15:57,720 which is kind of infuriating. 344 00:15:59,800 --> 00:16:01,240 So we don't... 345 00:16:01,240 --> 00:16:02,840 We didn't get to do the... 346 00:16:03,560 --> 00:16:05,620 We only hit the first layer of bugs 347 00:16:05,620 --> 00:16:06,780 with our random fuzzing 348 00:16:06,780 --> 00:16:08,900 because we couldn't patch the ones we found 349 00:16:08,900 --> 00:16:10,100 and then see what else is there. 350 00:16:10,760 --> 00:16:11,360 But... 351 00:16:12,100 --> 00:16:13,760 So who knows what else lurks? 352 00:16:15,380 --> 00:16:20,380 So encase can't handle things like mangled partition tables. 353 00:16:20,520 --> 00:16:23,880 It will fail to acquire the drive, for example. 354 00:16:25,220 --> 00:16:27,320 Here's an example with a... 355 00:16:28,000 --> 00:16:30,460 Partition number 29 is just completely wrong. 356 00:16:30,700 --> 00:16:32,280 It's the same size as the others, 357 00:16:32,380 --> 00:16:35,100 but its starting end offsets are completely crazy. 358 00:16:35,500 --> 00:16:38,800 And that makes encase not be able to acquire this drive at all. 359 00:16:40,940 --> 00:16:41,420 Let's... 360 00:16:42,480 --> 00:16:44,420 Oh, yeah, that's actually a good point. 361 00:16:44,500 --> 00:16:45,000 Thank you, Alex. 362 00:16:45,820 --> 00:16:47,840 In this case, the partition table, 363 00:16:47,940 --> 00:16:50,020 this is when we feed the image 364 00:16:50,780 --> 00:16:52,900 to encase running on a Windows machine 365 00:16:52,900 --> 00:16:56,400 from a Linux machine running a little program called Linen, 366 00:16:57,060 --> 00:16:59,300 which is an encase tool to... 367 00:16:59,300 --> 00:17:00,180 It's kind of like your... 368 00:17:00,180 --> 00:17:01,880 What you'd think of if you were using 369 00:17:02,860 --> 00:17:04,460 SleuthKit or just Unix stuff. 370 00:17:04,480 --> 00:17:06,520 You would use DD and Netcat 371 00:17:06,520 --> 00:17:09,660 to feed the raw device to another server. 372 00:17:10,100 --> 00:17:11,740 To read. 373 00:17:12,020 --> 00:17:12,960 So it's kind of like... 374 00:17:12,960 --> 00:17:14,180 It's doing basically that, 375 00:17:14,380 --> 00:17:16,160 although it's its own thing. 376 00:17:16,680 --> 00:17:21,540 And so we found that Linen itself behaves differently 377 00:17:21,540 --> 00:17:24,780 depending on whether you corrupt this partition table 378 00:17:24,780 --> 00:17:27,960 before Linen has started and has begun reading or after. 379 00:17:28,300 --> 00:17:32,860 And it makes encase hang and be... 380 00:17:33,560 --> 00:17:35,100 Encase has different failure modes 381 00:17:35,100 --> 00:17:37,540 depending on when the corruption happens. 382 00:17:37,720 --> 00:17:39,740 But we didn't really look into Linen much at all. 383 00:17:39,740 --> 00:17:42,040 We just sort of noted that issue and then moved on. 384 00:17:42,460 --> 00:17:44,840 But Linen is its own thing. 385 00:17:45,640 --> 00:17:47,980 So there's going to be a lot of bugs like this 386 00:17:47,980 --> 00:17:50,640 where if you mangle an NTFS image, 387 00:17:51,300 --> 00:17:53,240 encase can't handle it in various ways. 388 00:17:53,860 --> 00:17:55,600 NTFS is just a rather... 389 00:17:55,600 --> 00:17:58,240 As file systems go, it's among the more insane. 390 00:17:58,940 --> 00:18:00,320 It's extremely tricky. 391 00:18:00,780 --> 00:18:03,240 And in this case, what we'll see here is that... 392 00:18:03,760 --> 00:18:05,680 So in the master file table, 393 00:18:05,800 --> 00:18:08,200 which is a NTFS data structure, 394 00:18:08,200 --> 00:18:12,220 it has different entries of arbitrary size and number 395 00:18:12,220 --> 00:18:13,620 for different attributes of a file. 396 00:18:13,920 --> 00:18:16,100 And we just poked one. 397 00:18:16,280 --> 00:18:17,300 There's a file record. 398 00:18:18,800 --> 00:18:22,360 Normally, it would be 0, where it says 61 in red. 399 00:18:22,600 --> 00:18:26,320 But our fuzzer happened to put 61 there one time 400 00:18:26,320 --> 00:18:27,060 in a file record. 401 00:18:27,520 --> 00:18:28,820 And what we'll see... 402 00:18:28,820 --> 00:18:30,760 Oh, I'm so sorry. This is so tiny. 403 00:18:32,560 --> 00:18:35,940 My laser pointer probably can't even do... 404 00:18:35,940 --> 00:18:37,220 Right around here. 405 00:18:38,200 --> 00:18:39,360 EDI. I can't read it either. 406 00:18:39,500 --> 00:18:42,920 And my computer has an extremely different tiny view. 407 00:18:43,660 --> 00:18:47,900 EDI contains in it the base of an allocated region 408 00:18:47,900 --> 00:18:50,020 in which the file record will go. 409 00:18:50,420 --> 00:18:54,420 And our number is 6130, 410 00:18:55,000 --> 00:18:57,360 is used as an offset into that region, 411 00:18:57,500 --> 00:18:58,520 which is completely wrong. 412 00:18:59,820 --> 00:19:03,240 What we get is a read access violation 413 00:19:03,240 --> 00:19:06,560 because that number is way too big for the region 414 00:19:06,560 --> 00:19:07,400 and it points nowhere. 415 00:19:08,200 --> 00:19:08,880 So in case crashes. 416 00:19:09,240 --> 00:19:11,920 But so the point is that attacker-controlled data 417 00:19:12,460 --> 00:19:14,680 causes a pointer dereference that is wrong 418 00:19:15,200 --> 00:19:17,240 in case dies and we get wind debug. 419 00:19:18,120 --> 00:19:20,240 So a lot of the bugs are along those lines. 420 00:19:21,600 --> 00:19:24,660 I'm going to skip ahead to some... 421 00:19:24,660 --> 00:19:25,400 This is a good one. 422 00:19:26,060 --> 00:19:27,020 Okay, so... 423 00:19:28,340 --> 00:19:31,000 NTFS, being the crazy complicated thing that it is, 424 00:19:31,680 --> 00:19:33,540 lends itself to problems like this, 425 00:19:33,620 --> 00:19:35,760 where different interpreters of it 426 00:19:35,760 --> 00:19:37,700 interpret the same structure differently. 427 00:19:38,380 --> 00:19:42,160 And we found that the Linux NTFS 3G driver 428 00:19:43,000 --> 00:19:45,240 handles a directory loop in a way that's different 429 00:19:45,240 --> 00:19:46,780 than the way encase handles it. 430 00:19:47,780 --> 00:19:51,520 So what we did is we manually created a directory loop. 431 00:19:52,220 --> 00:19:56,840 We had a file that said that it was its own parent, 432 00:19:57,940 --> 00:19:59,760 which of course is completely silly. 433 00:20:00,260 --> 00:20:02,520 So what we did is we just manually did that. 434 00:20:02,560 --> 00:20:04,800 That's not the result of random fuzzing. 435 00:20:05,020 --> 00:20:07,720 So in this, this hex dump shows 436 00:20:08,200 --> 00:20:11,460 a part of MFT entry for a file called readme.txt. 437 00:20:12,000 --> 00:20:14,600 The blue areas refer to... 438 00:20:15,600 --> 00:20:17,440 For example, there's the... 439 00:20:18,420 --> 00:20:20,000 What's the file reference? 440 00:20:20,980 --> 00:20:24,200 What's the size, actual, and real? 441 00:20:24,940 --> 00:20:27,860 And what are the flags that describe this file? 442 00:20:28,260 --> 00:20:29,960 And we just manually changed them 443 00:20:29,960 --> 00:20:33,160 to those of the parent directory with... 444 00:20:33,160 --> 00:20:35,340 And the red bits is what we changed. 445 00:20:35,540 --> 00:20:37,760 And again, our paper, if you can't read it 446 00:20:38,200 --> 00:20:39,640 because it's too small or too strange, 447 00:20:39,780 --> 00:20:41,760 the paper covers it in good enough detail. 448 00:20:42,300 --> 00:20:45,820 So we feed this file system that contains 449 00:20:45,820 --> 00:20:47,700 a directory loop to Linux and encase. 450 00:20:48,780 --> 00:20:51,000 And, oh, that's... 451 00:20:51,000 --> 00:20:51,800 I skipped ahead, sorry. 452 00:20:52,180 --> 00:20:59,040 So what we found is that encase shows the file itself 453 00:20:59,040 --> 00:21:01,280 and doesn't show the directory loop, 454 00:21:01,440 --> 00:21:04,160 but it fails to show other files 455 00:21:04,160 --> 00:21:05,600 that were in the same directory 456 00:21:05,600 --> 00:21:07,620 as the file that is a loop to its parent. 457 00:21:08,200 --> 00:21:11,760 Whereas Linux shows us just a regular directory loop. 458 00:21:11,960 --> 00:21:18,700 So this allows a bad guy to potentially use data in Linux 459 00:21:18,700 --> 00:21:21,160 that encase will later ignore 460 00:21:21,160 --> 00:21:24,340 when the image is analyzed by encase. 461 00:21:25,580 --> 00:21:26,220 So... 462 00:21:26,220 --> 00:21:28,160 And I don't really have... 463 00:21:28,160 --> 00:21:29,460 I can't even speculate as to how, 464 00:21:29,540 --> 00:21:31,380 if I were a developer on encase, 465 00:21:31,380 --> 00:21:32,520 how I would even approach that 466 00:21:32,920 --> 00:21:35,400 because, again, NTFS is very frightening, 467 00:21:35,480 --> 00:21:36,380 and I'm scared. 468 00:21:38,320 --> 00:21:39,600 And here's a good one. 469 00:21:39,660 --> 00:21:42,920 This one will show EIP belongs to us, 470 00:21:43,060 --> 00:21:46,600 but in a sadly unamusing way. 471 00:21:47,120 --> 00:21:50,340 It's not particularly exploity, 472 00:21:50,440 --> 00:21:52,340 but it's definitely suggestive. 473 00:21:52,500 --> 00:21:55,160 So what we did is we created, again, manually, 474 00:21:55,320 --> 00:21:58,980 just a super deeply nested directory structure. 475 00:21:59,660 --> 00:22:02,760 You know, there's, like, maybe 1,000 children. 476 00:22:03,540 --> 00:22:07,200 And what we found is that you don't get this problem 477 00:22:07,200 --> 00:22:09,940 if the children have multiple siblings. 478 00:22:10,360 --> 00:22:13,520 It has to be a directory contains one directory 479 00:22:13,520 --> 00:22:15,380 contains one directory contains one directory 480 00:22:15,380 --> 00:22:16,520 for a long time. 481 00:22:16,760 --> 00:22:19,120 And we think that the reason that bug happens 482 00:22:19,120 --> 00:22:21,160 only when there's only one child per 483 00:22:21,160 --> 00:22:26,420 is an optimization to avoid recursion. 484 00:22:26,540 --> 00:22:31,500 But the result is that EIP becomes controlled 485 00:22:31,820 --> 00:22:34,380 by the number, or partly controlled, I should say, 486 00:22:34,520 --> 00:22:36,200 by the number of nested things. 487 00:22:36,200 --> 00:22:38,100 And as you can see here, 488 00:22:38,340 --> 00:22:41,400 if you have supervision, which I don't, 489 00:22:41,420 --> 00:22:43,380 but if you have the paper, 490 00:22:43,660 --> 00:22:46,380 again, isechpartners.com slash blackhat, 491 00:22:46,520 --> 00:22:50,520 you'll see that EIP is CA in hexadecimal. 492 00:22:50,740 --> 00:22:54,380 Too low to point to any code at all, 493 00:22:54,500 --> 00:22:55,600 let alone attacker's code. 494 00:22:56,000 --> 00:22:57,640 But of course it does cause a crash 495 00:22:57,640 --> 00:22:59,600 because there's no reasonable code there at all. 496 00:22:59,880 --> 00:23:02,640 But the point is a bad file system image 497 00:23:02,640 --> 00:23:04,940 allowed the attacker to control the instruction pointer, 498 00:23:04,940 --> 00:23:07,700 which seems not totally great. 499 00:23:08,940 --> 00:23:10,880 Oh, and then here's a simple one. 500 00:23:11,280 --> 00:23:14,320 If you make a disk image with too many partitions, 501 00:23:15,300 --> 00:23:17,580 and you can see here we made a disk image in Linux 502 00:23:17,580 --> 00:23:21,020 that has, like, I think 51 partitions, 503 00:23:21,560 --> 00:23:23,940 in case it just doesn't like that, 504 00:23:24,200 --> 00:23:26,080 it will show us up to number 25, 505 00:23:27,220 --> 00:23:28,220 and then it stops. 506 00:23:28,780 --> 00:23:31,140 So if you want to hide your porn, 507 00:23:31,260 --> 00:23:32,500 put it on partition 26. 508 00:23:35,840 --> 00:23:37,600 But, oh, and we should mention that 509 00:23:37,600 --> 00:23:40,000 the bugs that I've listed so far, 510 00:23:40,220 --> 00:23:42,400 guidance tells us that they are going to be fixed 511 00:23:42,400 --> 00:23:43,380 in the next release, 512 00:23:43,680 --> 00:23:45,600 which will be release 6.7. 513 00:23:46,180 --> 00:23:47,360 So that's good news. 514 00:23:48,360 --> 00:23:49,560 These particular bugs, 515 00:23:49,660 --> 00:23:51,120 although Alex is going to talk about 516 00:23:51,120 --> 00:23:53,080 a different kind of bug, 517 00:23:53,260 --> 00:23:54,440 a protocol bug, 518 00:23:54,660 --> 00:23:57,080 that probably will take longer to fix. 519 00:23:58,940 --> 00:23:59,920 How am I for time? 520 00:24:02,060 --> 00:24:03,040 Yeah, okay, great. 521 00:24:03,160 --> 00:24:04,420 I'm going to hand it over to Alex, 522 00:24:04,420 --> 00:24:07,120 but there exists more entertaining bugs 523 00:24:07,120 --> 00:24:08,160 for you to read in the paper. 524 00:24:10,120 --> 00:24:12,760 So that was kind of just a snapshot 525 00:24:12,760 --> 00:24:14,260 of some of the bugs we talked about in the paper, 526 00:24:14,360 --> 00:24:16,200 and the paper is a snapshot of the bugs we generated. 527 00:24:16,640 --> 00:24:17,960 When you do testing like this, 528 00:24:18,020 --> 00:24:20,320 the hard part is not generating the flaws, 529 00:24:20,600 --> 00:24:22,400 it's doing the analysis, right? 530 00:24:22,500 --> 00:24:24,500 It's real easy to automate the fuzzing. 531 00:24:24,640 --> 00:24:25,980 It's easy to... 532 00:24:25,980 --> 00:24:27,580 Chris actually worked up a really cool, 533 00:24:27,800 --> 00:24:28,720 using a thing called... 534 00:24:28,720 --> 00:24:30,240 Anybody here use PyWinAuto before? 535 00:24:30,880 --> 00:24:34,060 There's a Windows subsystem called Windows Automation 536 00:24:34,060 --> 00:24:34,900 that allows you to automate 537 00:24:34,900 --> 00:24:36,140 and click a lot of buttons automatically. 538 00:24:36,520 --> 00:24:38,840 And Chris worked up a really cool Python script 539 00:24:38,840 --> 00:24:40,900 that would go and have NCase do the acquisitions 540 00:24:40,900 --> 00:24:41,980 automatically and stuff like that. 541 00:24:42,120 --> 00:24:45,260 So with a non-command-line tool, 542 00:24:45,500 --> 00:24:46,800 you often have to do things like that 543 00:24:46,800 --> 00:24:47,580 to generate the bugs. 544 00:24:47,820 --> 00:24:49,580 The problem is there's really no good way 545 00:24:49,580 --> 00:24:50,580 of automating the analysis. 546 00:24:50,900 --> 00:24:53,120 And a lot of the times when you do this kind of thing, 547 00:24:53,180 --> 00:24:53,660 like Chris said, 548 00:24:53,880 --> 00:24:56,740 we'll have a huge stack of WinDebug mini-dumps 549 00:24:56,740 --> 00:24:58,540 that come out of our tools 550 00:24:59,060 --> 00:25:00,680 that all point to the same flaw 551 00:25:00,680 --> 00:25:02,180 expressed in different ways 552 00:25:02,180 --> 00:25:03,140 at maybe different EIPs 553 00:25:03,580 --> 00:25:04,040 or different memories 554 00:25:04,060 --> 00:25:06,300 because things slightly were different on the way there. 555 00:25:07,460 --> 00:25:09,540 So anyway, that was a little slice 556 00:25:09,900 --> 00:25:11,340 of issues in those two products. 557 00:25:11,760 --> 00:25:13,940 And then the SleuthKit bugs have been fixed. 558 00:25:13,980 --> 00:25:15,820 They were fixed in version 2.0.9. 559 00:25:15,980 --> 00:25:17,500 They're actually fixed within like three days 560 00:25:17,500 --> 00:25:18,260 or something like that. 561 00:25:19,040 --> 00:25:20,220 You can draw your own conclusions 562 00:25:20,220 --> 00:25:21,760 of open source versus commercial software. 563 00:25:22,820 --> 00:25:23,600 It was like a week. 564 00:25:23,700 --> 00:25:24,540 Oh, it took them a whole week. 565 00:25:26,140 --> 00:25:27,640 Anyway, so we had a lot of people here 566 00:25:27,640 --> 00:25:28,760 who used NCase Enterprise. 567 00:25:29,700 --> 00:25:32,120 This is probably the big moneymaker for guidance. 568 00:25:32,240 --> 00:25:33,720 It's the much more expensive version. 569 00:25:33,720 --> 00:25:36,360 The version of NCase Forensic we own 570 00:25:36,360 --> 00:25:37,440 costs about $6,000. 571 00:25:38,280 --> 00:25:40,720 And we have clients that own NCase Enterprise 572 00:25:40,720 --> 00:25:44,920 and their installs are in the $125,000 to $250,000 range. 573 00:25:46,120 --> 00:25:47,680 Now, companies are willing to pay that 574 00:25:47,680 --> 00:25:50,200 because they find NCase Enterprise extremely convenient. 575 00:25:50,580 --> 00:25:52,080 And it's convenient because 576 00:25:52,080 --> 00:25:54,060 it doesn't really add any analysis benefits. 577 00:25:54,440 --> 00:25:56,120 It's convenient because it allows you 578 00:25:56,120 --> 00:25:58,720 to remotely acquire machines for analysis, 579 00:25:59,560 --> 00:26:00,680 to remotely look at the processes 580 00:26:00,680 --> 00:26:01,680 that are running on a machine, 581 00:26:01,880 --> 00:26:03,100 to remotely grab the memory, 582 00:26:03,180 --> 00:26:03,700 and to remotely look 583 00:26:03,720 --> 00:26:04,940 and to remotely grab the hard drives of that machine, 584 00:26:05,160 --> 00:26:06,940 store them locally on your workstation, 585 00:26:07,060 --> 00:26:08,440 then do your analysis at your own time. 586 00:26:09,280 --> 00:26:10,400 Why would you want to do that? 587 00:26:10,480 --> 00:26:11,720 Well, if you're a big global company 588 00:26:11,720 --> 00:26:13,740 and you've got 50 offices around the world 589 00:26:13,740 --> 00:26:16,540 and your incident response and fraud and forensics team 590 00:26:16,540 --> 00:26:17,920 are all in New York, 591 00:26:18,120 --> 00:26:20,660 you really don't want to be putting them on 747s 592 00:26:20,660 --> 00:26:23,820 every time there's an incident anywhere on the planet, right? 593 00:26:24,900 --> 00:26:27,560 It's especially true because it seems that 594 00:26:27,560 --> 00:26:29,420 once enterprises deploy NCase Enterprise, 595 00:26:29,820 --> 00:26:31,700 they're much more into phishing expeditions, 596 00:26:31,820 --> 00:26:33,420 that they will not wait for something 597 00:26:33,420 --> 00:26:34,920 that is specifically look like 598 00:26:36,580 --> 00:26:37,920 somebody's committing fraud against them. 599 00:26:38,100 --> 00:26:39,680 If they feel something's going wrong, 600 00:26:39,880 --> 00:26:40,700 it's so convenient, 601 00:26:40,840 --> 00:26:42,000 it's not that hard to go out 602 00:26:42,000 --> 00:26:44,320 and pull down the whole marketing department's hard drives 603 00:26:44,320 --> 00:26:45,340 and look at all of them 604 00:26:45,340 --> 00:26:46,180 and see who the one who had 605 00:26:46,180 --> 00:26:47,120 the insider trading information. 606 00:26:47,780 --> 00:26:49,260 And so that's much more convenient for them 607 00:26:49,260 --> 00:26:49,840 because they can, 608 00:26:49,920 --> 00:26:51,920 you can go investigate people without them knowing, right? 609 00:26:51,980 --> 00:26:52,840 You don't have to go to their cube 610 00:26:52,840 --> 00:26:53,740 and pull their hard drive out. 611 00:26:54,540 --> 00:26:56,220 You don't have to have some person 612 00:26:56,220 --> 00:26:57,000 from a different office 613 00:26:57,000 --> 00:26:59,260 very mysteriously walking around, right? 614 00:26:59,320 --> 00:27:00,420 Or being there at 3 a.m. 615 00:27:00,480 --> 00:27:01,260 You can just say, 616 00:27:01,360 --> 00:27:02,460 if their machine's on at night, 617 00:27:02,820 --> 00:27:03,140 boop, 618 00:27:03,420 --> 00:27:04,120 grab this at 3 a.m., 619 00:27:04,120 --> 00:27:05,060 give me their hard drive, 620 00:27:05,180 --> 00:27:05,840 and when I come in the morning, 621 00:27:05,880 --> 00:27:06,860 I've got it sitting there for analysis. 622 00:27:07,340 --> 00:27:08,500 I'm not saying that's a bad thing, 623 00:27:08,580 --> 00:27:09,340 I'm just saying that this is the, 624 00:27:09,380 --> 00:27:10,320 this is why people are willing 625 00:27:10,320 --> 00:27:12,000 to pay $250,000 for this product. 626 00:27:13,980 --> 00:27:15,620 So, would you think NCase Enterprise 627 00:27:15,620 --> 00:27:17,160 is only used for internal investigations? 628 00:27:17,380 --> 00:27:18,540 I'm guessing a significant number 629 00:27:18,540 --> 00:27:19,180 of those people that rose, 630 00:27:19,220 --> 00:27:20,020 that raised their hands 631 00:27:20,020 --> 00:27:21,220 were actually law enforcement officers 632 00:27:21,220 --> 00:27:22,380 who use NCase Enterprise, 633 00:27:22,600 --> 00:27:23,540 which we were surprised about. 634 00:27:23,860 --> 00:27:25,680 But it does seem that NCase Enterprise is used 635 00:27:26,540 --> 00:27:29,740 sometimes because the law pushes police officers 636 00:27:29,740 --> 00:27:31,860 to use minimally invasive techniques 637 00:27:32,980 --> 00:27:33,340 and, 638 00:27:33,420 --> 00:27:34,460 and it's much more minimally invasive 639 00:27:34,460 --> 00:27:37,040 to image somebody's drive remotely over the network 640 00:27:37,040 --> 00:27:39,200 than it is to go pull their hard drive out, right? 641 00:27:39,340 --> 00:27:40,220 Since the latter means 642 00:27:40,220 --> 00:27:41,240 you can't do business anymore. 643 00:27:41,880 --> 00:27:43,640 And so, I think Enterprise has been used 644 00:27:43,640 --> 00:27:44,340 for that situation. 645 00:27:44,980 --> 00:27:46,840 And certainly, guidance puts forth 646 00:27:46,840 --> 00:27:47,760 in their public documentation 647 00:27:48,320 --> 00:27:50,440 the idea that evidence collected 648 00:27:50,440 --> 00:27:51,800 with NCase Enterprise alone 649 00:27:52,320 --> 00:27:53,040 should be good enough 650 00:27:53,040 --> 00:27:54,700 for civil or criminal lawsuits. 651 00:27:54,900 --> 00:27:56,500 In fact, they have an entire legal document 652 00:27:56,500 --> 00:27:57,700 written by their chief legal officer 653 00:27:57,700 --> 00:27:59,700 that lays out case law 654 00:27:59,700 --> 00:28:00,740 and a lot of justifications 655 00:28:01,320 --> 00:28:02,760 of why it should be good. 656 00:28:02,760 --> 00:28:04,840 And it turns out that courts have accepted 657 00:28:04,840 --> 00:28:05,700 NCase Enterprise evidence 658 00:28:05,700 --> 00:28:06,820 in the past, right, Chris? 659 00:28:07,240 --> 00:28:08,120 Yeah, so there is, 660 00:28:08,120 --> 00:28:10,700 there is some court case law backing them up 661 00:28:10,700 --> 00:28:11,440 that, you know, 662 00:28:11,440 --> 00:28:12,620 that you can use NCase Enterprise 663 00:28:12,620 --> 00:28:13,340 to gather evidence. 664 00:28:13,520 --> 00:28:14,600 It's not just for internal investigations. 665 00:28:14,840 --> 00:28:15,760 It can be used for law enforcement. 666 00:28:16,280 --> 00:28:17,640 In our cases, actually, 667 00:28:17,720 --> 00:28:18,860 a couple of our clients use it 668 00:28:18,860 --> 00:28:20,280 to do their own internal investigation. 669 00:28:20,320 --> 00:28:22,260 Then they turn that data over to the U.S. attorney 670 00:28:22,800 --> 00:28:24,100 or to the local district attorney. 671 00:28:24,560 --> 00:28:26,620 And so, the initial analysis 672 00:28:26,620 --> 00:28:27,460 is done by their own people 673 00:28:27,460 --> 00:28:28,640 and then later analysis is done 674 00:28:28,640 --> 00:28:30,300 by police investigators. 675 00:28:31,140 --> 00:28:32,140 And here, of course, 676 00:28:32,140 --> 00:28:33,120 is a quote from them. 677 00:28:33,160 --> 00:28:34,500 NCase Enterprise is ideally suited 678 00:28:34,500 --> 00:28:35,620 to recover and authenticate data 679 00:28:35,620 --> 00:28:37,540 over a local or wide area network. 680 00:28:37,760 --> 00:28:39,340 So please remember that phrase. 681 00:28:40,140 --> 00:28:42,180 Okay, so should we trust the evidence 682 00:28:42,180 --> 00:28:43,140 gathered by NCase Enterprise? 683 00:28:44,340 --> 00:28:45,240 NCase Enterprise contains 684 00:28:45,240 --> 00:28:47,080 a rather complex cryptosystem. 685 00:28:48,200 --> 00:28:50,140 It is not extremely well documented. 686 00:28:50,360 --> 00:28:51,500 And this is kind of a point 687 00:28:51,500 --> 00:28:52,260 we want to make that 688 00:28:52,260 --> 00:28:53,960 for a product that is very, very important 689 00:28:53,960 --> 00:28:55,280 and that has sent probably 690 00:28:55,280 --> 00:28:56,160 a lot of people to jail, 691 00:28:57,080 --> 00:28:58,460 it seems to be the kind of thing 692 00:28:58,460 --> 00:29:00,060 that should be, you know, 693 00:29:00,080 --> 00:29:01,120 at least the cryptosystem 694 00:29:01,120 --> 00:29:02,120 should be opened based on 695 00:29:02,140 --> 00:29:02,340 the information that is there 696 00:29:02,340 --> 00:29:03,780 for people to have lots of peer review. 697 00:29:03,980 --> 00:29:05,160 Perhaps by, you know, 698 00:29:05,160 --> 00:29:06,460 guys like Ed Felton and Dave Wagner 699 00:29:06,460 --> 00:29:07,900 who love looking at that stuff for free 700 00:29:07,900 --> 00:29:09,460 and then writing about it on their blogs. 701 00:29:09,740 --> 00:29:13,040 And so, when we wanted to learn 702 00:29:13,040 --> 00:29:13,640 about NCase Enterprise, 703 00:29:13,980 --> 00:29:16,200 we can't afford a $250,000 license. 704 00:29:16,620 --> 00:29:18,340 But we did observe its use, 705 00:29:19,040 --> 00:29:20,400 its legal license use 706 00:29:20,400 --> 00:29:21,380 by our customers 707 00:29:21,380 --> 00:29:22,580 in their enterprise environments 708 00:29:22,580 --> 00:29:24,360 and then some testing during that. 709 00:29:24,420 --> 00:29:25,680 Our lawyer's sitting in the front row. 710 00:29:25,840 --> 00:29:26,460 Wave, Joe. 711 00:29:27,060 --> 00:29:28,320 If anybody threatens you 712 00:29:28,320 --> 00:29:29,360 for doing security research, 713 00:29:29,500 --> 00:29:30,280 I recommend hiring 714 00:29:30,280 --> 00:29:31,120 Kecker Van Nest 715 00:29:31,120 --> 00:29:32,000 of San Francisco 716 00:29:32,140 --> 00:29:33,340 and especially Joe Grant. 717 00:29:33,760 --> 00:29:35,140 $5.25 an hour. 718 00:29:39,980 --> 00:29:41,040 You're buying lunch, bro. 719 00:29:43,500 --> 00:29:45,860 So anyway, so, you know, 720 00:29:45,860 --> 00:29:47,740 to do this kind of research 721 00:29:47,740 --> 00:29:48,900 is actually very difficult, right? 722 00:29:49,000 --> 00:29:49,660 And I think there's a lot of 723 00:29:49,660 --> 00:29:50,520 enterprise software out there 724 00:29:50,520 --> 00:29:51,620 that doesn't get good security research 725 00:29:52,140 --> 00:29:53,280 because 13-year-olds 726 00:29:53,280 --> 00:29:53,980 in the Czech Republic 727 00:29:53,980 --> 00:29:55,300 can't download it off BitTorrent 728 00:29:55,300 --> 00:29:57,800 and because most legitimate 729 00:29:57,800 --> 00:29:58,880 security research organizations 730 00:29:58,880 --> 00:29:59,980 like us can't afford it. 731 00:30:00,120 --> 00:30:01,020 In this case, we were able 732 00:30:01,020 --> 00:30:01,560 to use it legally 733 00:30:02,140 --> 00:30:02,400 for our customers 734 00:30:02,400 --> 00:30:03,500 because they're interested 735 00:30:03,500 --> 00:30:04,320 in the outcome themselves. 736 00:30:04,800 --> 00:30:05,940 When we wanted to find out 737 00:30:05,940 --> 00:30:06,940 how the cryptosystem worked, 738 00:30:07,140 --> 00:30:07,760 there were a couple 739 00:30:07,760 --> 00:30:08,840 of public documents from guidance. 740 00:30:09,380 --> 00:30:10,960 Neither one of them really lay out 741 00:30:10,960 --> 00:30:11,760 the cryptosystem 742 00:30:11,760 --> 00:30:12,300 in what I'd call 743 00:30:12,300 --> 00:30:13,100 a scientific manner 744 00:30:13,100 --> 00:30:14,340 or a manner that corresponds 745 00:30:14,340 --> 00:30:15,580 to if you read a paper 746 00:30:16,160 --> 00:30:17,860 in a cryptography class in college 747 00:30:17,860 --> 00:30:18,920 that would correspond to that. 748 00:30:19,580 --> 00:30:20,160 Actually, probably 749 00:30:20,160 --> 00:30:21,340 the best documentation was 750 00:30:21,340 --> 00:30:22,400 when we asked them, 751 00:30:22,460 --> 00:30:23,640 we did receive a slide deck 752 00:30:23,640 --> 00:30:24,720 that they give to us 753 00:30:24,720 --> 00:30:25,620 in sales presentations 754 00:30:26,140 --> 00:30:27,260 for people's security teams 755 00:30:27,260 --> 00:30:27,640 who ask, 756 00:30:27,820 --> 00:30:29,020 which was nice of them. 757 00:30:29,540 --> 00:30:30,280 But actually, 758 00:30:30,340 --> 00:30:31,420 the best documentation overall 759 00:30:31,420 --> 00:30:32,960 was their patent applications. 760 00:30:33,460 --> 00:30:34,360 Guidance Software has been 761 00:30:34,360 --> 00:30:35,040 issued two patents 762 00:30:35,040 --> 00:30:36,860 on the ability 763 00:30:36,860 --> 00:30:37,680 to remotely acquire 764 00:30:37,680 --> 00:30:38,600 network drives 765 00:30:38,600 --> 00:30:39,400 as well as a patent 766 00:30:39,400 --> 00:30:40,380 on how to do a restart 767 00:30:40,860 --> 00:30:41,960 of that acquisition. 768 00:30:42,720 --> 00:30:44,080 And although the patents 769 00:30:44,080 --> 00:30:44,980 do not specifically say 770 00:30:44,980 --> 00:30:47,860 this is NCASE Enterprise Edition 6, 771 00:30:48,420 --> 00:30:49,760 it seems that the information 772 00:30:49,760 --> 00:30:50,600 in the patents corresponds 773 00:30:50,600 --> 00:30:51,620 to all the other publicly 774 00:30:51,620 --> 00:30:53,100 available information 775 00:30:53,100 --> 00:30:54,160 and also corresponds 776 00:30:54,160 --> 00:30:55,120 to our own testing. 777 00:30:55,280 --> 00:30:56,360 And so we are going to use 778 00:30:56,360 --> 00:30:57,000 the patent applications 779 00:30:57,000 --> 00:30:58,020 for our cryptanalysis 780 00:30:58,020 --> 00:30:59,000 and for our discussion today. 781 00:30:59,200 --> 00:31:00,240 But I just want to lay it out. 782 00:31:00,320 --> 00:31:01,200 Maybe this is the kind of thing 783 00:31:01,420 --> 00:31:02,120 that we can get 784 00:31:02,120 --> 00:31:03,340 a nice big academic white paper 785 00:31:03,340 --> 00:31:03,740 from them 786 00:31:04,100 --> 00:31:05,140 that was reviewed by, 787 00:31:05,200 --> 00:31:05,500 you know, 788 00:31:05,540 --> 00:31:06,180 in the future people 789 00:31:06,180 --> 00:31:07,100 that make products like this. 790 00:31:08,560 --> 00:31:09,760 So one of the things you do 791 00:31:09,760 --> 00:31:10,480 when you want to set out 792 00:31:10,480 --> 00:31:11,220 and build a cryptosystem 793 00:31:11,220 --> 00:31:11,820 is you have to lay out 794 00:31:11,820 --> 00:31:12,460 what your goals are. 795 00:31:12,700 --> 00:31:13,060 Right? 796 00:31:13,140 --> 00:31:14,380 And a lot of cryptosystems 797 00:31:14,380 --> 00:31:14,720 are broken 798 00:31:14,720 --> 00:31:15,740 because the goals 799 00:31:15,740 --> 00:31:16,540 are incorrectly understood. 800 00:31:16,920 --> 00:31:18,000 Maybe you really want 801 00:31:18,000 --> 00:31:18,720 integrity protection 802 00:31:18,720 --> 00:31:20,760 and use a confidentiality protection. 803 00:31:21,100 --> 00:31:21,460 Right? 804 00:31:21,580 --> 00:31:25,040 Doing an RC4 cipher on data 805 00:31:25,040 --> 00:31:25,680 does not give you 806 00:31:25,680 --> 00:31:26,220 integrity protection, 807 00:31:26,420 --> 00:31:26,920 for example. 808 00:31:27,020 --> 00:31:27,580 But it might give you 809 00:31:27,580 --> 00:31:28,140 a reasonable amount 810 00:31:28,140 --> 00:31:29,120 of confidentiality protection. 811 00:31:29,500 --> 00:31:30,660 So when we sat down 812 00:31:31,420 --> 00:31:31,700 and asked ourselves 813 00:31:31,700 --> 00:31:33,100 what would we want to do 814 00:31:33,100 --> 00:31:33,780 if we had to design 815 00:31:33,780 --> 00:31:35,040 a system that grabs 816 00:31:35,040 --> 00:31:35,620 people's hard drives 817 00:31:35,620 --> 00:31:36,020 with a network, 818 00:31:36,300 --> 00:31:37,300 we thought the things 819 00:31:37,300 --> 00:31:37,820 we'd want to do 820 00:31:37,820 --> 00:31:38,560 is authenticate 821 00:31:38,560 --> 00:31:39,760 what machine we're going to, 822 00:31:40,200 --> 00:31:41,720 keep that hard drive secret 823 00:31:41,720 --> 00:31:43,160 as it flies across the network, 824 00:31:43,940 --> 00:31:45,240 keep the hard drive image 825 00:31:45,240 --> 00:31:46,500 from being changed 826 00:31:46,500 --> 00:31:47,780 as it flies across the network. 827 00:31:47,920 --> 00:31:48,180 Obviously, 828 00:31:48,180 --> 00:31:48,660 you don't want it 829 00:31:48,660 --> 00:31:49,280 changed by people. 830 00:31:49,780 --> 00:31:50,580 And authenticate 831 00:31:50,580 --> 00:31:51,520 and authorize the user 832 00:31:51,520 --> 00:31:52,540 asking for the target machine. 833 00:31:52,720 --> 00:31:53,300 We obviously don't want 834 00:31:53,300 --> 00:31:53,940 to create a back door 835 00:31:53,940 --> 00:31:54,620 in all of our machines 836 00:31:54,620 --> 00:31:55,680 that anybody can use 837 00:31:55,680 --> 00:31:56,440 to grab their hard drives. 838 00:31:57,580 --> 00:31:58,780 Our analysis has shown 839 00:31:58,780 --> 00:32:00,080 that the MKS Enterprise system 840 00:32:00,080 --> 00:32:00,940 meets all of these goals 841 00:32:01,420 --> 00:32:01,740 in the first one. 842 00:32:01,980 --> 00:32:02,860 The authentication 843 00:32:02,860 --> 00:32:03,700 of the target machine, 844 00:32:03,940 --> 00:32:04,720 which in our opinion 845 00:32:04,720 --> 00:32:05,420 is the most important. 846 00:32:05,640 --> 00:32:06,720 But I'm sure there can be 847 00:32:06,720 --> 00:32:07,420 reasonable discussion 848 00:32:07,420 --> 00:32:08,500 of whether or not 849 00:32:08,500 --> 00:32:08,860 that's actually 850 00:32:08,860 --> 00:32:09,560 the most important goal. 851 00:32:10,820 --> 00:32:11,840 And they kind of actually 852 00:32:11,840 --> 00:32:12,900 almost admit to this 853 00:32:12,900 --> 00:32:13,640 in some of the documentation 854 00:32:13,640 --> 00:32:14,960 saying what the goal 855 00:32:14,960 --> 00:32:15,920 of the MKS Enterprise system is. 856 00:32:15,980 --> 00:32:16,440 It's mostly about 857 00:32:16,440 --> 00:32:17,080 user authentication. 858 00:32:17,840 --> 00:32:18,900 So there are three components 859 00:32:18,900 --> 00:32:19,420 in MKS Enterprise. 860 00:32:19,800 --> 00:32:21,060 The examiner's workstation, 861 00:32:21,280 --> 00:32:22,060 which is basically 862 00:32:22,060 --> 00:32:22,800 in case forensic 863 00:32:22,800 --> 00:32:23,480 with some other stuff 864 00:32:23,480 --> 00:32:24,160 wrapped around it. 865 00:32:25,060 --> 00:32:25,760 This is where 866 00:32:25,760 --> 00:32:26,940 a person sits down 867 00:32:26,940 --> 00:32:27,500 and says I want 868 00:32:27,500 --> 00:32:29,640 bobscomputer.corp.bank.com 869 00:32:29,640 --> 00:32:30,560 or an IP address. 870 00:32:31,700 --> 00:32:32,300 There's a thing 871 00:32:32,300 --> 00:32:32,860 called a SAFE, 872 00:32:33,020 --> 00:32:34,100 which is a server 873 00:32:34,100 --> 00:32:34,960 that generally runs 874 00:32:34,960 --> 00:32:35,440 full time 875 00:32:35,440 --> 00:32:36,360 on a corporate network. 876 00:32:36,640 --> 00:32:37,680 The SAFE is kind of 877 00:32:37,680 --> 00:32:38,620 the trusted introducer. 878 00:32:38,680 --> 00:32:39,140 It knows who all 879 00:32:39,140 --> 00:32:40,920 the licensed examiners are. 880 00:32:41,260 --> 00:32:43,220 And it allows, 881 00:32:43,460 --> 00:32:44,080 it authorizes 882 00:32:44,080 --> 00:32:44,660 and authenticates 883 00:32:44,660 --> 00:32:45,260 those examiners. 884 00:32:45,380 --> 00:32:45,980 And then does 885 00:32:45,980 --> 00:32:46,820 a trusted introduction 886 00:32:47,380 --> 00:32:48,540 between the examiners 887 00:32:48,540 --> 00:32:49,220 and the servlet. 888 00:32:49,400 --> 00:32:49,940 Now they use 889 00:32:49,940 --> 00:32:50,540 the term servlet 890 00:32:50,540 --> 00:32:51,400 which really drives us nuts 891 00:32:51,400 --> 00:32:52,100 because we do a lot 892 00:32:52,100 --> 00:32:52,620 of Java stuff. 893 00:32:53,080 --> 00:32:54,100 It has nothing to do 894 00:32:54,100 --> 00:32:54,400 with Java. 895 00:32:54,520 --> 00:32:55,540 It's just a small program. 896 00:32:55,620 --> 00:32:56,360 It's like 600K. 897 00:32:57,000 --> 00:32:58,380 It's a user mode program 898 00:32:58,380 --> 00:32:59,280 as well as a device driver 899 00:32:59,280 --> 00:33:00,460 that's blown out 900 00:33:01,420 --> 00:33:01,580 of their hard drives 901 00:33:01,580 --> 00:33:02,700 so that you can image 902 00:33:02,700 --> 00:33:03,160 their hard drive. 903 00:33:03,440 --> 00:33:03,680 Right? 904 00:33:03,900 --> 00:33:06,640 So the examiner 905 00:33:06,640 --> 00:33:07,020 workstation 906 00:33:07,020 --> 00:33:08,440 has a public 907 00:33:08,440 --> 00:33:09,060 private key pair 908 00:33:09,060 --> 00:33:09,800 which comes from 909 00:33:09,800 --> 00:33:10,280 guidance software 910 00:33:10,280 --> 00:33:11,200 that's then registered 911 00:33:11,200 --> 00:33:11,700 with the SAFE. 912 00:33:11,920 --> 00:33:13,320 The SAFE has a key pair 913 00:33:13,320 --> 00:33:14,380 that comes from 914 00:33:14,380 --> 00:33:15,180 guidance as part of 915 00:33:15,180 --> 00:33:15,720 the big human 916 00:33:15,720 --> 00:33:16,660 in the middle 917 00:33:16,660 --> 00:33:17,820 authentication process. 918 00:33:18,640 --> 00:33:19,600 The servlet does not 919 00:33:19,600 --> 00:33:20,120 have a key pair. 920 00:33:20,280 --> 00:33:20,820 And that's what 921 00:33:20,820 --> 00:33:21,460 we're about to talk about. 922 00:33:21,600 --> 00:33:22,980 So can't really read these. 923 00:33:23,060 --> 00:33:23,680 These are screenshots 924 00:33:23,680 --> 00:33:24,360 from the patent 925 00:33:25,020 --> 00:33:25,780 which our lawyer 926 00:33:25,780 --> 00:33:26,260 has told us 927 00:33:26,260 --> 00:33:26,840 we're allowed to use. 928 00:33:29,680 --> 00:33:30,820 This is the initialization 929 00:33:30,820 --> 00:33:31,400 of the crypto service 930 00:33:31,420 --> 00:33:31,780 system when you do 931 00:33:31,780 --> 00:33:32,200 the install. 932 00:33:32,460 --> 00:33:33,320 This looks okay. 933 00:33:33,720 --> 00:33:34,760 The SAFE generates 934 00:33:34,760 --> 00:33:35,600 its own key pair. 935 00:33:35,880 --> 00:33:36,760 Sends it to guidance. 936 00:33:36,900 --> 00:33:37,400 There's some kind of 937 00:33:37,400 --> 00:33:38,560 human in the loop situation 938 00:33:38,560 --> 00:33:39,620 where a human verifies 939 00:33:39,620 --> 00:33:40,440 that you're a licensed user 940 00:33:40,440 --> 00:33:40,780 and stuff. 941 00:33:41,100 --> 00:33:42,200 The key pair is sent back. 942 00:33:42,340 --> 00:33:43,200 It's stored on the SAFE. 943 00:33:43,380 --> 00:33:45,060 And then the SAFE rolls 944 00:33:45,060 --> 00:33:46,620 its own servlet. 945 00:33:46,760 --> 00:33:47,600 So it creates 946 00:33:47,600 --> 00:33:48,600 a setup.exe 947 00:33:48,600 --> 00:33:49,920 which is a setup program 948 00:33:49,920 --> 00:33:51,080 that installs 949 00:33:51,080 --> 00:33:51,580 the servlet 950 00:33:51,580 --> 00:33:52,320 on all the targeted 951 00:33:52,320 --> 00:33:52,960 workstations. 952 00:33:53,100 --> 00:33:54,560 And that setup.exe 953 00:33:54,560 --> 00:33:55,560 has the public key 954 00:33:56,220 --> 00:33:56,880 of the SAFE 955 00:33:56,880 --> 00:33:57,560 burned into it. 956 00:33:57,720 --> 00:33:58,380 So this is how 957 00:33:58,380 --> 00:33:59,340 you bootstrap trust 958 00:33:59,340 --> 00:34:00,400 between all of 959 00:34:00,400 --> 00:34:01,100 the workstations 960 00:34:01,420 --> 00:34:01,900 at enterprises 961 00:34:02,370 --> 00:34:03,140 and case server 962 00:34:03,140 --> 00:34:04,360 is that you push 963 00:34:04,360 --> 00:34:04,920 out a binary 964 00:34:04,920 --> 00:34:06,180 that has the key 965 00:34:06,180 --> 00:34:07,020 burnt into it. 966 00:34:08,680 --> 00:34:09,360 When you want 967 00:34:09,360 --> 00:34:09,940 to do an examination 968 00:34:09,940 --> 00:34:11,120 the examiner contacts 969 00:34:11,120 --> 00:34:11,880 the SAFE and says 970 00:34:11,880 --> 00:34:12,700 I want to do an examination. 971 00:34:13,440 --> 00:34:14,460 And when it does so 972 00:34:15,120 --> 00:34:16,020 this actually works 973 00:34:16,020 --> 00:34:16,540 out pretty well. 974 00:34:16,640 --> 00:34:17,540 It's a standard 975 00:34:17,540 --> 00:34:18,640 kind of mutual authentication 976 00:34:18,640 --> 00:34:19,860 using public-private keys. 977 00:34:19,980 --> 00:34:20,760 You generate random numbers. 978 00:34:20,800 --> 00:34:21,420 You send it to each other. 979 00:34:21,480 --> 00:34:22,000 Yada, yada, yada. 980 00:34:22,220 --> 00:34:23,520 The SAFE has a big list 981 00:34:23,520 --> 00:34:24,040 of who's allowed 982 00:34:24,040 --> 00:34:24,480 to do what. 983 00:34:24,860 --> 00:34:25,920 This seems to work fine. 984 00:34:26,460 --> 00:34:26,840 Okay. 985 00:34:26,900 --> 00:34:27,480 So the part 986 00:34:27,480 --> 00:34:28,600 that we are concerned about 987 00:34:29,520 --> 00:34:30,500 is this part. 988 00:34:31,460 --> 00:34:32,400 So I'm going to try 989 00:34:32,400 --> 00:34:33,060 to actually show this 990 00:34:33,060 --> 00:34:33,480 in the PDF 991 00:34:33,480 --> 00:34:34,100 to make it bigger. 992 00:34:34,320 --> 00:34:35,360 Is that at all readable 993 00:34:35,360 --> 00:34:36,140 or do I have to 994 00:34:36,140 --> 00:34:36,560 make it bigger? 995 00:34:36,880 --> 00:34:37,480 Here we go. 996 00:34:38,460 --> 00:34:39,340 Is that readable 997 00:34:39,340 --> 00:34:39,900 to you guys? 998 00:34:41,120 --> 00:34:41,520 Jeez. 999 00:34:43,260 --> 00:34:43,660 Better? 1000 00:34:45,080 --> 00:34:46,160 So our components 1001 00:34:46,160 --> 00:34:46,640 here are 1002 00:34:46,640 --> 00:34:47,440 the client machine 1003 00:34:47,440 --> 00:34:48,460 which is the examiner. 1004 00:34:48,840 --> 00:34:49,560 The vendor 1005 00:34:49,560 --> 00:34:50,240 who isn't involved 1006 00:34:50,240 --> 00:34:51,100 in this transaction. 1007 00:34:51,700 --> 00:34:52,420 The server. 1008 00:34:52,560 --> 00:34:53,100 The SAFE. 1009 00:34:53,240 --> 00:34:53,860 This is the full-time 1010 00:34:53,860 --> 00:34:54,360 server running 1011 00:34:54,360 --> 00:34:54,760 on the network. 1012 00:34:55,120 --> 00:34:55,860 The key master 1013 00:34:55,860 --> 00:34:57,520 who is like a super user 1014 00:34:57,520 --> 00:34:58,280 who's not involved. 1015 00:34:58,380 --> 00:34:59,000 And then the target 1016 00:34:59,000 --> 00:34:59,240 machine. 1017 00:34:59,360 --> 00:35:00,700 This is Bob. 1018 00:35:01,420 --> 00:35:02,360 Malice in this example 1019 00:35:02,360 --> 00:35:03,160 is our examiner. 1020 00:35:03,520 --> 00:35:05,880 Bob is the person 1021 00:35:05,880 --> 00:35:06,680 who's being investigated. 1022 00:35:06,940 --> 00:35:07,540 And then Malice 1023 00:35:07,540 --> 00:35:08,340 is the person 1024 00:35:08,340 --> 00:35:08,900 who actually committed 1025 00:35:08,900 --> 00:35:09,180 the crime 1026 00:35:09,180 --> 00:35:09,780 and happens to be 1027 00:35:09,780 --> 00:35:10,440 on the same switched 1028 00:35:10,440 --> 00:35:11,100 Ethernet network 1029 00:35:11,100 --> 00:35:11,480 as Bob. 1030 00:35:12,660 --> 00:35:13,680 Unfortunately for Bob. 1031 00:35:13,920 --> 00:35:15,720 So if you look 1032 00:35:15,720 --> 00:35:16,320 at this actually 1033 00:35:16,320 --> 00:35:17,300 people that have done 1034 00:35:17,300 --> 00:35:18,040 any crypto review 1035 00:35:18,040 --> 00:35:18,980 it kind of actually 1036 00:35:18,980 --> 00:35:19,320 gets obvious 1037 00:35:19,320 --> 00:35:20,740 what the issue is here. 1038 00:35:21,320 --> 00:35:22,100 The server 1039 00:35:22,100 --> 00:35:23,220 generates a random number. 1040 00:35:23,640 --> 00:35:24,600 It signs that 1041 00:35:24,600 --> 00:35:25,200 random number 1042 00:35:25,200 --> 00:35:26,100 with its private key. 1043 00:35:26,340 --> 00:35:27,660 It sends that package 1044 00:35:27,660 --> 00:35:28,600 to the target machine. 1045 00:35:28,780 --> 00:35:29,860 So now the target 1046 00:35:29,860 --> 00:35:30,760 machine can say 1047 00:35:31,420 --> 00:35:31,920 that's a random number 1048 00:35:31,920 --> 00:35:33,000 and it came from the safe. 1049 00:35:33,180 --> 00:35:33,660 And because it has 1050 00:35:33,660 --> 00:35:34,540 the local public key 1051 00:35:34,540 --> 00:35:35,020 it can verify 1052 00:35:35,020 --> 00:35:35,580 that signature. 1053 00:35:35,840 --> 00:35:36,000 Right? 1054 00:35:36,480 --> 00:35:37,420 So it does so. 1055 00:35:37,520 --> 00:35:38,380 It generates its own 1056 00:35:38,380 --> 00:35:38,880 random key. 1057 00:35:40,620 --> 00:35:41,760 And then it sends 1058 00:35:41,760 --> 00:35:43,360 its random key 1059 00:35:43,360 --> 00:35:45,220 and the original 1060 00:35:45,220 --> 00:35:45,680 random key 1061 00:35:45,680 --> 00:35:46,040 encrypted 1062 00:35:46,040 --> 00:35:46,700 with the safe's 1063 00:35:46,700 --> 00:35:47,380 public key here. 1064 00:35:47,540 --> 00:35:48,400 A couple other things 1065 00:35:48,400 --> 00:35:48,660 happen. 1066 00:35:48,960 --> 00:35:49,940 This creates a 1067 00:35:49,940 --> 00:35:51,140 one-time session key 1068 00:35:51,140 --> 00:35:52,120 for AES symmetric 1069 00:35:52,120 --> 00:35:52,600 encryption 1070 00:35:52,600 --> 00:35:53,660 and sends it 1071 00:35:53,660 --> 00:35:54,780 and it encrypts it 1072 00:35:54,780 --> 00:35:55,840 with this random key here. 1073 00:35:56,000 --> 00:35:56,700 What's missing 1074 00:35:56,700 --> 00:35:57,580 from this handshake? 1075 00:36:00,920 --> 00:36:01,400 I'm sorry. 1076 00:36:02,200 --> 00:36:02,680 Authentication. 1077 00:36:03,240 --> 00:36:04,240 Authentication of what? 1078 00:36:05,640 --> 00:36:07,120 Of the target machine. 1079 00:36:07,320 --> 00:36:07,660 Of the target machine. 1080 00:36:07,840 --> 00:36:08,600 The target machine 1081 00:36:08,600 --> 00:36:09,840 has done nothing cryptographically 1082 00:36:09,840 --> 00:36:11,020 to prove who its key is. 1083 00:36:11,300 --> 00:36:12,180 All you know 1084 00:36:12,180 --> 00:36:12,900 as the safe 1085 00:36:12,900 --> 00:36:14,100 in this situation 1086 00:36:14,100 --> 00:36:15,440 is that the target machine 1087 00:36:15,440 --> 00:36:16,460 has your public key. 1088 00:36:16,920 --> 00:36:17,400 Right? 1089 00:36:18,280 --> 00:36:19,240 So unfortunately 1090 00:36:19,240 --> 00:36:20,800 in the general use case 1091 00:36:20,800 --> 00:36:21,460 of NCase Enterprise 1092 00:36:21,460 --> 00:36:22,680 a lot of people 1093 00:36:22,680 --> 00:36:24,080 blow out the servlet 1094 00:36:24,080 --> 00:36:24,580 as part of their 1095 00:36:24,580 --> 00:36:25,120 standard build 1096 00:36:25,120 --> 00:36:26,000 or something like 1097 00:36:26,000 --> 00:36:26,760 an active directory 1098 00:36:27,700 --> 00:36:28,900 on boot script. 1099 00:36:29,180 --> 00:36:29,660 And so 1100 00:36:29,660 --> 00:36:30,380 every single 1101 00:36:30,380 --> 00:36:31,380 desktop and workstation 1102 00:36:31,400 --> 00:36:31,940 and server 1103 00:36:31,940 --> 00:36:33,300 in the entire enterprise 1104 00:36:33,300 --> 00:36:33,920 has exactly 1105 00:36:33,920 --> 00:36:35,160 the same binary on it. 1106 00:36:35,260 --> 00:36:36,580 And that exact same binary 1107 00:36:36,580 --> 00:36:37,380 has the exact same 1108 00:36:37,380 --> 00:36:37,960 public keys. 1109 00:36:38,180 --> 00:36:39,020 And it turns out 1110 00:36:39,020 --> 00:36:40,300 that as long 1111 00:36:40,300 --> 00:36:41,040 as this handshake 1112 00:36:41,040 --> 00:36:42,020 goes to one of those things 1113 00:36:42,020 --> 00:36:43,160 it always looks the same. 1114 00:36:43,360 --> 00:36:44,040 I mean the random number 1115 00:36:44,040 --> 00:36:44,300 is different 1116 00:36:44,300 --> 00:36:45,780 but there's no way 1117 00:36:45,780 --> 00:36:46,280 for the client 1118 00:36:46,280 --> 00:36:46,620 to say 1119 00:36:46,620 --> 00:36:47,640 I am this client. 1120 00:36:48,440 --> 00:36:49,100 Later on 1121 00:36:49,100 --> 00:36:51,000 in the handshake 1122 00:36:51,000 --> 00:36:51,640 there's actually 1123 00:36:51,640 --> 00:36:52,900 a little thing 1124 00:36:52,900 --> 00:36:53,200 where 1125 00:36:53,900 --> 00:36:54,780 the examiner 1126 00:36:54,780 --> 00:36:55,440 sends a package 1127 00:36:55,440 --> 00:36:55,880 that says 1128 00:36:55,880 --> 00:36:56,980 oh you're supposed 1129 00:36:56,980 --> 00:36:58,020 to be at this IP address. 1130 00:36:58,180 --> 00:36:58,340 Right? 1131 00:36:58,340 --> 00:36:59,520 And the guy comes back 1132 00:36:59,520 --> 00:36:59,920 and says yep 1133 00:36:59,920 --> 00:37:00,960 that's the IP address I'm at. 1134 00:37:01,160 --> 00:37:02,820 And the servlet goes 1135 00:37:02,820 --> 00:37:03,460 and locally looks 1136 00:37:03,460 --> 00:37:03,880 in the register. 1137 00:37:04,000 --> 00:37:04,840 So all that means 1138 00:37:04,840 --> 00:37:05,740 is that this machine 1139 00:37:05,740 --> 00:37:06,380 that it's asking 1140 00:37:06,380 --> 00:37:07,560 thinks that it's IP address 1141 00:37:07,560 --> 00:37:08,160 so this hopefully 1142 00:37:08,160 --> 00:37:09,100 takes care of 1143 00:37:09,100 --> 00:37:09,500 maybe some 1144 00:37:10,800 --> 00:37:11,920 mistaken router issues 1145 00:37:11,920 --> 00:37:12,600 routing issues 1146 00:37:12,600 --> 00:37:13,180 stuff like that. 1147 00:37:13,480 --> 00:37:14,600 It will protect you 1148 00:37:14,600 --> 00:37:15,100 against the most 1149 00:37:15,100 --> 00:37:15,940 simplest attack 1150 00:37:15,940 --> 00:37:17,020 you can possibly think of here 1151 00:37:17,020 --> 00:37:18,060 which is just doing 1152 00:37:18,060 --> 00:37:19,180 a TCP port forwarding 1153 00:37:19,180 --> 00:37:19,620 with Netcat. 1154 00:37:20,620 --> 00:37:21,980 But it does open you up 1155 00:37:21,980 --> 00:37:22,760 to a bunch of other things. 1156 00:37:23,620 --> 00:37:24,060 Basically 1157 00:37:24,660 --> 00:37:25,400 anybody here 1158 00:37:25,400 --> 00:37:25,840 who's ever 1159 00:37:25,840 --> 00:37:26,660 plugged their computer 1160 00:37:26,660 --> 00:37:27,280 into a network 1161 00:37:28,380 --> 00:37:29,140 you've used a lot 1162 00:37:29,140 --> 00:37:30,180 of the magic fairy protocols. 1163 00:37:30,840 --> 00:37:31,700 Like a magic fairy 1164 00:37:31,700 --> 00:37:32,160 comes along 1165 00:37:32,160 --> 00:37:33,380 and sprinkles magic fairy dust 1166 00:37:33,380 --> 00:37:34,240 on your ethernet cable 1167 00:37:34,240 --> 00:37:35,740 and that magic fairy dust 1168 00:37:35,740 --> 00:37:36,620 is DHCP 1169 00:37:36,620 --> 00:37:37,900 DNS and ARP. 1170 00:37:38,080 --> 00:37:38,960 And none of those 1171 00:37:38,960 --> 00:37:39,660 protocols are secure. 1172 00:37:39,920 --> 00:37:40,540 None of them 1173 00:37:40,540 --> 00:37:41,500 use any cryptographic 1174 00:37:41,500 --> 00:37:42,020 verification 1175 00:37:42,020 --> 00:37:42,780 of what's in them. 1176 00:37:43,260 --> 00:37:44,080 And they're all 1177 00:37:44,080 --> 00:37:45,140 there's lots of attacks 1178 00:37:45,140 --> 00:37:45,920 against all of them. 1179 00:37:46,080 --> 00:37:46,600 And so 1180 00:37:46,600 --> 00:37:47,940 in a corporate network 1181 00:37:47,940 --> 00:37:48,820 in any normal 1182 00:37:48,820 --> 00:37:49,400 corporate network 1183 00:37:49,400 --> 00:37:50,260 there's lots and lots 1184 00:37:50,260 --> 00:37:50,880 of different ways 1185 00:37:50,880 --> 00:37:52,000 of making somebody 1186 00:37:52,000 --> 00:37:52,720 across the network 1187 00:37:52,720 --> 00:37:53,520 think that you own 1188 00:37:53,520 --> 00:37:54,320 the wrong IP address 1189 00:37:54,320 --> 00:37:55,300 or the wrong DNS name. 1190 00:37:58,340 --> 00:37:58,860 What if malice 1191 00:37:58,860 --> 00:37:59,600 just takes over 1192 00:37:59,600 --> 00:38:00,100 an IP address? 1193 00:38:00,420 --> 00:38:01,340 If I'm malice 1194 00:38:01,340 --> 00:38:02,220 and I know 1195 00:38:02,220 --> 00:38:02,680 you're gonna image 1196 00:38:02,680 --> 00:38:03,500 Bob's workstation 1197 00:38:03,500 --> 00:38:04,380 tonight at 3 a.m. 1198 00:38:04,420 --> 00:38:05,320 before I leave 1199 00:38:05,320 --> 00:38:06,040 at 10 p.m. 1200 00:38:06,080 --> 00:38:07,300 I change my IP address 1201 00:38:07,300 --> 00:38:08,380 and I take over 1202 00:38:08,380 --> 00:38:09,080 Bob's IP address. 1203 00:38:09,340 --> 00:38:10,500 And if there's a static mapping 1204 00:38:10,500 --> 00:38:11,740 the DNS doesn't name. 1205 00:38:11,840 --> 00:38:11,920 Right? 1206 00:38:11,960 --> 00:38:12,320 If you're not doing 1207 00:38:12,320 --> 00:38:13,360 like dynamic DNS updates. 1208 00:38:13,640 --> 00:38:14,720 And Bob's computer 1209 00:38:14,720 --> 00:38:15,760 pops a little box saying 1210 00:38:15,760 --> 00:38:16,980 oh you have an IP address conflict 1211 00:38:16,980 --> 00:38:18,180 but Bob's not working anymore 1212 00:38:18,180 --> 00:38:19,060 because it's 10 p.m. 1213 00:38:19,140 --> 00:38:20,080 The image happens 1214 00:38:20,080 --> 00:38:21,000 at 3 a.m. 1215 00:38:21,780 --> 00:38:22,460 It goes 1216 00:38:22,460 --> 00:38:24,020 it does a static lookup 1217 00:38:24,020 --> 00:38:24,560 it goes and talks 1218 00:38:24,560 --> 00:38:25,020 to my machine. 1219 00:38:25,240 --> 00:38:26,180 My machine now has 1220 00:38:28,340 --> 00:38:28,660 the servlet 1221 00:38:28,660 --> 00:38:30,040 and it comes and images 1222 00:38:30,040 --> 00:38:30,480 my machine 1223 00:38:30,480 --> 00:38:31,180 and the examiner 1224 00:38:31,180 --> 00:38:31,820 thinks it's Bob's. 1225 00:38:32,140 --> 00:38:33,380 It's the most basic way. 1226 00:38:33,600 --> 00:38:34,180 There's a lot more 1227 00:38:34,180 --> 00:38:34,820 complicated ways. 1228 00:38:35,000 --> 00:38:35,560 ARP spoofing 1229 00:38:35,560 --> 00:38:36,460 DHCP spoofing. 1230 00:38:36,480 --> 00:38:37,420 I think DNS attacks 1231 00:38:37,420 --> 00:38:37,940 are interesting. 1232 00:38:38,340 --> 00:38:39,780 If you have a situation 1233 00:38:39,780 --> 00:38:40,580 where the examiner's 1234 00:38:40,580 --> 00:38:41,360 using DNS names 1235 00:38:41,360 --> 00:38:42,060 instead of IP addresses 1236 00:38:42,060 --> 00:38:43,480 attacking the internal 1237 00:38:43,480 --> 00:38:44,220 DNS infrastructure 1238 00:38:44,220 --> 00:38:44,920 is real easy. 1239 00:38:45,400 --> 00:38:46,340 I've never seen 1240 00:38:46,340 --> 00:38:46,880 a corporate network 1241 00:38:46,880 --> 00:38:47,780 where like their internal 1242 00:38:47,780 --> 00:38:49,100 dynamic DNS 1243 00:38:49,100 --> 00:38:50,340 which is tied to DHCP 1244 00:38:50,340 --> 00:38:51,220 is updated securely. 1245 00:38:52,320 --> 00:38:53,240 So as a result 1246 00:38:53,240 --> 00:38:53,560 basically 1247 00:38:55,380 --> 00:38:56,160 there's really 1248 00:38:56,160 --> 00:38:57,460 no way 1249 00:38:57,460 --> 00:38:57,940 for 1250 00:38:58,480 --> 00:38:59,060 NCASE Enterprise 1251 00:38:59,060 --> 00:38:59,820 to figure out 1252 00:38:59,820 --> 00:39:00,700 exactly who's who. 1253 00:39:00,800 --> 00:39:01,500 It is trusting 1254 00:39:01,500 --> 00:39:02,380 that a machine 1255 00:39:02,380 --> 00:39:03,260 has the right IP address 1256 00:39:03,260 --> 00:39:03,900 at the right time 1257 00:39:03,900 --> 00:39:04,820 and that DNS is working. 1258 00:39:05,700 --> 00:39:06,780 So there's arguments 1259 00:39:06,780 --> 00:39:07,800 I'm sure guidance 1260 00:39:07,800 --> 00:39:08,140 will argue 1261 00:39:08,140 --> 00:39:08,900 this isn't a big deal 1262 00:39:08,900 --> 00:39:09,680 which they can have 1263 00:39:09,680 --> 00:39:10,500 reasonable arguments 1264 00:39:10,500 --> 00:39:11,640 that you know 1265 00:39:11,640 --> 00:39:12,740 it's admissible 1266 00:39:12,740 --> 00:39:13,540 to just go across 1267 00:39:13,540 --> 00:39:13,980 and say 1268 00:39:13,980 --> 00:39:15,460 somebody had an IP address 1269 00:39:15,460 --> 00:39:15,960 we think 1270 00:39:15,960 --> 00:39:17,140 and so we grab some data 1271 00:39:17,140 --> 00:39:17,560 off of them 1272 00:39:17,560 --> 00:39:18,640 and so that's admissible evidence. 1273 00:39:18,840 --> 00:39:19,340 We're not going to make 1274 00:39:19,340 --> 00:39:20,020 any legal arguments. 1275 00:39:20,200 --> 00:39:21,040 Chris will talk about 1276 00:39:21,040 --> 00:39:21,600 that kind of stuff. 1277 00:39:22,880 --> 00:39:23,280 But 1278 00:39:23,940 --> 00:39:24,800 to put forth 1279 00:39:24,800 --> 00:39:25,420 a metaphor 1280 00:39:28,340 --> 00:39:28,560 a hard drive 1281 00:39:28,560 --> 00:39:30,180 is the police officers 1282 00:39:30,180 --> 00:39:30,880 come to your house 1283 00:39:30,880 --> 00:39:31,600 and they kick down the door 1284 00:39:31,600 --> 00:39:32,500 and they put you in handcuffs 1285 00:39:32,500 --> 00:39:33,560 and then the forensic people 1286 00:39:33,560 --> 00:39:34,000 come in 1287 00:39:34,000 --> 00:39:35,360 and they bag up your computer 1288 00:39:35,360 --> 00:39:36,560 and they take that computer 1289 00:39:36,560 --> 00:39:37,120 to a lab 1290 00:39:37,120 --> 00:39:38,280 and that sucker's got 1291 00:39:38,280 --> 00:39:38,940 a sticker on it 1292 00:39:38,940 --> 00:39:39,940 and whenever it changes hands 1293 00:39:39,940 --> 00:39:40,740 they sign the sticker 1294 00:39:40,740 --> 00:39:42,380 for chain of evidence 1295 00:39:42,380 --> 00:39:43,420 and they pull that hard drive 1296 00:39:43,420 --> 00:39:43,980 out of the computer 1297 00:39:43,980 --> 00:39:45,420 they're pretty darn sure 1298 00:39:45,420 --> 00:39:46,100 that's your computer. 1299 00:39:47,140 --> 00:39:47,940 Unless there's 1300 00:39:47,940 --> 00:39:48,900 somebody who specifically 1301 00:39:50,000 --> 00:39:50,400 lied 1302 00:39:50,400 --> 00:39:51,560 somewhere in that process 1303 00:39:51,560 --> 00:39:52,600 there's no way 1304 00:39:52,600 --> 00:39:53,240 for an outsider 1305 00:39:53,240 --> 00:39:54,300 to all of a sudden 1306 00:39:54,300 --> 00:39:54,740 make that 1307 00:39:54,740 --> 00:39:56,180 the hard drive magically change. 1308 00:39:56,180 --> 00:39:58,260 So in a corporate environment 1309 00:39:58,260 --> 00:39:59,000 that would be like 1310 00:39:59,000 --> 00:40:00,260 if I want to go look at 1311 00:40:00,260 --> 00:40:01,320 Bob's hard drive 1312 00:40:01,320 --> 00:40:02,680 I walk down the stairs 1313 00:40:02,680 --> 00:40:03,480 go to his cube 1314 00:40:03,480 --> 00:40:04,380 pull his hard drive out. 1315 00:40:04,580 --> 00:40:04,880 Right? 1316 00:40:04,980 --> 00:40:05,920 Now obviously there's 1317 00:40:05,920 --> 00:40:06,920 an authentication issue of 1318 00:40:06,920 --> 00:40:07,920 is this Bob's hard drive? 1319 00:40:08,100 --> 00:40:08,860 Is he the only person 1320 00:40:08,860 --> 00:40:09,800 that had access to the hard drive? 1321 00:40:09,900 --> 00:40:10,680 These things have been dealt with 1322 00:40:10,680 --> 00:40:11,560 in the courts in the past. 1323 00:40:11,880 --> 00:40:12,900 But in the NCASE Enterprise 1324 00:40:12,900 --> 00:40:13,300 situation 1325 00:40:13,840 --> 00:40:15,160 instead of going to Bob's cube 1326 00:40:15,160 --> 00:40:15,840 and get the hard drive 1327 00:40:15,840 --> 00:40:16,980 I walk down the stairs 1328 00:40:16,980 --> 00:40:17,760 I go to the floor 1329 00:40:17,760 --> 00:40:19,340 and I look at the cube farm 1330 00:40:19,340 --> 00:40:20,060 and I say 1331 00:40:20,060 --> 00:40:21,800 who here has Bob's hard drive? 1332 00:40:22,040 --> 00:40:23,060 And the first person 1333 00:40:23,060 --> 00:40:23,640 who comes to me 1334 00:40:23,640 --> 00:40:24,220 with a hard drive 1335 00:40:24,220 --> 00:40:25,360 I say thank you 1336 00:40:26,180 --> 00:40:26,600 there's a stick at note 1337 00:40:26,600 --> 00:40:27,740 that says Bob's hard drive on it. 1338 00:40:28,040 --> 00:40:28,440 Right? 1339 00:40:29,100 --> 00:40:30,660 You're trusting all of the people 1340 00:40:30,660 --> 00:40:31,160 on the network 1341 00:40:31,160 --> 00:40:32,440 not to screw around 1342 00:40:32,440 --> 00:40:33,460 and change with Bob's hard drive 1343 00:40:33,460 --> 00:40:34,100 and that includes Bob. 1344 00:40:34,300 --> 00:40:35,260 Bob could come and say 1345 00:40:35,260 --> 00:40:36,140 oh this is my hard drive 1346 00:40:36,140 --> 00:40:36,820 that you're going to examine. 1347 00:40:37,300 --> 00:40:37,700 Right? 1348 00:40:38,260 --> 00:40:39,720 And one of the basic problems here 1349 00:40:39,720 --> 00:40:41,140 that probably can't be solved 1350 00:40:41,140 --> 00:40:42,120 is remote attestation. 1351 00:40:42,420 --> 00:40:43,440 You cannot have 1352 00:40:43,440 --> 00:40:44,480 remote attestation 1353 00:40:44,480 --> 00:40:45,160 of the integrity 1354 00:40:45,160 --> 00:40:46,140 of software 1355 00:40:46,140 --> 00:40:47,060 running on a computer 1356 00:40:47,060 --> 00:40:47,980 that is under full control 1357 00:40:47,980 --> 00:40:48,360 of the attacker. 1358 00:40:48,660 --> 00:40:49,000 Right? 1359 00:40:49,140 --> 00:40:49,900 This is the whole idea 1360 00:40:49,900 --> 00:40:50,660 of TPMs 1361 00:40:50,660 --> 00:40:51,480 and trusted computing bases 1362 00:40:51,480 --> 00:40:52,560 none of them work 1363 00:40:53,240 --> 00:40:54,220 as you've seen 1364 00:40:54,220 --> 00:40:55,060 from some interesting things 1365 00:40:56,180 --> 00:40:56,760 there are no commercial 1366 00:40:56,760 --> 00:40:57,360 operating systems 1367 00:40:57,360 --> 00:40:58,040 that actually support 1368 00:40:58,040 --> 00:40:58,700 integrity protection 1369 00:40:59,500 --> 00:41:00,300 using a trusted 1370 00:41:00,300 --> 00:41:00,880 computing base. 1371 00:41:01,560 --> 00:41:02,240 And so 1372 00:41:02,240 --> 00:41:03,700 there's two issues here 1373 00:41:03,700 --> 00:41:04,940 one with the basic 1374 00:41:04,940 --> 00:41:05,700 cryptographic design 1375 00:41:05,700 --> 00:41:06,520 you can frame people 1376 00:41:06,520 --> 00:41:07,720 but the other issue 1377 00:41:07,720 --> 00:41:08,840 is that 1378 00:41:08,840 --> 00:41:10,120 as an examiner 1379 00:41:10,120 --> 00:41:10,680 if you think 1380 00:41:10,680 --> 00:41:11,460 the person you're examining 1381 00:41:11,460 --> 00:41:12,520 is advanced 1382 00:41:12,980 --> 00:41:13,800 it's not that hard 1383 00:41:13,800 --> 00:41:14,220 for them 1384 00:41:14,220 --> 00:41:15,620 actually the servlet 1385 00:41:15,620 --> 00:41:16,200 doesn't have a lot 1386 00:41:16,200 --> 00:41:16,880 of anti-reverse engineering 1387 00:41:16,880 --> 00:41:17,300 protections 1388 00:41:17,300 --> 00:41:18,760 it would not be that hard 1389 00:41:18,760 --> 00:41:19,380 to patch it 1390 00:41:19,380 --> 00:41:20,500 and make it not see 1391 00:41:20,500 --> 00:41:21,760 physical drive one 1392 00:41:21,760 --> 00:41:22,760 it only sees physical 1393 00:41:22,760 --> 00:41:23,220 drive zero 1394 00:41:23,220 --> 00:41:24,000 for example. 1395 00:41:26,180 --> 00:41:26,860 Or you know 1396 00:41:26,860 --> 00:41:27,340 actually probably 1397 00:41:27,340 --> 00:41:28,100 standard root kits 1398 00:41:28,100 --> 00:41:28,940 could be pretty easily 1399 00:41:28,940 --> 00:41:29,540 modified 1400 00:41:30,520 --> 00:41:31,600 to wipe out 1401 00:41:31,600 --> 00:41:33,060 the sectors on disk 1402 00:41:33,060 --> 00:41:33,800 that encase grabs 1403 00:41:33,800 --> 00:41:35,260 it uses this interesting 1404 00:41:35,260 --> 00:41:36,460 iSCSI open up 1405 00:41:36,460 --> 00:41:40,020 the local hard drive 1406 00:41:40,020 --> 00:41:40,680 kind of function 1407 00:41:40,680 --> 00:41:41,280 that you could patch 1408 00:41:41,280 --> 00:41:41,700 pretty easily 1409 00:41:41,700 --> 00:41:42,200 with the root kit 1410 00:41:42,200 --> 00:41:43,000 in the kernel. 1411 00:41:43,460 --> 00:41:43,980 So anyway 1412 00:41:43,980 --> 00:41:44,480 we had a couple 1413 00:41:44,480 --> 00:41:44,820 of suggestions 1414 00:41:44,820 --> 00:41:45,360 for guidance 1415 00:41:45,360 --> 00:41:46,620 this is generally used 1416 00:41:46,620 --> 00:41:47,140 in big Windows 1417 00:41:47,140 --> 00:41:47,760 corporate networks 1418 00:41:47,760 --> 00:41:48,260 those guys have 1419 00:41:48,260 --> 00:41:49,440 active directory computers 1420 00:41:49,440 --> 00:41:50,340 and active directory networks 1421 00:41:50,340 --> 00:41:51,320 have their own identity 1422 00:41:51,320 --> 00:41:52,140 in Kerberos 1423 00:41:52,140 --> 00:41:52,660 it's the name 1424 00:41:52,660 --> 00:41:53,040 of the computer 1425 00:41:56,180 --> 00:41:56,780 it's not perfect 1426 00:41:56,780 --> 00:41:57,940 but at least an attacker 1427 00:41:57,940 --> 00:41:58,920 would have to attack AD 1428 00:41:58,920 --> 00:42:00,220 and have the equivalent 1429 00:42:00,220 --> 00:42:01,840 power of a domain admin 1430 00:42:01,840 --> 00:42:03,100 which at that point 1431 00:42:03,100 --> 00:42:03,800 they can plant evidence 1432 00:42:03,800 --> 00:42:04,760 on anybody's drive anyway 1433 00:42:04,760 --> 00:42:05,440 right? 1434 00:42:05,560 --> 00:42:06,580 So at least you could 1435 00:42:06,580 --> 00:42:07,820 raise the security 1436 00:42:07,820 --> 00:42:08,240 of here 1437 00:42:08,240 --> 00:42:09,000 the security of your 1438 00:42:09,000 --> 00:42:09,700 active directory network 1439 00:42:09,700 --> 00:42:11,440 and the other thing is 1440 00:42:11,440 --> 00:42:12,520 if you don't want 1441 00:42:12,520 --> 00:42:13,320 if guidance doesn't want 1442 00:42:13,320 --> 00:42:13,880 to only support 1443 00:42:13,880 --> 00:42:15,120 AD supported networks 1444 00:42:15,120 --> 00:42:15,620 you could have 1445 00:42:15,620 --> 00:42:16,220 servlet registration 1446 00:42:16,220 --> 00:42:17,080 where the first time 1447 00:42:17,080 --> 00:42:17,940 the servlet's booted 1448 00:42:17,940 --> 00:42:19,080 it generates a key pair 1449 00:42:19,080 --> 00:42:20,480 it has a hardware fingerprint 1450 00:42:20,480 --> 00:42:21,440 it registers itself 1451 00:42:21,440 --> 00:42:22,620 and whenever it's IP 1452 00:42:22,620 --> 00:42:23,700 or DNS name changes 1453 00:42:23,700 --> 00:42:24,900 it registers that change 1454 00:42:26,180 --> 00:42:26,400 it's perfect 1455 00:42:26,400 --> 00:42:27,080 and is attackable 1456 00:42:27,080 --> 00:42:28,000 but at least it would 1457 00:42:28,000 --> 00:42:28,800 create an audit trail 1458 00:42:28,800 --> 00:42:30,260 that would make it pretty obvious 1459 00:42:30,260 --> 00:42:30,980 to a human being 1460 00:42:30,980 --> 00:42:31,860 if somebody all the sudden 1461 00:42:31,860 --> 00:42:33,180 the last time 1462 00:42:33,180 --> 00:42:34,380 when you do examine 1463 00:42:34,380 --> 00:42:35,100 Bob's workstation 1464 00:42:35,100 --> 00:42:36,220 it's key pair changed 1465 00:42:36,220 --> 00:42:36,860 right? 1466 00:42:36,960 --> 00:42:37,780 That should be something 1467 00:42:37,780 --> 00:42:38,740 they'd be able to trigger on 1468 00:42:38,740 --> 00:42:39,500 and warn people about 1469 00:42:39,500 --> 00:42:40,800 and give you an audit trail 1470 00:42:41,700 --> 00:42:42,720 So our suggestions 1471 00:42:42,720 --> 00:42:43,700 for EEE users 1472 00:42:44,280 --> 00:42:45,300 the lawyer will talk 1473 00:42:45,300 --> 00:42:45,780 in a second 1474 00:42:45,780 --> 00:42:47,180 but our suggestions 1475 00:42:47,920 --> 00:42:48,900 is if we were using 1476 00:42:48,900 --> 00:42:49,380 NCASE enterprise 1477 00:42:49,380 --> 00:42:50,240 I think it's fine 1478 00:42:50,240 --> 00:42:50,880 to use for initial 1479 00:42:50,880 --> 00:42:51,480 incident response 1480 00:42:52,020 --> 00:42:52,800 you don't want to take 1481 00:42:52,800 --> 00:42:53,540 servers down 1482 00:42:53,540 --> 00:42:54,140 if you think they've been 1483 00:42:54,140 --> 00:42:54,540 broken into 1484 00:42:56,180 --> 00:42:56,740 I think it's great 1485 00:42:56,740 --> 00:42:57,640 for initial investigations 1486 00:42:57,640 --> 00:42:58,880 for phishing expeditions 1487 00:42:58,880 --> 00:42:59,580 to look through stuff 1488 00:43:00,170 --> 00:43:01,380 and especially if you're 1489 00:43:01,380 --> 00:43:02,120 looking at the hard drive 1490 00:43:02,120 --> 00:43:02,900 of your non-geeks 1491 00:43:02,900 --> 00:43:03,200 right? 1492 00:43:03,880 --> 00:43:04,740 Unlikely your marketing 1493 00:43:04,740 --> 00:43:05,420 department is going 1494 00:43:05,420 --> 00:43:06,000 to be patching 1495 00:43:06,720 --> 00:43:07,640 nstart.sys 1496 00:43:08,500 --> 00:43:09,320 in their kernel 1497 00:43:10,740 --> 00:43:12,540 but if you are going to 1498 00:43:12,540 --> 00:43:13,100 use NCASE enterprise 1499 00:43:13,100 --> 00:43:13,940 to gather evidence 1500 00:43:13,940 --> 00:43:14,740 I strongly suggest 1501 00:43:14,740 --> 00:43:16,020 that you grab the physical 1502 00:43:16,020 --> 00:43:16,640 drive afterwards 1503 00:43:16,640 --> 00:43:17,600 and authenticate 1504 00:43:17,600 --> 00:43:18,100 that the data 1505 00:43:18,100 --> 00:43:18,840 the evidence is on 1506 00:43:18,840 --> 00:43:19,360 the physical drive 1507 00:43:19,360 --> 00:43:20,820 the whole idea of MD5 1508 00:43:20,820 --> 00:43:21,540 with NCASE enterprise 1509 00:43:21,540 --> 00:43:22,240 kind of falls apart 1510 00:43:22,240 --> 00:43:23,420 because if you 1511 00:43:24,020 --> 00:43:25,260 image a working machine 1512 00:43:26,180 --> 00:43:26,900 the hash is going to change 1513 00:43:26,900 --> 00:43:27,660 just as data access 1514 00:43:27,660 --> 00:43:28,300 has changed things 1515 00:43:28,300 --> 00:43:29,400 like the access times 1516 00:43:29,820 --> 00:43:31,200 so you have to authenticate 1517 00:43:31,200 --> 00:43:31,900 the individual files 1518 00:43:31,900 --> 00:43:32,300 right? 1519 00:43:32,360 --> 00:43:33,300 Yes this email 1520 00:43:33,300 --> 00:43:33,800 was on there 1521 00:43:33,800 --> 00:43:34,440 yes this PDF 1522 00:43:34,440 --> 00:43:34,920 was on there 1523 00:43:35,960 --> 00:43:36,800 if you want to do 1524 00:43:36,800 --> 00:43:37,280 court testimony 1525 00:43:37,280 --> 00:43:37,900 do it based upon 1526 00:43:37,900 --> 00:43:38,500 the physical image 1527 00:43:39,000 --> 00:43:39,780 that you gathered 1528 00:43:39,780 --> 00:43:41,160 be careful investigating 1529 00:43:41,160 --> 00:43:41,860 your system administrators 1530 00:43:41,860 --> 00:43:42,880 or any of your geeks 1531 00:43:42,880 --> 00:43:43,600 that have the ability 1532 00:43:43,600 --> 00:43:44,280 maybe to manipulate 1533 00:43:44,280 --> 00:43:44,880 NCASE enterprise 1534 00:43:44,880 --> 00:43:46,080 either on a network layer 1535 00:43:46,080 --> 00:43:47,300 or by patching the kernel 1536 00:43:47,300 --> 00:43:48,940 and you probably want to 1537 00:43:48,940 --> 00:43:49,480 keep that physical 1538 00:43:49,480 --> 00:43:50,400 hard drive forever 1539 00:43:51,720 --> 00:43:53,120 if you must only use 1540 00:43:53,600 --> 00:43:54,180 NCASE enterprise 1541 00:43:54,180 --> 00:43:55,820 you need to authenticate 1542 00:43:56,180 --> 00:43:56,520 that the drive belongs 1543 00:43:56,520 --> 00:43:57,140 to that person 1544 00:43:57,140 --> 00:43:57,760 through other means 1545 00:43:57,760 --> 00:43:58,120 right? 1546 00:43:58,240 --> 00:43:59,640 Look at what its system ID is 1547 00:43:59,640 --> 00:44:00,860 pull its Kerberos key 1548 00:44:00,860 --> 00:44:01,280 out of it 1549 00:44:01,280 --> 00:44:02,040 and compare it to what 1550 00:44:02,040 --> 00:44:03,040 the domain server has 1551 00:44:03,040 --> 00:44:04,180 that kind of stuff 1552 00:44:04,180 --> 00:44:05,280 is critical 1553 00:44:05,280 --> 00:44:06,080 so that you don't get 1554 00:44:06,080 --> 00:44:06,760 tricked into grabbing 1555 00:44:06,760 --> 00:44:07,200 a hard drive 1556 00:44:07,200 --> 00:44:07,760 that doesn't actually 1557 00:44:07,760 --> 00:44:08,500 belong to that person 1558 00:44:09,160 --> 00:44:10,120 so our conclusions 1559 00:44:10,120 --> 00:44:11,120 and we'll have Chris Ritter 1560 00:44:11,120 --> 00:44:11,920 speak for a couple minutes 1561 00:44:11,920 --> 00:44:12,500 in just a second 1562 00:44:12,500 --> 00:44:13,360 but our conclusions are 1563 00:44:13,960 --> 00:44:15,060 we don't really think 1564 00:44:15,060 --> 00:44:15,800 forensic software vendors 1565 00:44:15,800 --> 00:44:16,580 are paranoid enough 1566 00:44:17,040 --> 00:44:17,860 they're not paranoid 1567 00:44:17,860 --> 00:44:18,880 like Microsoft's paranoid 1568 00:44:18,880 --> 00:44:20,140 or Oracle's paranoid 1569 00:44:20,140 --> 00:44:21,880 and so I think a lot of work 1570 00:44:21,880 --> 00:44:22,500 needs to go into 1571 00:44:22,500 --> 00:44:23,680 kind of secure coding 1572 00:44:26,180 --> 00:44:26,740 doing things like 1573 00:44:26,740 --> 00:44:27,940 making the product 1574 00:44:27,940 --> 00:44:29,200 protect against buffer overflows 1575 00:44:29,200 --> 00:44:30,480 the fact that NCASE 1576 00:44:30,480 --> 00:44:31,740 uses the Aladdin eToken 1577 00:44:31,740 --> 00:44:32,640 turns off 1578 00:44:32,640 --> 00:44:33,440 DEP protection 1579 00:44:33,440 --> 00:44:34,780 does a virtual protect X 1580 00:44:34,780 --> 00:44:35,280 and it's the entire 1581 00:44:35,280 --> 00:44:35,780 memory space 1582 00:44:35,780 --> 00:44:36,920 and so there's no 1583 00:44:36,920 --> 00:44:38,180 buffer overflow protection 1584 00:44:38,180 --> 00:44:39,040 either stack protection 1585 00:44:39,040 --> 00:44:40,160 or NX bit protection 1586 00:44:40,160 --> 00:44:41,580 over the entire memory space 1587 00:44:41,580 --> 00:44:42,400 because of that dongle 1588 00:44:42,400 --> 00:44:43,620 and that's the kind of thing 1589 00:44:43,620 --> 00:44:44,360 that needs to be looked at 1590 00:44:44,940 --> 00:44:46,460 if you buy forensic software 1591 00:44:46,460 --> 00:44:47,520 you need to use security 1592 00:44:47,520 --> 00:44:48,480 as an acceptance criteria 1593 00:44:48,480 --> 00:44:49,640 the government does 1594 00:44:49,640 --> 00:44:50,220 lots of testing 1595 00:44:50,220 --> 00:44:50,860 of forensic software 1596 00:44:50,860 --> 00:44:52,080 none of it's security testing 1597 00:44:52,080 --> 00:44:53,300 it's all does this thing 1598 00:44:53,300 --> 00:44:54,000 image correctly 1599 00:44:54,000 --> 00:44:54,820 right? 1600 00:44:54,860 --> 00:44:55,420 that kind of stuff 1601 00:44:56,180 --> 00:44:56,880 it doesn't generate MD5 sum 1602 00:44:56,880 --> 00:44:57,860 it doesn't ask 1603 00:44:57,860 --> 00:44:58,540 oh well now 1604 00:44:58,540 --> 00:44:59,260 can something load up 1605 00:44:59,260 --> 00:44:59,740 into my kernel 1606 00:45:01,380 --> 00:45:02,540 and we think that 1607 00:45:02,540 --> 00:45:03,260 those testing 1608 00:45:03,260 --> 00:45:04,020 those methods 1609 00:45:04,020 --> 00:45:04,740 need to be public 1610 00:45:04,740 --> 00:45:06,060 they need to be negative QA 1611 00:45:06,060 --> 00:45:07,100 not just positive QA 1612 00:45:07,100 --> 00:45:07,920 like it's going on right now 1613 00:45:07,920 --> 00:45:09,400 and the acquisition 1614 00:45:09,400 --> 00:45:10,020 of system images 1615 00:45:10,020 --> 00:45:11,040 over a corporate network 1616 00:45:11,040 --> 00:45:12,000 is inherently dangerous 1617 00:45:12,000 --> 00:45:12,560 it sounds like 1618 00:45:12,560 --> 00:45:13,280 we're beating up on guidance 1619 00:45:13,280 --> 00:45:14,400 we're just looking at them 1620 00:45:14,400 --> 00:45:14,700 because they're 1621 00:45:14,700 --> 00:45:15,360 the industry leader 1622 00:45:15,360 --> 00:45:16,440 there are other products 1623 00:45:16,440 --> 00:45:17,220 that claim to do this 1624 00:45:17,220 --> 00:45:17,720 and we're sure 1625 00:45:17,720 --> 00:45:18,200 that they have 1626 00:45:18,200 --> 00:45:18,920 the same kind of issues 1627 00:45:18,920 --> 00:45:20,080 it's an inherently 1628 00:45:20,080 --> 00:45:20,940 dangerous thing to do 1629 00:45:20,940 --> 00:45:21,800 if you can 1630 00:45:21,800 --> 00:45:22,760 kick somebody's door down 1631 00:45:26,180 --> 00:45:26,520 I don't know 1632 00:45:26,520 --> 00:45:26,980 but 1633 00:45:28,880 --> 00:45:29,720 inherently dangerous 1634 00:45:29,720 --> 00:45:30,600 to go grab system images 1635 00:45:30,600 --> 00:45:31,020 that way 1636 00:45:31,900 --> 00:45:32,320 okay 1637 00:45:32,320 --> 00:45:33,020 so we'd like to thank 1638 00:45:33,020 --> 00:45:33,360 these guys 1639 00:45:33,360 --> 00:45:33,920 and 1640 00:45:34,740 --> 00:45:35,580 up next 1641 00:45:35,580 --> 00:45:36,100 when we were doing 1642 00:45:36,100 --> 00:45:36,500 this research 1643 00:45:36,500 --> 00:45:37,080 we were kind of thinking 1644 00:45:37,080 --> 00:45:38,240 what would security flaws 1645 00:45:38,240 --> 00:45:39,560 mean for forensic software evidence 1646 00:45:39,560 --> 00:45:41,060 and so we called the EFF 1647 00:45:41,060 --> 00:45:41,620 and we called 1648 00:45:41,620 --> 00:45:42,280 Jennifer Granick 1649 00:45:42,280 --> 00:45:42,960 and they both pointed 1650 00:45:42,960 --> 00:45:43,600 to the same person 1651 00:45:43,600 --> 00:45:44,400 and that person 1652 00:45:44,400 --> 00:45:45,100 is Chris Ritter 1653 00:45:45,100 --> 00:45:46,460 of residential fellow 1654 00:45:46,460 --> 00:45:47,360 of the Sanford Law School 1655 00:45:47,360 --> 00:45:48,200 who will talk 1656 00:45:48,200 --> 00:45:48,840 just real briefly 1657 00:45:48,840 --> 00:45:49,240 about 1658 00:45:50,520 --> 00:45:51,580 how courts deal 1659 00:45:51,580 --> 00:45:52,200 with forensic evidence 1660 00:45:52,200 --> 00:45:52,800 and might deal with 1661 00:46:05,980 --> 00:46:06,460 criminal defense 1662 00:46:06,460 --> 00:46:06,560 talk a little bit 1663 00:46:06,560 --> 00:46:07,040 talk a little bit 1664 00:46:07,040 --> 00:46:08,840 about the legal implications 1665 00:46:08,840 --> 00:46:10,860 of this work 1666 00:46:10,860 --> 00:46:12,000 and work like it 1667 00:46:12,000 --> 00:46:13,340 that demonstrates 1668 00:46:13,340 --> 00:46:13,940 there might be 1669 00:46:13,940 --> 00:46:14,260 vulnerabilities 1670 00:46:14,260 --> 00:46:15,200 in the software 1671 00:46:15,720 --> 00:46:17,860 and the real lever 1672 00:46:17,860 --> 00:46:18,720 here is 1673 00:46:18,720 --> 00:46:21,040 how likely is it 1674 00:46:21,040 --> 00:46:21,720 that some sort of 1675 00:46:21,720 --> 00:46:22,060 compromise 1676 00:46:22,060 --> 00:46:22,780 happened to your system 1677 00:46:22,780 --> 00:46:23,160 is it enough 1678 00:46:23,160 --> 00:46:23,540 to just 1679 00:46:23,540 --> 00:46:24,900 be a criminal defendant 1680 00:46:24,900 --> 00:46:25,220 and say 1681 00:46:25,220 --> 00:46:25,560 oh yeah 1682 00:46:25,560 --> 00:46:26,060 my system 1683 00:46:26,060 --> 00:46:26,160 would be 1684 00:46:26,180 --> 00:46:26,260 okay 1685 00:46:26,260 --> 00:46:26,320 I'm just going to 1686 00:46:26,320 --> 00:46:26,600 tamper with 1687 00:46:26,600 --> 00:46:27,120 with nothing 1688 00:46:27,120 --> 00:46:29,260 well probably not 1689 00:46:29,260 --> 00:46:29,700 but 1690 00:46:30,680 --> 00:46:31,600 you know 1691 00:46:31,600 --> 00:46:32,660 I think the likelihood 1692 00:46:32,660 --> 00:46:34,480 is an important issue 1693 00:46:34,480 --> 00:46:35,400 but I'm going to review 1694 00:46:35,400 --> 00:46:36,660 a few different doctrines 1695 00:46:36,660 --> 00:46:37,160 that are 1696 00:46:37,160 --> 00:46:37,940 that are relevant 1697 00:46:39,480 --> 00:46:40,040 authenticity 1698 00:46:40,040 --> 00:46:41,260 you need to 1699 00:46:41,260 --> 00:46:42,840 put evidence in court 1700 00:46:42,840 --> 00:46:43,720 only if it's authentic 1701 00:46:43,720 --> 00:46:44,940 something called 1702 00:46:44,940 --> 00:46:45,760 the best evidence rule 1703 00:46:45,760 --> 00:46:46,780 and reliability 1704 00:46:48,340 --> 00:46:48,900 and 1705 00:46:48,900 --> 00:46:50,040 but yeah 1706 00:46:50,040 --> 00:46:50,420 the likelihood 1707 00:46:50,420 --> 00:46:50,780 of 1708 00:46:50,780 --> 00:46:52,220 malicious conduct 1709 00:46:52,220 --> 00:46:52,660 occurring 1710 00:46:52,660 --> 00:46:53,600 is always going to be 1711 00:46:53,600 --> 00:46:54,240 a lever in those 1712 00:46:55,060 --> 00:46:56,160 and so 1713 00:46:56,160 --> 00:46:57,760 and there's 1714 00:46:57,760 --> 00:46:58,620 two sort of things 1715 00:46:58,620 --> 00:46:59,700 there's data hiding attacks 1716 00:47:00,300 --> 00:47:01,440 and the possibility 1717 00:47:01,440 --> 00:47:03,000 of malicious code execution 1718 00:47:03,000 --> 00:47:03,700 or 1719 00:47:03,700 --> 00:47:04,660 tampering 1720 00:47:04,660 --> 00:47:05,360 with the evidence 1721 00:47:06,200 --> 00:47:06,980 data hiding 1722 00:47:06,980 --> 00:47:08,180 is less of a problem 1723 00:47:08,180 --> 00:47:09,320 from an evidentiary 1724 00:47:09,320 --> 00:47:09,660 perspective 1725 00:47:10,860 --> 00:47:11,660 first of all 1726 00:47:11,660 --> 00:47:12,520 if it stays hidden 1727 00:47:12,520 --> 00:47:13,560 nobody's going to 1728 00:47:13,560 --> 00:47:14,100 know about it 1729 00:47:14,100 --> 00:47:15,060 but also 1730 00:47:16,060 --> 00:47:16,580 incompleteness 1731 00:47:16,580 --> 00:47:17,340 is not something 1732 00:47:17,340 --> 00:47:18,060 courts are as 1733 00:47:18,060 --> 00:47:18,740 concerned about 1734 00:47:18,740 --> 00:47:20,200 if the evidence 1735 00:47:20,200 --> 00:47:20,760 is incomplete 1736 00:47:20,760 --> 00:47:21,720 they have what's 1737 00:47:21,720 --> 00:47:22,320 in front of them 1738 00:47:22,320 --> 00:47:23,180 and the fact that 1739 00:47:23,180 --> 00:47:23,580 it's incomplete 1740 00:47:23,580 --> 00:47:24,520 may go to the jury 1741 00:47:26,160 --> 00:47:26,480 for consideration 1742 00:47:27,100 --> 00:47:28,000 but it's probably 1743 00:47:28,000 --> 00:47:28,480 not going to get 1744 00:47:28,480 --> 00:47:29,020 kicked out 1745 00:47:31,080 --> 00:47:32,160 another sort of 1746 00:47:32,160 --> 00:47:32,960 data hiding thing 1747 00:47:32,960 --> 00:47:33,600 you might think about 1748 00:47:33,600 --> 00:47:33,980 is that 1749 00:47:33,980 --> 00:47:34,880 lawyers in both 1750 00:47:34,880 --> 00:47:36,060 the civil and criminal context 1751 00:47:36,060 --> 00:47:36,800 have obligations 1752 00:47:36,800 --> 00:47:37,620 to find data 1753 00:47:37,620 --> 00:47:38,320 that might be helpful 1754 00:47:38,320 --> 00:47:38,940 to their opponents 1755 00:47:39,540 --> 00:47:40,280 but I think 1756 00:47:40,280 --> 00:47:40,640 it's unlikely 1757 00:47:40,640 --> 00:47:41,600 that that obligation 1758 00:47:41,600 --> 00:47:42,500 would extend to data 1759 00:47:42,500 --> 00:47:43,280 that's been hidden 1760 00:47:43,280 --> 00:47:44,980 even from forensic software 1761 00:47:44,980 --> 00:47:45,700 it usually doesn't even 1762 00:47:45,700 --> 00:47:46,740 extend to deleted data 1763 00:47:48,820 --> 00:47:49,300 so 1764 00:47:49,300 --> 00:47:50,440 if there's a possibility 1765 00:47:50,440 --> 00:47:51,080 evidence has been 1766 00:47:51,080 --> 00:47:51,740 tampered with 1767 00:47:51,740 --> 00:47:53,000 is it authentic 1768 00:47:53,680 --> 00:47:54,820 and the federal rules 1769 00:47:54,820 --> 00:47:55,460 of evidence say 1770 00:47:56,160 --> 00:47:56,300 that the authentication 1771 00:47:56,300 --> 00:47:56,960 of a document 1772 00:47:56,960 --> 00:47:58,200 is satisfied by evidence 1773 00:47:58,200 --> 00:47:59,060 sufficient to support 1774 00:47:59,060 --> 00:47:59,500 a finding 1775 00:47:59,500 --> 00:48:00,840 that the matter in question 1776 00:48:00,840 --> 00:48:02,040 is what the proponent claims 1777 00:48:02,040 --> 00:48:03,460 that means if the judge 1778 00:48:03,460 --> 00:48:04,120 thinks a jury 1779 00:48:04,120 --> 00:48:05,360 could find it's authentic 1780 00:48:05,360 --> 00:48:06,500 the judge will send it 1781 00:48:06,500 --> 00:48:06,880 to the jury 1782 00:48:06,880 --> 00:48:08,100 so it's not a very high bar 1783 00:48:08,620 --> 00:48:09,820 but you can also make 1784 00:48:09,820 --> 00:48:10,220 these arguments 1785 00:48:10,220 --> 00:48:10,760 to a jury 1786 00:48:10,760 --> 00:48:12,700 who may factor that in 1787 00:48:12,700 --> 00:48:13,680 to the weight of the evidence 1788 00:48:16,600 --> 00:48:17,660 so one way 1789 00:48:17,660 --> 00:48:18,120 authenticity 1790 00:48:18,800 --> 00:48:19,660 is looked at 1791 00:48:19,660 --> 00:48:20,500 or determined 1792 00:48:20,500 --> 00:48:21,660 one factor in authenticity 1793 00:48:21,660 --> 00:48:22,820 is the chain of custody 1794 00:48:22,820 --> 00:48:24,160 is what you're presenting 1795 00:48:24,160 --> 00:48:24,620 in court 1796 00:48:24,620 --> 00:48:25,200 the same 1797 00:48:25,200 --> 00:48:26,240 as what you 1798 00:48:26,240 --> 00:48:27,660 originally collected 1799 00:48:27,660 --> 00:48:28,660 to the extent 1800 00:48:28,660 --> 00:48:29,280 you know 1801 00:48:29,280 --> 00:48:30,000 there's been a compromise 1802 00:48:30,620 --> 00:48:31,860 your ability to demonstrate 1803 00:48:31,860 --> 00:48:32,680 that is going to be 1804 00:48:32,680 --> 00:48:33,200 eroded 1805 00:48:33,200 --> 00:48:33,820 or eliminated 1806 00:48:34,680 --> 00:48:36,180 another thing you need 1807 00:48:36,180 --> 00:48:36,500 is 1808 00:48:36,500 --> 00:48:38,280 some sort of indication 1809 00:48:38,280 --> 00:48:38,980 that the 1810 00:48:38,980 --> 00:48:40,000 evidence is 1811 00:48:40,000 --> 00:48:41,060 what it purports to be 1812 00:48:41,060 --> 00:48:42,080 and 1813 00:48:42,080 --> 00:48:43,300 sometimes you have a person 1814 00:48:43,300 --> 00:48:44,080 with knowledge 1815 00:48:44,080 --> 00:48:44,560 this 1816 00:48:44,560 --> 00:48:45,820 I saw this document 1817 00:48:45,820 --> 00:48:46,800 and I know it's 1818 00:48:46,800 --> 00:48:47,460 correct 1819 00:48:47,460 --> 00:48:49,580 but sometimes you don't 1820 00:48:49,580 --> 00:48:50,200 for example 1821 00:48:50,200 --> 00:48:51,380 a log file 1822 00:48:51,380 --> 00:48:53,260 that's 10,000 lines log 1823 00:48:53,260 --> 00:48:54,060 and 1824 00:48:54,060 --> 00:48:54,600 logs 1825 00:48:54,620 --> 00:48:55,660 line 1274 1826 00:48:55,660 --> 00:48:56,620 is at issue 1827 00:48:58,240 --> 00:48:59,460 so there's a 1828 00:48:59,460 --> 00:49:00,340 there's a rule of evidence 1829 00:49:00,340 --> 00:49:01,180 for this situation 1830 00:49:01,740 --> 00:49:02,260 and 1831 00:49:02,260 --> 00:49:03,560 it says you can authenticate 1832 00:49:03,560 --> 00:49:04,620 evidence by describing 1833 00:49:04,620 --> 00:49:05,580 a process or system 1834 00:49:05,580 --> 00:49:06,580 used to produce a result 1835 00:49:06,580 --> 00:49:07,720 and showing 1836 00:49:07,720 --> 00:49:08,560 the process or system 1837 00:49:08,560 --> 00:49:10,260 produces an accurate result 1838 00:49:12,260 --> 00:49:13,440 so it's that 1839 00:49:13,440 --> 00:49:14,260 accuracy 1840 00:49:14,260 --> 00:49:15,200 and a couple courts 1841 00:49:15,200 --> 00:49:16,020 have actually found 1842 00:49:16,020 --> 00:49:16,480 that evidence 1843 00:49:16,480 --> 00:49:17,380 that's susceptible 1844 00:49:17,380 --> 00:49:18,280 to being altered 1845 00:49:18,280 --> 00:49:20,040 even with no firm 1846 00:49:20,800 --> 00:49:21,860 evidence that there was 1847 00:49:21,860 --> 00:49:22,540 any alteration 1848 00:49:22,540 --> 00:49:23,580 can be excluded 1849 00:49:23,580 --> 00:49:24,600 the court 1850 00:49:24,620 --> 00:49:24,820 there's 1851 00:49:24,820 --> 00:49:25,500 there's a great one 1852 00:49:25,500 --> 00:49:26,600 where someone pulls down 1853 00:49:27,120 --> 00:49:28,500 evidence of boat ownership 1854 00:49:28,500 --> 00:49:29,720 from a U.S. Coast Guard 1855 00:49:29,720 --> 00:49:31,000 database on the web 1856 00:49:31,000 --> 00:49:31,680 and the court says 1857 00:49:31,680 --> 00:49:32,980 the internet's inherently 1858 00:49:32,980 --> 00:49:33,480 trustworthy 1859 00:49:33,940 --> 00:49:34,400 untrustworthy 1860 00:49:34,400 --> 00:49:35,720 and hackers can change it 1861 00:49:35,720 --> 00:49:37,360 and kicked it out 1862 00:49:38,020 --> 00:49:38,860 there's one about 1863 00:49:38,860 --> 00:49:40,280 website postings 1864 00:49:40,280 --> 00:49:40,960 from Nazi groups 1865 00:49:40,960 --> 00:49:41,360 and 1866 00:49:41,360 --> 00:49:42,660 one of the people in the case 1867 00:49:42,660 --> 00:49:43,160 was a still 1868 00:49:43,160 --> 00:49:44,120 skilled computer user 1869 00:49:44,120 --> 00:49:44,560 and the judge said 1870 00:49:44,560 --> 00:49:45,980 well maybe she altered it 1871 00:49:45,980 --> 00:49:46,800 so he kicked it out 1872 00:49:46,800 --> 00:49:48,180 but that's definitely 1873 00:49:48,180 --> 00:49:48,620 an exception 1874 00:49:48,620 --> 00:49:49,520 usually courts 1875 00:49:50,280 --> 00:49:50,960 let in 1876 00:49:50,960 --> 00:49:51,480 printouts 1877 00:49:51,480 --> 00:49:52,000 from websites 1878 00:49:52,000 --> 00:49:52,580 and such 1879 00:49:52,580 --> 00:49:55,040 so then you've got 1880 00:49:55,040 --> 00:49:56,300 the best evidence rule 1881 00:49:56,300 --> 00:49:56,860 I'm not going to talk 1882 00:49:56,860 --> 00:49:57,520 about that too much 1883 00:49:57,520 --> 00:49:58,860 again that comes down to 1884 00:49:58,860 --> 00:50:00,280 you can use 1885 00:50:00,280 --> 00:50:00,940 sort of a duplicate 1886 00:50:00,940 --> 00:50:02,660 if it accurately reflects 1887 00:50:02,660 --> 00:50:03,060 the original 1888 00:50:03,060 --> 00:50:03,880 same as authenticity 1889 00:50:05,480 --> 00:50:06,400 and reliability 1890 00:50:06,400 --> 00:50:07,260 there's 1891 00:50:07,260 --> 00:50:08,320 sort of 1892 00:50:08,320 --> 00:50:08,980 there's a case called 1893 00:50:08,980 --> 00:50:09,680 Daubert versus 1894 00:50:09,680 --> 00:50:10,980 Merrill Duff Pharmaceuticals 1895 00:50:10,980 --> 00:50:11,580 where the court lists 1896 00:50:11,580 --> 00:50:12,300 a bunch of factors 1897 00:50:13,120 --> 00:50:14,240 and some of them 1898 00:50:14,240 --> 00:50:14,980 are whether there's been 1899 00:50:14,980 --> 00:50:15,440 testing 1900 00:50:15,440 --> 00:50:16,560 and peer review 1901 00:50:16,560 --> 00:50:17,720 and I think as you 1902 00:50:17,720 --> 00:50:18,960 heard from these guys 1903 00:50:18,960 --> 00:50:20,440 there could be more 1904 00:50:21,300 --> 00:50:22,400 another factor is 1905 00:50:22,400 --> 00:50:22,560 whether there's been 1906 00:50:22,580 --> 00:50:23,160 whether the techniques 1907 00:50:23,160 --> 00:50:24,200 have a known error rate 1908 00:50:24,200 --> 00:50:25,340 and I think susceptibility 1909 00:50:25,340 --> 00:50:26,140 to attack 1910 00:50:26,140 --> 00:50:27,800 counts as an error 1911 00:50:27,800 --> 00:50:28,440 so the higher 1912 00:50:28,440 --> 00:50:29,160 the susceptibility 1913 00:50:29,160 --> 00:50:30,340 the more likely 1914 00:50:30,340 --> 00:50:30,940 you'll get evidence 1915 00:50:30,940 --> 00:50:31,480 kicked out 1916 00:50:31,480 --> 00:50:32,540 whether there are 1917 00:50:32,540 --> 00:50:33,240 standards governing 1918 00:50:33,240 --> 00:50:33,840 their application 1919 00:50:33,840 --> 00:50:35,260 there kind of are 1920 00:50:35,260 --> 00:50:35,940 but you know 1921 00:50:35,940 --> 00:50:36,620 they're a little 1922 00:50:37,780 --> 00:50:38,740 they're variable 1923 00:50:39,500 --> 00:50:40,640 and whether the theories 1924 00:50:40,640 --> 00:50:41,720 enjoy widespread acceptance 1925 00:50:41,720 --> 00:50:42,660 and they do 1926 00:50:42,660 --> 00:50:43,680 right now 1927 00:50:43,680 --> 00:50:44,620 but I think as 1928 00:50:44,620 --> 00:50:45,700 you know 1929 00:50:45,700 --> 00:50:46,460 if more vulnerabilities 1930 00:50:46,460 --> 00:50:47,160 come out 1931 00:50:47,160 --> 00:50:47,920 acceptance will 1932 00:50:48,500 --> 00:50:49,080 will drop 1933 00:50:49,660 --> 00:50:50,460 so in 1934 00:50:50,460 --> 00:50:51,120 my conclusion 1935 00:50:51,120 --> 00:50:52,200 was that 1936 00:50:52,580 --> 00:50:53,120 forensic tools 1937 00:50:53,120 --> 00:50:53,920 aren't magic 1938 00:50:53,920 --> 00:50:54,800 they're software 1939 00:50:54,800 --> 00:50:56,000 and like anything else 1940 00:50:56,000 --> 00:50:56,880 they're subject to attack 1941 00:50:57,560 --> 00:50:57,800 and 1942 00:50:58,440 --> 00:50:59,120 because they play 1943 00:50:59,120 --> 00:51:00,020 such a critical role 1944 00:51:00,020 --> 00:51:00,680 in our court system 1945 00:51:00,680 --> 00:51:02,060 lives and property 1946 00:51:02,060 --> 00:51:02,620 are at stake 1947 00:51:03,780 --> 00:51:04,480 you know 1948 00:51:04,480 --> 00:51:05,480 courts need to be sensitive 1949 00:51:05,480 --> 00:51:06,540 courts have 1950 00:51:07,100 --> 00:51:07,580 denied 1951 00:51:08,320 --> 00:51:08,800 defendants 1952 00:51:08,800 --> 00:51:09,280 the opportunity 1953 00:51:09,280 --> 00:51:10,280 to do their own 1954 00:51:10,280 --> 00:51:11,060 forensic analysis 1955 00:51:11,740 --> 00:51:12,700 just accepting 1956 00:51:12,700 --> 00:51:13,160 that the 1957 00:51:13,740 --> 00:51:14,680 forensic image 1958 00:51:14,680 --> 00:51:15,460 that the police had 1959 00:51:15,460 --> 00:51:16,280 was good enough 1960 00:51:16,280 --> 00:51:17,620 and I think that 1961 00:51:17,620 --> 00:51:17,960 is 1962 00:51:18,660 --> 00:51:19,140 definitely 1963 00:51:19,140 --> 00:51:20,080 the wrong way to go 1964 00:51:20,080 --> 00:51:20,560 I think for 1965 00:51:20,560 --> 00:51:21,900 finding hidden evidence 1966 00:51:22,580 --> 00:51:23,340 of tampering 1967 00:51:23,340 --> 00:51:24,620 both sides should have 1968 00:51:24,620 --> 00:51:25,600 an opportunity to 1969 00:51:25,600 --> 00:51:26,640 to look at the data 1970 00:51:26,640 --> 00:51:27,720 sometimes you may not have 1971 00:51:28,300 --> 00:51:29,220 a hard drive 1972 00:51:29,220 --> 00:51:29,700 that was locked 1973 00:51:29,700 --> 00:51:30,140 in a safe 1974 00:51:30,140 --> 00:51:30,960 that you can compare to 1975 00:51:30,960 --> 00:51:31,940 like if the enterprise software 1976 00:51:31,940 --> 00:51:32,400 was used 1977 00:51:32,400 --> 00:51:33,660 and in that case 1978 00:51:34,380 --> 00:51:35,360 courts need to be 1979 00:51:36,080 --> 00:51:36,480 thoughtful 1980 00:51:36,480 --> 00:51:37,820 and for more information 1981 00:51:37,820 --> 00:51:39,000 you can look at my paper 1982 00:51:39,000 --> 00:51:39,400 it's on 1983 00:51:39,400 --> 00:51:40,740 ISEC partner's website 1984 00:51:41,660 --> 00:51:42,060 thanks