1 00:00:13,320 --> 00:00:28,920 The technical hypothesis about how we might possibly pay down this technical debt is through a combination of cyber reasoning systems, traditional program analysis kind of technologies, and artificial intelligence. 2 00:00:28,920 --> 00:00:44,360 Those are kind of two great tastes that go well together, sort of the chocolate of logic and program analysis, static analysis, dynamic analysis, kind of traditional programming language software engineering kinds of capabilities, traditional cyber kinds of capabilities. 3 00:00:44,360 --> 00:00:45,480 That's the chocolate. 4 00:00:45,480 --> 00:00:51,300 It has the advantage of being able to reason about it, being able to prove things about it, knowing that it's going to work. 5 00:00:51,420 --> 00:00:59,500 But it has the disadvantage of being brittle and being slow and often needing a ton of really deep expertise to be able to use. 6 00:00:59,560 --> 00:01:05,400 Then on the other side, we have AI and machine learning, which is, it can learn, it could be flexible, it could be really fast. 7 00:01:05,400 --> 00:01:08,900 And with large language models, you can talk to it in human native forms. 8 00:01:08,900 --> 00:01:10,420 That's the kind of peanut butter. 9 00:01:10,640 --> 00:01:18,440 And the goal is, can we put those two things together and get something that can work at speed and scale, we can reason about it, we can know that it's going to work, and it can work really fast. 10 00:01:18,540 --> 00:01:22,060 So that's what we're going to explore for the next 45 minutes or so. 11 00:01:23,600 --> 00:01:24,140 DARPA. 12 00:01:24,140 --> 00:01:25,120 Why is DARPA involved? 13 00:01:25,120 --> 00:01:30,840 DARPA's job is detecting and creating strategic surprise looking far over the horizon for national security. 14 00:01:30,840 --> 00:01:34,360 Why is this a national security problem as opposed to a business problem? 15 00:01:34,650 --> 00:01:51,400 We saw in January 31st of this year, Christopher Wray, who's the director of the FBI, Paul Nakasone, who at the time was the director of the NSA and the commander of CyberCon, Jennifer Easterly, who is the head of CISA, and Harry Coker, who is the national cyber director, 16 00:01:51,400 --> 00:02:03,900 many of whom are wandering around here today, testified before the House Select Committee on the Chinese Communist Party, that the CCP is planting implants in U.S. 17 00:02:03,900 --> 00:02:05,400 civilian infrastructure, U.S. 18 00:02:05,400 --> 00:02:17,220 critical infrastructure, not for industrial espionage, not for national security espionage, but to cause destruction in the event of conflict between nation states. 19 00:02:17,620 --> 00:02:22,440 We need to be... that's why it's really critical for national security that we pay down that technical debt. 20 00:02:22,960 --> 00:02:32,240 That echoes testimony in the ODNI report, the Office of the Director of National Intelligence last year and the year before, about those same kinds of implants in critical infrastructure. 21 00:02:32,240 --> 00:02:35,620 We need to clean up those vulnerabilities and we need to do it really fast. 22 00:02:35,620 --> 00:02:41,280 Again, that's why it's important to put together the chocolate and peanut butter to be able to pay down that technical debt fast. 23 00:02:41,280 --> 00:02:44,140 That's why DARPA is interested, or one of the reasons DARPA is interested. 24 00:02:46,720 --> 00:02:49,320 Okay, so... and why is it important? 25 00:02:50,080 --> 00:02:56,780 One of the reasons... another reason why it's important is because software doesn't just control pure software systems in the digital world. 26 00:02:56,960 --> 00:03:01,220 These software systems also control physical infrastructure. 27 00:03:01,220 --> 00:03:15,860 This slide shows three different systems, or sorry, six different systems, I can count most days, six different systems that are very complex, that have software components, but also have physical components that cause massive disruption on a world scale. 28 00:03:15,860 --> 00:03:26,440 Top left-hand corner is a picture of the... a ship... it shows a picture of the consequences of the NotPetya ransomware attack. 29 00:03:26,440 --> 00:03:29,580 So sorry, it wasn't a ransomware attack, it was called NotPetya. 30 00:03:29,580 --> 00:03:39,420 NotPetya was an attack that was launched against Ukraine's power grid by the GRU, by Sandworm, which was an intelligence directorate of Russia. 31 00:03:39,420 --> 00:03:53,140 The intent was to cause destruction in Ukraine, but it escaped from Ukraine and ended up attacking Maersk, which is responsible... it's a shipping company, it's responsible for something like 20% of the world's shipping. 32 00:03:53,300 --> 00:04:04,500 In about seven minutes, it destroyed 50,000 computers, of Maersk's computers, and it destroyed an entire VoIP phone system. 33 00:04:04,500 --> 00:04:23,140 In the process of destroying those 50,000 computers, it destroyed all but one copy of Maersk's active directive system that it uses... that it used to keep track of where all their container ships were, and what was in all of those container ships. 34 00:04:23,140 --> 00:04:25,300 Basically, how they ran their business. 35 00:04:25,600 --> 00:04:32,380 The one copy of the active directory that wasn't destroyed happened to be in the capital of Nigeria. 36 00:04:32,380 --> 00:04:42,540 And that one copy that wasn't destroyed was not destroyed because the capital of Nigeria was having a power outage at that time, completely accidentally. 37 00:04:43,240 --> 00:04:45,860 Accidents are not a good backup strategy, right? 38 00:04:45,860 --> 00:04:52,040 It was complete luck that they didn't have the entire database of their backup... of their container strategies destroyed. 39 00:04:52,380 --> 00:05:04,260 It took them about a week to get some semblance back and running, and it took them two months to restore their entire consequences... their entire services back to normal, causing significant damage. 40 00:05:04,620 --> 00:05:15,020 The other pictures here, the NOTAMS 2023 FAA outage, that was caused by a syntax error in a file. 41 00:05:15,020 --> 00:05:24,680 Every time a flight takes off in the United States, every single flight that takes off in the United States is required to check the NOTAM system to get authorization to fly. 42 00:05:25,300 --> 00:05:31,380 When that syntax error occurred in that flight, no flight in the United States was allowed to take off for 12 hours, right? 43 00:05:31,380 --> 00:05:32,520 That was a syntax error. 44 00:05:32,520 --> 00:05:37,500 But adversaries could cause similar things because that system exists and potentially has vulnerabilities in them. 45 00:05:37,500 --> 00:05:41,000 So these are the kinds of things that we need to be able to make sure don't happen in the future. 46 00:05:41,340 --> 00:05:42,560 So that's one problem. 47 00:05:42,560 --> 00:05:46,540 The very complex systems that are connected in very complex ways. 48 00:05:47,360 --> 00:05:51,460 The existence of vulnerabilities in many codebases is another reason. 49 00:05:51,460 --> 00:05:53,080 So this slide talks about open source. 50 00:05:53,080 --> 00:05:59,020 I in no way intend to imply that open source is more vulnerability, more buggy than other kinds of software. 51 00:05:59,020 --> 00:06:03,540 I'm only showing this because we have the data about open source because it is open. 52 00:06:03,540 --> 00:06:05,340 It is not worse in any other way. 53 00:06:05,340 --> 00:06:07,320 It's probably better than other kinds of codebases. 54 00:06:07,320 --> 00:06:10,000 Much, much better than some kinds of codebases. 55 00:06:10,000 --> 00:06:13,840 This data is pulled from the Synopsys annual report. 56 00:06:13,920 --> 00:06:18,020 The horizontal axis gives years in time. 57 00:06:18,400 --> 00:06:20,980 The vertical axis gives just percentages. 58 00:06:20,980 --> 00:06:27,680 And this data is pulled from open source across basically almost every industrial sector in the United States. 59 00:06:27,680 --> 00:06:31,580 So if it's a sector that you can imagine, it's probably in this data set. 60 00:06:31,660 --> 00:06:39,220 The very dark blue color, which is the line, the solid line at the top, is the percentage of codebases that contain open source. 61 00:06:39,220 --> 00:06:45,140 That's 96% of codebases across almost every industrial sector in the US contains open source. 62 00:06:45,140 --> 00:06:47,940 Basically, everybody's using open source, which is what we all know. 63 00:06:48,140 --> 00:06:55,040 Then the lighter blue color, the solid blue color at the bottom, that's the percentage of the code in these industries that are open source. 64 00:06:55,040 --> 00:06:59,740 Not just are they using open source at all, it's how much of their code is open source. 65 00:06:59,760 --> 00:07:02,700 That's 77% of those codebases are open source. 66 00:07:02,700 --> 00:07:07,500 So not only are they using open source, they're using open source a lot. 67 00:07:07,500 --> 00:07:09,680 Also, not particularly a surprise. 68 00:07:10,200 --> 00:07:14,960 The yellow line is how many of those codebases contain at least a vulnerability. 69 00:07:14,980 --> 00:07:19,020 The answer is 84% in the most recent survey contain a vulnerability. 70 00:07:19,280 --> 00:07:22,360 And the dark red line is how many contain a severe vulnerability. 71 00:07:22,360 --> 00:07:26,320 In the most recent year, that was 74% contain at least a severe vulnerability. 72 00:07:26,560 --> 00:07:30,420 So that says we have a lot of high risk exposure in the most recent year. 73 00:07:30,420 --> 00:07:32,620 And every year, if you look back in time. 74 00:07:32,800 --> 00:07:35,840 Again, not trying to criticize open source per se. 75 00:07:35,840 --> 00:07:37,760 It's just the source we have data for. 76 00:07:37,760 --> 00:07:40,720 I would suspect non-open source databases have... 77 00:07:40,720 --> 00:07:44,240 codebases probably have even more exposure than the open source database. 78 00:07:44,240 --> 00:07:46,480 This is just the one that we have the data for. 79 00:07:47,740 --> 00:07:51,360 Then another problem with codebase is who is maintaining the codebase? 80 00:07:51,360 --> 00:07:58,280 And there are a lot of codebases where it's basically one guy in Nebraska or some other state of your choice. 81 00:07:58,280 --> 00:08:00,720 Not a robust population. 82 00:08:00,720 --> 00:08:08,940 And then we have situations like we saw with the recent XV compression library. 83 00:08:08,940 --> 00:08:16,980 Where we had a hero for a long time, Lassie Cullen, maintaining this database, this codebase from 2005. 84 00:08:17,300 --> 00:08:28,720 And then we had a person, an entity, Jia Tan, convince him over a period of time with the help of five other GitHub users to turn over the maintenance of that codebase. 85 00:08:28,720 --> 00:08:30,480 Because he'd been doing it for a really long time. 86 00:08:30,480 --> 00:08:32,200 It was time for him to move on. 87 00:08:32,480 --> 00:08:42,080 But turned out that Jia Tan wasn't really a person that was a Russian consortium intending to put in a backdoor into that compression library. 88 00:08:42,580 --> 00:08:47,520 But thankfully, yeah, so Jia Tan was actually some Russian guy or maybe a group of Russian guys. 89 00:08:47,600 --> 00:08:58,680 But thankfully, there was another guy in Nebraska, who in this case turned out to be a software engineer at Microsoft who I think lived in California, who maintains a Postgres library. 90 00:08:58,680 --> 00:09:05,020 And he noticed that his Postgres library, query language, was going just a little bit slower than he wanted. 91 00:09:05,020 --> 00:09:06,980 And really just a little bit slower. 92 00:09:06,980 --> 00:09:15,240 And he put in, oh my god, heroic effort to figure out that his library was going a little bit slower because there was an embedded shell. 93 00:09:15,240 --> 00:09:19,500 And there should not be an embedded shell in a compression library, right? 94 00:09:19,500 --> 00:09:21,340 Compression does not need shells. 95 00:09:21,340 --> 00:09:32,560 And so he figured out that there was this backdoor in the compression library and got it out before it became a part of the main Linux distribution, which would have been a massive vulnerability. 96 00:09:32,560 --> 00:09:38,100 Because the Linux distribution, this particular Linux distribution is widely used by many, many organizations. 97 00:09:38,100 --> 00:09:40,060 And this would have been a massive problem. 98 00:09:40,060 --> 00:09:42,720 So this is another problem with the security of our software. 99 00:09:44,440 --> 00:09:47,140 Okay, so that's on the security side. 100 00:09:47,140 --> 00:09:54,360 On the AI side, this past decade has seen jaw-dropping advancements. 101 00:09:54,360 --> 00:09:57,060 This slide, the horizontal axis is time. 102 00:09:57,060 --> 00:10:04,660 The vertical axis is the amount of resources used to produce a particular advancement on an exponential scale. 103 00:10:05,420 --> 00:10:12,820 Every single dot on this slide was an advancement that was a shock at the time the advancement came out. 104 00:10:12,820 --> 00:10:15,360 Every single dot over a 10-year period. 105 00:10:15,360 --> 00:10:18,680 That's a lot of shock in a 10-year period. 106 00:10:18,680 --> 00:10:25,680 Things like the AlphaGo that beat the world Go champion, with a shockingly beautiful move, 37. 107 00:10:25,860 --> 00:10:30,800 Things like the GAN style, the GAN advancement in 2014. 108 00:10:31,120 --> 00:10:34,320 2014, that was only like 10 and a half years ago. 109 00:10:34,320 --> 00:10:40,440 That was the first time that computers could generate pictures of faces that were believable as people, that could fool people. 110 00:10:40,440 --> 00:10:42,940 Like more than a decade ago, that was a surprise. 111 00:10:43,140 --> 00:10:45,980 It's hard to imagine now where we can get videos. 112 00:10:46,140 --> 00:10:48,800 That 10 years ago, that was something that didn't exist. 113 00:10:48,800 --> 00:10:58,340 Then we have AlphaFold, where computers can predict how protein sequence will fold into a 3D shape, which is game-changing for biology. 114 00:10:58,340 --> 00:11:08,560 That will change the face of medicine and medical research going forward, because it's not just the sequence of a protein, but it's how it becomes a 3D shape that is critical for biological research. 115 00:11:08,800 --> 00:11:19,360 And of course, the thing that really grabbed everybody's imagination is ChatGPT, because now we can see that computers can talk to people, in people-native forms. 116 00:11:19,360 --> 00:11:26,900 Instead of having to type and communicate with computers in the form that computers expect, we can now talk to computers in the form that we expect. 117 00:11:27,660 --> 00:11:38,100 Of course, we're hearing now all sorts of different things about whether we're going to get ChatGPT5 or not, whether it's going to continue the exponential curve, or whether it's going to slow down, and how many resources that's going to take. 118 00:11:38,100 --> 00:11:52,300 Whether or not we continue to see exponential advances in AI, just the advances we've already seen will produce game-changing advances in the rest of our lives, as we see just to harvest the fruits of what we've already seen. 119 00:11:52,300 --> 00:11:54,840 For example, the protein folding. 120 00:11:54,840 --> 00:12:11,940 As we continue to be able to harvest the consequences of those protein folding advances, as we continue to harvest the consequences of being able to generate pictures, and music, and images, and video, that will have game-changing consequences as we unwind that. 121 00:12:11,940 --> 00:12:23,180 Robotics is very likely to see transformational changes as we play through the consequences of the transformer models that underlie large language models, etc., in the field of robotics. 122 00:12:23,800 --> 00:12:29,760 All this means is that we are living in the best of times and the worst of times as far as AI goes. 123 00:12:29,760 --> 00:12:38,460 We are going to need to understand how to harvest the good things and limit the bad things, and continue to figure out how to advance the field. 124 00:12:40,040 --> 00:12:44,300 That's the Charter of the Office, the Information Innovation Office at DartBook. 125 00:12:44,300 --> 00:13:01,080 We are chartered with figuring out how to advance the field of AI, how to build confidence in the information domain, how to advance both offensive and defensive cyber operations, and how to build secure, resilient systems, systems that are software-based systems, 126 00:13:01,080 --> 00:13:07,160 things that are guaranteed to do what they're supposed to do, and more importantly, maybe guaranteed not to do what they're not supposed to do. 127 00:13:07,160 --> 00:13:20,880 These are very sort of tidily looking, sort of separate compartments, but they actually all kind of interrelate to each other, as we often use artificial intelligence to help with the cyber operations, and we use the same thing, artificial intelligence, 128 00:13:20,880 --> 00:13:23,700 to help build secure systems and vice versa. 129 00:13:23,700 --> 00:13:25,300 They all cut across each other. 130 00:13:25,740 --> 00:13:28,240 So I want to talk a little bit about the Proficient AI. 131 00:13:28,360 --> 00:13:30,460 How do we build Proficient AI? 132 00:13:31,840 --> 00:13:35,700 And some of the programs that we've been working on in that space. 133 00:13:37,540 --> 00:13:44,460 So to build AI, one of the things we have to think about, we're here at DefCon, where we have kind of an adversarial mindset. 134 00:13:44,460 --> 00:13:46,720 How do we think about where we have an attacker? 135 00:13:47,000 --> 00:13:57,300 So when we're building AI systems, one of the things we know about, AI is built on computers, where we have the notion of an attacker, and the substrate can be attacked and can be changed. 136 00:13:57,300 --> 00:14:03,060 So what can an attacker do when the attacker is focusing on an AI-based system? 137 00:14:03,060 --> 00:14:18,100 So Guard basically just explored all that question from any angle possible, from everything like, how could an attacker, how much could you build a system to defend an AI algorithm in the presence of an attacker? 138 00:14:18,180 --> 00:14:32,800 So one of the things they did was they figured out how to defend AI image classification systems so that it would get the right answer unless the attacker disrupted the image so much that a person would be able to tell that the image had been attacked. 139 00:14:33,700 --> 00:14:40,780 The algorithm, the program also looked at large language models to understand a lot of the properties of large language models. 140 00:14:40,780 --> 00:14:47,600 One study, for example, looked at, could you poison large language models by poisoning the data on the web? 141 00:14:47,600 --> 00:15:06,480 The study showed that you could, in fact, you could buy enough URLs on the web to poison large language models for about $60, which was sort of a surprising result that you could actually get enough sort of real estate on the web for really only $60 to change the downstream effect on large language models. 142 00:15:07,360 --> 00:15:20,500 Another thing that that study did was they found the universal suffixes by training on open source large language models that if you put those universal suffixes on any query, you could jailbreak the particular models. 143 00:15:20,500 --> 00:15:28,240 So the goal of the program was to understand kind of principles of how you could attack and therefore how you could defend against large language models. 144 00:15:28,460 --> 00:15:53,620 They also worked with how you could, they built, the researchers on this program worked on the Glaze system from the University of Chicago, how artists could modify their digital works so that if those works were ingested into a large language model, the large language model would not be able to learn the style of those works and therefore would not be able to output work in those particular artists' style. 145 00:15:54,240 --> 00:15:55,920 So that was the Glaze program. 146 00:15:56,940 --> 00:15:59,100 And then we have deepfakes. 147 00:15:59,100 --> 00:16:05,480 DARPA has been working on the deepfake problem for more time than the word deepfake was actually a word. 148 00:16:05,480 --> 00:16:09,600 So for more than 10, eight years, 10 years, something like that. 149 00:16:09,600 --> 00:16:13,640 The problem of manipulated media, text, audio, video. 150 00:16:14,300 --> 00:16:18,040 The slide here is showing the person of interest model. 151 00:16:18,040 --> 00:16:37,480 So how can we build models of high interest, high visibility people so that when a purported image or video comes out of a high interest person, we already have a way of very quickly assessing whether it's likely or not likely that that video is a real, 152 00:16:37,700 --> 00:16:41,500 a genuine recording of the real person or not. 153 00:16:41,520 --> 00:16:48,120 It turns out that when we speak, we all have idiosyncratic bio expressions, micro expressions of our face. 154 00:16:48,120 --> 00:16:53,480 So like when I say the word hello, maybe I always raise the left corner of my lip, my right eyebrow. 155 00:16:53,600 --> 00:16:57,320 It turns out those kind of idiosyncratic expressions are very regular. 156 00:16:57,320 --> 00:17:02,740 And we can build such a model based on about an hour or two hours of video of a particular person. 157 00:17:02,760 --> 00:17:09,300 And those biomarkers would defend against both deepfakes, but also impersonators, things like that. 158 00:17:09,300 --> 00:17:18,460 And we can then, when a deepfake came out, you could show side by side, both the deepfake or the purported deepfake and the model to audiences. 159 00:17:18,460 --> 00:17:27,660 And you could, the audience members could decide for themselves whether the model, whether the purported deepfake and the person, the genuine model were the same or not. 160 00:17:28,980 --> 00:17:33,420 These models have all been, are in the process of being open sourced and made available. 161 00:17:33,540 --> 00:17:51,060 And at the direction of Congress, we are working on sort of creating an industry and a whole market for these kinds of tools so that the consumer can make decisions for themselves about whether media has been manipulated or is authentic so that people can make informed decisions about what the information they're getting is. 162 00:17:52,320 --> 00:17:53,040 Okay. 163 00:17:53,880 --> 00:17:54,380 Okay. 164 00:17:54,380 --> 00:17:55,480 So then provable AI. 165 00:17:55,480 --> 00:18:01,320 When we are assessing artificial intelligence, right now, the benchmark, the standard of the art is a testing-based regimen. 166 00:18:01,320 --> 00:18:05,300 And we know from software that testing is only as good as the test suites. 167 00:18:05,300 --> 00:18:12,420 And a lot of the standards and the techniques that we're using for testing artificial intelligence have been designed to test people. 168 00:18:12,520 --> 00:18:25,300 And while we know a lot about how to test people, we don't know so much about how you test AI systems that are massively larger in scale in terms of the speed of the data that they have read and ingested than people. 169 00:18:25,440 --> 00:18:34,040 A lot of the times they've read the content that might have been on the test and we know how to extrapolate for people, but we don't necessarily know so well how to extrapolate from AI systems. 170 00:18:34,200 --> 00:18:42,940 And so the concept behind provable quantification of AI is sort of like the concept behind formal verification for software. 171 00:18:42,940 --> 00:18:47,780 Can we prove properties of AI models instead of testing properties for AI models? 172 00:18:47,780 --> 00:18:51,880 So can we prove that an AI model will be able to answer a particular question properly? 173 00:18:51,880 --> 00:18:55,880 Can we prove that a given model might be able to answer a class of questions properly? 174 00:18:55,940 --> 00:19:00,020 Can we prove what kind of questions a particular model might be able to answer? 175 00:19:00,440 --> 00:19:06,080 You know, as Stephanie Tompkins mentioned earlier in her main stage talk, DARPA does high-risk, high-reward research. 176 00:19:06,080 --> 00:19:16,260 So it may be that the answer to all of these questions is, no, maybe not today, maybe not this year, maybe not 10 years from now, maybe not ever, but that's the hypothesis that this particular program is attempting to answer. 177 00:19:17,560 --> 00:19:22,640 Okay, 178 00:19:26,600 --> 00:19:31,720 so that's sort of the basic AI piece, kind of laying out some of the fundamentals of what we're doing in AI. 179 00:19:31,720 --> 00:19:35,420 Moving on now to the proficient, the resilient, adaptable, secure systems. 180 00:19:35,420 --> 00:19:40,960 Imagine if we could build a world where the amount of vulnerabilities in our software were shockingly lower. 181 00:19:40,960 --> 00:19:44,080 We actually have a lot of tools and techniques to be able to do that. 182 00:19:44,080 --> 00:19:52,940 To talk about that a little bit, I want to go back in time to the HACMS program, where we worked on applying formal methods to a helicopter. 183 00:19:52,940 --> 00:19:58,540 First of all, to a quadcopter and to the unmanned little bird, which is the picture on the slide. 184 00:19:58,680 --> 00:20:03,720 You can see that the unmanned little bird here is a full -size helicopter, big enough to have two test pilots. 185 00:20:03,960 --> 00:20:06,420 The program started by doing a baseline assessment . 186 00:20:06,420 --> 00:20:14,660 We had a state-of-the-art red team try to attack and get access to take over remote control of both of these vehicles from off the vehicle. 187 00:20:14,660 --> 00:20:19,760 We required them to assume that the hardware was correct, only attack the software. 188 00:20:20,620 --> 00:20:23,020 They had six weeks time. 189 00:20:23,700 --> 00:20:27,080 They were able to remotely take over the quadcopter. 190 00:20:27,180 --> 00:20:30,100 Nobody was really surprised that they could take over the quadcopter. 191 00:20:30,100 --> 00:20:38,960 I think probably the manufacturers of the quadcopter, their biggest fear was probably that the quadcopter was, you know, flying in a park and no one could connect to it. 192 00:20:38,960 --> 00:20:41,760 Not that too many people could connect to it. 193 00:20:42,200 --> 00:20:48,320 The Boeing aviation engineers, though, they were shocked that the red team was able to remotely take over control of the quadcopter. 194 00:20:48,740 --> 00:20:50,140 Sorry, of the helicopter. 195 00:20:50,360 --> 00:20:51,400 But they could. 196 00:20:52,260 --> 00:20:58,660 Then the formal methods engineers got to work and they rewrote a lot of the code in the quadcopter. 197 00:20:58,660 --> 00:21:04,540 And then the red team got to do it again at the end of 60 months, try to take over control again of the quadcopter. 198 00:21:04,780 --> 00:21:06,620 They were not able to do so. 199 00:21:06,620 --> 00:21:08,400 At that time, the red team was shocked. 200 00:21:08,400 --> 00:21:10,300 Pretty much so was everybody else. 201 00:21:10,500 --> 00:21:13,620 One of my colleagues at the time was a penetration testing expert. 202 00:21:13,620 --> 00:21:17,220 His assessment was that that was the most secure UAV on the entire planet. 203 00:21:17,380 --> 00:21:21,560 DARPA's assessment was that that result made that the entire program was a success. 204 00:21:23,460 --> 00:21:33,460 That quadcopter came back to the aviation village, aerospace village, three years ago and was challenged by all comers here to hack into it. 205 00:21:33,460 --> 00:21:36,980 No one was able to hack into it even three years ago. 206 00:21:36,980 --> 00:21:39,860 So seven years later, six years later. 207 00:21:39,860 --> 00:21:43,000 So the formal methods stood the test of time. 208 00:21:43,240 --> 00:21:44,620 But that was just a quadcopter. 209 00:21:44,620 --> 00:21:46,120 What about the helicopter? 210 00:21:46,280 --> 00:21:51,460 So after the work on the quadcopter, the Boeing aviation engineers got to work. 211 00:21:51,460 --> 00:21:59,640 So unlike the quadcopter that was open source and available to the formal methods researchers, the quadcopter, the helicopter was ITAR restricted and proprietary. 212 00:21:59,640 --> 00:22:04,700 So the formal methods researchers who are professors and grad students, they couldn't look at it directly. 213 00:22:04,700 --> 00:22:12,680 They had to teach the Boeing aviation engineers how to apply and use the formal methods tools, which the Boeing aviation engineers did. 214 00:22:12,840 --> 00:22:19,000 And at the end of phase two, so another roughly 16 months later, the red team got to go again. 215 00:22:19,000 --> 00:22:28,000 But this time, instead of attacking from off the helicopter, they got to put whatever code they wanted in a particular place with route access on the helicopter. 216 00:22:29,200 --> 00:22:33,900 And this time they were just supposed to disrupt the operation of the helicopter as a helicopter. 217 00:22:33,940 --> 00:22:35,260 And they couldn't do it. 218 00:22:36,280 --> 00:22:44,700 16 months later, they got to try again, this time while the helicopter was in flight with the two test pilots on board. 219 00:22:45,960 --> 00:22:50,420 Basically, we're betting the lives of those helicopters on the quality of the formal methods software. 220 00:22:50,660 --> 00:22:52,080 And it was a good bet. 221 00:22:52,080 --> 00:23:03,900 The helicopter survived, the test pilot survived, and the test pilots couldn't tell that they were flying a high assurance version of the helicopter instead of the normal version of the helicopter. 222 00:23:04,560 --> 00:23:06,420 So what was the secret sauce? 223 00:23:06,460 --> 00:23:09,660 So we started with the unverified, unsecured version. 224 00:23:09,800 --> 00:23:11,140 And they did a couple of things. 225 00:23:11,140 --> 00:23:17,840 They started by doing an architectural analysis to understand what was the lay of the land as far as the software was concerned. 226 00:23:17,860 --> 00:23:24,220 What part of the software was kind of a nice to have versus what part of the software was really critical for the operation of the helicopter. 227 00:23:24,320 --> 00:23:32,920 They decided, for example, that the camera software was, you know, it was kind of nice to have for a mission, but it was not essential for the operation of the helicopter as a helicopter. 228 00:23:33,020 --> 00:23:36,160 So that they decided they didn't need to worry about from a security perspective. 229 00:23:36,240 --> 00:23:39,120 And that's where they put, in the end, the red team code. 230 00:23:39,540 --> 00:23:45,820 And then they decided that the code that would talk to the ground station, that was high assurance code. 231 00:23:45,820 --> 00:23:48,340 They decided the flight control computer, that was high assurance code. 232 00:23:48,340 --> 00:23:55,100 They kind of did this analysis and they codified it in the architecture, the AADL, the architecture analysis and description language. 233 00:23:55,420 --> 00:24:04,980 And they used the SCL4 microkernel, which is a fully verified separation kernel written in C, verified in the Isabel theorem prover, and proven to be fully functionally correct. 234 00:24:04,980 --> 00:24:12,800 Now, that is a massive amount of very specialized work that they spent thousands of hundreds of thousands of people hours doing. 235 00:24:12,800 --> 00:24:14,460 So, like, massive amount of work. 236 00:24:14,460 --> 00:24:18,520 But that artifact is now available for many, many people to reuse. 237 00:24:20,560 --> 00:24:30,760 That's the thing that provided separation, that allowed us to put the red team code in the camera partition, allowed them to get route access over there, and allowed us to put the flight control in another partition. 238 00:24:30,760 --> 00:24:36,020 And allowed us, we really did bet the pilot's lives on the fact that that separation would hold. 239 00:24:36,020 --> 00:24:41,800 And that the red team code could crash the camera partition and that would not crash the helicopter. 240 00:24:42,160 --> 00:24:44,760 And then we used verified parsers. 241 00:24:44,760 --> 00:24:53,540 We guaranteed that all of the communications from the wire representations into in-memory representations would be fully verified and therefore would be correct. 242 00:24:54,100 --> 00:24:55,980 So, that's just some of the secret sauce there. 243 00:24:57,380 --> 00:24:58,080 Okay. 244 00:24:58,080 --> 00:24:58,520 Parsers. 245 00:24:58,520 --> 00:25:00,640 I mentioned parsers briefly on the last slide. 246 00:25:00,640 --> 00:25:08,100 Parsers, as I'm sure many of you know since you're at DEF CON, are the thing that convert wire representations into in-memory representations. 247 00:25:08,540 --> 00:25:14,860 Bad parsers are a source of something like 80% of the CVEs in MITRE's vulnerability database. 248 00:25:15,000 --> 00:25:18,500 Because empirically, people just suck at writing parsers. 249 00:25:18,760 --> 00:25:35,980 If we could just get parsers to be replaced by generated parsers, if you write instead of a parser a grammar that describes what is the format that I'm expecting of things on the wire, and from that grammar generate code that will convert the wire representation into the in-memory representation and prove that that description, 250 00:25:35,980 --> 00:25:40,860 that conversion is correct, and use that instead, we would have a much safer world. 251 00:25:42,240 --> 00:25:46,200 The SafeDocs worked on making those grammars much more expressive. 252 00:25:46,200 --> 00:25:53,420 They worked with the PDF Association to codify the description of the PDF grammar and make it machine-readable. 253 00:25:53,420 --> 00:25:57,900 They now call, they release, the PDF Association released a new standard for PDF. 254 00:25:57,900 --> 00:26:00,160 It's called the Arlington PDF Model. 255 00:26:00,240 --> 00:26:03,200 Trivia future for you in the future, super geeks. 256 00:26:03,200 --> 00:26:09,480 The PDF, the Arlington PDF Model is called the Arlington PDF Model because DARPA is in Arlington. 257 00:26:10,560 --> 00:26:14,860 All of this is released, a lot of this is released open source, so it's available to the community more broadly. 258 00:26:14,860 --> 00:26:23,360 And if you like, in the future, when you have a choice between writing a parser by hand and finding a grammar, a verified parser generator tool, use the generated tool. 259 00:26:23,360 --> 00:26:25,380 Your code will be much safer as a result. 260 00:26:26,400 --> 00:26:28,140 Okay, that's SafeDocs. 261 00:26:28,660 --> 00:26:29,200 Vspells. 262 00:26:29,200 --> 00:26:38,320 Sometimes you have the problem that your code is just this ugly spaghetti mess of legacy stuff, and it's horrible, and it has a parser in there somewhere, or it has some piece that you want to be able to reuse. 263 00:26:38,320 --> 00:26:45,980 Maybe you don't have this problem because you write beautiful code and your organization has always written beautiful code, but I can tell you the military has this problem everywhere. 264 00:26:46,660 --> 00:26:57,360 And Vspells is designed to be able to go and find those places and lift them up into a beautiful high-level abstraction, replace, say, the ugly parser with a verified generated parser, and then plug it back in and compile it down. 265 00:26:57,360 --> 00:26:58,840 That's what Vspells is about. 266 00:27:01,400 --> 00:27:02,780 Okay, and then Provers. 267 00:27:02,780 --> 00:27:15,760 I mentioned in Hackams that we used a ton of formal methods-based approaches, but the level of expertise necessary to use a lot of those tools was kind of at the PhD end of the spectrum, and we don't have a whole lot of PhDs to go around. 268 00:27:16,380 --> 00:27:23,520 Provers is about can we lower the level of expertise required so that it is much more accessible to a much broader audience? 269 00:27:23,520 --> 00:27:34,100 A lot of this is about using AI-based tools and techniques so that instead of having to write really strange incantations into tools, the AI system can fill in those incantations automatically. 270 00:27:34,260 --> 00:27:39,920 Turns out theorem Provers is just another kind of language, and large language models are really good at weird kind of languages. 271 00:27:39,920 --> 00:27:46,520 And so it turns out that this kind of automation of using theorem Provers and large language models is working pretty well. 272 00:27:46,520 --> 00:27:59,300 So that's the concept behind the Provers program, is can we do a lot of the kind of Hackam-style formal methods work in normal kind of tool chains by using AI-level automation is the technical hypothesis behind the Provers program. 273 00:27:59,300 --> 00:28:06,560 And again, the goal is to get higher quality software faster with lower levels of expertise required on the part of the developers. 274 00:28:10,390 --> 00:28:14,210 Okay, and then this is the Tractor program. 275 00:28:14,210 --> 00:28:25,510 So just as I mentioned how parsing, we've sort of empirically discovered in the last 50 years that people are not good at writing parsers that don't have vulnerabilities that can be exploited by adversaries. 276 00:28:25,510 --> 00:28:35,230 We've also empirically discovered that writing code in non-memory-safe languages is dangerous and leads to code that could be exploited too easily. 277 00:28:35,230 --> 00:28:40,830 I'm sure there are some people who can write code in non-memory-safe languages, but most of us are not those people. 278 00:28:40,830 --> 00:28:50,690 There's been lots of reports written in the last year to basically recommending that we stop writing code in non-memory-safe languages. 279 00:28:50,890 --> 00:29:00,690 We still need to write code in highly performant languages with not a lot of overhead, which is of course why Rust is kind of rocketing up in the language popularity. 280 00:29:00,910 --> 00:29:12,290 The problem is we have literally trillions of lines of code in C and C++, and even Google has committed to write into Rust. 281 00:29:12,290 --> 00:29:14,790 Microsoft is talking about writing into Rust. 282 00:29:14,790 --> 00:29:29,310 But even with Google trying to write in Rust, my understanding is they've written more C and C++ code in the time that they've been trying to write in Rust than they've written Rust code, even though they're trying to write Rust code more than they're trying to write C and C++ code. 283 00:29:29,410 --> 00:29:31,910 So how do we get out of this? 284 00:29:32,050 --> 00:29:37,810 Well, the obvious answer is you write something that will translate from C and C++ into Rust. 285 00:29:38,910 --> 00:29:43,250 But, I mean, you can easily literally translate from C and C++ into Rust. 286 00:29:43,250 --> 00:29:48,690 There's like an unsafe thing in Rust, so you can just translate and put unsafe around it, and you're done! 287 00:29:48,910 --> 00:29:55,070 Except you haven't actually accomplished anything because that's just a memory-unsafe language, so you're still in a memory-unsafe language. 288 00:29:55,070 --> 00:30:19,110 So the technical hypothesis or the goal of the Tractor program is, can we use program analysis tools paired with large language model AI kind of technology to automatically translate C into idiomatic Rust at speed and scale almost completely automatically? 289 00:30:19,110 --> 00:30:22,890 Now, note I didn't say completely automatically, but almost completely automatically. 290 00:30:22,890 --> 00:30:25,830 Maybe like 99.9% automatically. 291 00:30:25,910 --> 00:30:29,410 So that it finds the places where it's straightforward. 292 00:30:29,470 --> 00:30:30,590 Just do it. 293 00:30:30,590 --> 00:30:34,090 The places where it's like, oh, but you're not really memory-safe here. 294 00:30:34,530 --> 00:30:38,530 Like, figure out the idioms where you can make it memory-safe and make it memory-safe. 295 00:30:38,530 --> 00:30:40,890 And then the places where like, wow, this is really gnarly, dude. 296 00:30:40,890 --> 00:30:42,270 I don't know how to do this. 297 00:30:42,310 --> 00:30:43,050 Help! 298 00:30:43,050 --> 00:30:45,190 Can you come help this and figure this out? 299 00:30:45,290 --> 00:30:50,230 So this program is just getting launched. 300 00:30:50,270 --> 00:30:52,690 So the special notice is on the street right now. 301 00:30:52,690 --> 00:30:54,690 The call for proposals is actually open. 302 00:30:54,690 --> 00:30:56,290 Proposals are due August 19th. 303 00:30:56,290 --> 00:31:05,550 So if you would like to participate, you can still participate in this program by going to the webpage, finding out information, talking to other people, and writing a proposal. 304 00:31:05,550 --> 00:31:09,410 If you have great ideas about how to do this, we would like to hear from your great ideas. 305 00:31:09,430 --> 00:31:11,930 And we would like to have you participating too. 306 00:31:12,350 --> 00:31:16,510 Because we would really, really, really like to have the world have less memory-unsafe C. 307 00:31:16,510 --> 00:31:18,370 So we're just focusing on this program in C. 308 00:31:18,370 --> 00:31:23,910 The first phase of the program is just single-threaded because we're not totally insane. 309 00:31:24,010 --> 00:31:27,110 We have to solve the single-threaded part before we can solve the multi-threaded part. 310 00:31:27,110 --> 00:31:29,630 We have to solve C before we can solve C++. 311 00:31:29,950 --> 00:31:32,670 But we would like to get all the way, if possible. 312 00:31:33,170 --> 00:31:34,930 Okay, that's Tractor. 313 00:31:34,990 --> 00:31:36,730 And the program is called Tractor. 314 00:31:36,730 --> 00:31:38,010 Yeah, it's in about this. 315 00:31:38,010 --> 00:31:38,610 Okay. 316 00:31:38,930 --> 00:31:43,990 Okay, that brings me to AICC, which is what is behind me. 317 00:31:45,150 --> 00:31:49,770 The hypothesis behind AICC goes back to the sharkberg that I showed you on the very beginning. 318 00:31:49,770 --> 00:31:51,410 We have the massive technical debt. 319 00:31:51,410 --> 00:31:54,670 We have vast numbers of vulnerabilities that are out there in the world. 320 00:31:54,670 --> 00:32:01,190 Many, many of them in critical infrastructure that we cannot afford to have sitting out there in critical infrastructure for very much longer. 321 00:32:01,190 --> 00:32:02,570 We need to move the needle. 322 00:32:06,370 --> 00:32:08,770 We need to be able to fix those bugs. 323 00:32:08,910 --> 00:32:16,790 Many of those critical infrastructure sectors are wildly under-resourced and wildly under-expertised, as it were. 324 00:32:16,790 --> 00:32:24,130 It sort of feels like they thought they were in one world, and they discovered one day that they were in another world on the front lines of nation-state-level conflict. 325 00:32:24,130 --> 00:32:26,310 And that wasn't the world they signed up for. 326 00:32:26,790 --> 00:32:35,350 We connected, like, they have their software controlling their infrastructure, and we connected them, or they got connected to the internet. 327 00:32:35,710 --> 00:32:42,770 And now they're on the front lines of an international conflict without really the skillset to be able to fix that, to fix the exposure. 328 00:32:42,850 --> 00:32:44,210 And that exposure is real, right? 329 00:32:44,210 --> 00:32:49,230 We're starting to see more and more headlines of international groups hacking, like water sector. 330 00:32:49,410 --> 00:32:50,830 Like, that's not okay, right? 331 00:32:50,830 --> 00:32:51,810 We need to get that fixed. 332 00:32:51,810 --> 00:32:59,570 And it's our community's technical skills that will got them into this mess in the first place, and that has a chance of helping them. 333 00:32:59,590 --> 00:33:15,710 So, the premise behind AICC is that we can pair cyber reasoning systems, program analysis, tools and techniques, static analysis, dynamic analysis, all the kind of analyses with cyber reasoning, but with AI kind of technology, machine learning, large language models, 334 00:33:15,710 --> 00:33:18,470 to be able to automatically find and more importantly fix, right? 335 00:33:18,470 --> 00:33:23,330 They don't need more bugs to fix, but if we could give them, here's the fix, here's how to fix it. 336 00:33:23,330 --> 00:33:34,790 I was recently talking to the sector heads from some of these sectors, and when I told them that the premise here was not just to find, but to fix, you should have seen their eyes light up, like, it might actually fix it. 337 00:33:34,790 --> 00:33:37,430 I mean, I did tell them, like, this is a DARPA crazy idea. 338 00:33:37,630 --> 00:33:39,450 It may not work at all. 339 00:33:39,470 --> 00:33:41,730 At the time, the results hadn't shown up at all. 340 00:33:41,730 --> 00:33:43,490 So, like, I could be like, it could not work at all. 341 00:33:43,490 --> 00:33:45,650 Just to tell you, like, DARPA does stuff that fails. 342 00:33:45,650 --> 00:33:47,530 It's definitely talked about the road race. 343 00:33:47,530 --> 00:33:50,150 The car is only getting a mile and, like, blowing up. 344 00:33:50,150 --> 00:33:51,510 So, it could totally fail. 345 00:33:51,510 --> 00:33:54,410 But if it works, we're trying to actually get you fixes too. 346 00:33:54,410 --> 00:33:55,770 They were super excited. 347 00:33:56,030 --> 00:33:59,810 And so, that's the technical hypothesis, and we have some results now, right? 348 00:33:59,810 --> 00:34:00,750 Up here. 349 00:34:00,750 --> 00:34:03,470 So far, we're only working on the NGINX problem. 350 00:34:03,510 --> 00:34:07,570 But those, each one of those hexagons is one of the challenge problems. 351 00:34:07,670 --> 00:34:10,290 The blue, the blue, no blue up there. 352 00:34:10,290 --> 00:34:16,650 The yellow is a challenge problem that at least one team has found a bug. 353 00:34:16,690 --> 00:34:23,490 And the green, at least one challenge problem has found a bug and found a fix. 354 00:34:23,510 --> 00:34:26,650 So, like, there's a lot of green up there. 355 00:34:26,650 --> 00:34:33,130 So, the hypothesis for the NGINX challenge problem is proving out so far. 356 00:34:33,130 --> 00:34:36,630 Like, that's, like, as best a result as we could hope for, right? 357 00:34:36,630 --> 00:34:40,350 We don't want to have... like, the challenge problem was designed to be spread people out. 358 00:34:40,350 --> 00:34:41,770 We didn't want everybody to max out. 359 00:34:41,770 --> 00:34:47,010 So, like, it could have been all gray, in which case nobody could have found any bugs and nobody could have found any fixes. 360 00:34:47,250 --> 00:34:51,730 Could have been all yellow or lots of yellow, in which case nobody could have found any patches. 361 00:34:51,730 --> 00:34:55,130 So, I'm super, super excited about these results so far. 362 00:34:55,470 --> 00:35:06,310 At some point later today, it'll switch over to the next challenge problem and we'll see if the NGINX challenge problem was an anomaly and the other problems are harder. 363 00:35:06,310 --> 00:35:11,650 So, stay tuned to watch that little circle to see how they're doing. 364 00:35:11,650 --> 00:35:16,130 So, I think it's important that we're not just talking about large language models in isolation. 365 00:35:16,450 --> 00:35:22,410 We're talking about large language models paired with a lot of blood, sweat, and tears with program analysis tools. 366 00:35:22,590 --> 00:35:26,370 So, the structure of the competition is there's a threshold. 367 00:35:26,370 --> 00:35:29,410 Every team has to make it above a certain threshold. 368 00:35:29,610 --> 00:35:39,530 All the teams that make it above that threshold, the top seven of those teams will make it will win a $2 million prize and will be invited to participate in the finals that will be back here next year. 369 00:35:39,650 --> 00:35:47,870 I'm guessing since we're seeing a lot of scores up there, that teams will make it above the threshold and we'll be back here for a finals next year. 370 00:35:47,870 --> 00:35:49,650 But that's not the official word. 371 00:35:49,650 --> 00:35:51,290 I'm just guessing. 372 00:35:52,490 --> 00:35:55,190 The goal of this city here is twofold. 373 00:35:55,190 --> 00:36:03,610 One is to show you the results, show everybody the results of the competition to prove out... to show whether we're proving out the technical hypothesis. 374 00:36:03,610 --> 00:36:09,510 The other is to try to give people a visceral feel for how important it is we pay down that technical debt. 375 00:36:09,530 --> 00:36:14,690 That vulnerability is not just about losing data. 376 00:36:14,690 --> 00:36:21,450 It's not just about ransomware, although ransomware is horribly bad, particularly what it's affecting hospital and people's lives in hospitals. 377 00:36:22,950 --> 00:36:30,770 That it is something that's critically important for national security and it's something that we need to pay down or we're going to pay down even worse in the future. 378 00:36:31,270 --> 00:36:36,250 And that's... if you haven't already, I'd buy you to go in the city and see all the information that's in there. 379 00:36:36,250 --> 00:36:39,150 You'll find out way more about AICC. 380 00:36:40,050 --> 00:36:41,850 Okay, last slide. 381 00:36:42,250 --> 00:36:44,870 DARPA as an organization is quite small. 382 00:36:44,870 --> 00:36:46,390 They're not many of us there. 383 00:36:46,390 --> 00:36:54,610 All of the cool work that DARPA does is really done by people in the community, people like you, either by coming to DARPA for relatively short-term appointments. 384 00:36:54,610 --> 00:37:08,510 Everybody who has decision authority at DARPA, from Stephanie Weirich, Stephanie Tompkins, who gave the talk on the main stage, to me, who is an office director, to Andrew Carney and Perry Adams, who are the program managers who started and have been running AICC, 385 00:37:08,510 --> 00:37:10,530 to... we're all on term appointments. 386 00:37:10,530 --> 00:37:14,970 You come for two years, you stay for maybe another two years, maybe for one more year, then you have to leave. 387 00:37:14,970 --> 00:37:18,130 You come, you get your great idea out, and then you leave. 388 00:37:18,130 --> 00:37:27,730 This is a way of DARPA always having to reinvest and recommit to great ideas, never getting committed to one idea and latching on, because everybody's coming and going. 389 00:37:27,730 --> 00:37:35,050 This is a way that the agency makes sure that we are not afraid to fail, because by the time something fails, the person whose idea it was is already gone. 390 00:37:35,150 --> 00:37:38,910 The people who do the failure cleanup are not the people who are responsible for startup. 391 00:37:39,150 --> 00:37:42,950 All the people who come in as program managers come and go. 392 00:37:42,950 --> 00:37:44,450 There's somebody else with a new idea. 393 00:37:44,450 --> 00:37:47,610 It's a way that we make sure that we're always investing in brand new ideas. 394 00:37:47,630 --> 00:37:59,870 But also then the people who do the work, people in the community, we put out these BAAs, like I described, agency announcements, like I was describing for Tractor, and ask for the bright people in the community to submit their ideas and work on it. 395 00:37:59,870 --> 00:38:04,830 Or like the people on the AICC competition teams, like I see the shellfish team sitting right here, right? 396 00:38:04,830 --> 00:38:07,370 It's the community that does the work on DARPA ideas. 397 00:38:07,370 --> 00:38:15,030 And so I invite you to help join DARPA's efforts in buying down this technical debt, or the other parts of the work that DARPA does. 398 00:38:15,310 --> 00:38:17,890 The vocabulary DARPA uses is a little bit weird. 399 00:38:17,890 --> 00:38:21,310 Like we describe the people who work on DARPA programs as performers. 400 00:38:22,490 --> 00:38:31,570 DARPA Connect, which is the information is on the slide here, is a website and a series of workshops that help people get acclimatized. 401 00:38:31,570 --> 00:38:34,990 It provides information about like the Hail Mara Catechism and things like that. 402 00:38:34,990 --> 00:38:47,770 So if you're at all interested, I encourage you to come find somebody who's wearing the DARPA paraphernalia, or go online and find this information to help join us, you know, inventing the future and paying down the technical debt. 403 00:38:47,770 --> 00:38:49,410 Thank you very much for your time and attention. 404 00:38:49,410 --> 00:38:52,430 We'll have more programming on the stage and please come and visit the city. 405 00:38:52,510 --> 00:38:53,630 Thank you very much.