1 00:00:00,000 --> 00:00:04,580 A couple years ago, some of you may remember, I gave a talk on hacking voting systems. 2 00:00:06,060 --> 00:00:12,800 And it was while we were hacking the voting systems that we came across a question for which we just didn't have an answer. 3 00:00:13,460 --> 00:00:22,980 And the question is, if these voting systems are such crap, and they're so easy to exploit, 4 00:00:23,220 --> 00:00:27,380 everywhere you throw a dart, there's another exploitable vulnerability. 5 00:00:28,380 --> 00:00:37,160 Why is it that there hasn't been a single documented case of voter fraud because somebody has exploited one of these vulnerabilities? 6 00:00:37,560 --> 00:00:39,680 There isn't one case, and we looked. 7 00:00:40,720 --> 00:00:43,840 So we started thinking about this because this isn't right. 8 00:00:44,760 --> 00:00:47,080 It's not like U.S. elections don't matter. 9 00:00:47,320 --> 00:00:50,140 It isn't like there's not a hell of a lot of money going into this. 10 00:00:50,300 --> 00:00:56,700 So if you had $100,000, would you pay for advertising or hire somebody to make the election go your way? 11 00:00:58,860 --> 00:01:00,500 And nobody's done it so far. 12 00:01:01,220 --> 00:01:08,940 So the only clue that we had, the only difference between a voting computer and any other type of computer, 13 00:01:09,610 --> 00:01:13,880 is the fact that these systems are available to the public about three days a year. 14 00:01:14,800 --> 00:01:17,800 In other words, people haven't had time to learn them. 15 00:01:19,120 --> 00:01:21,760 So this makes a great hypothesis, but I'm a scientist. 16 00:01:22,560 --> 00:01:24,740 And you have to test a hypothesis. 17 00:01:25,700 --> 00:01:27,260 So what I'm going to talk to you about. 18 00:01:27,380 --> 00:01:33,780 Today are the results of my trying to test to see whether or not this works or whether or not this hypothesis was actually correct. 19 00:01:35,660 --> 00:01:39,700 Now, I don't know how many of you write software or how many of you are software engineers. 20 00:01:41,280 --> 00:01:50,480 But the whole idea of software reliability, finding bugs and fixing bugs, has been at the center of software engineering pretty much since the field has began. 21 00:01:53,140 --> 00:01:55,560 The bug lifecycle is highly predictable. 22 00:01:56,160 --> 00:01:57,040 This graph. 23 00:01:57,380 --> 00:02:00,840 Is from the mythical man month. 24 00:02:01,100 --> 00:02:04,180 And if you know anything about software engineering, this is the Bible. 25 00:02:05,920 --> 00:02:18,040 In 1975, when this book was published, Brooks came up with the idea that when you release a piece of software, it's got a lot of bugs in it. 26 00:02:18,420 --> 00:02:20,560 And some of those bugs are easy to find. 27 00:02:20,800 --> 00:02:24,220 And those easy to find bugs get found really, really early. 28 00:02:24,580 --> 00:02:25,740 And then you fix them. 29 00:02:25,860 --> 00:02:27,360 And then they get a little harder to find. 30 00:02:27,380 --> 00:02:27,980 And you fix those. 31 00:02:28,100 --> 00:02:29,140 And they get a little harder to find. 32 00:02:29,280 --> 00:02:31,920 And eventually, the curve gets pretty low. 33 00:02:32,080 --> 00:02:34,320 And at that point, you know your software is fairly reliable. 34 00:02:34,840 --> 00:02:35,280 Right? 35 00:02:37,600 --> 00:02:42,440 Bugs are overwhelmingly discovered really immediately after the software is released. 36 00:02:42,700 --> 00:02:44,420 And then the curve drops. 37 00:02:44,600 --> 00:02:44,760 Right? 38 00:02:45,860 --> 00:02:49,220 And this is remarkably stable over time. 39 00:02:49,760 --> 00:02:54,920 This graph is from 2008, which is 30 years after the publication of the mythical man month. 40 00:02:55,120 --> 00:02:57,260 And it shows exactly the same phenomenon. 41 00:02:57,260 --> 00:03:02,800 The actual numbers of bugs found were higher than Brooks predicted they would be. 42 00:03:02,960 --> 00:03:04,840 But the curve is exactly the same. 43 00:03:05,360 --> 00:03:13,700 So even if we can't fix the bugs, we do know that this aspect of software defects, this is well understood. 44 00:03:15,680 --> 00:03:17,540 But, you know, we're security people. 45 00:03:17,740 --> 00:03:17,980 Right? 46 00:03:18,100 --> 00:03:23,500 We don't really care about bugs, per se, unless they become vulnerabilities that we can exploit. 47 00:03:25,440 --> 00:03:27,080 So here are some. 48 00:03:27,840 --> 00:03:32,680 Just a list of some conventional wisdom. 49 00:03:32,840 --> 00:03:34,860 Some assumptions that we all make. 50 00:03:35,560 --> 00:03:39,260 The first is that vulnerabilities are bugs. 51 00:03:39,840 --> 00:03:42,560 They just have really, really nasty side effects. 52 00:03:44,520 --> 00:03:56,300 The second really common assumption is that if we reuse software, software that's been out for a while, software that's been tested and has had a lot of its bugs removed, that makes the system more secure. 53 00:03:56,380 --> 00:03:56,640 Right? 54 00:03:57,260 --> 00:03:59,480 It's new software that introduces new bugs. 55 00:04:00,620 --> 00:04:08,920 And the third assumption that we make is that if we can just improve the quality of our software, then we'll make it less vulnerable. 56 00:04:09,200 --> 00:04:18,320 If we can use the perfect type safe programming language, and if we can find the perfect compiler, if we can just build those, then we'll have secure software. 57 00:04:18,440 --> 00:04:18,580 Right? 58 00:04:21,400 --> 00:04:22,440 Well, no. 59 00:04:23,260 --> 00:04:24,480 This is what we found. 60 00:04:24,580 --> 00:04:26,620 That at least not in the early part. 61 00:04:26,620 --> 00:04:31,340 Of the life cycle of a product or a release of a product. 62 00:04:31,520 --> 00:04:32,740 This doesn't seem to apply. 63 00:04:34,160 --> 00:04:35,300 So here's what we did. 64 00:04:35,680 --> 00:04:37,260 We looked at a bunch of vulnerabilities. 65 00:04:38,060 --> 00:04:41,300 And we looked at just the early life cycle after each one. 66 00:04:41,860 --> 00:04:45,320 And in a nutshell, what we found is that there's this honeymoon period. 67 00:04:46,580 --> 00:04:48,280 It's immediately after release. 68 00:04:48,500 --> 00:04:50,660 Software has this little bit of time that protects it. 69 00:04:50,920 --> 00:04:54,600 And this is going to have some really important implications that I'll discuss later on. 70 00:04:56,120 --> 00:04:56,600 All right. 71 00:04:56,620 --> 00:05:00,760 So it actually looks like this. 72 00:05:00,900 --> 00:05:12,000 Instead of the way that the bug life cycle looks, with the curve starting high and then dropping down, the curve actually starts really low and speeds up. 73 00:05:14,800 --> 00:05:26,060 Low hanging fruit or not, easy to find vulnerabilities or not, software seems to enjoy some sort of protection from attack in the time immediately following its release. 74 00:05:26,620 --> 00:05:28,500 And that's what we're calling the honeymoon effect. 75 00:05:29,780 --> 00:05:32,140 So now I'll get into a few of the details for you. 76 00:05:33,140 --> 00:05:34,280 This is what we did. 77 00:05:35,140 --> 00:05:41,760 We collected 30,000 vulnerabilities and correlated them with all the major vulnerability people. 78 00:05:42,080 --> 00:05:46,780 BugTrack, Secunia, NIST NVD, OWASP. 79 00:05:47,500 --> 00:05:54,460 And then we looked at a list of the most popular programs, whether they were operating systems or server apps or user apps. 80 00:05:54,760 --> 00:05:56,420 And we ended up with 700. 81 00:05:56,420 --> 00:05:57,160 700 different releases. 82 00:05:59,200 --> 00:06:15,760 Then all we did, no fancy statistical analysis at all, all we did was count the number of days, the number of days from the official release of the product or a version of a product to the days of its first vulnerability, its second vulnerability, its third vulnerability, and its fourth vulnerability. 83 00:06:17,000 --> 00:06:20,660 And that's when we discovered that at the earliest part, it seems to be safer here. 84 00:06:22,080 --> 00:06:26,060 So when I'm talking about a honeymoon period, this is what I mean. 85 00:06:26,420 --> 00:06:27,980 I mean that it's the time. 86 00:06:28,060 --> 00:06:29,760 I can't see your laser pointer. 87 00:06:29,960 --> 00:06:31,160 Could you use a brighter one? 88 00:06:32,000 --> 00:06:35,100 By the way, this is one of the co-authors of this work. 89 00:06:35,140 --> 00:06:37,780 This is Matt Blaze, professor at University of Pennsylvania. 90 00:06:39,940 --> 00:06:43,780 So the honeymoon period is that time from the initial release to the first vulnerability. 91 00:06:45,080 --> 00:06:51,960 But there was a rather high variance because different products, different developers release at different rates and fix at different rates. 92 00:06:52,220 --> 00:06:55,560 So in order to normalize the data, we use a ratio. 93 00:06:56,500 --> 00:07:02,700 So we compare the release of the first vulnerability against the first vulnerability of the second. 94 00:07:02,960 --> 00:07:12,000 And if the time from release to V0 is greater than the time from V0 to V1, that's what we're calling a positive honeymoon. 95 00:07:12,680 --> 00:07:16,160 So you'd be using the term positive honeymoon and negative honeymoon a lot. 96 00:07:17,220 --> 00:07:23,840 If the honeymoon period is shorter than the time from V0 to V1, that's a negative honeymoon. 97 00:07:24,180 --> 00:07:24,700 Okay? 98 00:07:24,860 --> 00:07:24,980 Okay? 99 00:07:25,840 --> 00:07:26,100 No. 100 00:07:26,420 --> 00:07:32,600 It's also important to realize that we're not comparing version 1 against version 1.5. 101 00:07:32,800 --> 00:07:37,800 We're only looking at the vulnerabilities within version 1 and comparing them against each other. 102 00:07:37,940 --> 00:07:41,080 And we're only looking at within version 1.5 against each other. 103 00:07:41,240 --> 00:07:45,480 Each release is looked at independently of the other. 104 00:07:45,980 --> 00:07:48,880 And this is important because of software quality issues. 105 00:07:49,960 --> 00:07:51,540 So here is what we discovered. 106 00:07:52,320 --> 00:07:55,020 In 62% of the releases we looked at, 107 00:07:55,020 --> 00:07:56,900 the honeymoons are positive. 108 00:07:57,100 --> 00:08:01,080 That means it takes longer to find the first vulnerability than it takes to find the second. 109 00:08:01,460 --> 00:08:05,460 This is exactly opposite of what is true for software reliability. 110 00:08:08,420 --> 00:08:14,680 And not only that, the time it takes to find that first vulnerability, the median number of days was 110. 111 00:08:15,340 --> 00:08:16,560 That's a long time. 112 00:08:19,980 --> 00:08:23,880 And not only does it take longer to find the first one to the second, 113 00:08:24,020 --> 00:08:25,000 but it takes longer to find the second. 114 00:08:25,000 --> 00:08:28,140 But it is almost twice as long. 115 00:08:28,300 --> 00:08:31,140 The median overall honeymoon ratio is 1.54. 116 00:08:31,540 --> 00:08:36,280 That means it takes almost twice as long to find the first vulnerability as it does to find the second. 117 00:08:38,900 --> 00:08:39,420 Okay. 118 00:08:41,140 --> 00:08:42,460 So there's a honeymoon effect. 119 00:08:43,300 --> 00:08:44,020 Big deal. 120 00:08:44,120 --> 00:08:44,660 What does it mean? 121 00:08:45,840 --> 00:08:49,280 Well, at first we thought that this was a result of software getting better. 122 00:08:50,200 --> 00:08:54,440 There's absolutely no denying that things like secure design, 123 00:08:55,120 --> 00:09:00,000 the use of type-safe languages, fuzz testing, 124 00:09:00,760 --> 00:09:04,580 there's any number of things that make software that is written in 2010 125 00:09:05,260 --> 00:09:09,340 of a much better quality than software that was written in 2001, right? 126 00:09:10,340 --> 00:09:11,980 So we broke it down by year. 127 00:09:12,940 --> 00:09:14,340 And this is what we found. 128 00:09:15,100 --> 00:09:16,200 It didn't matter. 129 00:09:17,920 --> 00:09:21,640 Doesn't matter what we look at, we have consistently positive honeymoons. 130 00:09:21,760 --> 00:09:24,280 And remember that our software reliability models, 131 00:09:24,280 --> 00:09:27,680 tell us that we should find mostly negative honeymoons. 132 00:09:27,780 --> 00:09:32,960 We shouldn't find that there's 50% or greater positive honeymoons no matter how we look at it. 133 00:09:35,000 --> 00:09:38,300 So we broke it down every single way we could think of. 134 00:09:38,440 --> 00:09:41,720 We looked at just operating systems, consistently positive honeymoons. 135 00:09:41,880 --> 00:09:44,300 We looked at just server apps, same thing. 136 00:09:44,420 --> 00:09:45,560 User apps, same thing. 137 00:09:45,760 --> 00:09:49,080 We compared open source code to closed source code and it didn't matter. 138 00:09:49,340 --> 00:09:53,140 It takes longer to find the first vulnerability than it takes to find the second vulnerability. 139 00:09:55,940 --> 00:10:00,060 So just for a second, let's consider the implications of this. 140 00:10:01,350 --> 00:10:06,420 The fact is, every software release is likely to enjoy a honeymoon from attack 141 00:10:07,110 --> 00:10:10,020 in the period immediately after it's released, 142 00:10:10,220 --> 00:10:15,400 even though not a single one of the bugs that it's ever going to have have been fixed yet. 143 00:10:17,350 --> 00:10:21,500 This is contrary to our expectations based on what we know about bugs. 144 00:10:22,000 --> 00:10:24,160 We'd expect that the newly released software, 145 00:10:24,160 --> 00:10:25,300 is at its weakest. 146 00:10:25,860 --> 00:10:30,560 Every single bug it's ever going to have, even the easy ones, even the low-hanging fruit, 147 00:10:30,740 --> 00:10:31,440 are still there. 148 00:10:33,340 --> 00:10:37,300 Yet it's precisely at this time, precisely when it's at its weakest, 149 00:10:37,520 --> 00:10:39,900 that it's least likely to have an exploit discovered. 150 00:10:41,360 --> 00:10:44,680 Okay, so this got us a bit confused. 151 00:10:45,920 --> 00:10:47,800 And we tried to figure out why. 152 00:10:49,420 --> 00:10:51,480 And what we discovered is this. 153 00:10:51,640 --> 00:10:52,120 This. 154 00:10:52,700 --> 00:10:53,180 This. 155 00:10:53,660 --> 00:10:54,140 This. 156 00:11:08,700 --> 00:11:08,740 This. 157 00:11:12,680 --> 00:11:12,720 This. 158 00:11:12,720 --> 00:11:12,740 This. 159 00:11:12,740 --> 00:11:12,760 This. 160 00:11:12,780 --> 00:11:12,800 This. 161 00:11:12,820 --> 00:11:12,840 This. 162 00:11:12,860 --> 00:11:12,880 This. 163 00:11:12,900 --> 00:11:12,920 This. 164 00:11:12,940 --> 00:11:12,960 This. 165 00:11:12,980 --> 00:11:13,000 This. 166 00:11:13,020 --> 00:11:13,040 This. 167 00:11:13,040 --> 00:11:13,060 This. 168 00:11:15,400 --> 00:11:15,440 This. 169 00:11:19,140 --> 00:11:19,180 This. 170 00:11:24,160 --> 00:11:27,940 The things that the programmers and the developers themselves cannot control. 171 00:11:28,340 --> 00:11:31,520 And the extrinsic properties are legion. 172 00:11:32,180 --> 00:11:35,560 They're everything from the operating system it's running on, from the network interfaces, 173 00:11:35,860 --> 00:11:39,300 from what other applications or products are running on the system at the time. 174 00:11:40,220 --> 00:11:43,380 They have to do with the black market and the economics. What does 175 00:11:43,380 --> 00:11:48,320 a vulnerability for this particular product sell for? There's so many of them 176 00:11:48,320 --> 00:11:51,520 we don't know what they are and we don't know how to measure them. 177 00:11:53,120 --> 00:11:55,640 But we do know that a lot 178 00:11:55,640 --> 00:11:59,440 of these extrinsic properties are growing at a rate faster that we can 179 00:11:59,440 --> 00:12:01,380 measure. Things are getting worse. 180 00:12:03,400 --> 00:12:07,600 So if most of these extrinsic properties were responsible for the honeymoon 181 00:12:07,600 --> 00:12:10,840 period, we'd see the honeymoon period drop to zero. 182 00:12:11,360 --> 00:12:15,220 Because they are getting worse. But the honeymoon period is still consistently 183 00:12:15,220 --> 00:12:19,480 at 50% or greater. So most of the properties 184 00:12:19,480 --> 00:12:23,580 that are extrinsic to whether or not your software is going to be exploited don't matter 185 00:12:23,580 --> 00:12:24,780 to the honeymoon period at all. 186 00:12:27,620 --> 00:12:31,320 What does matter? We got our first clue when we compared 187 00:12:31,320 --> 00:12:35,520 major releases to minor releases. Major releases 188 00:12:35,520 --> 00:12:39,380 of a product are intended to sell a new product. They contain 189 00:12:39,380 --> 00:12:43,060 the most new features. They have the most new code. 190 00:12:46,660 --> 00:12:47,560 This is 191 00:12:47,560 --> 00:12:51,660 the primary difference because minor releases 192 00:12:51,660 --> 00:12:55,060 are mostly bug fixes. 193 00:12:58,980 --> 00:13:03,280 And while they do occur with a lot more frequency than major releases, they don't have 194 00:13:03,280 --> 00:13:07,520 nearly as much new code. This implies that there's 195 00:13:07,520 --> 00:13:09,600 some sort of learning curve going on here. 196 00:13:12,660 --> 00:13:15,540 And then our second clue came when 197 00:13:15,540 --> 00:13:19,200 we compared the difference between open source code to closed source code. 198 00:13:20,360 --> 00:13:23,540 What's really interesting here is that open source 199 00:13:23,540 --> 00:13:27,480 code has a longer honeymoon period, but it has a shorter honeymoon 200 00:13:27,480 --> 00:13:31,600 ratio. What that means is that it takes longer to find the first one 201 00:13:31,600 --> 00:13:35,360 than the second one, but it also takes relatively long to find the second one. 202 00:13:37,800 --> 00:13:39,400 And what that seems 203 00:13:39,400 --> 00:13:43,400 to imply is that when it comes to 204 00:13:43,400 --> 00:13:47,120 attacking open source code, the attackers are not climbing 205 00:13:47,120 --> 00:13:51,260 the learning curve quite as quickly. And we think 206 00:13:51,260 --> 00:13:54,240 this is because open source code releases 207 00:13:55,740 --> 00:13:59,140 versions much more rapidly, and they're changing the code 208 00:13:59,140 --> 00:14:03,380 more rapidly. But we're 209 00:14:03,380 --> 00:14:06,660 not sure about that, and we're going to be running some other tests to see what we can find. 210 00:14:07,780 --> 00:14:09,260 But this is our hypothesis. 211 00:14:10,580 --> 00:14:13,380 This is what we think is affecting the learning curve. 212 00:14:14,060 --> 00:14:16,280 That there's an attacker learning curve. 213 00:14:19,360 --> 00:14:20,480 And that 214 00:14:21,560 --> 00:14:25,100 the longer it takes the attacker to climb your learning 215 00:14:25,100 --> 00:14:29,240 curve, the longer you've got. That's your honeymoon. 216 00:14:30,500 --> 00:14:33,180 So what we think, the reason we think 217 00:14:33,180 --> 00:14:37,060 there's a learning curve is because, and the reason we think that the rate 218 00:14:37,060 --> 00:14:40,940 speeds up after the first vulnerability is found, is because 219 00:14:40,940 --> 00:14:44,840 that the knowledge gained from attacking something and successfully 220 00:14:44,840 --> 00:14:48,840 weaponizing an exploit allows you to 221 00:14:48,840 --> 00:14:53,060 build a set of tools that you can reuse. It allows you to find 222 00:14:53,060 --> 00:14:57,000 vulnerabilities that are similar without expending nearly as much 223 00:14:57,000 --> 00:15:01,100 resources. And we think there may also be 224 00:15:01,100 --> 00:15:04,920 something like a blood in the water effect going on here. If someone 225 00:15:04,920 --> 00:15:08,800 announces that they found an exploit in product Z, 226 00:15:09,580 --> 00:15:12,960 everybody else starts looking at product Z because they want to find an exploit 227 00:15:12,960 --> 00:15:15,460 there too. And so that's what we think that's going on. 228 00:15:17,320 --> 00:15:20,800 So the last convincing piece of evidence that we got 229 00:15:20,800 --> 00:15:24,480 that made us think that the honeymoon effect is the learning curve 230 00:15:25,580 --> 00:15:28,920 came when we realized that that very 231 00:15:28,920 --> 00:15:31,740 first vulnerability, the one that destroys your honeymoon, 232 00:15:32,560 --> 00:15:34,740 there's actually two types of these. 233 00:15:35,020 --> 00:15:39,560 And most people forget this. And I'm not sure that this is 234 00:15:39,560 --> 00:15:42,860 even an area that people pay much attention to. 235 00:15:43,340 --> 00:15:47,680 But we as engineers, as coders, 236 00:15:47,680 --> 00:15:51,740 as developers, tend to believe that we introduce new bugs 237 00:15:51,740 --> 00:15:55,620 with new code. We're human, we write 238 00:15:55,620 --> 00:15:59,520 buggy code, we know that. So we expect that every time we write something new 239 00:15:59,520 --> 00:16:01,480 there's going to be a problem with it and the whole victim 240 00:16:01,740 --> 00:16:05,840 and then it will be okay. So a bug 241 00:16:06,500 --> 00:16:09,700 that is introduced in a new piece of code, that's 242 00:16:09,700 --> 00:16:13,540 what we're calling a regressive. But the second kind of 243 00:16:13,540 --> 00:16:17,720 vulnerability that can be the very first vulnerability 244 00:16:17,720 --> 00:16:21,320 in a brand new release of a product is something that we're calling a 245 00:16:21,320 --> 00:16:25,600 regressive vulnerability. That is, the product, maybe 246 00:16:25,600 --> 00:16:29,640 the product's at version 4 and a new vulnerability 247 00:16:29,640 --> 00:16:33,380 is found, but it also affects version 3 and version 2 248 00:16:33,380 --> 00:16:37,580 and version 1. That means that the software 249 00:16:37,580 --> 00:16:40,760 that introduced that bug existed in version 1. 250 00:16:41,340 --> 00:16:45,620 But the bug itself lay dormant until it was discovered in version 4. 251 00:16:45,920 --> 00:16:49,400 We call this regressive. Now, 252 00:16:50,100 --> 00:16:53,560 because we're trained to believe that new software, and from 253 00:16:53,560 --> 00:16:56,620 my own experience, I mean, software I write has bugs in it. 254 00:16:57,420 --> 00:17:00,040 But because we're trained to expect this, 255 00:17:00,140 --> 00:17:03,800 one would expect that most of the first vulnerabilities found 256 00:17:03,800 --> 00:17:08,200 will be those easy to find, low hanging fruit, progressive vulnerabilities. 257 00:17:08,740 --> 00:17:10,680 But that is not what we found. 258 00:17:11,980 --> 00:17:16,700 What we found is that 72% of the first vulnerabilities ever found 259 00:17:16,700 --> 00:17:20,800 in a brand new release of a product, affect code in earlier releases. 260 00:17:20,860 --> 00:17:24,600 They were not, they did not originate in that release. They were not a result 261 00:17:24,600 --> 00:17:25,340 of new code. 262 00:17:28,800 --> 00:17:31,660 83% for open source, 59% for closed source. 263 00:17:31,940 --> 00:17:35,080 And what's really interesting is here is there's still a positive honeymoon. 264 00:17:35,480 --> 00:17:40,320 They may have been introduced in 3 versions or 10 versions before, but they 265 00:17:40,320 --> 00:17:43,380 still take longer to find than the vulnerability after them. 266 00:17:46,940 --> 00:17:48,640 So, I think what I want 267 00:17:48,640 --> 00:17:49,980 to say here is, 268 00:17:49,980 --> 00:17:50,240 is, 269 00:17:54,580 --> 00:17:57,500 new code is better than old code, 270 00:17:57,700 --> 00:17:59,080 even if it's crap. 271 00:18:02,920 --> 00:18:05,220 Even if it introduces new vulnerabilities, 272 00:18:05,720 --> 00:18:09,600 you get a grace period, a safety period. 273 00:18:11,360 --> 00:18:13,500 And you get a significantly long, 274 00:18:13,620 --> 00:18:17,000 twice as long honeymoon period, 275 00:18:17,160 --> 00:18:18,940 the more new code you can get. 276 00:18:22,900 --> 00:18:23,540 So, 277 00:18:25,040 --> 00:18:27,500 new code is a driver. 278 00:18:28,200 --> 00:18:32,060 It forces attackers to relearn your system. 279 00:18:32,460 --> 00:18:34,700 It makes your tools no longer work. 280 00:18:35,100 --> 00:18:39,740 It makes them expend resources. It costs them time. It costs them money. 281 00:18:40,040 --> 00:18:44,060 It's exactly what you need to do to up your side of the arms race. 282 00:18:46,460 --> 00:18:48,120 So, early on 283 00:18:48,120 --> 00:18:49,220 in a product, 284 00:18:50,100 --> 00:18:53,460 extrinsic properties matter more than the quality of the software itself. 285 00:18:54,260 --> 00:18:57,280 And more importantly, the discovery of a new vulnerability 286 00:18:57,860 --> 00:19:01,040 appears to depend on how familiar the attacker is with the product. 287 00:19:02,860 --> 00:19:05,940 Software, even weak software, even insecure 288 00:19:05,940 --> 00:19:09,940 programs are protected by this learning curve. And for our sake, 289 00:19:10,000 --> 00:19:13,760 what does that mean? It means that vulnerabilities 290 00:19:13,760 --> 00:19:17,660 are not the same as bugs. And you know why they're not the same? 291 00:19:17,660 --> 00:19:20,180 Because their extrinsic properties are different. 292 00:19:21,220 --> 00:19:25,140 The extrinsic properties of a software bug are static. 293 00:19:25,400 --> 00:19:29,660 They are fixed at the time of the software release. It needs this operating system. 294 00:19:29,780 --> 00:19:33,560 It needs this much RAM. It needs this CPU. They are so well defined and well 295 00:19:33,560 --> 00:19:36,320 understood that they are printed on the box when you buy the software. 296 00:19:37,300 --> 00:19:40,720 The extrinsic properties that relate to vulnerabilities, 297 00:19:41,220 --> 00:19:45,560 I don't even know what they are yet. They are not well defined. Hell, they are not well 298 00:19:45,560 --> 00:19:49,460 understood. The security community hasn't even delineated all of them yet. 299 00:19:49,700 --> 00:19:53,340 All we do is say, we know this is a problem, we know this is a problem, we know this 300 00:19:53,340 --> 00:19:56,180 is a problem, but we don't know what they are yet. How do we measure them? 301 00:19:59,660 --> 00:20:00,020 So, 302 00:20:02,780 --> 00:20:04,940 what makes the Honeymoon Effect important, 303 00:20:05,380 --> 00:20:07,900 and this is why I'm glad you're here today, is because 304 00:20:10,000 --> 00:20:12,680 we need to develop a way to tell people 305 00:20:13,860 --> 00:20:16,360 here's where you are in the vulnerability life cycle. 306 00:20:16,560 --> 00:20:20,480 Here's what you can expect and here's how you can protect yourself. In other words, 307 00:20:20,480 --> 00:20:21,440 we need metrics. 308 00:20:23,780 --> 00:20:28,040 I don't know if you know, Matt Blaise wrote a paper on safe practices 309 00:20:28,040 --> 00:20:32,520 and computer scientists. When he goes and buys safes 310 00:20:32,520 --> 00:20:36,600 and our lab is full of them, we know that when they have 311 00:20:36,600 --> 00:20:40,680 a particular URL rating for 30 minutes, that that safe 312 00:20:40,680 --> 00:20:44,180 is secure against all the extrinsic properties that 313 00:20:44,180 --> 00:20:47,520 can crack a safe. From an arc torch to 314 00:20:47,520 --> 00:20:52,560 a hammer and chisel to acid to whatever you can 315 00:20:52,560 --> 00:20:56,780 put on it, I know that if it's got a UL 30 rating, it is safe 316 00:20:56,780 --> 00:21:00,380 from attack for 30 minutes. So I make my security 317 00:21:00,380 --> 00:21:02,660 by having my guard walk around every 49. 318 00:21:04,360 --> 00:21:08,420 We don't have those kinds of metrics for software yet, and that's 319 00:21:08,420 --> 00:21:10,780 what we think the honeymoon effect might help us develop. 320 00:21:12,340 --> 00:21:15,460 Recognizing that this honeymoon effect is 321 00:21:15,460 --> 00:21:17,460 a result of familiarity 322 00:21:20,160 --> 00:21:24,160 means that, okay, what can we do to increase the attacker learning 323 00:21:24,160 --> 00:21:28,140 curve? The best possible thing to do would be 324 00:21:28,140 --> 00:21:31,920 to rewrite your code every three months. The minute you ship it, 325 00:21:31,980 --> 00:21:34,020 throw it all out and start over from scratch. 326 00:21:35,840 --> 00:21:38,400 Okay, that is not going to happen. 327 00:21:39,540 --> 00:21:41,600 But we can do other things. How about 328 00:21:42,680 --> 00:21:45,960 some form of code obfuscation? There are definitely 329 00:21:45,960 --> 00:21:49,580 problems with that, but it does need to work for Qmail. And Qmail, as far as I know, 330 00:21:49,660 --> 00:21:53,760 has no publicly released 331 00:21:54,500 --> 00:21:57,940 exportable vulnerability. There are also things like 332 00:21:57,940 --> 00:22:01,820 dynamic execution. Go ahead, Matt. So I just want to point out 333 00:22:01,820 --> 00:22:03,880 the implications of Sandy's 334 00:22:04,020 --> 00:22:07,940 research, which I'm enormously proud of, in terms of 335 00:22:07,940 --> 00:22:11,180 the so what. Essentially, the message 336 00:22:11,720 --> 00:22:15,380 of what we looked at from the data. And we 337 00:22:15,920 --> 00:22:19,840 can't explain why this is true, but I want to emphasize 338 00:22:19,840 --> 00:22:23,880 the single point here is that everything taught in software engineering 339 00:22:23,880 --> 00:22:26,480 school, when you go to software engineering school, 340 00:22:26,840 --> 00:22:31,820 the first thing they tell you is code reuse is good. 341 00:22:31,820 --> 00:22:35,360 Reuse your code. Bugs are bad. 342 00:22:35,600 --> 00:22:38,840 And what we've discovered is that in practice, 343 00:22:39,660 --> 00:22:43,740 the software engineering wisdom actually makes software 344 00:22:43,740 --> 00:22:47,260 less secure. It's that code reuse and 345 00:22:48,900 --> 00:22:51,920 emphasis on the bug life cycle 346 00:22:51,920 --> 00:22:55,500 that actually pushes the vulnerabilities out in front 347 00:22:55,500 --> 00:22:59,460 in new releases. So essentially, the so what that 348 00:22:59,460 --> 00:23:03,320 that isn't on Sandy's slide is 349 00:23:03,320 --> 00:23:07,480 we have to rethink the way we teach software engineering 350 00:23:07,480 --> 00:23:10,520 for security purposes. The 351 00:23:12,600 --> 00:23:15,340 basic precepts of that field seem not 352 00:23:15,340 --> 00:23:18,780 to be working at all for security. So sorry for that interjection. 353 00:23:19,740 --> 00:23:22,420 Save your voice for a second. That's my advisor. I'm proud. 354 00:23:23,440 --> 00:23:26,540 Anyway, so the other thing that we can do, 355 00:23:26,540 --> 00:23:30,340 we've got to develop some technique that builds into software anything 356 00:23:30,340 --> 00:23:33,300 that can increase the attacker's learning curve. 357 00:23:35,620 --> 00:23:38,060 I've been looking at research into dynamic execution, 358 00:23:38,460 --> 00:23:41,440 and I think that looks interesting. Can you make 359 00:23:42,820 --> 00:23:44,940 functionally the same, but 360 00:23:47,640 --> 00:23:49,840 executionally different binaries? 361 00:23:50,300 --> 00:23:54,020 That's a possibility. What I'm also looking at now 362 00:23:54,020 --> 00:23:58,040 is adaptability rates, and I hope to have a paper coming out on this in a 363 00:23:58,040 --> 00:24:00,360 week or two, a position paper on 364 00:24:02,000 --> 00:24:05,920 so that if you're the defender, how fast you need to release your 365 00:24:05,920 --> 00:24:10,080 changes in order to stay ahead of the game. So look for that soon. 366 00:24:10,640 --> 00:24:13,220 At this point, I'm going to turn the time over to Renderman. 367 00:24:13,640 --> 00:24:17,160 He's been looking at things from the attacker's side, and he's got some interesting ideas 368 00:24:17,160 --> 00:24:20,680 and examples of what he thinks are practical 369 00:24:23,340 --> 00:24:23,740 demonstration 370 00:24:24,020 --> 00:24:27,140 of the honeymoon in action. So we're going to switch here. 371 00:24:32,000 --> 00:24:35,840 First thing, I have to switch my hat here. I owe Scott Moulton a favor, 372 00:24:36,000 --> 00:24:39,440 so I decided to wear his hat during the talk. 373 00:24:42,400 --> 00:24:43,920 Oh, apparently speaker notes 374 00:24:43,920 --> 00:24:46,180 don't translate from OpenOffice to Microsoft PowerPoint. 375 00:24:48,800 --> 00:24:50,600 Apparently the microphone's working now. 376 00:24:52,020 --> 00:24:54,120 So when I first heard about this 377 00:24:54,120 --> 00:24:58,340 paper from Mouse, I started thinking 378 00:24:58,340 --> 00:25:01,320 about it, like I do everything that she tells me, because she's always got something cool. 379 00:25:03,240 --> 00:25:06,460 I started looking for practical examples of this 380 00:25:06,460 --> 00:25:10,660 in my own life. I deal a great deal with wireless. Everybody knows it's my thing. 381 00:25:10,840 --> 00:25:14,580 The problem was attacker tools are not well documented. She was pulling 382 00:25:14,580 --> 00:25:18,520 CVE reports, NIST, all those other 383 00:25:18,520 --> 00:25:22,560 sites. A lot of the attacker tools, you don't know 384 00:25:22,560 --> 00:25:25,940 when they specifically implemented things, because it's the underground economy. It's not 385 00:25:25,940 --> 00:25:30,520 a whole formal process, because it wasn't some lab that came up with it. So it's really hard 386 00:25:30,520 --> 00:25:34,060 to pin down some of these initial dates when things happen. 387 00:25:34,740 --> 00:25:38,360 But even if you, on this rough timeline, you can 388 00:25:38,360 --> 00:25:42,280 do approximate guesses when things came in. You can start to see this honeymoon 389 00:25:42,280 --> 00:25:45,000 effect in real life, in everyday things. 390 00:25:46,080 --> 00:25:47,400 So I'm not an academic. 391 00:25:48,920 --> 00:25:51,880 I'm a rubber meets the road. But I play one on TV, yeah. 392 00:25:52,960 --> 00:25:55,600 But I'm a rubber meets the road kind of guy. I want to see how it is. 393 00:25:56,080 --> 00:26:00,760 I so often will read an academic paper, and I'm like, okay, how does this actually affect me? What is the real world 394 00:26:00,760 --> 00:26:04,660 implementation of this? And I actually found a whole bunch of it within my own life. 395 00:26:04,740 --> 00:26:08,820 And I thought it was really neat. So I started 396 00:26:08,820 --> 00:26:11,680 looking at WEP. 397 00:26:11,680 --> 00:26:15,260 For those of you, quick timeline here. It was originally 398 00:26:15,260 --> 00:26:16,940 ratified in September of 1999. 399 00:26:21,440 --> 00:26:22,800 Used RC4. 400 00:26:24,080 --> 00:26:27,100 Oh, okay. No, it's just throwing me off. 401 00:26:27,660 --> 00:26:31,140 So it was originally ratified in September 1999. Used the 402 00:26:31,440 --> 00:26:35,500 RC4 ciphers. The first major cryptanalysis was 403 00:26:35,500 --> 00:26:39,480 2001. August of 2001, Erisnort was first 404 00:26:39,480 --> 00:26:43,260 released. This is what most people consider the first practical WEP attack. 405 00:26:44,700 --> 00:26:47,680 Practical is in quotes because really it was like 10 million 406 00:26:47,680 --> 00:26:51,680 packets needed to be collected. It was like a whole day's worth of traffic. And even then it was kind of 407 00:26:51,680 --> 00:26:55,600 a shot in the dark. It was never anything that I ever found truly practical. 408 00:26:55,960 --> 00:26:59,080 But it was the first, it was an implementation of the cryptanalysis. 409 00:26:59,960 --> 00:27:03,580 Where the rubber really hit the road was in 2004, 2005 410 00:27:03,580 --> 00:27:07,600 when Chris Devine first released Aircrack. I can't 411 00:27:07,600 --> 00:27:11,000 find an exact date for its first release, but archive.org says it's about 412 00:27:11,000 --> 00:27:15,400 2004, 2005, around December. Now the interesting thing 413 00:27:15,400 --> 00:27:19,160 was the Apple AirPort released in July of 1999. 414 00:27:20,060 --> 00:27:23,760 This had a really high price tag. It was like over $500 when it first came out. 415 00:27:25,720 --> 00:27:27,260 The Linksys WAP11 416 00:27:27,260 --> 00:27:30,820 that came out in 2002 had a much cheaper price tag. 417 00:27:31,960 --> 00:27:35,620 I think it was about $100 off the start and it's now down $50 and I mean now you can 418 00:27:35,620 --> 00:27:39,660 get these things dirt cheap anywhere. And I'm thinking 419 00:27:39,660 --> 00:27:42,400 these are the wrong slides that you loaded up for some reason. 420 00:27:42,520 --> 00:27:44,600 I think I might be missing some slides here. 421 00:27:48,860 --> 00:27:51,680 So once Aircrack was released, features 422 00:27:51,680 --> 00:27:54,640 were added very easily. You know, ARP injection, chop chop. 423 00:27:56,620 --> 00:27:59,360 You had a framework to work with. So now 424 00:27:59,860 --> 00:28:03,460 attackers that are looking at WAP, you know, starting to poke and prod at this new thing that's 425 00:28:03,460 --> 00:28:05,580 you know, starting to permeate the rest of all of our lives, 426 00:28:07,240 --> 00:28:10,260 starts picking up development. It's easy to now just add a new feature. 427 00:28:11,300 --> 00:28:14,320 Aircrack NG picked up development after Chris Devine just vanished. 428 00:28:15,220 --> 00:28:18,500 There's an extrinsic factor for you. You know, if your author just suddenly 429 00:28:20,520 --> 00:28:23,360 disappears, what are you going to do about it? Yeah, I don't have any of my timelines 430 00:28:23,360 --> 00:28:27,480 in this. I'm not sure where you got these other slides, 431 00:28:27,540 --> 00:28:30,160 but okay. I pulled them off of the key you gave me. Oh, okay. 432 00:28:30,960 --> 00:28:31,320 Weird. 433 00:28:33,460 --> 00:28:37,440 In 2007, WAP is fairly idiot-proof to break. I mean, SpoonWAP 434 00:28:37,440 --> 00:28:40,840 came out, you know, it's included in Backtrack. There's a whole bunch of point-and-click WAP 435 00:28:41,300 --> 00:28:45,520 cracking apps. You know, it's now, you can literally teach your mother 436 00:28:45,520 --> 00:28:48,820 to do it. Many of you probably taught your mother to do it. 437 00:28:50,800 --> 00:28:53,520 But it's interesting because by 2003, 438 00:28:53,880 --> 00:28:57,340 WPA had completely superseded WAP, according 439 00:28:57,340 --> 00:29:01,360 to the IEEE. They had said, WAP, we know it's got vulnerabilities, we've got 440 00:29:01,360 --> 00:29:03,440 problems. Don't use it anymore. 441 00:29:03,460 --> 00:29:07,540 So this is even before Aircrack came out. This is even before the tools, 442 00:29:07,660 --> 00:29:11,220 the framework started coming around. Fully 443 00:29:11,220 --> 00:29:15,460 deprecated in 2004. But as anybody who was doing war driving or any wireless 444 00:29:15,460 --> 00:29:19,580 analysis knows, it stuck around. WAP, it's the thing that would not die 445 00:29:19,580 --> 00:29:23,440 for the longest time. The PCI standards started 446 00:29:24,220 --> 00:29:26,380 banning WAP as late as 2009. 447 00:29:27,020 --> 00:29:30,000 So you've got this almost five-year gap 448 00:29:31,260 --> 00:29:33,820 between when vulnerabilities 449 00:29:33,820 --> 00:29:37,960 were found and when it was finally dealt with within industry and somebody was saying, 450 00:29:38,060 --> 00:29:41,980 you must change out this protocol or 451 00:29:41,980 --> 00:29:45,880 else you can't process payment cards. TGAX 452 00:29:45,880 --> 00:29:49,960 was the exploitation that just kept on giving 453 00:29:49,960 --> 00:29:54,280 for guys in the wireless community. It was initially penetrated in March of 2005. 454 00:29:54,440 --> 00:29:57,240 This is actually just after Aircrack 455 00:29:57,900 --> 00:30:01,440 came out. But this is long after there was 456 00:30:01,440 --> 00:30:03,760 initial problems being shown. 457 00:30:05,040 --> 00:30:08,460 They didn't start their conversion until almost six months later in October. 458 00:30:09,780 --> 00:30:13,120 So there's this weird thing that the tools 459 00:30:13,120 --> 00:30:17,040 were out there, industry knew that they were out there, but they never did anything. 460 00:30:17,320 --> 00:30:21,040 This is what I'm basically calling the divorce period. Where you've got your 461 00:30:21,040 --> 00:30:25,280 honeymoon is set, your honeymoon is there, initial vulnerability 462 00:30:25,280 --> 00:30:27,140 comes out, there's a problem, 463 00:30:29,400 --> 00:30:32,900 things aren't the greatest, but you know that 464 00:30:32,900 --> 00:30:36,200 if you assume a positive honeymoon all the time, 465 00:30:36,280 --> 00:30:40,640 you know your best days are behind you. Suddenly, 466 00:30:40,820 --> 00:30:45,100 the next thing that's going to come along and probably put that nail in the coffin is going to be a much shorter 467 00:30:45,100 --> 00:30:49,260 timeline. This is where you need to start divorcing yourself from this problem software, 468 00:30:49,380 --> 00:30:53,100 thinking about maybe upgrading to the next version, or maybe even 469 00:30:53,100 --> 00:30:55,260 just seek counseling in some way of mitigating this. 470 00:30:56,500 --> 00:30:57,840 Your IT staff. 471 00:30:58,140 --> 00:31:01,460 Always buy your IT staff beer and pizza. 472 00:31:02,420 --> 00:31:07,020 I say this at so many different conferences, but they're the guys that know 473 00:31:07,020 --> 00:31:10,160 this is the system that's three versions behind, that's out of date, 474 00:31:10,320 --> 00:31:13,740 it needs to be dealt with. That is the best investment you can possibly make. 475 00:31:15,100 --> 00:31:19,060 So there's this long honeymoon for practical attacks. I'm talking in the order of years. 476 00:31:19,540 --> 00:31:22,260 Some of your data you were saying when we were talking before 477 00:31:22,260 --> 00:31:25,880 only had a resolution of one day. For Microsoft stuff, you could probably count 478 00:31:25,880 --> 00:31:30,180 the minutes. But on the protocol level, how do you 479 00:31:30,180 --> 00:31:34,000 change out a billion access points if suddenly the 480 00:31:34,000 --> 00:31:37,140 protocol is broken? You can't do that easy. 481 00:31:37,900 --> 00:31:41,780 I've spoken with the chairman of the IETF, who was actually on the committee for 802.11i 482 00:31:41,780 --> 00:31:46,440 when they were implementing WPA2. They were absolutely terrified of mass obsolescence. 483 00:31:46,520 --> 00:31:49,300 That's the reason that the first version WPA, the interim, 484 00:31:49,300 --> 00:31:51,280 used RC4 485 00:31:52,940 --> 00:31:57,000 that was already implemented on the hardware. It was something that they 486 00:31:57,000 --> 00:32:01,360 just graphed onto the existing stuff. You can't just suddenly gut a billion routers 487 00:32:01,360 --> 00:32:04,120 and just dump them in the trash. That would be stupid. 488 00:32:06,300 --> 00:32:08,940 But it was something that you need to think about. 489 00:32:09,000 --> 00:32:13,120 Get ahead of that curve. If you know that by the time that first point 490 00:32:13,120 --> 00:32:17,460 hits, it's only going to get worse, well, assume the worst and keep going. 491 00:32:17,460 --> 00:32:21,580 The cost of equipment is a huge external factor. 492 00:32:21,840 --> 00:32:25,360 If it's a $500 device, I'm probably not going to buy it 493 00:32:25,360 --> 00:32:29,080 and tear it apart and see how it works. But if it's a $100 device, 494 00:32:29,300 --> 00:32:32,760 that's easier to get past 495 00:32:33,360 --> 00:32:37,440 your budgets, throw it on the lab, take it apart. We've all bought stuff 496 00:32:37,440 --> 00:32:40,260 and taken it apart and wondered, where was that warranty card? 497 00:32:41,360 --> 00:32:42,840 Where was that instruction to put it back together? 498 00:32:43,800 --> 00:32:46,300 But the framework, 499 00:32:46,720 --> 00:32:50,100 once you've got an existing framework like Aircrack, 500 00:32:50,980 --> 00:32:54,740 development just starts snowballing. But at the same time is that 501 00:32:54,740 --> 00:32:58,920 you've got increases in adoption, increases in interesting places that start implementing 502 00:32:58,920 --> 00:33:02,180 wireless, bigger businesses, retail outlets, stuff like that. 503 00:33:04,400 --> 00:33:05,760 But that, 504 00:33:05,940 --> 00:33:08,300 you just know things are going to get worse. 505 00:33:09,980 --> 00:33:12,260 In 1999 to 2005, 506 00:33:12,840 --> 00:33:16,640 Aircrack was considered suitable. Though weak. They admitted it. 507 00:33:17,100 --> 00:33:20,220 But post-Aircrack, the attack vectors multiply, ease 508 00:33:20,780 --> 00:33:22,620 increases, WEP is just no longer suitable. 509 00:33:24,200 --> 00:33:27,840 You can look at other things, like code reuse in these protocols. 510 00:33:28,360 --> 00:33:32,280 Because 802.11i is just an addendum to the whole 511 00:33:34,920 --> 00:33:36,120 wireless protocol 512 00:33:36,120 --> 00:33:40,420 standard. They're still using underlying things. 513 00:33:40,420 --> 00:33:44,000 So things like deauthentication attacks still work, even when you're using a 514 00:33:44,000 --> 00:33:48,180 WPA2 network. The WPAtkip attacks 515 00:33:48,180 --> 00:33:51,600 reuse the chop-chop attack, which was originally developed for WEP. 516 00:33:52,500 --> 00:33:56,060 So one thing helps another, because you now already have an 517 00:33:56,060 --> 00:34:00,300 exploitation framework. The other thing that, again, I don't know what happened with 518 00:34:00,300 --> 00:34:04,520 the slides, but what I had also found was that as you go along 519 00:34:04,520 --> 00:34:08,020 and you start looking at, okay, here's when things were ratified, 520 00:34:08,020 --> 00:34:11,520 here's where things were released, here's where Aircrack came out, 521 00:34:11,780 --> 00:34:15,140 there's other things like the monitor mode drivers that Airsnored introduced. 522 00:34:15,720 --> 00:34:18,400 There was the Airjack injection 523 00:34:20,260 --> 00:34:22,560 drivers that were around. 524 00:34:23,640 --> 00:34:27,960 Then you had all these little pieces that added up 525 00:34:27,960 --> 00:34:31,820 and people started integrating them into these frameworks. Then you had all the pieces 526 00:34:31,820 --> 00:34:35,920 necessary for a complete tool to break WEP 527 00:34:35,920 --> 00:34:36,720 in 60 seconds. 528 00:34:39,500 --> 00:34:41,880 Other external factors and other things 529 00:34:41,880 --> 00:34:45,980 that we're all familiar with. PlayStation 3. Sony comes out with this 530 00:34:45,980 --> 00:34:49,820 wonderful thing and they've got this install of their OS and everything. They seem to be playing 531 00:34:49,820 --> 00:34:53,560 nice thing. People wanting to use this thing for research. How many universities 532 00:34:53,560 --> 00:34:57,780 bought these things by the pallet to set up cheap supercomputers? 533 00:34:59,080 --> 00:35:02,040 I know that, I think it was 534 00:35:02,040 --> 00:35:06,060 the US Navy has like 1,700 of these things that they're using for parallel processing. 535 00:35:07,380 --> 00:35:07,900 So 536 00:35:08,020 --> 00:35:11,500 in March of 2010, Geohot 537 00:35:11,780 --> 00:35:15,180 found that, wait, I might be able to use this install other OS thing to get 538 00:35:15,180 --> 00:35:19,880 direct access to the hardware to do other cool stuff. Sony's reaction was 539 00:35:19,880 --> 00:35:23,780 to pull the install other OS option through a firmware update. 540 00:35:23,980 --> 00:35:27,620 So either you didn't update your machine and you couldn't play online or you 541 00:35:27,620 --> 00:35:30,240 played online and you lost this option. 542 00:35:32,040 --> 00:35:35,720 The unit had been out for several years by this point and suddenly 543 00:35:35,720 --> 00:35:36,700 the 544 00:35:40,220 --> 00:35:42,000 you know, nobody had any 545 00:35:42,000 --> 00:35:45,620 real practical attacks on it. Suddenly they pull this rug out from 546 00:35:45,620 --> 00:35:50,120 developers who have been using these things. I mean, I wonder what happens with the Navy when they have to send one of these things 547 00:35:50,120 --> 00:35:53,840 in for warranty. Do they get back a reflashed one with the new firmware 548 00:35:53,840 --> 00:35:58,000 that doesn't support this? So by December of 549 00:35:58,000 --> 00:36:01,280 2010, this is only like nine months later, 550 00:36:01,580 --> 00:36:05,240 initial weaknesses were shown in, was it 551 00:36:05,240 --> 00:36:08,860 the 25C3 in Europe? 552 00:36:09,040 --> 00:36:13,240 But by January of 2011, I should be in 11, Geohot 553 00:36:13,240 --> 00:36:17,080 basically found the master keys that allowed you to sign any software 554 00:36:17,080 --> 00:36:21,240 you wanted to run on these things and ran with it. So a hell of an extrinsic 555 00:36:21,240 --> 00:36:25,220 factor is don't piss off your customer base. You know, if you've 556 00:36:25,220 --> 00:36:29,280 got a whole bunch of people really pissed off that you changed their product out from under them, 557 00:36:29,500 --> 00:36:32,180 you're pointing a big target on the back of your head. 558 00:36:33,020 --> 00:36:36,080 So how many companies do you see that 559 00:36:36,080 --> 00:36:39,940 do contests where it's like, oh, we're 560 00:36:39,940 --> 00:36:44,000 our product's hack-proof. We'll put it out there for test and everything like that. 561 00:36:44,100 --> 00:36:47,920 I mean, you are just asking for things to happen. I mean, Sony, 562 00:36:48,080 --> 00:36:52,140 LulzSec and others, they have painted the biggest target on their head 563 00:36:52,140 --> 00:36:56,080 that I can possibly imagine. But it's a matter of thinking, 564 00:36:56,360 --> 00:37:00,140 okay, you've got this initial release. It's going to be a 565 00:37:00,140 --> 00:37:02,060 while before the tools come about to 566 00:37:02,180 --> 00:37:06,060 exploit this. When they start coming together, you know that 567 00:37:06,060 --> 00:37:10,040 the best times are behind you. You've got to figure out how, okay, how do we mitigate 568 00:37:10,040 --> 00:37:14,100 this? Do we need to upgrade? Do we need to flash a new firmware on whatever 569 00:37:14,100 --> 00:37:18,040 upgrade protocols, procedures, something? But understanding 570 00:37:18,040 --> 00:37:22,180 that where that point is likely to be before 571 00:37:22,180 --> 00:37:25,940 it gets really bad and you can teach your mother to own 572 00:37:25,940 --> 00:37:30,280 a device, that's where a lot of the value of this research 573 00:37:30,280 --> 00:37:34,140 came in for me. I've been doing some work with Aruba Networks. They're 574 00:37:34,140 --> 00:37:37,840 implementing Suite B encryption on their products for 575 00:37:37,840 --> 00:37:41,860 doing secret level stuff over wireless. It's basically an NSA 576 00:37:41,860 --> 00:37:46,280 developed and supported set of configurations for wireless 577 00:37:46,280 --> 00:37:49,260 gear. So suddenly you can have wireless on base 578 00:37:49,260 --> 00:37:52,900 and use an iPad to access things that are theoretically secret. 579 00:37:55,180 --> 00:37:58,220 I'm willing to get out and say, because this stuff is only being 580 00:37:58,220 --> 00:38:02,300 implemented at the higher level, you've got several thousand 581 00:38:02,300 --> 00:38:05,020 dollar price point that you're going to have to break through. 582 00:38:05,980 --> 00:38:10,240 That is going to be a major barrier to entry. So for 583 00:38:10,240 --> 00:38:14,220 several years, X years, you're going to have no 584 00:38:14,220 --> 00:38:18,060 major attacks against this. But as soon as there's an open source implementation, 585 00:38:18,440 --> 00:38:21,980 when I can load Suite B level encryption on a Linksys router 586 00:38:21,980 --> 00:38:25,960 or something like that and interact with it at home, suddenly 587 00:38:25,960 --> 00:38:28,200 I'm sure within like X-minus years 588 00:38:28,220 --> 00:38:31,540 or X-minus one year, so however long it takes for those 589 00:38:32,720 --> 00:38:36,180 before that open source implementation comes out, 590 00:38:36,680 --> 00:38:40,280 it's going to be a much shorter period. Meaning there's going to be a positive 591 00:38:40,280 --> 00:38:43,580 honeymoon, but it's going to be a shorter period before somebody figures out some sort of vulnerability 592 00:38:43,580 --> 00:38:48,020 or way to manipulate or abuse this. So research 593 00:38:48,020 --> 00:38:52,200 like this for me proved that, okay, maybe all those academic papers that I was ignoring 594 00:38:52,200 --> 00:38:56,240 because I didn't think they were applicable actually do. And I would hope the rest of you 595 00:38:56,240 --> 00:39:00,080 would look at your environments and think, okay, how can I apply 596 00:39:00,080 --> 00:39:04,260 this? What do these numbers tell me? And can I plan ahead 597 00:39:04,260 --> 00:39:06,620 and sort of get an idea of when things will go bad? 598 00:39:07,580 --> 00:39:08,620 Thank you. 599 00:39:12,960 --> 00:39:16,140 You bring up some interesting points. And there's 600 00:39:16,140 --> 00:39:20,240 something I'd like to conclude with by calling to mind 601 00:39:21,080 --> 00:39:23,540 how many of you have played around with smart cards? 602 00:39:26,900 --> 00:39:28,120 Smart cards 603 00:39:28,120 --> 00:39:31,600 honeymoon is just about over. And the reason 604 00:39:31,600 --> 00:39:34,040 it's over is because it's cheap now. 605 00:39:34,580 --> 00:39:38,480 I have with me a nice little toy. 606 00:39:43,600 --> 00:39:47,120 I have a 16 channel logic analyzer right here 607 00:39:47,820 --> 00:39:51,560 that I can plug all sorts of wonderful little wires 608 00:39:51,560 --> 00:39:55,300 into and stick the rest of them onto whatever device 609 00:39:55,300 --> 00:39:59,420 whatever bus I'm trying to snoop. And suddenly I have complete access 610 00:39:59,420 --> 00:40:03,520 to communication. I'm a grad student and I can afford 611 00:40:03,520 --> 00:40:07,340 this. I'm a drunk hacker 612 00:40:07,340 --> 00:40:10,860 and I can afford that. Now that hardware 613 00:40:11,860 --> 00:40:15,340 tools are cheap enough, hardware 614 00:40:15,340 --> 00:40:16,400 honeymoon is over. 615 00:40:19,380 --> 00:40:20,420 No one 616 00:40:20,420 --> 00:40:23,500 can rely on cost or obscurity anymore. 617 00:40:25,060 --> 00:40:27,500 The entire economic 618 00:40:29,220 --> 00:40:32,520 environment, ecology, if you want to think about it 619 00:40:32,520 --> 00:40:36,300 in a biological term, has changed. It's 620 00:40:36,300 --> 00:40:39,820 no longer disgruntled teenagers in their parents' basements. 621 00:40:40,240 --> 00:40:42,600 It's highly financed 622 00:40:42,600 --> 00:40:46,000 organized crime. 623 00:40:47,080 --> 00:40:50,240 It's nation states training 624 00:40:50,240 --> 00:40:54,080 up their children to be tools or to be weapons 625 00:40:54,080 --> 00:40:58,160 or to know how to use the tools and weapons. And that changes the 626 00:40:58,160 --> 00:41:01,900 honeymoon as well. And these are extrinsic to the quality of anything 627 00:41:01,900 --> 00:41:05,500 whether it's hardware, firmware, or software. And that's a scary 628 00:41:05,500 --> 00:41:09,640 that keeps me awake at night because I don't know how to solve this problem yet. 629 00:41:10,780 --> 00:41:13,340 What I'm hoping that you'll take away from this 630 00:41:13,340 --> 00:41:17,260 is that we have to 631 00:41:17,260 --> 00:41:21,400 the way that we fix software now is broken. 632 00:41:21,740 --> 00:41:25,380 We cannot rely on the patch and pray cycle anymore. 633 00:41:26,020 --> 00:41:28,040 We have, as 634 00:41:29,400 --> 00:41:33,240 security people, two models for how we protect 635 00:41:33,240 --> 00:41:36,680 ourselves. We use the center for disease control model. 636 00:41:36,820 --> 00:41:40,520 Which is that you inoculate yourself against everything that you know that's out there. 637 00:41:40,520 --> 00:41:43,400 And then you stick yourself out there and you wait to be attacked. 638 00:41:44,120 --> 00:41:48,000 And then when you do, you clean yourself off and you go into detox for a while. 639 00:41:48,360 --> 00:41:52,340 And you do it again. And the only 640 00:41:52,340 --> 00:41:56,180 other model that we've got is the military model which is 641 00:41:56,180 --> 00:42:00,480 the castle and moat. You dig a huge moat 642 00:42:00,480 --> 00:42:04,000 around yourself and you put up really high walls and you 643 00:42:05,800 --> 00:42:08,540 carefully control the ingress and you carefully control 644 00:42:08,540 --> 00:42:11,540 the egress and you stick yourself out there and you wait until you're attacked. 645 00:42:12,280 --> 00:42:16,620 And that's it. We can't do that anymore. We're losing 646 00:42:16,620 --> 00:42:19,940 this arms race. Every piece of 647 00:42:20,500 --> 00:42:24,400 research that I could find from anybody from Symantec 648 00:42:24,400 --> 00:42:27,980 to Secunia, to OWASP, to Brian Krebs, to anyone that watches 649 00:42:28,540 --> 00:42:31,200 vulnerabilities and that watches exploits and that watches the marketplace. 650 00:42:31,860 --> 00:42:36,460 The attackers are winning this game. And it's because we patch our software 651 00:42:36,460 --> 00:42:39,760 and we fix our hardware the same way we fix our bugs. 652 00:42:39,900 --> 00:42:43,140 And we're not learning from that. And that's what we're going to have to change. 653 00:42:43,640 --> 00:42:46,700 So I really appreciate your attention and I'll take any questions. 654 00:42:48,740 --> 00:42:49,780 Thank you. 655 00:42:56,940 --> 00:42:57,460 Yes? 656 00:43:01,420 --> 00:43:04,520 The honeymoon paper of familiarity breeds contempt was published 657 00:43:04,520 --> 00:43:07,380 at AXAC in 2010. So it's available on their website. 658 00:43:07,800 --> 00:43:12,820 The position paper about adaptability should be out on crypto.com 659 00:43:12,820 --> 00:43:15,180 within about two weeks. What about data? 660 00:43:15,560 --> 00:43:20,260 All of our data is publicly available. It's from the NVD database, the 661 00:43:20,260 --> 00:43:23,480 NIST database, OWASP, BugTrack, Secunia. 662 00:43:24,580 --> 00:43:26,760 So you can just run the numbers the same way we did. 663 00:43:29,320 --> 00:43:31,940 It sounds almost like you're asking me 664 00:43:31,940 --> 00:43:34,560 to advocate a third model of outrun the attacker. 665 00:43:34,880 --> 00:43:40,360 Say again? It sounds almost like you're advocating a third model of outrun the attacker. 666 00:43:40,900 --> 00:43:42,420 In a way I am. 667 00:43:43,220 --> 00:43:47,860 Or at least run as fast as they do. So his comment was it sounded 668 00:43:47,860 --> 00:43:51,720 like we're advocating a third model which is outrun the attacker. And that may be our 669 00:43:51,720 --> 00:43:55,860 only defense. Because you can't win a defensive war 670 00:43:55,860 --> 00:43:59,880 anyway, right? All you can do is maintain, the best you can do is maintain a status quo. 671 00:44:00,780 --> 00:44:01,300 So. 672 00:44:01,940 --> 00:44:05,880 Or at least stay inside your enemy's OODA loop if any of you are military people and know 673 00:44:05,880 --> 00:44:08,700 that term. So. Well thank you very much.