1 00:00:00,000 --> 00:00:03,260 My name is Michael Davis, and I am here to call bullshit. 2 00:00:04,020 --> 00:00:10,740 The open source security is based on the concept that the source code is open, available, 3 00:00:11,280 --> 00:00:16,920 that numerous programmers around the world are reviewing your code 4 00:00:16,920 --> 00:00:19,860 and letting you know about the vulnerabilities in it. 5 00:00:21,100 --> 00:00:21,720 Bullshit. 6 00:00:22,880 --> 00:00:26,620 First a word from my sponsor, they won't even claim the body. 7 00:00:28,980 --> 00:00:34,420 I am here because I believe in the open source movement, open source software. 8 00:00:35,240 --> 00:00:37,760 I am here because I believe blindly. 9 00:00:38,800 --> 00:00:42,460 I ignored my education and my experience, and I believe. 10 00:00:43,580 --> 00:00:55,240 I had a customer ask me for a recommendation on a tool to sanitize hard disks so they turn computers in. 11 00:00:55,540 --> 00:00:56,600 I said, there's a... 12 00:00:56,620 --> 00:00:59,820 There's a great open source tool out there, Derek's Boot and Nuke, D-Band. 13 00:01:00,420 --> 00:01:01,660 He said, can I trust it? 14 00:01:02,680 --> 00:01:03,380 I don't know. 15 00:01:04,280 --> 00:01:05,220 How will I know? 16 00:01:07,960 --> 00:01:13,780 We said we would look at the software and make a recommendation on whether we could trust it or not. 17 00:01:14,400 --> 00:01:19,420 And so we took on the task to review software for D-Band and other open source solutions 18 00:01:22,120 --> 00:01:24,620 and make a recommendation on whether it could be trusted or not. 19 00:01:24,680 --> 00:01:26,280 What kind of review had been done? 20 00:01:26,620 --> 00:01:32,380 We couldn't find any evidence of any reviews for D-Band or the other tools that we had found. 21 00:01:33,380 --> 00:01:41,400 One of the primary hurdles we faced in doing our review was a lack of developer documentation. 22 00:01:42,760 --> 00:01:47,900 What we found was high-level functional description, why you'd want to use this program, 23 00:01:48,200 --> 00:01:52,640 and in most cases, commented source code and nothing else. 24 00:01:53,180 --> 00:01:55,520 So essentially, if you're trying to understand the program, 25 00:01:55,520 --> 00:01:58,840 you have to really understand the program. 26 00:02:00,020 --> 00:02:05,040 So there are a lot of reasons why we need to review open source security solutions. 27 00:02:05,880 --> 00:02:13,080 I'm here focused today to talk about the lack of developer documentation and why we need it 28 00:02:13,080 --> 00:02:14,940 and who can benefit from that. 29 00:02:15,720 --> 00:02:20,360 And I'll talk about two different communities who need that kind of information. 30 00:02:22,460 --> 00:02:25,500 After presenting some benefits and hopefully getting some buy-in, 31 00:02:25,520 --> 00:02:28,120 I want to discuss the difference between functional, 32 00:02:28,200 --> 00:02:30,960 which is what most people look at when they talk about security, 33 00:02:31,280 --> 00:02:34,120 versus assurance, confidence in what's being done. 34 00:02:34,420 --> 00:02:35,880 I'm going to use a model. 35 00:02:35,940 --> 00:02:38,140 I am not endorsing common criteria. 36 00:02:38,680 --> 00:02:41,620 I am just using the assurance piece of it as a model 37 00:02:41,620 --> 00:02:45,420 to discuss how to gain confidence in an open source security solution. 38 00:02:46,240 --> 00:02:48,780 Then I'll be focusing on the development piece in depth, 39 00:02:49,400 --> 00:02:53,780 what I see as a path ahead, and my limited view of the path ahead, 40 00:02:53,980 --> 00:02:55,380 and then I'm going to wrap it up. 41 00:02:57,760 --> 00:02:59,460 First thing, confessions. 42 00:03:00,000 --> 00:03:03,520 The title of the presentation was meant to antagonize, to draw the crowd. 43 00:03:03,800 --> 00:03:05,680 For a Sunday afternoon, I think I got it. 44 00:03:08,320 --> 00:03:10,300 As I said, I am a believer in open source. 45 00:03:10,420 --> 00:03:11,760 I use the solutions when I can. 46 00:03:11,800 --> 00:03:12,880 I recommend them when they can. 47 00:03:13,100 --> 00:03:17,020 I was just challenged and wanted to share my frustrations. 48 00:03:18,520 --> 00:03:22,040 One of the things that seems obvious, but maybe not so obvious, 49 00:03:22,220 --> 00:03:24,840 is just because the source code is available, 50 00:03:25,520 --> 00:03:27,180 does not mean it's being looked at. 51 00:03:27,540 --> 00:03:29,380 In some cases, this is true. 52 00:03:29,760 --> 00:03:33,420 In some cases, what people think is being looked at 53 00:03:33,420 --> 00:03:36,980 is just a spotty, not comprehensive look 54 00:03:36,980 --> 00:03:40,540 for vulnerabilities that can be exploited, 55 00:03:41,600 --> 00:03:44,060 ignoring other vulnerabilities that could be exploited 56 00:03:44,060 --> 00:03:45,680 but were more difficult to develop. 57 00:03:46,280 --> 00:03:48,180 We need to appreciate that there's a difference 58 00:03:48,180 --> 00:03:49,840 between just having the source code available 59 00:03:49,840 --> 00:03:53,120 and actually having someone look at it. 60 00:03:53,520 --> 00:03:55,380 Preferably, someone other than the person 61 00:03:55,380 --> 00:03:55,920 who wrote it. 62 00:03:56,240 --> 00:03:58,080 There's some challenges to that. 63 00:03:58,880 --> 00:04:01,080 A recent survey of what's on SourceForge 64 00:04:01,080 --> 00:04:04,160 showed that about 98% of the software out there 65 00:04:04,160 --> 00:04:06,540 has one or two developers on it. 66 00:04:07,680 --> 00:04:09,960 I'll highlight an issue with that later on. 67 00:04:10,940 --> 00:04:15,740 This problem, not documenting how you develop the software, 68 00:04:16,000 --> 00:04:18,080 is not an open source problem. 69 00:04:18,480 --> 00:04:20,620 It is a software development problem. 70 00:04:20,900 --> 00:04:24,200 It doesn't matter whether you're commercial or open source, 71 00:04:24,200 --> 00:04:26,280 you face the same issues, 72 00:04:26,660 --> 00:04:28,180 you just have some abilities 73 00:04:28,180 --> 00:04:29,900 to solve them different ways. 74 00:04:31,260 --> 00:04:32,380 I'll tell you up front, 75 00:04:32,440 --> 00:04:34,320 I think the open source community may address this 76 00:04:34,320 --> 00:04:36,440 faster than the commercial world can, 77 00:04:36,680 --> 00:04:38,340 simply because of our willingness 78 00:04:38,340 --> 00:04:39,660 to share lessons learned, 79 00:04:39,820 --> 00:04:40,660 the pain we felt, 80 00:04:40,800 --> 00:04:43,620 and try to have other people not experience 81 00:04:43,620 --> 00:04:44,760 that same pain. 82 00:04:47,340 --> 00:04:47,900 Yes? 83 00:04:48,800 --> 00:04:49,360 . 84 00:04:53,460 --> 00:04:54,020 . 85 00:04:54,020 --> 00:04:56,020 . 86 00:04:56,660 --> 00:04:57,740 . 87 00:05:09,980 --> 00:05:11,380 . 88 00:05:11,380 --> 00:05:11,940 . 89 00:05:11,940 --> 00:05:12,320 . 90 00:05:12,320 --> 00:05:12,360 . 91 00:05:12,360 --> 00:05:12,400 . 92 00:05:12,400 --> 00:05:12,520 . 93 00:05:12,520 --> 00:05:14,920 . 94 00:05:17,780 --> 00:05:19,180 . 95 00:05:19,180 --> 00:05:22,940 Commercial software, the schedule is primarily driven by a marketing schedule. 96 00:05:23,160 --> 00:05:25,760 It's a business decision when to ship, not a technical decision. 97 00:05:26,120 --> 00:05:30,960 This is different than the open source community, which tends to ship when they think it's ready. 98 00:05:32,980 --> 00:05:35,960 Different philosophy, different pressures, different motivations. 99 00:05:36,360 --> 00:05:38,400 And software lifecycle. 100 00:05:38,700 --> 00:05:42,120 We need to respect that software is never done, just shipped or posted. 101 00:05:42,740 --> 00:05:46,540 It is a continuous process to improve that software. 102 00:05:46,540 --> 00:05:52,080 The other thing that maybe isn't appreciated, and this is going back to the one or two developers on a team, 103 00:05:52,300 --> 00:05:55,120 is the development teams have life cycles of their own. 104 00:05:55,400 --> 00:05:58,700 On larger teams, you'll see people come in and then roll off. 105 00:05:59,040 --> 00:06:02,020 And so we need to look at that transition. 106 00:06:03,600 --> 00:06:08,880 Most of the mistakes that are in software were not put there deliberately. 107 00:06:09,540 --> 00:06:11,340 They're screw-ups, all shits. 108 00:06:11,400 --> 00:06:16,080 Whatever you want to use, they're there because someone wasn't thinking at that moment 109 00:06:16,080 --> 00:06:16,520 about the software. 110 00:06:17,320 --> 00:06:21,940 You'll also find where we discover new vulnerabilities that we didn't really think about 111 00:06:21,940 --> 00:06:23,800 when we were doing reviews beforehand. 112 00:06:24,220 --> 00:06:29,580 So a review five years ago might not have thought about looking for integer overflow situations, 113 00:06:29,720 --> 00:06:32,540 where if you're doing that today, you might do that. 114 00:06:32,780 --> 00:06:33,560 Maybe you should. 115 00:06:34,660 --> 00:06:38,660 Repeating again, the status quo for most of the open source projects 116 00:06:38,660 --> 00:06:41,120 is a high-level functional description. 117 00:06:41,340 --> 00:06:43,140 Why you want to use the software. 118 00:06:44,460 --> 00:06:46,080 And then it's comments. 119 00:06:47,380 --> 00:06:48,260 You don't want to use the software. 120 00:06:48,260 --> 00:06:48,340 And then you don't want to use the code. 121 00:06:49,820 --> 00:06:50,340 So we're going to have to bring it back to the public. 122 00:06:50,340 --> 00:06:54,360 Except for the occasional user guide. 123 00:06:55,880 --> 00:06:57,040 There are some exceptions. 124 00:06:58,720 --> 00:07:02,180 Mozilla is probably one of the best that I can point to. 125 00:07:02,280 --> 00:07:04,520 I mean, it's a larger team, obviously, so I'm somewhat cheating. 126 00:07:05,820 --> 00:07:10,120 But they have a site dedicated to developer documentation 127 00:07:10,120 --> 00:07:12,780 and cover it so you can kind of wade yourself in. 128 00:07:13,780 --> 00:07:16,460 Not suggesting that all projects need that. 129 00:07:16,540 --> 00:07:16,840 level. 130 00:07:18,260 --> 00:07:23,820 The other one I heard today was Tor, which was interesting, because the onion router 131 00:07:23,820 --> 00:07:29,540 or routing, I can't remember what the R was specifically, they have designed documentation 132 00:07:29,540 --> 00:07:34,740 and that documentation allowed the porting from Tor, which I think is written in C, to 133 00:07:34,740 --> 00:07:40,080 be written in Java over in Germany, the Jap group, I forget what the acronym stands for. 134 00:07:42,260 --> 00:07:45,100 Why do we want to do developer documentation? 135 00:07:45,100 --> 00:07:48,980 There are two distinct groups who need this documentation. 136 00:07:49,520 --> 00:07:53,280 The first is development teams themselves, and it's kind of hard when you're doing the 137 00:07:53,280 --> 00:07:59,260 solution yourself to think that you need documentation for yourself, but if you go back to my point 138 00:07:59,260 --> 00:08:08,140 about the teams grow, people roll in, roll off as they have different needs, you can 139 00:08:08,140 --> 00:08:13,140 see that having information about design decisions recorded somewhere would be extremely useful. 140 00:08:13,520 --> 00:08:14,480 If you... 141 00:08:14,480 --> 00:08:19,940 If you have development documentation, you lower the bar for project participation. 142 00:08:20,200 --> 00:08:24,100 You can bring more people in because they can understand what your tool does and how 143 00:08:24,100 --> 00:08:24,960 it works easier. 144 00:08:26,220 --> 00:08:29,900 I have to put out a word of caution, I was introduced to a term that I had not seen 145 00:08:29,900 --> 00:08:30,200 before. 146 00:08:30,360 --> 00:08:37,080 It's a concept known as a net negative programmer, and that basically means that at the end of 147 00:08:37,080 --> 00:08:42,660 the day, this individual has done more damage than good, no matter how many times you sit 148 00:08:42,660 --> 00:08:43,000 with them. 149 00:08:44,480 --> 00:08:47,260 You want to lower the bar, but you can't do it blindly. 150 00:08:49,060 --> 00:08:53,120 In that development documentation, you're going to communicate design decisions. 151 00:08:53,960 --> 00:08:58,340 One of the more important things that you might not intuitively think to document is 152 00:08:58,340 --> 00:09:02,940 the alternatives that were considered but not implemented, because this becomes very 153 00:09:02,940 --> 00:09:06,280 good down the line when someone says, oh, I have a great idea, let's do it this way. 154 00:09:06,560 --> 00:09:10,600 If that path was previously explored, you have a record, and if the team members have 155 00:09:10,600 --> 00:09:11,700 changed, you're able to see that. 156 00:09:11,700 --> 00:09:18,100 Those benefits all benefit the team that is developing the open source software. 157 00:09:19,140 --> 00:09:24,040 There's another group who's interested in looking at this software, and those who are 158 00:09:24,040 --> 00:09:26,580 trying to say, yes, we can trust it. 159 00:09:26,860 --> 00:09:30,860 Not just the function, but we can trust it. 160 00:09:31,180 --> 00:09:37,380 We need to gain confidence that if it says it does A, it does A, but we also need to 161 00:09:37,380 --> 00:09:40,460 gain confidence that it doesn't do B when it's not supposed to. 162 00:09:40,720 --> 00:09:41,680 That's a much more complex concept. 163 00:09:41,680 --> 00:09:42,760 It's a much more difficult task. 164 00:09:43,320 --> 00:09:45,320 It is not a trivial task. 165 00:09:45,880 --> 00:09:46,400 It is... 166 00:09:46,400 --> 00:09:47,100 Well, never mind. 167 00:09:47,300 --> 00:09:49,380 I think I'm speaking to the choir on that point. 168 00:09:51,940 --> 00:09:57,400 We need to separate two concepts which may or may not be well understood. 169 00:09:57,720 --> 00:10:01,060 One is, what is a functional requirement versus an assurance requirement? 170 00:10:01,460 --> 00:10:04,760 A functional requirement is, this is what it does. 171 00:10:06,220 --> 00:10:11,580 It does not imply any confidence in how much we should believe that it's going to 172 00:10:11,580 --> 00:10:12,420 continue doing that. 173 00:10:12,660 --> 00:10:19,540 This is contrasted with an assurance requirement that says, this is how I can show that you 174 00:10:19,540 --> 00:10:22,960 should have confidence it's going to do whatever I said it was going to do. 175 00:10:23,760 --> 00:10:26,100 Um, can an assurance requirement be about going... 176 00:10:29,860 --> 00:10:31,180 Depends on your model. 177 00:10:33,420 --> 00:10:34,260 Um, uh... 178 00:10:36,420 --> 00:10:41,380 There are assurance requirements that cause functional requirements to be created. 179 00:10:41,480 --> 00:10:41,560 And it's fine if there are functions there. 180 00:10:42,520 --> 00:10:43,940 in the common criteria model. 181 00:10:44,160 --> 00:10:45,360 I guess that's the easiest way to say. 182 00:10:47,120 --> 00:10:48,480 From my perspective, 183 00:10:48,500 --> 00:10:50,560 it's easier to separate the two mentally. 184 00:10:51,120 --> 00:10:52,780 I want to talk about what it does, 185 00:10:52,900 --> 00:10:54,180 and then I want to talk about 186 00:10:54,180 --> 00:10:56,140 what I'm going to do to give people confidence 187 00:10:56,140 --> 00:10:58,400 it does that and doesn't do anything else. 188 00:10:59,940 --> 00:11:00,800 As I said, 189 00:11:00,960 --> 00:11:03,740 this is not an endorsement for common criteria. 190 00:11:04,040 --> 00:11:05,760 It's a model I'm familiar with. 191 00:11:07,660 --> 00:11:10,280 They have a vocabulary 192 00:11:10,280 --> 00:11:13,620 to define what the thing does. 193 00:11:14,320 --> 00:11:15,860 They have a vocabulary 194 00:11:15,860 --> 00:11:18,320 to describe what assurance requirements are there. 195 00:11:18,840 --> 00:11:20,080 They have a methodology 196 00:11:20,080 --> 00:11:23,460 for evaluating someone who says, 197 00:11:23,500 --> 00:11:24,360 this is what I want to build, 198 00:11:24,520 --> 00:11:26,660 and for someone who says, 199 00:11:26,740 --> 00:11:27,460 I built this. 200 00:11:28,080 --> 00:11:30,540 The only piece that I'm grabbing right now is, 201 00:11:30,700 --> 00:11:31,880 and I'll caveat it, 202 00:11:31,940 --> 00:11:33,640 most of the assurance requirements, 203 00:11:33,880 --> 00:11:35,200 and the reason I'm grabbing that 204 00:11:35,200 --> 00:11:37,160 is just to have a model we can look at. 205 00:11:40,280 --> 00:11:41,960 The majority of the assurance requirements 206 00:11:41,960 --> 00:11:42,680 are the ones here. 207 00:11:42,840 --> 00:11:44,080 The one I'm skipping is 208 00:11:44,080 --> 00:11:45,540 the concept of assurance maintenance, 209 00:11:45,740 --> 00:11:47,940 which is a bit overwhelming at this point. 210 00:11:48,440 --> 00:11:49,960 We'll look at configuration management, 211 00:11:50,460 --> 00:11:51,480 delivery and operation, 212 00:11:52,140 --> 00:11:52,700 development, 213 00:11:53,540 --> 00:11:54,400 guidance documents, 214 00:11:55,040 --> 00:11:55,900 lifecycle support, 215 00:11:56,220 --> 00:11:56,860 tests, 216 00:11:57,060 --> 00:11:58,120 and vulnerability assessment. 217 00:11:58,540 --> 00:11:59,800 My focus, again, 218 00:11:59,880 --> 00:12:01,700 is on development and developer documentation. 219 00:12:03,100 --> 00:12:04,620 What I'll try to do is point out 220 00:12:04,620 --> 00:12:05,320 for each one of these 221 00:12:05,320 --> 00:12:06,900 how we in the community 222 00:12:06,900 --> 00:12:08,300 have tried to solve 223 00:12:08,300 --> 00:12:09,760 the particular aspect 224 00:12:09,760 --> 00:12:11,840 and the only one I'm going to talk about 225 00:12:11,840 --> 00:12:12,420 a little more in depth 226 00:12:12,420 --> 00:12:12,960 is the development. 227 00:12:14,860 --> 00:12:15,600 Configuration management, 228 00:12:17,420 --> 00:12:18,300 vocabulary first. 229 00:12:18,540 --> 00:12:20,320 The definitions that I'm grabbing here 230 00:12:20,320 --> 00:12:21,400 come right out of common criteria 231 00:12:21,400 --> 00:12:22,900 and you're going to need to know 232 00:12:22,900 --> 00:12:24,340 three definitions as we go through this. 233 00:12:24,480 --> 00:12:25,180 The first one is TOE, 234 00:12:25,320 --> 00:12:26,180 targeted evaluation. 235 00:12:26,660 --> 00:12:28,520 Just read that as your software 236 00:12:28,520 --> 00:12:29,740 because that would probably be 237 00:12:29,740 --> 00:12:30,440 the correct answer. 238 00:12:30,740 --> 00:12:32,500 When you see TOE security function, 239 00:12:32,800 --> 00:12:33,740 that just means 240 00:12:33,740 --> 00:12:34,980 the security functions 241 00:12:34,980 --> 00:12:35,940 that your software does 242 00:12:36,580 --> 00:12:38,100 and that's differentiated 243 00:12:38,100 --> 00:12:38,680 from other functions. 244 00:12:38,920 --> 00:12:39,660 And if you see, 245 00:12:39,760 --> 00:12:41,020 ST, that's security target 246 00:12:41,020 --> 00:12:42,160 and that's just 247 00:12:42,160 --> 00:12:43,540 the statement of what is 248 00:12:43,540 --> 00:12:44,580 about your software. 249 00:12:46,280 --> 00:12:47,900 For configuration management 250 00:12:47,900 --> 00:12:50,180 and managing the versioning, 251 00:12:50,180 --> 00:12:51,720 the changes that are made 252 00:12:51,720 --> 00:12:52,620 to open source software, 253 00:12:52,840 --> 00:12:54,700 the de facto standard is CVS. 254 00:12:55,400 --> 00:12:57,300 That seems to be one area 255 00:12:57,300 --> 00:12:58,700 where we get it. 256 00:12:59,660 --> 00:13:01,440 We have versioning control. 257 00:13:01,780 --> 00:13:03,800 We have a way to control 258 00:13:03,800 --> 00:13:04,900 who can make changes. 259 00:13:05,720 --> 00:13:07,160 We seem to be on track 260 00:13:07,160 --> 00:13:07,780 with this one. 261 00:13:10,640 --> 00:13:11,520 Delivery and operation. 262 00:13:11,920 --> 00:13:13,040 This deals with 263 00:13:13,040 --> 00:13:14,740 having your software go out, 264 00:13:14,780 --> 00:13:15,560 get installed, 265 00:13:15,860 --> 00:13:16,940 and come up and operating 266 00:13:16,940 --> 00:13:18,720 in the way that you thought 267 00:13:18,720 --> 00:13:19,860 it would come up and operate. 268 00:13:21,980 --> 00:13:22,660 Right now, 269 00:13:22,720 --> 00:13:23,480 the software is typically 270 00:13:23,480 --> 00:13:24,580 distributed from a website. 271 00:13:26,800 --> 00:13:28,180 The concern you could have 272 00:13:28,180 --> 00:13:28,960 is that the software 273 00:13:28,960 --> 00:13:29,820 could be swapped out, 274 00:13:29,840 --> 00:13:30,680 compromised, etc. 275 00:13:31,080 --> 00:13:32,660 The way a lot of organizations 276 00:13:32,660 --> 00:13:33,540 have dealt with that 277 00:13:33,540 --> 00:13:34,540 is they pull the software 278 00:13:34,540 --> 00:13:35,280 down to a mirror 279 00:13:35,280 --> 00:13:38,520 and then they wait 280 00:13:38,520 --> 00:13:39,280 a few days 281 00:13:39,280 --> 00:13:41,600 because people care 282 00:13:41,600 --> 00:13:42,300 about their software. 283 00:13:42,500 --> 00:13:43,620 If your web server 284 00:13:43,620 --> 00:13:44,380 that was providing software 285 00:13:44,380 --> 00:13:46,120 got trojanned, 286 00:13:46,240 --> 00:13:47,460 you'll know about it 287 00:13:47,460 --> 00:13:47,920 rather quickly. 288 00:13:48,080 --> 00:13:49,240 The word will get out. 289 00:13:49,320 --> 00:13:50,120 If they see that, 290 00:13:50,140 --> 00:13:50,740 they know that their 291 00:13:50,740 --> 00:13:51,940 internal copy has got... 292 00:13:52,360 --> 00:13:52,620 Yes? 293 00:13:55,920 --> 00:13:56,440 Okay. 294 00:14:02,040 --> 00:14:04,120 The issue with MD5 295 00:14:04,120 --> 00:14:07,280 is it is just the hash. 296 00:14:08,260 --> 00:14:08,780 Okay. 297 00:14:09,280 --> 00:14:10,240 With PGP, 298 00:14:10,260 --> 00:14:11,260 you actually have someone 299 00:14:11,260 --> 00:14:11,980 signing the hash. 300 00:14:12,220 --> 00:14:13,340 So if I'm going to... 301 00:14:13,340 --> 00:14:14,760 If you have software on a website, 302 00:14:15,000 --> 00:14:15,740 I'm going to put 303 00:14:15,740 --> 00:14:16,600 my Trojan software 304 00:14:16,600 --> 00:14:19,380 and my Trojan MD5 up there. 305 00:14:20,300 --> 00:14:20,700 Okay. 306 00:14:22,040 --> 00:14:22,900 You can see the difference. 307 00:14:23,000 --> 00:14:24,100 Some people don't even have 308 00:14:24,100 --> 00:14:25,080 the MD5s up there. 309 00:14:25,920 --> 00:14:26,700 From my level, 310 00:14:27,160 --> 00:14:28,240 MD5s provides a low level 311 00:14:28,240 --> 00:14:28,600 of assurance. 312 00:14:28,760 --> 00:14:30,020 You have some confidence 313 00:14:30,020 --> 00:14:30,980 it hasn't been compromised, 314 00:14:31,140 --> 00:14:32,360 but not a great deal. 315 00:14:32,440 --> 00:14:33,560 You know that if it was compromised, 316 00:14:33,680 --> 00:14:34,440 where it was compromised, 317 00:14:34,600 --> 00:14:35,680 the web server that's providing you 318 00:14:35,680 --> 00:14:36,800 the signature and the software. 319 00:14:37,820 --> 00:14:38,620 With PGP, 320 00:14:38,620 --> 00:14:39,380 it's a little bit higher, 321 00:14:39,440 --> 00:14:41,280 but it's a whole big area 322 00:14:41,280 --> 00:14:41,960 to get into. 323 00:14:43,160 --> 00:14:44,940 And I do not see 324 00:14:44,940 --> 00:14:46,060 a lot of widespread use 325 00:14:46,060 --> 00:14:47,540 of digital signatures 326 00:14:47,540 --> 00:14:49,940 to assert that the code is correct 327 00:14:49,940 --> 00:14:52,140 and came from who it was supposed to. 328 00:14:56,800 --> 00:14:57,260 Development. 329 00:14:57,440 --> 00:14:58,180 This is the area 330 00:14:58,180 --> 00:14:59,660 that I'm going to want to focus on 331 00:15:01,500 --> 00:15:03,800 and the area where we have, 332 00:15:03,920 --> 00:15:04,520 I'll use the term, 333 00:15:04,540 --> 00:15:05,220 the least documentation. 334 00:15:06,140 --> 00:15:07,620 Because what we need to start with 335 00:15:07,620 --> 00:15:08,560 in theory 336 00:15:08,560 --> 00:15:09,720 is a high level description 337 00:15:09,720 --> 00:15:10,460 of what we want. 338 00:15:10,660 --> 00:15:11,800 That's going to be turned 339 00:15:11,800 --> 00:15:13,480 into requirements 340 00:15:13,480 --> 00:15:16,400 that get turned into security functions. 341 00:15:16,500 --> 00:15:17,540 That's the TSF. 342 00:15:18,820 --> 00:15:20,540 And then we're going to take 343 00:15:20,540 --> 00:15:21,160 those requirements. 344 00:15:21,320 --> 00:15:23,080 We're going to design some software 345 00:15:23,080 --> 00:15:24,680 based on modules 346 00:15:24,680 --> 00:15:27,000 or some sort of subgrouping. 347 00:15:27,020 --> 00:15:28,140 And we're going to explain how 348 00:15:28,140 --> 00:15:29,560 as we go down each level 349 00:15:29,560 --> 00:15:30,700 all the way until we get 350 00:15:30,700 --> 00:15:31,440 to the source code, 351 00:15:32,880 --> 00:15:35,000 where that function is being handled. 352 00:15:36,800 --> 00:15:38,300 And so you can see right now 353 00:15:38,300 --> 00:15:40,280 we have high level functional description 354 00:15:40,280 --> 00:15:41,760 and source code. 355 00:15:42,640 --> 00:15:44,560 Without really getting to know the code, 356 00:15:44,720 --> 00:15:46,440 you're having to jump from the top 357 00:15:46,440 --> 00:15:47,540 to the bottom. 358 00:15:47,580 --> 00:15:48,240 Or more specifically, 359 00:15:48,360 --> 00:15:49,220 you're starting at the bottom 360 00:15:49,220 --> 00:15:51,240 and then once you understand the code, 361 00:15:51,400 --> 00:15:53,400 you'll understand how they implemented 362 00:15:53,400 --> 00:15:55,440 that high level function they're describing. 363 00:15:59,000 --> 00:15:59,860 Guidance documents. 364 00:16:01,360 --> 00:16:03,640 That's a variety of guidance documents 365 00:16:03,640 --> 00:16:04,340 that are out there. 366 00:16:05,000 --> 00:16:05,700 In general, 367 00:16:05,820 --> 00:16:08,360 user documents are common. 368 00:16:09,740 --> 00:16:11,380 Administrator documents are common. 369 00:16:11,680 --> 00:16:14,120 And then some organizations 370 00:16:14,120 --> 00:16:16,020 have technical user. 371 00:16:16,160 --> 00:16:19,040 Some projects have additional ones. 372 00:16:20,420 --> 00:16:21,360 And this is just, 373 00:16:21,500 --> 00:16:23,640 I'll use the term use documentation. 374 00:16:23,840 --> 00:16:27,860 How do you run the software? 375 00:16:29,860 --> 00:16:30,980 Life cycle support. 376 00:16:31,360 --> 00:16:32,900 It says ad hoc, 377 00:16:33,040 --> 00:16:34,220 but if you look in the middle 378 00:16:34,220 --> 00:16:34,620 of the paragraph, 379 00:16:34,720 --> 00:16:34,980 you'll see that it says 380 00:16:34,980 --> 00:16:35,940 see flaw remediation. 381 00:16:36,920 --> 00:16:38,320 That is one area 382 00:16:38,320 --> 00:16:40,320 where you cannot argue 383 00:16:40,320 --> 00:16:42,000 that the open source community 384 00:16:42,000 --> 00:16:43,340 has a real advantage. 385 00:16:43,840 --> 00:16:46,060 Because when a vulnerability is identified, 386 00:16:46,940 --> 00:16:49,000 the ability to pull people in, 387 00:16:49,080 --> 00:16:50,440 especially if you say help, 388 00:16:50,620 --> 00:16:53,060 has no parallel in the commercial world. 389 00:16:56,940 --> 00:16:58,800 So that is one area 390 00:16:58,800 --> 00:17:00,500 where we do have an advantage. 391 00:17:00,780 --> 00:17:02,280 And it depends on the size of the project 392 00:17:02,280 --> 00:17:03,760 is your ability to pull things in. 393 00:17:08,900 --> 00:17:09,300 Yes? 394 00:17:09,560 --> 00:17:09,960 Yes. 395 00:17:26,380 --> 00:17:27,680 And that's the key issue. 396 00:17:27,740 --> 00:17:29,200 Should they choose to use them? 397 00:17:31,080 --> 00:17:31,480 Yes. 398 00:17:32,480 --> 00:17:32,880 Okay. 399 00:17:35,120 --> 00:17:35,640 Let's see. 400 00:17:35,960 --> 00:17:36,400 Testing. 401 00:17:37,760 --> 00:17:39,720 You can argue this both ways. 402 00:17:40,220 --> 00:17:42,160 You could say that we release the software, 403 00:17:42,260 --> 00:17:42,900 we let it to run, 404 00:17:43,020 --> 00:17:43,920 we allow people to feedback 405 00:17:43,920 --> 00:17:44,780 when it doesn't work, 406 00:17:44,860 --> 00:17:45,960 and that's our test model. 407 00:17:47,740 --> 00:17:49,260 You may have some projects 408 00:17:49,260 --> 00:17:51,280 that are extremely well organized, 409 00:17:51,320 --> 00:17:53,460 and they define test cases, 410 00:17:53,580 --> 00:17:54,740 and every time they make a change, 411 00:17:54,920 --> 00:17:56,000 they do regression testing 412 00:17:56,000 --> 00:17:57,060 to ensure that they haven't 413 00:17:57,060 --> 00:17:58,480 broke something else with that change. 414 00:18:00,120 --> 00:18:02,280 I did not see a lot of cases 415 00:18:02,280 --> 00:18:03,260 where that was there 416 00:18:03,260 --> 00:18:04,960 or that they provided the test cases, 417 00:18:04,960 --> 00:18:06,300 that they used for the results 418 00:18:06,300 --> 00:18:07,140 from those test cases. 419 00:18:07,900 --> 00:18:10,420 Using a common criteria model, 420 00:18:10,640 --> 00:18:12,400 that kind of evidence would be provided 421 00:18:12,400 --> 00:18:14,560 to some sort of reviewer to show. 422 00:18:14,840 --> 00:18:16,700 So going back to the assurance team 423 00:18:16,700 --> 00:18:17,300 trying to say, 424 00:18:17,360 --> 00:18:18,300 yes, you can trust this, 425 00:18:18,400 --> 00:18:20,380 that information isn't available, 426 00:18:20,480 --> 00:18:21,140 the test cases 427 00:18:21,140 --> 00:18:22,980 and the results from those test cases. 428 00:18:26,820 --> 00:18:27,400 Let's see. 429 00:18:27,700 --> 00:18:28,560 Vulnerability assessments. 430 00:18:30,840 --> 00:18:32,500 Really interesting topic. 431 00:18:33,220 --> 00:18:34,480 It's where you're looking 432 00:18:34,480 --> 00:18:35,140 at your design, 433 00:18:35,260 --> 00:18:35,760 and you're saying, 434 00:18:35,860 --> 00:18:37,180 how can someone screw with me? 435 00:18:37,820 --> 00:18:39,500 And then you document 436 00:18:39,500 --> 00:18:41,460 how they can't screw with you 437 00:18:41,460 --> 00:18:42,240 based on how you thought 438 00:18:42,240 --> 00:18:43,600 they could screw with them. 439 00:18:43,960 --> 00:18:45,660 A philosophy called abuse cases 440 00:18:45,660 --> 00:18:46,880 is the one I was introduced 441 00:18:46,880 --> 00:18:47,900 to kind of explain this. 442 00:18:48,860 --> 00:18:50,800 I haven't seen a lot of 443 00:18:50,800 --> 00:18:52,080 that kind of formality 444 00:18:52,080 --> 00:18:53,740 in the open source community. 445 00:18:55,760 --> 00:18:58,820 This is not to be construed 446 00:18:58,820 --> 00:19:00,120 with what's going on 447 00:19:00,120 --> 00:19:01,540 where you have people looking for holes 448 00:19:01,540 --> 00:19:03,120 that they can write exploits against. 449 00:19:03,220 --> 00:19:03,800 That's different. 450 00:19:04,600 --> 00:19:05,540 This is more, 451 00:19:05,600 --> 00:19:06,220 I'll use the term, 452 00:19:06,260 --> 00:19:07,020 internally driven 453 00:19:07,020 --> 00:19:08,300 versus someone trying 454 00:19:08,300 --> 00:19:09,100 to punch holes in it. 455 00:19:10,480 --> 00:19:11,520 If folks are interested, 456 00:19:11,720 --> 00:19:12,420 this sounds like something 457 00:19:12,420 --> 00:19:13,780 that could be worked on 458 00:19:13,780 --> 00:19:16,120 and built into a presentation 459 00:19:16,120 --> 00:19:16,960 for next year. 460 00:19:18,880 --> 00:19:20,300 But this is this year. 461 00:19:20,480 --> 00:19:21,680 So let me talk about 462 00:19:21,680 --> 00:19:22,800 development documentation. 463 00:19:24,840 --> 00:19:25,820 We need to understand 464 00:19:25,820 --> 00:19:26,520 what is the requirement? 465 00:19:26,660 --> 00:19:27,800 What am I looking for? 466 00:19:28,060 --> 00:19:29,260 From my perspective, 467 00:19:29,280 --> 00:19:30,840 I represent the teams 468 00:19:30,840 --> 00:19:32,300 that would look at 469 00:19:32,300 --> 00:19:33,220 open source software 470 00:19:33,220 --> 00:19:33,620 and say, 471 00:19:33,620 --> 00:19:34,880 yeah, we can trust it. 472 00:19:36,600 --> 00:19:39,120 And so what we would be looking for 473 00:19:39,120 --> 00:19:40,020 is two things. 474 00:19:40,100 --> 00:19:40,940 One, some document 475 00:19:40,940 --> 00:19:42,080 that captures the design philosophy 476 00:19:42,080 --> 00:19:44,880 and then this tracing 477 00:19:44,880 --> 00:19:46,500 down to the software 478 00:19:46,500 --> 00:19:48,680 and what tools are available. 479 00:19:49,020 --> 00:19:50,500 Before I start digging into that, 480 00:19:51,200 --> 00:19:52,480 I had someone 481 00:19:52,480 --> 00:19:54,000 look at my presentation 482 00:19:54,000 --> 00:19:54,760 who was involved 483 00:19:54,760 --> 00:19:56,380 in a couple major 484 00:19:56,380 --> 00:19:57,380 open source projects 485 00:19:57,380 --> 00:20:00,380 and gave me some insight 486 00:20:00,380 --> 00:20:02,620 into how not to do documentation, 487 00:20:03,620 --> 00:20:04,160 developer documentation. 488 00:20:05,060 --> 00:20:05,960 And so before I get into 489 00:20:05,960 --> 00:20:07,320 how I think it needs to be done, 490 00:20:07,460 --> 00:20:08,560 let me just emphasize 491 00:20:08,560 --> 00:20:09,420 that I'm acknowledging 492 00:20:09,420 --> 00:20:11,360 that there are a lot of ways 493 00:20:11,360 --> 00:20:12,240 to screw this up, 494 00:20:12,300 --> 00:20:13,720 a lot of really painful ways. 495 00:20:14,660 --> 00:20:15,980 An individual has worked 496 00:20:15,980 --> 00:20:16,620 in an organization 497 00:20:16,620 --> 00:20:17,640 where the documentation 498 00:20:17,640 --> 00:20:19,200 consisted of source code, 499 00:20:19,720 --> 00:20:20,200 comments, 500 00:20:20,260 --> 00:20:21,300 which was pseudocode 501 00:20:21,300 --> 00:20:22,240 and only the pseudocode 502 00:20:22,240 --> 00:20:23,260 before the actual code. 503 00:20:23,440 --> 00:20:24,640 It was so obvious 504 00:20:24,640 --> 00:20:25,720 to be useful and annoying. 505 00:20:28,920 --> 00:20:30,820 From a paper written 506 00:20:30,820 --> 00:20:32,760 on IC Sharp's website, 507 00:20:35,060 --> 00:20:35,980 Bernie Spaduto, 508 00:20:36,040 --> 00:20:37,560 I mispronounced the last name, 509 00:20:38,320 --> 00:20:40,880 wrote a paper in 2002, 510 00:20:41,140 --> 00:20:42,540 which kind of amazes me. 511 00:20:42,620 --> 00:20:43,800 It was on how to comment 512 00:20:43,800 --> 00:20:44,420 your code well. 513 00:20:44,820 --> 00:20:45,780 I was introduced 514 00:20:45,780 --> 00:20:48,260 to commenting back in 1982 515 00:20:48,260 --> 00:20:50,120 in my first programming class 516 00:20:50,120 --> 00:20:51,820 and it just surprises me 517 00:20:51,820 --> 00:20:52,580 that we're still writing 518 00:20:52,580 --> 00:20:53,400 how to write comments 519 00:20:53,400 --> 00:20:54,180 well in our source code. 520 00:20:55,160 --> 00:20:56,460 Obviously, we haven't fixed that 521 00:20:56,460 --> 00:20:57,140 and that helps me 522 00:20:57,140 --> 00:20:58,020 manage my expectations 523 00:20:58,020 --> 00:20:59,100 not to expect everybody 524 00:20:59,100 --> 00:20:59,500 to run out 525 00:20:59,500 --> 00:21:00,520 and develop developer 526 00:21:00,520 --> 00:21:01,340 documentation tomorrow. 527 00:21:02,180 --> 00:21:02,980 Baby steps. 528 00:21:03,900 --> 00:21:04,860 One of the things 529 00:21:04,860 --> 00:21:05,480 that he emphasizes 530 00:21:05,480 --> 00:21:07,840 is don't bury comments 531 00:21:07,840 --> 00:21:09,780 in your source code 532 00:21:09,780 --> 00:21:11,220 that have to do 533 00:21:11,220 --> 00:21:12,540 with configuration management issues 534 00:21:12,540 --> 00:21:13,760 that says, 535 00:21:13,860 --> 00:21:15,020 I did this to fix this. 536 00:21:15,400 --> 00:21:16,360 He recommends 537 00:21:16,360 --> 00:21:17,480 that goes up in front 538 00:21:17,480 --> 00:21:18,540 so that you have 539 00:21:18,540 --> 00:21:19,240 a versioning control 540 00:21:19,240 --> 00:21:20,020 for the files. 541 00:21:22,040 --> 00:21:23,360 It amazes me. 542 00:21:24,300 --> 00:21:25,400 Don't include comments 543 00:21:25,400 --> 00:21:26,460 that address the obvious. 544 00:21:27,080 --> 00:21:27,600 Apparently, 545 00:21:27,600 --> 00:21:28,400 some organizations 546 00:21:28,400 --> 00:21:30,620 have a real issue with this 547 00:21:30,620 --> 00:21:31,040 where they want 548 00:21:31,040 --> 00:21:32,460 everything commented. 549 00:21:34,680 --> 00:21:35,560 This reflects 550 00:21:35,560 --> 00:21:36,140 an earlier comment. 551 00:21:36,240 --> 00:21:37,140 Don't leave the design 552 00:21:37,140 --> 00:21:38,600 and the code out of sync. 553 00:21:38,880 --> 00:21:39,700 There may be times 554 00:21:39,700 --> 00:21:40,300 that you realize 555 00:21:40,300 --> 00:21:41,440 that you need to fix something 556 00:21:41,440 --> 00:21:42,520 that doesn't match the design. 557 00:21:43,240 --> 00:21:44,280 At the end of the day, 558 00:21:44,300 --> 00:21:44,840 they need to match. 559 00:21:45,040 --> 00:21:45,920 Don't wait until 560 00:21:45,920 --> 00:21:47,100 the end of the project 561 00:21:47,100 --> 00:21:47,820 where the code's written 562 00:21:47,820 --> 00:21:49,140 to write design documentation 563 00:21:49,140 --> 00:21:49,640 that explains 564 00:21:49,640 --> 00:21:50,320 how you ended up 565 00:21:50,320 --> 00:21:50,780 with what you got. 566 00:21:51,880 --> 00:21:52,680 They need to be 567 00:21:52,680 --> 00:21:53,540 kind of kept in sync. 568 00:21:55,080 --> 00:21:55,960 Most importantly, 569 00:21:56,660 --> 00:21:57,680 do not assume 570 00:21:57,680 --> 00:21:58,820 that well-commented 571 00:21:58,820 --> 00:21:59,840 modular code 572 00:21:59,840 --> 00:22:00,860 is enough. 573 00:22:02,040 --> 00:22:02,900 If you're looking 574 00:22:02,900 --> 00:22:03,600 for your project 575 00:22:03,620 --> 00:22:04,780 to be survivable 576 00:22:04,780 --> 00:22:05,680 beyond the one 577 00:22:05,680 --> 00:22:06,300 or two developers 578 00:22:06,300 --> 00:22:07,220 that are supporting it, 579 00:22:07,320 --> 00:22:08,660 that is not enough. 580 00:22:08,820 --> 00:22:09,960 You need some more documentation 581 00:22:09,960 --> 00:22:11,200 so that more people 582 00:22:11,200 --> 00:22:12,380 can pick up 583 00:22:12,380 --> 00:22:13,240 and run with your solution 584 00:22:13,240 --> 00:22:14,420 if you can't. 585 00:22:15,600 --> 00:22:17,080 So what am I looking for? 586 00:22:18,660 --> 00:22:20,240 We need in the documentation, 587 00:22:20,500 --> 00:22:21,180 developer documentation, 588 00:22:21,620 --> 00:22:23,080 to understand the flow 589 00:22:23,080 --> 00:22:23,700 and the purpose 590 00:22:23,700 --> 00:22:24,760 of what is there. 591 00:22:25,080 --> 00:22:25,980 It doesn't help us 592 00:22:25,980 --> 00:22:27,220 run the software any faster. 593 00:22:27,440 --> 00:22:28,520 It doesn't help us 594 00:22:28,520 --> 00:22:29,860 configure it. 595 00:22:30,000 --> 00:22:31,280 This is extra documentation 596 00:22:31,280 --> 00:22:32,160 I'm asking for. 597 00:22:32,400 --> 00:22:32,920 I mean, 598 00:22:32,960 --> 00:22:33,540 you know, 599 00:22:33,620 --> 00:22:34,680 years ago they said 600 00:22:34,680 --> 00:22:35,300 put comments 601 00:22:35,300 --> 00:22:35,960 in your source code. 602 00:22:36,160 --> 00:22:36,880 Then they said 603 00:22:36,880 --> 00:22:38,000 make user guides. 604 00:22:38,180 --> 00:22:39,020 Well, now I'm here saying 605 00:22:39,020 --> 00:22:41,160 and make developer documentation. 606 00:22:43,440 --> 00:22:45,320 To do a security review 607 00:22:45,320 --> 00:22:46,740 in a cost-effective manner, 608 00:22:47,420 --> 00:22:49,160 which is the reason I'm here, 609 00:22:49,820 --> 00:22:50,920 is there needs to be 610 00:22:50,920 --> 00:22:51,420 traceability 611 00:22:51,420 --> 00:22:54,060 between the functional description, 612 00:22:54,520 --> 00:22:55,460 what you're wanting to do, 613 00:22:55,580 --> 00:22:56,720 the high-level design, 614 00:22:57,120 --> 00:22:58,620 and then from the high-level design 615 00:22:58,620 --> 00:22:59,800 down to the low-level design, 616 00:23:00,020 --> 00:23:01,000 which for software 617 00:23:01,000 --> 00:23:02,160 is essentially your source code. 618 00:23:03,620 --> 00:23:05,040 It's important in a document 619 00:23:05,040 --> 00:23:06,220 other than the source code 620 00:23:06,220 --> 00:23:08,060 to capture your design philosophy. 621 00:23:09,120 --> 00:23:11,000 We need overall architecture. 622 00:23:11,400 --> 00:23:12,380 Pictures are nice. 623 00:23:13,600 --> 00:23:15,520 And some sort of explanation 624 00:23:15,520 --> 00:23:17,140 for why subsystems are there, 625 00:23:17,200 --> 00:23:18,200 why modules are there, 626 00:23:19,040 --> 00:23:20,400 why they're called, 627 00:23:21,400 --> 00:23:23,220 without having to go through 628 00:23:23,220 --> 00:23:24,100 the source code 629 00:23:24,100 --> 00:23:24,880 and understand that. 630 00:23:25,020 --> 00:23:27,700 Let us develop some expectations 631 00:23:27,700 --> 00:23:28,300 up front, 632 00:23:28,800 --> 00:23:29,860 and then as we go through, 633 00:23:29,940 --> 00:23:30,400 we'll understand 634 00:23:30,400 --> 00:23:31,220 what's written there. 635 00:23:32,500 --> 00:23:34,100 And as I said earlier, 636 00:23:34,240 --> 00:23:35,080 developing alternatives 637 00:23:35,080 --> 00:23:36,240 considered as a benefit 638 00:23:36,240 --> 00:23:38,520 to the developer community 639 00:23:38,520 --> 00:23:39,820 more than the assurance community. 640 00:23:41,180 --> 00:23:41,740 Also, 641 00:23:41,800 --> 00:23:44,200 and this is significant 642 00:23:44,200 --> 00:23:46,400 in the comments in the source code, 643 00:23:46,820 --> 00:23:49,620 is if you're doing protection, 644 00:23:50,440 --> 00:23:51,320 like balance checking, 645 00:23:51,640 --> 00:23:52,880 make sure that comment's 646 00:23:52,880 --> 00:23:53,520 in the source code. 647 00:23:54,360 --> 00:23:55,920 And then there are some tools 648 00:23:55,920 --> 00:23:57,300 that can highlight that. 649 00:23:59,800 --> 00:24:01,040 What are some of the tools 650 00:24:01,040 --> 00:24:01,200 that you can use to do that? 651 00:24:01,220 --> 00:24:01,760 Some of the tools that are available 652 00:24:01,760 --> 00:24:04,320 for creating developer documentation. 653 00:24:05,420 --> 00:24:06,980 Obviously, some of the easiest ones 654 00:24:06,980 --> 00:24:07,440 are text. 655 00:24:07,720 --> 00:24:08,920 On the Mozilla site, 656 00:24:09,040 --> 00:24:11,280 they have essentially a white paper 657 00:24:11,280 --> 00:24:13,200 that describes the design. 658 00:24:14,800 --> 00:24:16,660 That is an effort. 659 00:24:16,900 --> 00:24:19,000 You may not have the desire, 660 00:24:19,140 --> 00:24:19,760 the inclination, 661 00:24:19,880 --> 00:24:20,560 the writing skills, 662 00:24:20,720 --> 00:24:22,020 whatever term you want to use 663 00:24:22,020 --> 00:24:23,880 to produce a document like that. 664 00:24:25,280 --> 00:24:27,280 Where I think we need to focus on 665 00:24:27,280 --> 00:24:29,240 is the source code comments, 666 00:24:29,400 --> 00:24:30,160 and especially, 667 00:24:33,100 --> 00:24:34,440 making source code comments 668 00:24:34,440 --> 00:24:35,880 that a parser will recognize 669 00:24:35,880 --> 00:24:37,800 that will be able to pull those comments out 670 00:24:37,800 --> 00:24:38,880 and put them in a separate document. 671 00:24:39,060 --> 00:24:40,500 So you're having your documentation 672 00:24:40,500 --> 00:24:41,380 in one file, 673 00:24:41,500 --> 00:24:43,120 and then if someone wants to dig in, 674 00:24:43,200 --> 00:24:44,320 they can see that in a source code 675 00:24:44,320 --> 00:24:45,000 in another file. 676 00:24:46,480 --> 00:24:48,500 Flow charts for certain programs. 677 00:24:50,160 --> 00:24:50,960 UML diagrams. 678 00:24:51,080 --> 00:24:53,460 I have three types of them listed here. 679 00:24:54,220 --> 00:24:56,140 What are your classes that you're using? 680 00:24:57,560 --> 00:24:58,480 How are they called? 681 00:24:58,560 --> 00:24:59,180 What's the sequence? 682 00:24:59,180 --> 00:25:00,600 And how do they interact? 683 00:25:00,920 --> 00:25:02,820 And then for some unusual, 684 00:25:03,120 --> 00:25:03,880 I don't know if it's, 685 00:25:03,880 --> 00:25:05,540 I couldn't find a case, 686 00:25:05,600 --> 00:25:07,440 but this is a type of design documentation. 687 00:25:07,680 --> 00:25:09,400 Finite state machines and state charts, 688 00:25:09,520 --> 00:25:10,640 they're somewhat related 689 00:25:12,120 --> 00:25:14,200 for some very specific cases. 690 00:25:14,540 --> 00:25:16,300 I've seen people describe that 691 00:25:16,300 --> 00:25:17,860 as a technique to show error cases. 692 00:25:18,700 --> 00:25:20,360 But for an overall software, 693 00:25:21,880 --> 00:25:23,700 the major design document, 694 00:25:23,800 --> 00:25:26,280 that's probably heavy for most solutions. 695 00:25:29,180 --> 00:25:31,900 This is an example of a picture 696 00:25:31,900 --> 00:25:34,840 that would help someone begin to understand 697 00:25:34,840 --> 00:25:36,420 what the code is doing. 698 00:25:36,600 --> 00:25:38,660 This comes from one of the earlier versions 699 00:25:38,660 --> 00:25:39,900 of Password Safe. 700 00:25:41,380 --> 00:25:43,440 This picture is in a document 701 00:25:43,440 --> 00:25:45,400 that was written by Andrew Mulligan 702 00:25:45,400 --> 00:25:46,440 while he was in graduate school. 703 00:25:47,920 --> 00:25:49,380 And the good news is 704 00:25:49,380 --> 00:25:51,420 he's now a developer on the Password Safe project, 705 00:25:52,000 --> 00:25:53,860 which is, I think, the perfect situation. 706 00:25:55,060 --> 00:25:56,900 And he goes through and comments and says 707 00:25:56,900 --> 00:25:58,580 that what you see here is a design 708 00:25:58,580 --> 00:25:59,040 that basically, 709 00:25:59,040 --> 00:26:00,980 particularly keys events off a GUI. 710 00:26:01,220 --> 00:26:03,200 And although this might be good for initial, 711 00:26:03,460 --> 00:26:05,060 it's not good for a long-term solution. 712 00:26:05,420 --> 00:26:07,200 And for those who use Password Safe, 713 00:26:07,220 --> 00:26:08,400 you probably saw a big difference 714 00:26:09,180 --> 00:26:11,060 recently when they went to the new version. 715 00:26:12,000 --> 00:26:14,140 And those included his changes. 716 00:26:14,620 --> 00:26:15,420 I don't want to get into 717 00:26:15,420 --> 00:26:16,840 changing the design of the software. 718 00:26:16,940 --> 00:26:17,760 What I want to do is show 719 00:26:17,760 --> 00:26:19,520 this is an example of a picture 720 00:26:19,520 --> 00:26:20,260 that lets me know 721 00:26:20,740 --> 00:26:22,700 what are the pieces I would expect 722 00:26:22,700 --> 00:26:23,860 and how do they interact. 723 00:26:25,400 --> 00:26:25,780 Okay. 724 00:26:31,160 --> 00:26:32,480 I'm not the devil's advocate. 725 00:26:33,320 --> 00:26:35,420 I'm actually here to defend the devil's advocate. 726 00:26:35,640 --> 00:26:38,160 I talked to a developer in the commercial industry 727 00:26:38,160 --> 00:26:39,620 about this issue 728 00:26:40,380 --> 00:26:41,760 who agreed, you know, 729 00:26:41,760 --> 00:26:43,320 software development is software development. 730 00:26:43,580 --> 00:26:45,040 We have the same problems. 731 00:26:45,100 --> 00:26:46,080 We just have the ability 732 00:26:46,080 --> 00:26:47,880 to choose different ways to solve it. 733 00:26:48,260 --> 00:26:50,160 And he made the argument 734 00:26:50,160 --> 00:26:51,660 that commercial developers 735 00:26:51,660 --> 00:26:52,680 are going to solve it first. 736 00:26:53,260 --> 00:26:55,800 And I want to try to counter some of that. 737 00:26:56,480 --> 00:26:57,680 Actually, I'm going to counter 738 00:26:57,680 --> 00:26:58,780 two out of three at least. 739 00:26:59,040 --> 00:27:01,220 He emphasizes that 740 00:27:01,220 --> 00:27:02,960 the commercial developers 741 00:27:02,960 --> 00:27:03,840 are market-driven 742 00:27:03,840 --> 00:27:06,040 to develop the code correctly. 743 00:27:07,700 --> 00:27:10,260 There is a grain of truth to that, 744 00:27:10,380 --> 00:27:11,720 but there is a body of evidence 745 00:27:11,720 --> 00:27:13,080 to suggest otherwise. 746 00:27:15,200 --> 00:27:16,680 In the market, 747 00:27:16,760 --> 00:27:18,500 you have people's salary, 748 00:27:19,660 --> 00:27:21,020 professional reputations 749 00:27:21,020 --> 00:27:22,920 may come into play. 750 00:27:23,980 --> 00:27:25,820 But in general, 751 00:27:26,740 --> 00:27:28,500 the market pace 752 00:27:28,500 --> 00:27:29,840 is not driven by technical. 753 00:27:31,100 --> 00:27:32,500 In the open source community, 754 00:27:32,840 --> 00:27:34,600 the pressure is entirely reputation. 755 00:27:35,340 --> 00:27:36,680 You publish crap, 756 00:27:36,900 --> 00:27:38,660 people will recognize it for crap. 757 00:27:40,120 --> 00:27:42,160 And so, if there's a hole, 758 00:27:42,420 --> 00:27:44,180 your ability to fix that 759 00:27:44,180 --> 00:27:45,900 is going to convey to people 760 00:27:45,900 --> 00:27:47,520 confidence in whether they can use it. 761 00:27:48,700 --> 00:27:50,720 So, I think that 762 00:27:50,720 --> 00:27:51,820 the open source community 763 00:27:51,820 --> 00:27:53,340 is just as capable, 764 00:27:53,480 --> 00:27:54,460 maybe more capable, 765 00:27:55,500 --> 00:27:57,100 to develop code correctly. 766 00:27:59,040 --> 00:27:59,720 Second, 767 00:28:01,120 --> 00:28:02,900 if you're paying for software, 768 00:28:03,860 --> 00:28:05,240 you have certain demands 769 00:28:05,240 --> 00:28:05,840 for reliability. 770 00:28:08,640 --> 00:28:10,200 I can't explain it, 771 00:28:10,300 --> 00:28:11,900 but I believe 772 00:28:11,900 --> 00:28:13,040 those same demands 773 00:28:13,040 --> 00:28:14,220 for reliability exist 774 00:28:14,220 --> 00:28:16,160 in the open source community. 775 00:28:16,480 --> 00:28:18,060 Because I see the projects 776 00:28:18,060 --> 00:28:18,840 being developed, 777 00:28:19,060 --> 00:28:19,920 increased reliability, 778 00:28:20,340 --> 00:28:20,880 increased stability. 779 00:28:21,180 --> 00:28:22,800 There has to be some motive there, 780 00:28:22,980 --> 00:28:24,880 and it's us. 781 00:28:25,900 --> 00:28:27,660 We are demanding that reliability. 782 00:28:27,860 --> 00:28:28,480 It's us. 783 00:28:28,500 --> 00:28:30,320 The money is one thing, 784 00:28:30,780 --> 00:28:33,900 but I see our ability 785 00:28:33,900 --> 00:28:37,580 to influence the development 786 00:28:37,580 --> 00:28:39,240 and increase the reliability 787 00:28:39,240 --> 00:28:42,260 is an even match 788 00:28:42,260 --> 00:28:43,740 between the closed source 789 00:28:43,740 --> 00:28:44,600 and open source. 790 00:28:44,920 --> 00:28:45,380 Yes? 791 00:28:45,680 --> 00:28:46,820 A lot of companies 792 00:28:46,820 --> 00:28:47,980 don't solve their own 793 00:28:47,980 --> 00:28:49,340 support questions. 794 00:28:49,680 --> 00:28:50,840 They get a lot of revenue. 795 00:28:51,240 --> 00:28:51,840 Yes. 796 00:28:51,880 --> 00:28:53,080 Customers expect results 797 00:28:53,080 --> 00:28:53,920 as results, 798 00:28:54,000 --> 00:28:55,060 but they stop paying 799 00:28:55,060 --> 00:28:55,620 for the support. 800 00:28:55,920 --> 00:28:57,840 So, companies are very ready 801 00:28:57,840 --> 00:28:58,380 to be ready 802 00:28:58,380 --> 00:29:00,580 to do the job, 803 00:29:00,580 --> 00:29:01,980 and to be successful. 804 00:29:01,980 --> 00:29:03,140 And it's not easy 805 00:29:04,040 --> 00:29:04,780 when they don't have 806 00:29:05,180 --> 00:29:05,660 And I think that's 807 00:29:05,660 --> 00:29:06,380 what we need to do. 808 00:29:06,400 --> 00:29:06,620 to do the job. 809 00:29:06,780 --> 00:29:08,000 So, if someone 810 00:29:08,000 --> 00:29:09,580 comes to the argument 811 00:29:09,580 --> 00:29:10,220 that they need 812 00:29:10,220 --> 00:29:11,260 to get the code, 813 00:29:11,720 --> 00:29:12,680 the problem is 814 00:29:12,680 --> 00:29:13,060 that they don't 815 00:29:13,060 --> 00:29:13,800 deliver the documentation 816 00:29:13,800 --> 00:29:14,980 that they need to do it. 817 00:29:15,140 --> 00:29:15,800 That's the thing. 818 00:29:16,180 --> 00:29:17,120 So, that's the idea. 819 00:29:17,820 --> 00:29:18,300 Okay. 820 00:29:19,420 --> 00:29:19,900 Yes. 821 00:29:23,620 --> 00:29:24,100 Okay. 822 00:29:26,000 --> 00:29:27,120 The last is 823 00:29:27,120 --> 00:29:28,000 one that 824 00:29:28,000 --> 00:29:28,360 I'm going to do 825 00:29:28,380 --> 00:29:29,980 I don't know if I can argue. 826 00:29:30,300 --> 00:29:33,280 And that's the requirement to make the code approachable. 827 00:29:34,100 --> 00:29:36,600 If you dig down in the file that's on your CD, 828 00:29:36,700 --> 00:29:41,740 you'll see the actual language used, which may be cleaned up a bit. 829 00:29:41,960 --> 00:29:44,960 But essentially, everybody has their own perspective. 830 00:29:45,300 --> 00:29:47,760 If you're the one person developer on a piece of software, 831 00:29:48,040 --> 00:29:52,040 your perspective may be you don't understand why everybody else doesn't understand it 832 00:29:52,040 --> 00:29:53,340 or doesn't understand how to use it. 833 00:29:53,340 --> 00:29:55,500 And therefore, when someone says, 834 00:29:55,580 --> 00:29:59,780 you need to make your software more approachable so that we can look at it, 835 00:29:59,800 --> 00:30:03,280 maybe use it, you may be resistant to that. 836 00:30:06,500 --> 00:30:08,380 Obviously, that's personality dependent. 837 00:30:08,560 --> 00:30:13,900 And I don't know if the commercial world has an advantage 838 00:30:13,900 --> 00:30:16,720 other than the market forces to be able to keep their software updated 839 00:30:16,720 --> 00:30:20,080 to make their code any more approachable than we do. 840 00:30:25,700 --> 00:30:26,800 Path ahead. 841 00:30:28,300 --> 00:30:35,120 What I see happening is for the larger projects or more significant projects, 842 00:30:35,560 --> 00:30:37,400 they are doing more developer documentation. 843 00:30:38,150 --> 00:30:42,540 They have bought into the concept that for the project to survive, 844 00:30:42,800 --> 00:30:46,180 we need to capture why that code is there. 845 00:30:48,080 --> 00:30:51,660 The OpenSSL project is actually a special example for me. 846 00:30:51,780 --> 00:30:52,040 Okay. 847 00:30:52,520 --> 00:30:53,180 Okay. 848 00:30:53,340 --> 00:30:56,680 For those who support cryptography in the government, 849 00:30:56,840 --> 00:30:57,780 you may have heard of FIPS 140. 850 00:30:58,180 --> 00:31:01,660 It's basically an evaluation program or validation program, excuse me, 851 00:31:01,700 --> 00:31:04,660 that allows the use of cryptographic items. 852 00:31:06,260 --> 00:31:12,940 OpenSSL would be the first open source solution validated 853 00:31:12,940 --> 00:31:18,080 and validated source code level as opposed to the binary level. 854 00:31:18,380 --> 00:31:22,740 I mean, this is huge because now you're not having to validate 855 00:31:22,740 --> 00:31:26,260 every different version that's compiled, 856 00:31:27,280 --> 00:31:29,140 which is what we had to do in the past 857 00:31:29,140 --> 00:31:33,120 or what the people representing projects had to do in the past. 858 00:31:33,960 --> 00:31:35,700 If you go to the OpenSSL website, 859 00:31:35,900 --> 00:31:39,540 you'll see the effort that they've had to undergo to go through that process. 860 00:31:39,820 --> 00:31:44,420 It's not trivial, but it is not trivial for an open source project. 861 00:31:44,600 --> 00:31:48,120 It is a lot easier to support if you're in the commercial world 862 00:31:48,120 --> 00:31:49,920 because you can have the marketing person say, 863 00:31:50,100 --> 00:31:52,720 I can't sell this to the government until it's done. 864 00:31:52,720 --> 00:31:53,300 Validate it. 865 00:31:53,540 --> 00:31:55,760 And then the price tag isn't that high of a barrier. 866 00:31:55,900 --> 00:31:57,360 It's not like a common criteria evaluation 867 00:31:57,800 --> 00:32:00,840 where you're talking five to an order of magnitude higher 868 00:32:00,840 --> 00:32:04,220 in the cost between a FIPS 140 and a common criteria evaluation. 869 00:32:08,880 --> 00:32:11,600 In general, I think there is improved comments in the source code. 870 00:32:11,720 --> 00:32:13,840 I know I made that comment earlier about, you know, 871 00:32:13,860 --> 00:32:15,380 we're still trying to teach it 20 years later. 872 00:32:15,500 --> 00:32:18,200 I think we'll continually teach it because we have new students. 873 00:32:19,540 --> 00:32:22,020 I think we may need to look at how we, 874 00:32:23,020 --> 00:32:24,660 peer review those comments, 875 00:32:24,900 --> 00:32:27,080 and that's handled differently within projects. 876 00:32:27,520 --> 00:32:28,660 You know, they're human dynamics. 877 00:32:28,800 --> 00:32:29,680 Every team is different. 878 00:32:31,820 --> 00:32:36,080 I think that if we're going to develop developer documentation, 879 00:32:37,020 --> 00:32:40,320 the focus needs to be, as I said, let me back up a second. 880 00:32:40,600 --> 00:32:42,080 When I talked about development documentation, 881 00:32:42,440 --> 00:32:44,440 I talked about traceability from the top down. 882 00:32:44,580 --> 00:32:45,980 Let's talk about a high-level functional description, 883 00:32:46,260 --> 00:32:47,760 then our high-level design, 884 00:32:47,960 --> 00:32:49,480 then the low-level design and the implementation. 885 00:32:51,280 --> 00:32:52,440 I don't think, 886 00:32:52,720 --> 00:32:56,980 that we can go out and do it that way, top down. 887 00:32:57,400 --> 00:33:00,080 That's my opinion, and I'm more than, 888 00:33:00,120 --> 00:33:02,180 I would welcome it to be challenged, actually. 889 00:33:02,800 --> 00:33:05,960 I think that what we need to do is work actually from the bottom up, 890 00:33:06,020 --> 00:33:08,020 so that we, if we start from the top down, 891 00:33:08,060 --> 00:33:09,200 we actually have a place to land. 892 00:33:09,880 --> 00:33:13,500 And so the focus needs to be on making the comments in the source code 893 00:33:13,500 --> 00:33:15,720 that reflect the design decisions. 894 00:33:17,400 --> 00:33:19,580 And the reason is, that's where we're working now. 895 00:33:19,680 --> 00:33:20,480 We're in the code now. 896 00:33:20,700 --> 00:33:22,700 I'm not, you're not asking for a new document. 897 00:33:22,700 --> 00:33:25,440 I'm just asking to improve the documents that exist now. 898 00:33:27,300 --> 00:33:30,660 The other thing is, the tools are available now 899 00:33:31,040 --> 00:33:33,740 to help document what's in the source code, 900 00:33:34,240 --> 00:33:35,700 to parse through the source code. 901 00:33:35,800 --> 00:33:39,280 Java docs is the example that I was introduced to. 902 00:33:40,020 --> 00:33:42,120 It's able to pull that up and pull it together. 903 00:33:42,860 --> 00:33:45,160 And so we're not having to talk about wrestling 904 00:33:45,160 --> 00:33:48,660 with some sort of drawing program to create UML diagrams. 905 00:33:50,000 --> 00:33:51,720 You know, it's relatively straightforward. 906 00:33:51,940 --> 00:33:52,680 Learn a few tests. 907 00:33:52,680 --> 00:33:53,600 You know, you can create a set of tags and all of a sudden, 908 00:33:53,640 --> 00:33:58,280 you can create a set of documentation without a significant increase in effort. 909 00:33:59,600 --> 00:34:03,480 And as I said, I think the effort needs to be driven from the bottom up. 910 00:34:06,320 --> 00:34:07,440 Kind of wrap things up. 911 00:34:09,340 --> 00:34:13,080 What I don't know, I don't know how to motivate the folks 912 00:34:13,080 --> 00:34:15,260 who are developing code to write more documentation. 913 00:34:16,480 --> 00:34:18,060 I mean, I've heard your arguments before. 914 00:34:18,300 --> 00:34:21,540 You know, you're, we're commenting the source code. 915 00:34:21,540 --> 00:34:23,100 Now we're having to create a user guide. 916 00:34:23,280 --> 00:34:27,920 And now you want me to create a document that no one but me is going to use. 917 00:34:28,240 --> 00:34:29,320 And the answer is yes. 918 00:34:30,060 --> 00:34:30,660 I do. 919 00:34:30,760 --> 00:34:31,240 I want that. 920 00:34:31,280 --> 00:34:33,280 But I don't know how to motivate people to say that. 921 00:34:34,340 --> 00:34:38,000 If you're, if the software is a security solution, like password safe, 922 00:34:38,080 --> 00:34:40,800 someone may need to have some degree of confidence in it. 923 00:34:41,000 --> 00:34:44,560 It's more important than some other solutions, at least to me. 924 00:34:44,600 --> 00:34:45,680 That's my bias, of course. 925 00:34:47,400 --> 00:34:50,740 The other thing, and this is an important issue, 926 00:34:50,820 --> 00:34:51,240 is, 927 00:34:51,540 --> 00:34:53,520 I don't know how much documentation is enough. 928 00:34:53,740 --> 00:34:55,920 I also think the commercial world has that problem. 929 00:34:57,600 --> 00:35:02,720 But I do have a theory on how to determine how much is enough. 930 00:35:04,680 --> 00:35:06,140 And I'll get to that last. 931 00:35:06,420 --> 00:35:08,160 What I do know, tools are available. 932 00:35:08,300 --> 00:35:10,300 They vary by quality. 933 00:35:10,540 --> 00:35:12,160 They vary by ease of use. 934 00:35:12,980 --> 00:35:16,440 But in general, if they, you know, as with all things, 935 00:35:16,500 --> 00:35:18,040 people start using, they provide comment, 936 00:35:18,120 --> 00:35:20,600 and the tools will improve to what we need. 937 00:35:21,540 --> 00:35:24,780 And I believe this community is going to solve the problem 938 00:35:24,780 --> 00:35:27,460 better than the commercial world. 939 00:35:27,740 --> 00:35:30,760 And that the lessons from this community 940 00:35:30,760 --> 00:35:34,200 will actually be brought into the commercial world 941 00:35:34,200 --> 00:35:35,120 as best as they can. 942 00:35:35,300 --> 00:35:37,520 So I think it's our opportunity to direct 943 00:35:37,520 --> 00:35:39,420 different ways of handling it back. 944 00:35:40,780 --> 00:35:43,420 And the advantage we have, of course, is the open. 945 00:35:43,940 --> 00:35:45,140 That's a significant piece. 946 00:35:45,200 --> 00:35:46,440 Exchange of information. 947 00:35:47,560 --> 00:35:50,880 We're able to say, you know, this is a bad design. 948 00:35:50,980 --> 00:35:51,420 And someone says, 949 00:35:51,750 --> 00:35:52,880 okay, it's stunk. 950 00:35:53,760 --> 00:35:56,160 And we're able to move on from that point. 951 00:35:56,360 --> 00:35:59,280 It's different than a proprietary development environment 952 00:35:59,280 --> 00:36:01,180 where that may be a closed community. 953 00:36:02,760 --> 00:36:06,160 And that conversation doesn't live beyond that moment. 954 00:36:07,360 --> 00:36:08,320 Feedback priorities. 955 00:36:08,460 --> 00:36:11,360 That deals with how much documentation is too much. 956 00:36:11,620 --> 00:36:14,160 As I said, there's two communities that can benefit 957 00:36:14,160 --> 00:36:15,120 from development documentation. 958 00:36:15,740 --> 00:36:16,980 It's development team themselves, 959 00:36:17,260 --> 00:36:19,080 and then assessment groups. 960 00:36:19,440 --> 00:36:21,400 So how much documentation, 961 00:36:21,420 --> 00:36:22,660 and enough is enough. 962 00:36:23,300 --> 00:36:25,760 The way I would determine that is, 963 00:36:25,900 --> 00:36:27,280 what does the team need? 964 00:36:27,320 --> 00:36:28,520 What can the team benefit from? 965 00:36:29,240 --> 00:36:31,340 And the view that you have to have is, 966 00:36:31,400 --> 00:36:34,780 if we wanted to accelerate bringing someone on board to help, 967 00:36:35,320 --> 00:36:36,440 to bring someone onto the team. 968 00:36:36,840 --> 00:36:38,160 The second piece is, 969 00:36:38,340 --> 00:36:40,720 if your solution's being looked at, 970 00:36:42,820 --> 00:36:44,420 incorporating some of those lessons learned 971 00:36:44,420 --> 00:36:47,100 from somebody conducting some sort of assurance review, 972 00:36:48,040 --> 00:36:51,180 you know, and letting that kind of guide, 973 00:36:51,420 --> 00:36:52,260 what is enough? 974 00:36:53,180 --> 00:36:57,620 I certainly think that what Common Criteria is looking for 975 00:36:57,620 --> 00:36:59,180 is heavy, 976 00:37:01,000 --> 00:37:03,500 and prohibitively so in a lot of cases. 977 00:37:04,000 --> 00:37:06,680 And so we need to be able to, 978 00:37:07,160 --> 00:37:08,180 I'll use the term experiment, 979 00:37:08,360 --> 00:37:10,120 find out what works and what doesn't, 980 00:37:10,120 --> 00:37:11,720 and then share those lessons learned. 981 00:37:14,040 --> 00:37:15,460 I'll open the floor to questions. 982 00:37:16,220 --> 00:37:16,820 Yes? 983 00:37:16,920 --> 00:37:21,060 Do you have any comments or impressions on the OpenBSD? 984 00:37:22,460 --> 00:37:23,080 No. 985 00:37:23,710 --> 00:37:26,520 I mean, I'm aware of it somewhat, 986 00:37:26,680 --> 00:37:27,880 but I'm not current. 987 00:37:28,080 --> 00:37:29,420 My education isn't current, 988 00:37:29,500 --> 00:37:31,540 so I don't want to say the wrong thing, 989 00:37:31,640 --> 00:37:32,820 which I could. 990 00:37:33,040 --> 00:37:33,660 Yes? 991 00:37:35,340 --> 00:37:35,960 Yes. 992 00:37:38,900 --> 00:37:39,520 Yes. 993 00:37:48,260 --> 00:37:48,820 Yes. 994 00:37:49,540 --> 00:37:50,160 Yes. 995 00:37:50,760 --> 00:37:51,380 Yes. 996 00:37:54,480 --> 00:37:57,160 , you're right. 997 00:38:07,220 --> 00:38:07,700 Yes. 998 00:38:07,720 --> 00:38:08,040 Yes. 999 00:38:08,700 --> 00:38:09,180 Yes. 1000 00:38:09,240 --> 00:38:09,560 Okay. 1001 00:38:10,080 --> 00:38:11,680 Let me summarize your question 1002 00:38:11,680 --> 00:38:12,600 and see if I got it correctly. 1003 00:38:12,800 --> 00:38:13,180 And that's basically, 1004 00:38:13,300 --> 00:38:15,200 what's my intent with this development documentation? 1005 00:38:15,800 --> 00:38:18,780 And that goes back to the development 1006 00:38:18,780 --> 00:38:21,400 of what the term I was taught was about, 1007 00:38:21,420 --> 00:38:28,060 use cases and how to refute those. In the example with Derek's Bruton Nuke D-Ban, it's 1008 00:38:28,060 --> 00:38:33,600 possible that someone could write a utility that rather than wiping the disk, they actually 1009 00:38:33,600 --> 00:38:38,920 encrypt the information with their key or some way to hide the key. So that if all you're 1010 00:38:38,920 --> 00:38:43,080 doing is when you're done wiping, you verify that there's just garbage on the disk, the 1011 00:38:43,080 --> 00:38:49,180 encrypted traffic would look like garbage. And then, you know, somebody waits at the sales 1012 00:38:49,180 --> 00:38:53,060 where they're getting rid of defense equipment or government equipment or health care equipment 1013 00:38:53,060 --> 00:38:57,020 and then buys up the hard disks and see if they have some information on it. You get 1014 00:38:57,020 --> 00:39:03,140 one of the Simpson-Garfinkel papers written again. So what I would look at is how do I 1015 00:39:03,140 --> 00:39:08,020 know that it's actually wiping it versus then reading, encrypting, and then writing 1016 00:39:08,020 --> 00:39:11,940 it back down. And so I look at the developer documentation, I find out where that process 1017 00:39:11,940 --> 00:39:15,960 should be, and then I go and look at it and see how it's executed. So I'm not having 1018 00:39:15,960 --> 00:39:19,160 to look at the whole code. I mean, D-Ban's a wonderful, again, 1019 00:39:19,160 --> 00:39:26,380 example for this because the piece that is really D-Ban is really small, but it sits 1020 00:39:26,380 --> 00:39:31,940 on top of a bootable CD or a bootable floppy. And so if someone hasn't looked at the software 1021 00:39:31,940 --> 00:39:36,760 that makes up that bootable floppy or bootable CD, guess what? Everything is in scope. You 1022 00:39:36,760 --> 00:39:40,900 have to look, you have to follow it through, and you're at that point and still there is 1023 00:39:40,900 --> 00:39:47,020 no development documentation to guide you down the path to verify that. Yes? 1024 00:39:47,440 --> 00:39:49,140 Yes. Have you ever looked at the software that makes up that bootable floppy or bootable CD? 1025 00:39:49,140 --> 00:39:55,240 Has there been any objective studies of the relative likelihood of vulnerabilities being 1026 00:39:55,240 --> 00:40:00,060 exploited on commercial software and comparable open source software? 1027 00:40:02,600 --> 00:40:11,740 I don't know. I'm going to repeat the question. Has there been a study of the open source 1028 00:40:11,740 --> 00:40:16,800 versus proprietary software and the ability to exploit the different versions? You know, 1029 00:40:16,820 --> 00:40:17,440 is there a different way? 1030 00:40:19,620 --> 00:40:22,760 Or how they're exploited, I guess is more correctly. 1031 00:40:24,480 --> 00:40:25,440 Or how frequent. 1032 00:40:25,520 --> 00:40:25,740 Okay. 1033 00:40:25,800 --> 00:40:28,420 How frequently vulnerabilities are exploited is the metric, 1034 00:40:28,440 --> 00:40:32,420 and you're comparing open source versus proprietary software. 1035 00:40:32,880 --> 00:40:35,440 And I'm not familiar. 1036 00:40:35,500 --> 00:40:37,460 I can't pull up a study off the top of my head. 1037 00:40:37,600 --> 00:40:38,200 Yes, please. 1038 00:40:38,760 --> 00:40:39,580 That'd be funny. 1039 00:40:39,700 --> 00:40:43,660 It all sounds good, and I'm just saying it's a practical sort of example. 1040 00:40:43,660 --> 00:40:47,780 Just given the only reason why I've never come in and code is just so that I don't, you know, 1041 00:40:47,800 --> 00:40:48,880 get fucked down the line. 1042 00:40:49,200 --> 00:40:54,640 I don't know why I did that, but documentation takes at least as long as actually writing in a code. 1043 00:40:54,700 --> 00:40:55,620 I think sometimes longer. 1044 00:40:56,640 --> 00:40:58,800 This all sounds nice and good, but practically speaking, 1045 00:40:58,940 --> 00:41:04,060 given that a lot of players, they probably don't tell from the fact that they can code obscure. 1046 00:41:04,580 --> 00:41:05,900 The more obscure, the better. 1047 00:41:06,640 --> 00:41:08,700 How do you think practice is ever going to get us there? 1048 00:41:10,800 --> 00:41:13,360 The thing that has to be looked at, I understand that. 1049 00:41:13,360 --> 00:41:19,620 That was exactly the impression given to me by the one individual who had reviewed my presentation 1050 00:41:19,620 --> 00:41:23,300 before I came here was, you know, well-commented code is enough. 1051 00:41:24,120 --> 00:41:25,300 That's all you ever need. 1052 00:41:25,700 --> 00:41:32,180 And all I can say is people who have done a lot more software development 1053 00:41:33,820 --> 00:41:37,820 have written that if you don't have that design captured 1054 00:41:38,320 --> 00:41:41,460 and the comments aren't in the source code so folks can understand, 1055 00:41:41,840 --> 00:41:43,080 that when you have to go back. 1056 00:41:43,360 --> 00:41:48,440 to fix something, you will spend longer fixing it than you will have 1057 00:41:48,440 --> 00:41:50,640 if you had written the documentation in the first place. 1058 00:41:50,980 --> 00:41:52,720 I mean, that's the real advantage. 1059 00:41:52,900 --> 00:41:55,020 You have to be, I mean, you may have to run into those situations 1060 00:41:55,020 --> 00:41:56,480 where it's a teaching point. 1061 00:41:56,680 --> 00:41:58,440 You had a hard time fixing that, didn't you? 1062 00:41:58,520 --> 00:42:01,280 Well, it might have been easier if we had the documentation in the first place. 1063 00:42:05,460 --> 00:42:08,280 Let me ask you again, software development, 1064 00:42:08,400 --> 00:42:12,600 a lot of companies say they're developing a process with a high level of requirements 1065 00:42:12,600 --> 00:42:13,260 for your mechanism. 1066 00:42:13,360 --> 00:42:17,940 And in the market, engineering then writes a very detailed design document. 1067 00:42:18,320 --> 00:42:22,580 And that design document gets reviewed, gets the requirements, 1068 00:42:23,060 --> 00:42:27,780 and for its own internal consistency before people start to write code. 1069 00:42:28,000 --> 00:42:29,040 At least we do. 1070 00:42:29,400 --> 00:42:34,660 And so, QA people, I don't mean QA, commercial companies, 1071 00:42:34,880 --> 00:42:37,760 most companies do have quality assurance routes. 1072 00:42:37,980 --> 00:42:42,620 They do look at all the documentation in order to understand how to QA the code. 1073 00:42:43,360 --> 00:42:44,260 They don't have what they need. 1074 00:42:44,400 --> 00:42:46,220 They can shut down the project, by the way. 1075 00:42:46,300 --> 00:42:47,720 The box is marked in white. 1076 00:42:48,220 --> 00:42:51,060 And they will shut down the project or shut down the schedule 1077 00:42:51,060 --> 00:42:54,140 until they get the information they need properly to QA 1078 00:42:54,140 --> 00:42:57,440 because their names are on the line, as much as anybody else's. 1079 00:42:58,840 --> 00:43:04,540 I have yet to hear about a formal QA process in open source, although I didn't even know. 1080 00:43:04,680 --> 00:43:05,920 What companies have worked for you? 1081 00:43:06,040 --> 00:43:06,980 Well, not now. 1082 00:43:07,240 --> 00:43:07,680 . 1083 00:43:09,220 --> 00:43:09,660 Okay. 1084 00:43:10,640 --> 00:43:12,960 I've worked with a lot of companies like Sun. 1085 00:43:13,980 --> 00:43:14,380 . 1086 00:43:18,340 --> 00:43:18,740 Okay. 1087 00:43:19,140 --> 00:43:23,740 Let me just answer with a point is that in the open source community, 1088 00:43:23,940 --> 00:43:26,480 there is no QA group that would prevent you from publishing. 1089 00:43:26,800 --> 00:43:28,860 I mean, I actually look at that as an advantage. 1090 00:43:31,340 --> 00:43:35,680 If we have that as a separate process, then all of a sudden you can say, okay, that's great. 1091 00:43:36,040 --> 00:43:38,660 If people who are looking at code and reviewing it, 1092 00:43:38,700 --> 00:43:41,100 I'm not just talking about finding exploitable vulnerabilities, 1093 00:43:41,100 --> 00:43:44,980 but actually doing a review that is somewhat comprehensive, 1094 00:43:45,140 --> 00:43:49,020 were to publish that and make that more open, that would be great. 1095 00:43:49,780 --> 00:43:53,080 There was an attempt to try to create that. 1096 00:43:54,400 --> 00:43:54,920 . 1097 00:43:56,060 --> 00:43:59,660 And that effort, oh, boy, I can't remember the name of it. 1098 00:44:01,800 --> 00:44:02,480 All right. 1099 00:44:02,580 --> 00:44:02,920 . 1100 00:44:02,920 --> 00:44:03,840 No. 1101 00:44:03,940 --> 00:44:04,140 . 1102 00:44:05,280 --> 00:44:05,800 Okay. 1103 00:44:06,440 --> 00:44:07,180 I can't remember the name. 1104 00:44:07,280 --> 00:44:10,880 There was a website that was going to collect. . . 1105 00:44:10,880 --> 00:44:11,080 Oh. 1106 00:44:11,080 --> 00:44:13,320 ... ironically assessments, reviews of software. 1107 00:44:13,680 --> 00:44:17,320 And essentially what happened was they shut it down because they couldn't get funding, 1108 00:44:17,400 --> 00:44:19,940 they couldn't get funding because the only people writing reviews 1109 00:44:19,940 --> 00:44:23,100 were a few graduate students of one professor at one university. 1110 00:44:25,480 --> 00:44:28,680 We're obviously not ready for that, otherwise it would have happened. 1111 00:44:29,040 --> 00:44:31,260 And I don't know how to get to that point, 1112 00:44:31,480 --> 00:44:36,180 but that would be really nice is to have a body of documentation of people 1113 00:44:36,180 --> 00:44:40,500 who are looking at code comprehensively and saying, this is what I looked at, 1114 00:44:40,500 --> 00:44:41,200 And these are the results. 1115 00:44:42,620 --> 00:44:43,060 Yes. 1116 00:45:10,860 --> 00:45:11,340 . 1117 00:45:17,980 --> 00:45:20,420 Having a solution like that would do wonders, 1118 00:45:21,080 --> 00:45:23,040 but that's going to apply for the things 1119 00:45:23,040 --> 00:45:25,860 that would get bundled with an operating system, 1120 00:45:25,960 --> 00:45:27,000 and that's the only limitation. 1121 00:45:27,300 --> 00:45:30,460 But I think that's a good concept for that. 1122 00:45:31,560 --> 00:45:32,040 Yes. 1123 00:45:33,040 --> 00:45:34,680 I'd like to say that, you know, 1124 00:45:35,900 --> 00:45:37,960 most programmers can be self-taught. 1125 00:45:38,040 --> 00:45:40,040 They can be able to self-taught. 1126 00:45:40,500 --> 00:45:44,060 A self-taught documentation style isn't common. 1127 00:45:45,400 --> 00:45:49,020 In reality, you need to be competent to examine a documentation 1128 00:45:49,560 --> 00:45:52,340 or a process that you serve. 1129 00:45:52,580 --> 00:45:54,860 I would be pretty good at developing other methods, 1130 00:45:55,060 --> 00:45:57,080 a lot of little anecdotes, little concepts, 1131 00:45:57,320 --> 00:46:00,520 but none that is very, very easy to explain the whole thing. 1132 00:46:00,900 --> 00:46:02,560 I really can't write documentation, 1133 00:46:02,760 --> 00:46:06,400 so somebody else may not know how to start on that. 1134 00:46:06,440 --> 00:46:06,920 Okay. 1135 00:46:06,960 --> 00:46:09,500 And what we may want to do is revisit 1136 00:46:09,500 --> 00:46:10,480 at least my implementation 1137 00:46:10,500 --> 00:46:11,860 of an expression of an earlier situation, 1138 00:46:12,180 --> 00:46:13,080 and that's with user guides. 1139 00:46:15,220 --> 00:46:17,220 A lot of programmers out there, 1140 00:46:17,300 --> 00:46:20,840 when it comes to explaining how to use their software, 1141 00:46:21,540 --> 00:46:22,340 the English skills, 1142 00:46:23,040 --> 00:46:24,980 they're not as well as their coding skills. 1143 00:46:25,180 --> 00:46:26,280 I guess that's the right way to say it. 1144 00:46:26,960 --> 00:46:28,220 Is that plain enough? 1145 00:46:28,860 --> 00:46:30,420 And so what happened? 1146 00:46:30,760 --> 00:46:32,660 We didn't stop writing user guides. 1147 00:46:32,880 --> 00:46:36,040 We found people in the community whose skill was English 1148 00:46:36,040 --> 00:46:39,120 who would work with this programmer and translate it. 1149 00:46:39,120 --> 00:46:41,580 Well, maybe what we need to do is open up and say, 1150 00:46:41,680 --> 00:46:45,180 are there people out there who aren't necessarily programmers 1151 00:46:45,700 --> 00:46:50,340 but might do more focused on vulnerability assessments, 1152 00:46:50,700 --> 00:46:53,760 on architecture, on just general discussions? 1153 00:46:54,680 --> 00:46:57,700 Open up the body larger than just being a programmer. 1154 00:46:57,820 --> 00:47:01,180 You don't need to have some sort of programmer badge to participate. 1155 00:47:02,000 --> 00:47:04,320 And there are no bars that I saw. 1156 00:47:04,540 --> 00:47:05,880 I mean, there's a lot of projects out there 1157 00:47:05,880 --> 00:47:07,180 when you go through SourceForge 1158 00:47:07,180 --> 00:47:08,400 where you'll see team members 1159 00:47:08,400 --> 00:47:09,300 and their roles are identified. 1160 00:47:09,940 --> 00:47:13,080 Some of them are program manager or project manager. 1161 00:47:13,360 --> 00:47:14,260 You've got developers. 1162 00:47:14,340 --> 00:47:15,220 You have documentations. 1163 00:47:15,240 --> 00:47:16,140 You've got test specialists. 1164 00:47:17,020 --> 00:47:18,520 Lots of people who have different labels. 1165 00:47:19,720 --> 00:47:21,480 This may need to be another label. 1166 00:47:23,140 --> 00:47:26,460 This may be something where we have some people try 1167 00:47:26,460 --> 00:47:28,200 and then just open it up and say, 1168 00:47:28,240 --> 00:47:29,000 hey, comment on this. 1169 00:47:29,180 --> 00:47:33,200 Find people who have experience doing this documentation 1170 00:47:33,200 --> 00:47:34,720 and saying, how does this work? 1171 00:47:36,840 --> 00:47:37,260 Yes? 1172 00:47:38,400 --> 00:47:38,500 All right. 1173 00:47:38,540 --> 00:47:41,920 So in terms of using documentation to verify a program, 1174 00:47:42,920 --> 00:47:45,280 what happens if you develop a development? 1175 00:47:46,200 --> 00:47:48,120 Comment one way to develop a development. 1176 00:47:48,480 --> 00:47:48,960 Okay. 1177 00:47:49,440 --> 00:47:51,160 Let me go back to my methodology, 1178 00:47:51,160 --> 00:47:54,620 which is I'm going to develop what I call an abuse case 1179 00:47:54,620 --> 00:47:57,160 and say this is what I think the program could do. 1180 00:47:57,560 --> 00:48:00,140 And then what I have to do is go through the design documentation 1181 00:48:00,140 --> 00:48:02,060 which really just aims my review. 1182 00:48:02,700 --> 00:48:05,480 And then the end result is I'm going to look in the source code 1183 00:48:05,480 --> 00:48:07,720 and make sure that it's actually implementing 1184 00:48:07,720 --> 00:48:08,860 what it claimed to implement. 1185 00:48:10,540 --> 00:48:13,640 And the quality of that review is obviously going to vary 1186 00:48:13,640 --> 00:48:14,900 by the skill of the reviewer. 1187 00:48:16,140 --> 00:48:19,400 My expertise is at the higher level, developing the abuse cases, 1188 00:48:19,560 --> 00:48:20,680 not at the lower level. 1189 00:48:21,060 --> 00:48:22,240 You know, is this, you know, 1190 00:48:22,240 --> 00:48:24,380 were there any holes in how this was programmed? 1191 00:48:25,080 --> 00:48:25,560 Okay. 1192 00:48:27,420 --> 00:48:27,900 Yes? 1193 00:48:29,320 --> 00:48:29,800 . 1194 00:48:32,360 --> 00:48:32,840 . 1195 00:48:35,980 --> 00:48:36,500 . 1196 00:48:46,220 --> 00:48:46,740 Okay. 1197 00:48:48,600 --> 00:48:49,280 That's good. 1198 00:48:49,460 --> 00:48:52,600 The other site that gave me a tremendous list of tools 1199 00:48:52,600 --> 00:48:54,320 is a tool called Doxygen. 1200 00:48:55,420 --> 00:48:58,900 They have a list on that website of both the non-commercial 1201 00:48:58,900 --> 00:48:59,700 and commercial tools. 1202 00:49:00,700 --> 00:49:01,480 As I said, 1203 00:49:01,480 --> 00:49:05,660 I'm convinced that the tools are there for the beginning, 1204 00:49:05,800 --> 00:49:06,400 the beginning steps. 1205 00:49:06,720 --> 00:49:11,700 But obviously we need more practice working with it as a refinement. 1206 00:49:12,480 --> 00:49:14,460 One last question? 1207 00:49:15,780 --> 00:49:16,420 . 1208 00:49:18,920 --> 00:49:19,560 . 1209 00:49:19,560 --> 00:49:21,100 . 1210 00:49:22,820 --> 00:49:24,220 . 1211 00:49:34,480 --> 00:49:35,880 . 1212 00:49:37,440 --> 00:49:38,840 . 1213 00:49:38,840 --> 00:49:38,920 . 1214 00:49:38,920 --> 00:49:39,020 . 1215 00:49:39,020 --> 00:49:39,540 . 1216 00:49:40,820 --> 00:49:41,260 . 1217 00:49:41,780 --> 00:49:43,820 Getting ready to get kicked off the stage, 1218 00:49:44,160 --> 00:49:45,840 let me make a shameless plug, 1219 00:49:46,040 --> 00:49:47,240 for Geekwear's, 1220 00:49:47,240 --> 00:49:48,300 if you like this T-shirt, 1221 00:49:48,520 --> 00:49:50,080 ten dollars in the vendor area. 1222 00:49:51,260 --> 00:49:51,700 . 1223 00:49:53,140 --> 00:49:53,580 . 1224 00:49:53,580 --> 00:49:53,960 . 1225 00:49:53,960 --> 00:49:54,500 . 1226 00:49:54,500 --> 00:49:55,080 . 1227 00:49:55,080 --> 00:49:55,420 . 1228 00:49:55,420 --> 00:49:55,480 . 1229 00:49:56,580 --> 00:49:57,020 . 1230 00:50:00,320 --> 00:50:00,760 . 1231 00:50:00,760 --> 00:50:00,780 . 1232 00:50:00,780 --> 00:50:04,620 I'm giving you a reminder that the dot-com surveys won't happen in this morning at 4 o'clock. 1233 00:50:04,820 --> 00:50:11,480 We need everybody to exit the room to my right. 1234 00:50:11,660 --> 00:50:15,960 We cannot have people exiting that way as we have a very long queue for the next presentation. 1235 00:50:16,720 --> 00:50:20,040 Hence, if you'd like to see the next presentation, we are asking that you exit. 1236 00:50:20,440 --> 00:50:23,820 Also, I spoke incredibly about the Credit Card Network's talk. 1237 00:50:23,980 --> 00:50:25,140 I'm going to talk about it next. 1238 00:50:25,360 --> 00:50:27,500 That talk is at 3 o'clock. 1239 00:50:28,300 --> 00:50:29,920 Okay, now that talk is at 3 o'clock. 1240 00:50:30,080 --> 00:50:32,220 The Credit Card Network's talk is going on. 1241 00:50:33,280 --> 00:50:36,460 So, I said it wasn't. I said it was being replaced. I was incorrect.