1 00:00:00,000 --> 00:00:04,940 Hi, everybody. Before we actually get into this speech, I wanted to give a quick explanation. 2 00:00:05,740 --> 00:00:08,500 Dr. Zage and Dolores Zage are supposed to be up here with me. 3 00:00:08,920 --> 00:00:12,660 They sent me an email on Friday saying, hey, by the way, we're not showing up. 4 00:00:13,040 --> 00:00:15,880 I was like, well, okay. I was like, why aren't you showing up? 5 00:00:15,920 --> 00:00:19,520 They're like, oh, our son's got to move to Sandia National Lab, so we're going to help him. 6 00:00:19,680 --> 00:00:22,960 You know, DEF CON's not a big thing, so you can handle it. You're a grad student. 7 00:00:23,860 --> 00:00:25,240 So I was like, okay, well. 8 00:00:25,680 --> 00:00:28,480 So basically I added their email addresses at the last minute. 9 00:00:28,480 --> 00:00:33,340 So just, you know, that was the advice I got from some of the DEF CON goons. 10 00:00:33,400 --> 00:00:37,120 So, you know, you guys want to email them, whatever, any of this stuff. 11 00:00:37,260 --> 00:00:38,520 But also then they sent me yesterday. 12 00:00:38,940 --> 00:00:41,900 I was like, well, you know, this is based on 20 years of metrics research. 13 00:00:42,140 --> 00:00:45,700 And I did a lot of the security side of things, but not as much the metrics side of things. 14 00:00:45,820 --> 00:00:49,200 So I said, so how am I supposed to, you know, really do a good job explaining this? 15 00:00:49,380 --> 00:00:50,840 So they sent me their research papers. 16 00:00:51,580 --> 00:00:53,500 So then I was like, okay, 20 years of research papers. 17 00:00:53,560 --> 00:00:58,240 So I went through what I could, took notes, and, you know, basically get through the speech the best we can. 18 00:00:58,300 --> 00:00:58,460 And it was a lot of fun. 19 00:00:58,480 --> 00:01:00,600 And I was able to answer your questions to the best of my ability. 20 00:01:01,040 --> 00:01:02,300 I have a pretty good understanding. 21 00:01:02,560 --> 00:01:04,920 But like I said, I would have preferred for them to be up here with me. 22 00:01:05,340 --> 00:01:06,780 But, you know, the speech must go on. 23 00:01:09,040 --> 00:01:14,320 So the presentation outline, we're going to do a quick overview of S-squared ERC. 24 00:01:14,500 --> 00:01:15,260 It used to be CERC. 25 00:01:15,460 --> 00:01:17,320 It used to be the Software Engineering Research Center. 26 00:01:17,640 --> 00:01:20,440 Now it's the Security and Software Engineering Research Center. 27 00:01:20,900 --> 00:01:25,220 And then, you know, get on to the actual metrics and the vulnerability analysis. 28 00:01:26,720 --> 00:01:27,980 Let me get through these. 29 00:01:28,120 --> 00:01:28,460 Okay. 30 00:01:28,480 --> 00:01:28,980 I've got some notes. 31 00:01:30,660 --> 00:01:34,500 This is going to be the first DEF CON speech that I actually have to take notes to. 32 00:01:35,380 --> 00:01:43,020 So basically it's a National Science Foundation University Cooperative Research Center that, you know, it's funded by them. 33 00:01:43,200 --> 00:01:46,920 It has a ton of universities, 10 plus, 50 researchers. 34 00:01:47,480 --> 00:01:48,460 It's all collaborative. 35 00:01:48,540 --> 00:01:49,320 We have projects. 36 00:01:49,900 --> 00:01:57,580 You know, any company or you have government agencies, everybody else sponsors their projects, sponsors us to do research projects for them. 37 00:01:59,420 --> 00:02:02,800 The participating universities, I'm not going to read them off to you. 38 00:02:02,880 --> 00:02:03,380 You can see them. 39 00:02:03,440 --> 00:02:04,200 They're in the slides. 40 00:02:04,320 --> 00:02:04,880 They're on the CD. 41 00:02:06,460 --> 00:02:09,780 We have a ton of industrial affiliates. 42 00:02:11,400 --> 00:02:16,360 This is not really stuff that I care about as much. 43 00:02:16,780 --> 00:02:16,980 Okay. 44 00:02:17,060 --> 00:02:18,420 Then here's the design metrics timeline. 45 00:02:18,500 --> 00:02:21,280 Like I said, it's about 20 years of metrics research. 46 00:02:21,800 --> 00:02:23,580 So it started in 1986. 47 00:02:24,640 --> 00:02:27,820 And I believe it all came out of Purdue University. 48 00:02:27,820 --> 00:02:31,080 It was Dr. Wayne's age, his baby. 49 00:02:31,980 --> 00:02:36,220 From what I could tell, the first research paper they sent me was from Purdue. 50 00:02:36,360 --> 00:02:39,020 So I'm guessing that's where he did this research at. 51 00:02:40,280 --> 00:02:41,100 Let's go ahead. 52 00:02:42,040 --> 00:02:42,560 Okay. 53 00:02:42,700 --> 00:02:47,200 I guess we're going to click through. 54 00:02:47,440 --> 00:02:48,600 And this is really annoying. 55 00:02:50,520 --> 00:02:51,040 Okay. 56 00:02:51,100 --> 00:02:54,660 They got an Alexander Schwarzkopf Award for their research. 57 00:02:55,500 --> 00:02:57,800 Basically, I'm guessing they wanted that in here. 58 00:02:57,820 --> 00:02:59,180 To say, hey, it's credible. 59 00:03:00,060 --> 00:03:01,700 Like I said, this is their content. 60 00:03:01,960 --> 00:03:05,400 So I have to basically stumble through some of it. 61 00:03:06,000 --> 00:03:06,340 Okay. 62 00:03:06,480 --> 00:03:08,420 Here's some of the actually get to the good stuff. 63 00:03:09,280 --> 00:03:10,380 Overview of the design metrics. 64 00:03:10,740 --> 00:03:11,660 D2V, D2I. 65 00:03:12,280 --> 00:03:15,300 D2V is the external view of design complexity. 66 00:03:15,600 --> 00:03:19,220 And D2I is going to be the internal view of design complexity. 67 00:03:20,280 --> 00:03:23,600 Which is, you know, that's pretty much what we're looking, talking about faults in software. 68 00:03:24,260 --> 00:03:27,460 The more complex something gets, the more error prone it's going to be. 69 00:03:28,080 --> 00:03:33,380 So this is basically, when they started this stuff, it's all goes back to, it was all just reliability. 70 00:03:33,760 --> 00:03:36,220 This is, you know, 20 years ago, nobody really seemed to care about security. 71 00:03:36,660 --> 00:03:41,540 But they did care, you know, they didn't want their software crashing or, you know, if you have navigation system or whatever else. 72 00:03:41,820 --> 00:03:43,360 You know, you don't want that thing going down. 73 00:03:43,520 --> 00:03:47,900 So it was all, reliability was the focus for software when this research started. 74 00:03:50,180 --> 00:03:51,320 We look for outliers. 75 00:03:52,540 --> 00:03:57,200 Pretty much, you know, you have these modules that come up as very error prone. 76 00:03:57,200 --> 00:03:58,040 Fault prone. 77 00:03:58,280 --> 00:03:59,500 That's what we're looking for. 78 00:04:00,840 --> 00:04:03,560 And there's all the people that have funded us. 79 00:04:03,700 --> 00:04:10,120 This actual project to actually take the reliability metrics and apply them to security was funded by Army Research Labs. 80 00:04:10,960 --> 00:04:12,140 So let's get through. 81 00:04:12,580 --> 00:04:16,380 We've computed metrics on university based projects. 82 00:04:16,720 --> 00:04:20,720 Computer Science Corporation, Stanfin, systems from Army Research Labs. 83 00:04:21,220 --> 00:04:25,120 Harris's Rock Project, Magnavox, PBX system, Northrop Grumman. 84 00:04:25,420 --> 00:04:27,180 The stuff that I was actually part of. 85 00:04:27,200 --> 00:04:28,680 Is all the open source projects. 86 00:04:28,860 --> 00:04:30,560 So I didn't do metrics on these. 87 00:04:30,620 --> 00:04:33,220 These are Wayne and Delores. 88 00:04:35,840 --> 00:04:38,780 Now, on the results for the actual reliability metrics. 89 00:04:39,140 --> 00:04:47,580 They have correctly identified, in the worst case scenario, 76% of the defect prone modules. 90 00:04:47,740 --> 00:04:48,740 Now that's in the worst case scenario. 91 00:04:48,900 --> 00:04:51,900 That means, you know, the worst time you ran it was 76. 92 00:04:52,080 --> 00:04:54,780 It's almost always higher than that. 93 00:04:54,780 --> 00:04:59,020 Generally closer to 80 or 90%. 94 00:04:59,020 --> 00:05:04,200 So now we're getting into some definitions of our external metric D sub E. 95 00:05:05,640 --> 00:05:10,420 As you can see, D sub E is inflows times outflows plus fan in and fan out. 96 00:05:10,580 --> 00:05:13,560 I'm going to go ahead and go over that nomenclature. 97 00:05:13,720 --> 00:05:15,360 Because I'm not sure how standard it is. 98 00:05:15,480 --> 00:05:16,740 That's what I got from their papers. 99 00:05:16,880 --> 00:05:20,140 Inflows is basically any data coming into a module. 100 00:05:20,480 --> 00:05:21,260 It doesn't matter. 101 00:05:21,400 --> 00:05:24,600 It could be parameter passing, global data, reading a file. 102 00:05:24,600 --> 00:05:27,720 Any data coming in is going to be an inflow. 103 00:05:27,820 --> 00:05:30,680 So then an outflow is any data coming out of a module. 104 00:05:30,940 --> 00:05:32,460 So let's say like a file change. 105 00:05:32,960 --> 00:05:36,140 If your module writes to a file, that would actually be considered an outflow. 106 00:05:36,260 --> 00:05:39,220 Or it could be passing something out. 107 00:05:39,380 --> 00:05:41,240 Anything that's coming out of that module is outflow. 108 00:05:41,560 --> 00:05:46,400 Fan in are going to be the modules that actually use the module focus. 109 00:05:46,720 --> 00:05:49,400 By module focus, it's the module you're trying to run primitives on. 110 00:05:50,080 --> 00:05:54,580 And I guess I should, just to make sure, define what I mean by module focus. 111 00:05:54,600 --> 00:05:58,940 A module is any addressable, callable piece of code. 112 00:05:59,580 --> 00:06:07,840 Because since, you know, on this reliability metrics, it's not limited to C or Java or Ada or Perl or any other language. 113 00:06:08,040 --> 00:06:12,920 So, you know, because languages are so different, we're just saying a module is a callable piece of code. 114 00:06:13,140 --> 00:06:15,520 So anytime I say module in this speech, that's what I'm referring to. 115 00:06:16,340 --> 00:06:18,380 So then fan in, like I said, is modules. 116 00:06:19,520 --> 00:06:21,840 Account of the modules that use the module focus. 117 00:06:22,220 --> 00:06:23,540 So if you're saying we want to detect. 118 00:06:24,740 --> 00:06:25,860 Reliability in this module. 119 00:06:26,400 --> 00:06:28,140 How many modules call it? 120 00:06:28,280 --> 00:06:29,600 So that would be your fan in. 121 00:06:30,000 --> 00:06:33,440 Then your fan out would be how many modules does it call? 122 00:06:34,580 --> 00:06:41,360 So then as you can see here, we've got a, you know, basically, it's actually kind of simple. 123 00:06:41,560 --> 00:06:42,900 You know, once you have it all defined. 124 00:06:43,180 --> 00:06:45,280 You have two plus two plus three times. 125 00:06:45,720 --> 00:06:47,580 And then you get your, you know, your result is 23. 126 00:06:48,340 --> 00:06:49,540 So let's go ahead and. 127 00:06:51,260 --> 00:06:53,280 We're going to break that down to each part. 128 00:06:53,280 --> 00:06:54,420 In flows, out flows. 129 00:06:56,040 --> 00:06:57,500 Fan in, fan out. 130 00:06:59,160 --> 00:07:01,520 Then we have an internal metric. 131 00:07:02,320 --> 00:07:04,020 Which is, let's get through here. 132 00:07:04,340 --> 00:07:07,640 That's actually a measure of the internal complexity. 133 00:07:08,740 --> 00:07:09,620 Of a module. 134 00:07:10,660 --> 00:07:14,140 And what the equation for that is, you have your central calls. 135 00:07:15,560 --> 00:07:17,540 Your data structure manipulations. 136 00:07:17,940 --> 00:07:19,000 And your input output. 137 00:07:19,420 --> 00:07:22,000 Now W1, W2, W3, that's what I was confused about. 138 00:07:22,120 --> 00:07:23,200 Went back to the research paper. 139 00:07:23,200 --> 00:07:26,360 All those are is weight. 140 00:07:26,700 --> 00:07:30,560 So if you wanted to give more focus to data structure manipulations. 141 00:07:30,740 --> 00:07:33,760 Then you could give W2 a weight of two. 142 00:07:33,880 --> 00:07:34,500 Or a weight of three. 143 00:07:34,660 --> 00:07:36,740 So for all of our metrics. 144 00:07:37,040 --> 00:07:41,320 Unless if the actual, you know, the people funding us to run metrics. 145 00:07:42,080 --> 00:07:43,860 Request a specific weight. 146 00:07:44,340 --> 00:07:46,720 W1, W2, W3 is always one. 147 00:07:47,700 --> 00:07:48,900 Army research labs. 148 00:07:49,340 --> 00:07:50,560 The smart project. 149 00:07:50,760 --> 00:07:53,180 The values of W1, W2, W3 were always one. 150 00:07:53,200 --> 00:07:54,880 Just to make that clear. 151 00:07:56,400 --> 00:07:58,340 So then, let's get. 152 00:07:59,120 --> 00:08:00,080 Sorry guys. 153 00:08:01,260 --> 00:08:05,820 So extending design metrics technology to a software security engineering process. 154 00:08:05,940 --> 00:08:08,120 Really what we're trying to say is. 155 00:08:09,080 --> 00:08:13,420 Like how do these actually apply, you know, reliability metrics to security. 156 00:08:15,180 --> 00:08:17,860 And looking at defect rates. 157 00:08:18,080 --> 00:08:21,920 A deployed software package of one million lines of code has 6,000 defects. 158 00:08:21,920 --> 00:08:26,620 So let's say if we assumed 1% of those defects are security vulnerabilities. 159 00:08:26,960 --> 00:08:34,460 There are at least 60 different opportunities for someone to attack a system that is a million lines of code. 160 00:08:36,140 --> 00:08:38,020 So really what we're saying is that. 161 00:08:38,860 --> 00:08:40,540 And I'll get into this a little bit later. 162 00:08:40,660 --> 00:08:43,740 Is that the reliability faults. 163 00:08:45,200 --> 00:08:47,160 You're going to have security faults within those. 164 00:08:47,900 --> 00:08:49,560 So, you know, the majority is going to be. 165 00:08:49,620 --> 00:08:51,160 You have a ton of reliability faults. 166 00:08:51,160 --> 00:08:54,480 Then a small number of those will actually be actual security faults. 167 00:08:55,840 --> 00:08:56,860 Let's get through here. 168 00:08:57,180 --> 00:08:58,420 And this is where I'm talking about. 169 00:08:58,520 --> 00:08:59,980 So you have your defects. 170 00:09:00,780 --> 00:09:01,720 And within that. 171 00:09:02,280 --> 00:09:03,900 Some of that's actually exploitable. 172 00:09:04,220 --> 00:09:05,340 And that's kind of what we're. 173 00:09:06,180 --> 00:09:07,600 What we set out to prove. 174 00:09:07,800 --> 00:09:11,280 When we did this project for the Army is to say that. 175 00:09:11,440 --> 00:09:13,040 Yeah, these metrics that we've been using. 176 00:09:13,200 --> 00:09:14,680 You know, proven over 20 years for reliability. 177 00:09:14,960 --> 00:09:16,660 Can actually find security faults. 178 00:09:17,380 --> 00:09:18,880 So when you look at the parallels. 179 00:09:19,800 --> 00:09:21,140 You know, you have a fault prone component. 180 00:09:21,160 --> 00:09:22,940 It's likely to contain faults. 181 00:09:23,640 --> 00:09:24,780 On the security side. 182 00:09:25,100 --> 00:09:26,380 Vulnerability prone component. 183 00:09:26,620 --> 00:09:27,980 Which is likely to contain vulnerabilities. 184 00:09:28,580 --> 00:09:30,180 A failure prone component. 185 00:09:30,260 --> 00:09:32,360 Is probably going to have failures in the field. 186 00:09:32,440 --> 00:09:34,140 That's the things you really want to get. 187 00:09:34,280 --> 00:09:36,520 Because that means your stuff is going to crash. 188 00:09:37,060 --> 00:09:38,560 So when we look at the security side. 189 00:09:38,700 --> 00:09:41,060 We say, well, then you're going to have attack prone components. 190 00:09:41,360 --> 00:09:43,980 Which means it's actually likely to get attacked in the field. 191 00:09:44,620 --> 00:09:46,600 And when we actually did an analysis. 192 00:09:46,760 --> 00:09:48,820 On a large commercial telecommunication system. 193 00:09:48,820 --> 00:09:51,920 We found the presence of security faults. 194 00:09:52,100 --> 00:09:53,460 Did correlate strongly. 195 00:09:53,720 --> 00:09:56,660 With the presence of the general category. 196 00:09:56,940 --> 00:09:59,660 Of reliability faults. 197 00:09:59,940 --> 00:10:01,640 So when we saw that. 198 00:10:01,760 --> 00:10:03,380 That was kind of before this project. 199 00:10:04,300 --> 00:10:05,840 And that really led us to believe. 200 00:10:06,220 --> 00:10:08,340 Well, we can use these metrics. 201 00:10:08,520 --> 00:10:10,540 That, you know, have been used for stability. 202 00:10:10,800 --> 00:10:14,560 And actually take our error prone modules. 203 00:10:14,920 --> 00:10:17,780 Are most likely going to be, you know. 204 00:10:17,960 --> 00:10:18,800 Vulnerability prone components. 205 00:10:20,980 --> 00:10:22,200 So our project. 206 00:10:22,740 --> 00:10:23,180 Sorry. 207 00:10:23,600 --> 00:10:24,660 Project objectives. 208 00:10:24,920 --> 00:10:26,560 We wanted to investigate the overlap. 209 00:10:26,780 --> 00:10:27,320 Like I was saying. 210 00:10:27,500 --> 00:10:30,620 And see, like, how much overlap is there. 211 00:10:30,720 --> 00:10:33,940 And will our system actually find, you know. 212 00:10:34,240 --> 00:10:35,180 Vulnerable pieces of code. 213 00:10:38,620 --> 00:10:39,920 There's our systems that we did. 214 00:10:40,120 --> 00:10:40,500 Firefox. 215 00:10:40,700 --> 00:10:41,480 Open Solaris. 216 00:10:41,560 --> 00:10:42,720 Open SSH. 217 00:10:43,020 --> 00:10:43,780 And Drupal. 218 00:10:45,520 --> 00:10:46,260 And Apache. 219 00:10:49,500 --> 00:10:51,640 So pretty much we considered. 220 00:10:51,760 --> 00:10:52,880 It would be really good. 221 00:10:53,260 --> 00:10:56,160 If 50% of the components contained. 222 00:10:57,100 --> 00:10:57,780 Documented vulnerabilities. 223 00:10:58,260 --> 00:10:59,760 Would be identified. 224 00:11:00,100 --> 00:11:01,040 And what I mean by that is. 225 00:11:01,160 --> 00:11:02,320 You have like CWEs. 226 00:11:02,560 --> 00:11:03,600 Or CVEs. 227 00:11:04,260 --> 00:11:07,300 You know, basically everybody here that does security knows. 228 00:11:07,500 --> 00:11:08,760 You know, you have patches. 229 00:11:09,020 --> 00:11:10,900 And so you actually have the stuff get reported. 230 00:11:11,360 --> 00:11:12,280 For the most part. 231 00:11:12,440 --> 00:11:14,160 So you have reported vulnerabilities. 232 00:11:14,520 --> 00:11:17,000 So what we did is gather all those reported vulnerabilities. 233 00:11:17,200 --> 00:11:18,240 On these products. 234 00:11:18,820 --> 00:11:20,000 And then run the metrics. 235 00:11:20,520 --> 00:11:21,980 On the specific versions. 236 00:11:22,460 --> 00:11:23,480 And say, okay. 237 00:11:23,560 --> 00:11:25,820 Were we actually able to identify. 238 00:11:27,580 --> 00:11:28,580 These, you know. 239 00:11:28,640 --> 00:11:29,080 Error. 240 00:11:29,180 --> 00:11:29,560 Sorry. 241 00:11:29,660 --> 00:11:30,820 Vulnerability prone components. 242 00:11:33,900 --> 00:11:36,180 So that's the whole process basically. 243 00:11:36,360 --> 00:11:37,220 Is you take your system. 244 00:11:38,180 --> 00:11:39,960 Then you build a list of all your vulnerabilities. 245 00:11:40,320 --> 00:11:41,680 What version of the code it was. 246 00:11:41,900 --> 00:11:42,780 And this is where I actually. 247 00:11:43,880 --> 00:11:45,500 My big part in this research project. 248 00:11:45,500 --> 00:11:48,100 Was I would take a report of a vulnerability. 249 00:11:48,460 --> 00:11:48,960 And then say, okay. 250 00:11:49,040 --> 00:11:51,180 Well what is actually causing that vulnerability. 251 00:11:51,420 --> 00:11:53,260 What's the actual vulnerable piece of code. 252 00:11:53,620 --> 00:11:54,880 Because that's really what you need to know. 253 00:11:54,960 --> 00:11:57,020 Because when you're doing your metrics. 254 00:11:57,200 --> 00:11:58,580 And it gives you a specific module. 255 00:11:58,800 --> 00:11:59,460 You have to make sure. 256 00:11:59,940 --> 00:12:02,140 You have to know where the vulnerabilities was. 257 00:12:02,740 --> 00:12:04,580 Or else you can't say if it actually identified it or not. 258 00:12:04,680 --> 00:12:07,440 I mean if it says, hey Apache has a buffer overflow. 259 00:12:07,680 --> 00:12:09,480 But doesn't tell you exactly what module. 260 00:12:09,620 --> 00:12:10,620 The buffer overflow is in. 261 00:12:11,560 --> 00:12:12,720 That doesn't do you any good. 262 00:12:13,340 --> 00:12:15,280 So that was really my part. 263 00:12:15,500 --> 00:12:16,700 Was to find exactly where. 264 00:12:16,900 --> 00:12:18,280 Those vulnerabilities were. 265 00:12:18,700 --> 00:12:20,600 So then when they run the metrics code. 266 00:12:20,720 --> 00:12:21,420 We could then say, okay. 267 00:12:21,520 --> 00:12:23,720 Will the metrics actually identify all these. 268 00:12:24,540 --> 00:12:25,760 So there we have, you know. 269 00:12:25,960 --> 00:12:28,000 These are our CWEs. 270 00:12:28,240 --> 00:12:29,300 How many that we collected. 271 00:12:29,540 --> 00:12:31,060 For the different versions. 272 00:12:31,580 --> 00:12:33,520 We did open Solaris. 273 00:12:33,640 --> 00:12:35,000 I'm not sure what the version was on that. 274 00:12:35,080 --> 00:12:37,680 Firefox we had 2.001. 275 00:12:37,840 --> 00:12:39,100 2.002. 276 00:12:39,280 --> 00:12:40,220 2.005. 277 00:12:40,260 --> 00:12:41,100 Open SSH. 278 00:12:45,500 --> 00:12:45,640 Excuse me. 279 00:12:45,660 --> 00:12:47,520 Have the version numbers in just a second. 280 00:12:48,060 --> 00:12:50,600 So everybody knows what Apache is. 281 00:12:50,780 --> 00:12:52,800 I don't really need to go over this. 282 00:12:53,860 --> 00:12:55,080 For the vulnerabilities. 283 00:12:55,100 --> 00:12:57,200 On version 1.3.1. 284 00:12:57,380 --> 00:12:58,820 We had 144 files. 285 00:12:59,240 --> 00:13:00,700 8 vulnerabilities identified. 286 00:13:02,200 --> 00:13:03,560 With the metrics. 287 00:13:03,760 --> 00:13:05,750 We actually had 87.5%. 288 00:13:06,900 --> 00:13:08,440 Or 7 out of 8. 289 00:13:08,700 --> 00:13:09,700 Vulnerable modules. 290 00:13:10,140 --> 00:13:12,200 Were identified in the top 10%. 291 00:13:12,200 --> 00:13:14,100 Which is a huge win for us. 292 00:13:14,160 --> 00:13:14,680 Because that's saying. 293 00:13:15,500 --> 00:13:17,380 If you are a code auditor. 294 00:13:17,500 --> 00:13:18,600 And you want to know. 295 00:13:19,100 --> 00:13:20,200 Where to look. 296 00:13:20,660 --> 00:13:22,220 And that's a huge win to tell you. 297 00:13:22,340 --> 00:13:24,220 Hey this is the top 10%. 298 00:13:24,220 --> 00:13:27,300 And that's actually where the vulnerabilities were. 299 00:13:27,920 --> 00:13:28,920 And that's pretty good. 300 00:13:29,220 --> 00:13:30,560 At least in my opinion. 301 00:13:32,220 --> 00:13:33,820 So there's a graph of. 302 00:13:34,440 --> 00:13:35,560 Actual some of the output. 303 00:13:35,720 --> 00:13:36,320 It shows. 304 00:13:36,400 --> 00:13:38,020 Hey these are the modules. 305 00:13:38,500 --> 00:13:40,440 That are likely to be vulnerability prone. 306 00:13:43,400 --> 00:13:44,360 Open Solaris. 307 00:13:44,520 --> 00:13:45,120 I think. 308 00:13:45,500 --> 00:13:46,100 Everybody knows. 309 00:13:47,060 --> 00:13:48,000 What that is. 310 00:13:48,560 --> 00:13:51,420 So we had 22,600 files. 311 00:13:51,680 --> 00:13:53,420 23 module updates from vulnerabilities. 312 00:13:53,580 --> 00:13:54,880 Totaling 37 changes. 313 00:13:55,420 --> 00:13:57,120 Five is the largest number of changes. 314 00:13:57,220 --> 00:13:57,860 On one module. 315 00:13:58,100 --> 00:14:00,480 So we wanted to identify 23 modules. 316 00:14:00,640 --> 00:14:03,560 Out of 22,600 modules. 317 00:14:03,680 --> 00:14:04,140 In files. 318 00:14:04,640 --> 00:14:06,860 Which is approximately 1 in 10,000. 319 00:14:07,960 --> 00:14:08,620 So yeah. 320 00:14:08,660 --> 00:14:10,460 Pretty tricky. 321 00:14:10,980 --> 00:14:13,020 So Dolores wrote some. 322 00:14:13,300 --> 00:14:14,280 Code for this. 323 00:14:15,500 --> 00:14:16,760 She calls her divide and conquer. 324 00:14:19,680 --> 00:14:20,320 Let's see. 325 00:14:21,500 --> 00:14:22,180 There we go. 326 00:14:22,640 --> 00:14:23,720 So we actually got. 327 00:14:24,740 --> 00:14:26,800 She had that code to work. 328 00:14:27,600 --> 00:14:28,720 And pick apart. 329 00:14:28,880 --> 00:14:30,840 Because I guess there's a lot of weird stuff in there. 330 00:14:30,920 --> 00:14:32,840 That was messing up her preprocessor engine. 331 00:14:33,140 --> 00:14:34,040 But once she got that working. 332 00:14:34,200 --> 00:14:35,380 We had 60%. 333 00:14:35,380 --> 00:14:37,800 Or 3 out of 5 vulnerable modules. 334 00:14:38,240 --> 00:14:39,520 And 69%. 335 00:14:39,520 --> 00:14:41,780 Or 9 out of 13 changes were identified. 336 00:14:42,420 --> 00:14:43,720 Which is pretty good. 337 00:14:45,760 --> 00:14:46,280 And we did a lot of work. 338 00:14:46,280 --> 00:14:47,000 We did a lot of work on the reliability numbers. 339 00:14:47,360 --> 00:14:48,860 But for a system that complex. 340 00:14:49,340 --> 00:14:50,700 With that much code. 341 00:14:50,940 --> 00:14:52,940 Still felt it was pretty good results. 342 00:14:54,920 --> 00:14:55,440 Firefox. 343 00:14:55,840 --> 00:14:57,380 Again another description. 344 00:14:57,620 --> 00:15:00,060 Everybody knows what Firefox is. 345 00:15:00,940 --> 00:15:02,900 So we did a general analysis. 346 00:15:03,060 --> 00:15:04,640 We did a lot more on this one. 347 00:15:04,820 --> 00:15:06,040 They were a lot more interested in Firefox. 348 00:15:06,540 --> 00:15:07,480 The army was. 349 00:15:07,680 --> 00:15:09,600 So actually did multiple versions. 350 00:15:09,840 --> 00:15:11,700 Instead of just one specific version. 351 00:15:13,260 --> 00:15:15,300 And we had at least 51%. 352 00:15:15,300 --> 00:15:18,000 And at most 86% of reported vulnerabilities. 353 00:15:18,100 --> 00:15:19,000 Were in data handling. 354 00:15:19,500 --> 00:15:21,260 So the data structure manipulation. 355 00:15:21,840 --> 00:15:22,960 Which we talked about earlier. 356 00:15:23,700 --> 00:15:26,000 That was the best predictor of vulnerabilities. 357 00:15:26,300 --> 00:15:27,080 In Firefox. 358 00:15:29,620 --> 00:15:30,460 So for that. 359 00:15:30,840 --> 00:15:31,780 What you would want to. 360 00:15:32,020 --> 00:15:33,120 Or what we ended up finding. 361 00:15:33,220 --> 00:15:33,900 Is that that would be. 362 00:15:34,480 --> 00:15:35,420 One of the times. 363 00:15:35,880 --> 00:15:38,320 We thought if you're going to analyze web browsers. 364 00:15:38,540 --> 00:15:39,900 Then you would want to give more weight. 365 00:15:40,460 --> 00:15:41,620 To the DSM. 366 00:15:41,700 --> 00:15:42,840 Than to anything else. 367 00:15:43,540 --> 00:15:44,500 Open SSH. 368 00:15:44,780 --> 00:15:46,040 Everybody knows what that is. 369 00:15:46,780 --> 00:15:49,720 We had 3.8 P1. 370 00:15:50,380 --> 00:15:51,840 31 vulnerable modules. 371 00:15:51,980 --> 00:15:52,280 Were identified. 372 00:15:54,240 --> 00:15:56,460 18 of the 31 vulnerable modules. 373 00:15:56,700 --> 00:15:57,840 Were in the top 10%. 374 00:15:58,380 --> 00:15:59,260 Which is again. 375 00:15:59,420 --> 00:16:00,380 I say pretty good. 376 00:16:00,600 --> 00:16:02,520 It makes your life a lot easier. 377 00:16:02,620 --> 00:16:03,740 If you're looking for security bugs. 378 00:16:03,940 --> 00:16:07,120 If you can say the top 10% was actually accurate. 379 00:16:07,340 --> 00:16:09,200 And the tough thing with this research also. 380 00:16:09,760 --> 00:16:11,180 Is that there could be. 381 00:16:11,700 --> 00:16:13,620 Still unknown vulnerabilities in software. 382 00:16:14,040 --> 00:16:16,200 So when it gives you a top 10. 383 00:16:16,360 --> 00:16:17,220 Vulnerable module. 384 00:16:17,520 --> 00:16:18,240 We're kind of. 385 00:16:19,500 --> 00:16:22,160 Basically all we can actually look at. 386 00:16:22,240 --> 00:16:23,460 Is the ones that have been identified. 387 00:16:23,880 --> 00:16:24,740 So there could be. 388 00:16:25,080 --> 00:16:26,700 Our numbers could actually be higher. 389 00:16:27,040 --> 00:16:29,580 If there's unknown vulnerabilities in that top 10%. 390 00:16:29,580 --> 00:16:31,440 That we could actually have much better numbers. 391 00:16:31,560 --> 00:16:32,060 But we don't know. 392 00:16:32,120 --> 00:16:34,060 We didn't actually do source code auditing. 393 00:16:34,180 --> 00:16:34,580 And say okay. 394 00:16:34,640 --> 00:16:37,420 Let's try to find exploits in Open SSH. 395 00:16:37,460 --> 00:16:38,580 Or Apache or anything like that. 396 00:16:41,700 --> 00:16:42,520 To see if we could find those. 397 00:16:44,800 --> 00:16:46,740 Then we get over to Drupal. 398 00:16:46,940 --> 00:16:47,880 And that's. 399 00:16:48,260 --> 00:16:48,920 It's actually. 400 00:16:49,420 --> 00:16:51,240 New research is going on right now. 401 00:16:51,340 --> 00:16:53,500 With a grad student named Zili. 402 00:16:53,880 --> 00:16:55,700 And Drupal's in PHP. 403 00:16:56,260 --> 00:16:57,560 So again a different language. 404 00:16:57,760 --> 00:16:59,600 The other ones were all C, C++. 405 00:17:00,820 --> 00:17:02,360 And everybody knows what it is. 406 00:17:02,520 --> 00:17:03,100 So anyways. 407 00:17:04,020 --> 00:17:05,320 What we ended up finding with Drupal. 408 00:17:05,680 --> 00:17:07,180 Well some of my work is. 409 00:17:07,540 --> 00:17:09,600 Dolores ended up naming it the Drupal Vulnerability Miner. 410 00:17:09,600 --> 00:17:12,400 But it was a lot easier than Firefox. 411 00:17:12,640 --> 00:17:14,800 Where I was manually collecting this stuff. 412 00:17:14,900 --> 00:17:16,280 I actually just wrote a Perl tool. 413 00:17:16,480 --> 00:17:17,860 That we called the Drupal Vulnerability Miner. 414 00:17:17,920 --> 00:17:18,940 And the Drupal community. 415 00:17:19,240 --> 00:17:20,780 Has an actual security site. 416 00:17:20,880 --> 00:17:23,040 That's really good about reporting the vulnerabilities. 417 00:17:23,500 --> 00:17:26,160 And where exactly the vulnerabilities are. 418 00:17:26,320 --> 00:17:27,080 And how they were caused. 419 00:17:27,300 --> 00:17:28,660 So that whole thing. 420 00:17:28,760 --> 00:17:30,540 The Drupal Vulnerability Miner goes out. 421 00:17:30,820 --> 00:17:34,100 And is able to just parse through that data. 422 00:17:34,280 --> 00:17:35,640 And automatically generate. 423 00:17:36,020 --> 00:17:36,960 What we needed. 424 00:17:37,100 --> 00:17:38,760 We have these Excel spreadsheets that show. 425 00:17:39,600 --> 00:17:40,340 This is the vulnerability. 426 00:17:40,680 --> 00:17:41,640 This is where it was in code. 427 00:17:41,920 --> 00:17:43,120 This is what caused it. 428 00:17:43,360 --> 00:17:44,660 So then when we go with our metrics. 429 00:17:44,760 --> 00:17:45,860 Then we compare the two. 430 00:17:46,880 --> 00:17:49,040 So that was just something that I did. 431 00:17:49,120 --> 00:17:50,940 That made things a lot faster. 432 00:17:51,840 --> 00:17:54,160 And on our PHP source code analysis. 433 00:17:54,360 --> 00:17:55,580 We're still designing. 434 00:17:56,420 --> 00:17:57,000 I'm not. 435 00:17:57,160 --> 00:17:59,820 But Dolores is still designing the PHP to XML tool. 436 00:18:00,280 --> 00:18:01,020 So that she can. 437 00:18:01,140 --> 00:18:02,740 Because basically we have this XML definition. 438 00:18:04,080 --> 00:18:05,760 It's a generic definition. 439 00:18:06,080 --> 00:18:06,600 So then let's see. 440 00:18:09,600 --> 00:18:10,840 You want to take that. 441 00:18:10,960 --> 00:18:11,840 Instead of actually like. 442 00:18:12,380 --> 00:18:13,220 Scanning through Pearl. 443 00:18:13,440 --> 00:18:15,100 You actually have a parser. 444 00:18:15,120 --> 00:18:18,280 That converts it into a standard XML definition. 445 00:18:19,000 --> 00:18:20,440 And then the metrics are run on that. 446 00:18:20,700 --> 00:18:21,340 So then basically. 447 00:18:21,800 --> 00:18:24,080 If we need to add a new language for our metrics. 448 00:18:24,420 --> 00:18:25,860 We just write a new. 449 00:18:26,280 --> 00:18:27,500 Basically a parser. 450 00:18:27,540 --> 00:18:29,020 That converts it over to this XML definition. 451 00:18:29,320 --> 00:18:31,820 So that way we're not language specific. 452 00:18:33,860 --> 00:18:34,980 I think they said. 453 00:18:35,580 --> 00:18:37,380 Maybe it was eight or ten years ago. 454 00:18:37,540 --> 00:18:39,220 One of the government people came to them. 455 00:18:39,680 --> 00:18:40,620 We need you to do Ada. 456 00:18:41,880 --> 00:18:43,400 Okay well we did do C. 457 00:18:44,020 --> 00:18:45,800 This is the whole idea behind this. 458 00:18:45,920 --> 00:18:47,120 Making it a little more generic. 459 00:18:48,940 --> 00:18:50,600 So after showing all that stuff. 460 00:18:50,720 --> 00:18:51,620 On this project. 461 00:18:51,840 --> 00:18:53,300 The benefits that we felt. 462 00:18:53,960 --> 00:18:54,920 Like I said earlier. 463 00:18:55,060 --> 00:18:57,360 Is to know where your vulnerabilities reside. 464 00:18:57,820 --> 00:18:58,600 If you're doing. 465 00:18:58,880 --> 00:19:01,520 Especially if you're on a team. 466 00:19:01,660 --> 00:19:02,300 And you're trying to find. 467 00:19:02,420 --> 00:19:03,880 If there are vulnerabilities in your code. 468 00:19:03,880 --> 00:19:04,800 And you want it. 469 00:19:04,820 --> 00:19:05,700 You're trying to audit the source. 470 00:19:05,980 --> 00:19:07,560 It's very helpful to know. 471 00:19:07,860 --> 00:19:09,240 Where to start looking first. 472 00:19:09,420 --> 00:19:10,800 Now of course you're skilled. 473 00:19:11,020 --> 00:19:14,740 We've talked to people from different sponsors. 474 00:19:14,940 --> 00:19:15,900 That have their actual. 475 00:19:16,180 --> 00:19:17,300 Skilled source code auditors. 476 00:19:17,520 --> 00:19:18,520 And those guys are like. 477 00:19:18,620 --> 00:19:19,340 Oh we know where to look. 478 00:19:19,520 --> 00:19:21,400 And we're pretty good at it. 479 00:19:21,460 --> 00:19:23,080 But this was still helpful to them. 480 00:19:23,260 --> 00:19:24,580 They said it is beneficial. 481 00:19:25,520 --> 00:19:26,960 There's things that they may not. 482 00:19:26,960 --> 00:19:28,360 Because they kind of have a pattern. 483 00:19:28,480 --> 00:19:29,040 Of what they look for. 484 00:19:29,120 --> 00:19:31,480 There may be stuff they don't usually look for. 485 00:19:31,740 --> 00:19:32,660 And this helps with that. 486 00:19:35,160 --> 00:19:36,660 So pretty much being able to. 487 00:19:37,080 --> 00:19:38,640 Analyze all these different technologies. 488 00:19:39,220 --> 00:19:40,580 Like you have your web server. 489 00:19:40,800 --> 00:19:41,780 Open SSH etc. 490 00:19:42,840 --> 00:19:45,400 You can cover all these different systems. 491 00:19:45,660 --> 00:19:47,120 And that's one of the big benefits we felt. 492 00:19:47,260 --> 00:19:48,760 A lot of these scanners out there. 493 00:19:48,840 --> 00:19:50,340 Will say hey I can look at C code. 494 00:19:50,660 --> 00:19:52,440 And especially a lot of your static analysis. 495 00:19:52,640 --> 00:19:53,360 That just says. 496 00:19:53,920 --> 00:19:56,520 I can find buffer overflows in C. 497 00:19:56,960 --> 00:19:58,780 And that it's a specific thing. 498 00:19:58,960 --> 00:19:59,500 That it's looking for. 499 00:19:59,580 --> 00:20:00,300 A very specific pattern. 500 00:20:00,400 --> 00:20:00,960 It's very limited. 501 00:20:01,340 --> 00:20:02,600 So with ours we're trying to say. 502 00:20:02,680 --> 00:20:04,460 We can take all these different languages. 503 00:20:06,300 --> 00:20:07,620 Any language out there. 504 00:20:07,740 --> 00:20:09,020 We could do metrics on it. 505 00:20:10,280 --> 00:20:12,200 And we feel that's a really big benefit. 506 00:20:12,380 --> 00:20:13,120 Because if you have. 507 00:20:13,660 --> 00:20:14,660 You code in C. 508 00:20:14,840 --> 00:20:15,720 And you have a C scanner. 509 00:20:15,840 --> 00:20:16,400 And that works for you. 510 00:20:16,500 --> 00:20:17,480 But then let's say. 511 00:20:18,560 --> 00:20:20,020 All of a sudden for some reason. 512 00:20:26,960 --> 00:20:27,080 It's not. 513 00:20:27,260 --> 00:20:28,440 So you could actually. 514 00:20:28,940 --> 00:20:31,080 Get the XML definition into our system. 515 00:20:31,220 --> 00:20:32,020 Run metrics on it. 516 00:20:32,240 --> 00:20:33,960 And it would show you the fault. 517 00:20:34,060 --> 00:20:35,640 And vulnerability prone modules. 518 00:20:37,780 --> 00:20:39,320 So our next research steps. 519 00:20:39,640 --> 00:20:41,240 Is basically to continue analysis. 520 00:20:41,340 --> 00:20:42,280 Of open source systems. 521 00:20:42,640 --> 00:20:44,440 We're trying to find other primitives. 522 00:20:44,480 --> 00:20:47,320 To identify other security weaknesses. 523 00:20:47,620 --> 00:20:48,660 Because like I said. 524 00:20:48,720 --> 00:20:50,100 We didn't identify 100%. 525 00:20:50,100 --> 00:20:53,340 So we think there should be metrics out there. 526 00:20:53,340 --> 00:20:55,200 That will help to better. 527 00:20:55,440 --> 00:20:56,660 Find all those vulnerabilities. 528 00:20:58,220 --> 00:20:59,400 And one thing. 529 00:20:59,480 --> 00:21:00,760 They said when I was out here to ask. 530 00:21:00,880 --> 00:21:02,920 Is if anybody has any systems they want analyzed. 531 00:21:03,680 --> 00:21:04,940 Then that would be something too. 532 00:21:05,040 --> 00:21:05,840 You could contact them. 533 00:21:05,940 --> 00:21:06,940 And if you have some source code. 534 00:21:07,260 --> 00:21:09,740 They've worked with all different agencies. 535 00:21:09,780 --> 00:21:10,520 And companies. 536 00:21:10,680 --> 00:21:12,860 So NDAs and clearances. 537 00:21:12,880 --> 00:21:13,840 And all that stuff is no problem. 538 00:21:14,620 --> 00:21:16,020 For anybody that has those. 539 00:21:17,160 --> 00:21:18,480 And actually that's it. 540 00:21:18,480 --> 00:21:19,960 Go on to questions.