1 00:00:00,000 --> 00:00:03,780 You guys have been competing for a few years, and we're with the lacrosse team right now. 2 00:00:04,020 --> 00:00:08,100 How long has the AICC Challenge been going on for you guys? 3 00:00:08,340 --> 00:00:09,900 So it's been about two years. 4 00:00:09,900 --> 00:00:15,280 The announcement was made earlier, and we submitted a white paper. 5 00:00:15,400 --> 00:00:23,360 We were one of the seven teams that were funded by the government to participate in the original semifinal competition, which was started two years ago. 6 00:00:23,360 --> 00:00:27,800 And then at DEFCON last year, it was announced that our team had made it into the finals. 7 00:00:27,800 --> 00:00:31,960 So then we had one more year, a little less than a year, to work on the system. 8 00:00:31,960 --> 00:00:34,880 Further, the challenges evolved as well. 9 00:00:34,880 --> 00:00:36,800 So the whole thing didn't stay the same. 10 00:00:36,860 --> 00:00:41,260 And we had to basically build the system again to compete in the finals. 11 00:00:41,500 --> 00:00:50,840 So I guess before we dive into the details, because I really want to hear the details, can you give me like a 30-second high level, what is the AI Cyber Challenge? 12 00:00:50,940 --> 00:01:04,080 So the main point of the challenge was to find and fix software flaws that were either artificially introduced into large open source projects, or were replaying old bugs that had been in those open source projects that had been fixed. 13 00:01:04,100 --> 00:01:10,160 And then our system was designed to fully autonomously find those bugs and then fix them by itself. 14 00:01:10,260 --> 00:01:15,240 They ran for six days or so, continuously doing that with no hands on. 15 00:01:15,240 --> 00:01:24,000 So what's so cool about this is, so I'm probably, you guys call it AI, large language model, or is it a little combination of everything? 16 00:01:24,000 --> 00:01:36,980 So our team used a combination of traditional software analysis tools like fuzz testing and symbolic analysis kinds of things, and large language models, which was really the new thing for us. 17 00:01:36,980 --> 00:01:40,320 We've been doing large scale fuzzing projects for many years. 18 00:01:40,320 --> 00:01:47,780 We have an existing large scale architecture for tasking hundreds of compute nodes to do fuzzing or other kinds of software analysis. 19 00:01:47,780 --> 00:01:56,780 And the new thing here in the Cyber Challenge in the last two years was adding large language models into the tool suite that our system can use. 20 00:01:56,780 --> 00:01:59,340 And it uses them for several things. 21 00:01:59,560 --> 00:02:02,600 Finding flaws, they can do that all by themselves. 22 00:02:02,660 --> 00:02:07,160 And creating potential inputs that might trigger those flaws. 23 00:02:07,160 --> 00:02:09,260 They're not very good at that, I will say. 24 00:02:09,440 --> 00:02:12,360 And then patching the software itself. 25 00:02:12,360 --> 00:02:20,860 So once you find a flaw and you can trigger a crash in a program, for example, you can ask the debugger, hey, where did it crash? 26 00:02:21,140 --> 00:02:27,120 And then you could perhaps collect up some of the information around there and feed it to the large language model and say, can you fix it? 27 00:02:27,120 --> 00:02:32,300 So high level, you were given a code base, Apache, something like that. 28 00:02:32,300 --> 00:02:35,740 May have had artificial ones, may have been an old exploit. 29 00:02:35,800 --> 00:02:56,600 You had then to create a pipeline, which will first identify a bug, locate a trigger, a way to trigger that bug, write it up and report on it, create a PR for it, and create a test case to be able to verify whether or not the bug has been closed. 30 00:02:56,600 --> 00:03:00,060 And that had to be completely autonomous from start to finish. 31 00:03:00,700 --> 00:03:03,240 That is a heck of a lot of work. 32 00:03:03,660 --> 00:03:09,000 So when you first heard about this, what was your approach? 33 00:03:09,500 --> 00:03:11,520 Well, as I mentioned, we've been doing this for a while. 34 00:03:11,520 --> 00:03:15,660 And 10 years ago or so, DARPA funded a cyber grand challenge. 35 00:03:15,660 --> 00:03:17,220 So the previous competition. 36 00:03:17,220 --> 00:03:20,640 And our team participated in that challenge as well. 37 00:03:20,640 --> 00:03:31,340 So this architecture that we have for doing fuzzing and building patches in the cyber grand challenge 12 years ago, that only worked on binaries, no source code. 38 00:03:31,340 --> 00:03:33,820 And they weren't very large scale programs. 39 00:03:34,420 --> 00:03:41,120 But we already had all that tooling to task hundreds of nodes, how to fuzz test and use other analysis tools. 40 00:03:41,160 --> 00:03:44,340 So we basically started with all that in our back pockets. 41 00:03:44,400 --> 00:03:47,060 And then we started integrating large language models. 42 00:03:47,380 --> 00:03:49,000 So how big is your team? 43 00:03:49,280 --> 00:03:54,260 So our team is all at the company called SIFT, Smart Information Flow Technologies. 44 00:03:54,260 --> 00:03:56,000 Our company is about 35 people. 45 00:03:56,000 --> 00:04:01,260 And over the course of the two years, about 15 of those people worked on the project on and off. 46 00:04:01,500 --> 00:04:02,940 What was your specialty on it? 47 00:04:02,940 --> 00:04:09,680 Was inside a team, everyone kind of have a specialty or does everyone kind of generally touch every piece of it? 48 00:04:09,680 --> 00:04:13,340 Well, we had some people who touched just about everything like Louis here. 49 00:04:13,400 --> 00:04:14,480 A little bit of everything. 50 00:04:14,480 --> 00:04:14,640 Yeah. 51 00:04:14,640 --> 00:04:14,960 Yeah. 52 00:04:14,960 --> 00:04:24,260 And then we had some people who are really specialized on, for example, large language model wrangling or wrangling the fuzzers and things like that. 53 00:04:24,260 --> 00:04:26,060 So walk me through your setup. 54 00:04:26,100 --> 00:04:27,420 You would have code. 55 00:04:27,420 --> 00:04:30,760 How would you, what would be the initial trigger? 56 00:04:31,000 --> 00:04:32,440 Code comes in. 57 00:04:32,440 --> 00:04:34,140 Where does it go? 58 00:04:34,340 --> 00:04:36,360 Everyone had a different approach. 59 00:04:36,460 --> 00:04:37,240 So code comes in. 60 00:04:37,240 --> 00:04:39,000 What was the first thing that you did with it? 61 00:04:39,000 --> 00:04:39,280 Yeah. 62 00:04:39,280 --> 00:04:44,480 So we get a code repository from the challengers. 63 00:04:44,660 --> 00:04:48,600 It'd come in through a Python API and we feed it to one. 64 00:04:48,600 --> 00:04:55,020 We have our optimist primary agent that dishes it out to a bunch of other agents that then start fuzzing it and working on it. 65 00:04:55,780 --> 00:04:57,500 Would you use open source? 66 00:04:57,880 --> 00:05:00,480 Tools, a commercial tool to do the fuzzing? 67 00:05:01,060 --> 00:05:03,760 Mostly open source stuff now. 68 00:05:04,220 --> 00:05:07,520 It's all going to be open source on August 24th. 69 00:05:07,680 --> 00:05:17,760 So yeah, we pretty much fuzz it and then we start feeding it off into LLM pipelines to see like, Hey, we found this vulnerability thanks to fuzzing. 70 00:05:17,760 --> 00:05:21,520 And then we would give it the vulnerability we found. 71 00:05:21,520 --> 00:05:24,640 And then LLM would either say, yeah, this classifies as this. 72 00:05:24,640 --> 00:05:25,280 We'd get the description. 73 00:05:25,280 --> 00:05:28,600 We would run some tests on the description and see, is it right? 74 00:05:28,600 --> 00:05:29,080 Is it wrong? 75 00:05:29,080 --> 00:05:32,380 And then we'd query the LLM with that new information that we get. 76 00:05:32,420 --> 00:05:35,700 So obviously AI is all the rage right now, AICC. 77 00:05:36,140 --> 00:05:43,440 Just how bad were the bottles at doing this when you started versus when, where you got to? 78 00:05:43,440 --> 00:05:48,980 Because I think that's the really, not the most interesting piece, but I think that's the thing that everyone knows now. 79 00:05:49,080 --> 00:05:50,520 It hallucinates to hell. 80 00:05:50,520 --> 00:05:51,400 It gets things wrong. 81 00:05:51,400 --> 00:05:52,160 It can't do math. 82 00:05:52,160 --> 00:05:53,120 It can't do that. 83 00:05:53,120 --> 00:05:56,800 Did you find, did it get easier over time? 84 00:05:56,800 --> 00:05:59,760 Did it get things more right over time or did it devolve? 85 00:05:59,760 --> 00:06:02,280 Did you stick with one particular model? 86 00:06:02,280 --> 00:06:04,020 Did you have to migrate to different models? 87 00:06:04,020 --> 00:06:05,900 Like how bad was it at the beginning? 88 00:06:05,900 --> 00:06:08,340 And did you actually manage to wrangle it? 89 00:06:08,620 --> 00:06:13,460 So in the semifinals, we were given like a pretty constrained amount of LLM budget. 90 00:06:13,460 --> 00:06:17,240 I think only free tiers were available for us with OpenAI and Anthropic. 91 00:06:17,400 --> 00:06:19,100 And I think Google was in there as well. 92 00:06:19,100 --> 00:06:29,040 And then it was really cool to see in the finals, they kind of unlimited those constraints and we were able to use any models that we can possibly choose from, from all those providers. 93 00:06:29,040 --> 00:06:31,520 And they kept kind of supporting other providers as well. 94 00:06:31,520 --> 00:06:34,220 I think XAI eventually was involved in that too. 95 00:06:34,840 --> 00:06:38,900 And yeah, throughout the entire course of the finals, we were shuffling around our model lists all the time. 96 00:06:38,900 --> 00:06:40,700 What model do we want to use as our primary model? 97 00:06:40,700 --> 00:06:44,800 Like we want to focus on O3 the most, or do we want to focus on Sonnet 3.7? 98 00:06:44,800 --> 00:06:46,280 Like which one we want to choose? 99 00:06:46,560 --> 00:06:53,680 And it was a lot of debugging and testing to figure out which model is proving the most accurate for us and what we're using it for. 100 00:06:53,840 --> 00:06:55,320 Yeah, but we didn't use just one. 101 00:06:55,320 --> 00:07:07,640 And we had a lot of stuff that did sort of portfolio queries out to the LLMs and said, all right, let's get six or seven or eight variants of the answer and see which one looks most representative. 102 00:07:08,000 --> 00:07:20,040 So there are a number of places in our code where it would send the same query or minor variations in the queries out to different LLMs, get back the results and try and look for commonalities to try and weed out the hallucinations. 103 00:07:20,060 --> 00:07:21,880 But a lot of it was also tested. 104 00:07:21,880 --> 00:07:33,200 So after a patch was generated, we would have to make sure that the code built and passed any tests that we had and wasn't no longer subject to the vulnerability that we discovered. 105 00:07:33,380 --> 00:07:35,460 So you did FOSS testing. 106 00:07:35,460 --> 00:07:41,920 Did you use any other like standard static code analysis tools, package analysis or anything like that? 107 00:07:41,920 --> 00:07:46,640 So if you come to our talk tomorrow, we'll put up a diagram of kind of all the things we plan to do. 108 00:07:46,640 --> 00:07:52,560 And then there are a bunch of red X's through a bunch of boxes that either didn't work or never got integrated. 109 00:07:52,560 --> 00:07:57,600 And static analysis was one thing that we really worked hard on in the semifinal competition. 110 00:07:57,600 --> 00:08:01,200 We never really found a tool we thought was working well enough to be included. 111 00:08:01,200 --> 00:08:03,160 So it's got an X through it. 112 00:08:03,180 --> 00:08:04,180 Static analysis. 113 00:08:04,180 --> 00:08:11,920 Was it mostly open source static analysis tools or did you throw whatever like Coverity I think is paid and things like that? 114 00:08:11,920 --> 00:08:13,340 We didn't have any licensed software. 115 00:08:13,340 --> 00:08:13,720 Gotcha. 116 00:08:14,680 --> 00:08:18,300 So your entire model is going to be open source as part of the requirement for the contest. 117 00:08:18,300 --> 00:08:18,560 Right. 118 00:08:18,560 --> 00:08:20,520 Your entire model is going to be open source. 119 00:08:20,560 --> 00:08:25,740 Well, when we use the term model, we're usually talking about large language models, and we did not fine tune our own model. 120 00:08:25,740 --> 00:08:30,840 So we were just using the ones that you can pay for now that Lewis listed them, some of them. 121 00:08:30,840 --> 00:08:37,760 But our entire software system, which we're calling Lacrosse, is going to be open source in a couple of weeks. 122 00:08:37,920 --> 00:08:39,460 So what did you program? 123 00:08:39,460 --> 00:08:45,220 You have this model, so it's going to pull things in, and you almost have like an orchestrator, which is moving it across the different stations. 124 00:08:45,220 --> 00:08:48,840 I'm guessing that orchestrator you created was a custom orchestrator. 125 00:08:49,560 --> 00:08:56,320 No, the orchestrator is actually an adaptation of the one that we used in Cyber Grand Challenge, which is actually an adaptation that goes way back. 126 00:08:57,880 --> 00:09:01,340 Doing multiple autonomous systems originally was what it was designed for. 127 00:09:01,400 --> 00:09:06,240 Tasking unmanned air vehicles was the original start of that stuff. 128 00:09:06,240 --> 00:09:08,600 And a lot of that code is still in there. 129 00:09:09,140 --> 00:09:11,960 Everybody's going to get it open source, so you can all look, and it's all a list. 130 00:09:12,500 --> 00:09:14,820 So that's our secret sauce. 131 00:09:14,820 --> 00:09:19,800 So I'm curious, was this your introduction to DEF CON, this challenge? 132 00:09:19,800 --> 00:09:25,520 Or have you guys been coming to DEF CON for years and then saw this challenge, and you're like, oh, this is something we have to get involved in? 133 00:09:26,660 --> 00:09:29,600 This is only my second time at DEF CON, so I'm not a regular. 134 00:09:29,780 --> 00:09:31,780 This is my first DEF CON, but I've always wanted to come. 135 00:09:31,780 --> 00:09:36,020 I used to see all the talks online when I was in grad school, so pretty excited to be here. 136 00:09:36,020 --> 00:09:40,160 So as you guys were building the model, there's probably two things that you came across. 137 00:09:40,160 --> 00:09:43,060 One, something which was completely unexpected. 138 00:09:43,060 --> 00:09:48,000 You started going, man, that was not something I expected in the challenge, and that was really interesting. 139 00:09:48,160 --> 00:09:52,360 Or you hit this problem, and you're like, I have no idea how we're going to solve that. 140 00:09:52,360 --> 00:09:53,920 And I want to start with the problem. 141 00:09:53,960 --> 00:09:58,700 So somewhere along the line, what was the biggest problem you had throughout the challenge? 142 00:10:01,980 --> 00:10:07,320 Probably scaling and adapting to cloud. 143 00:10:07,860 --> 00:10:14,660 We had to make sure our system run autonomously through Azure, and that was something that had changed between the semifinals into the finals. 144 00:10:15,820 --> 00:10:19,740 And that proved, I mean, I think that was one of the things that I worked on the most. 145 00:10:19,740 --> 00:10:33,460 So to me, that was very challenging to take kind of what we had developed previously that was running in, you know, Kubernetes and Docker, and then just kind of throw it on to this multiple virtual machine system in the cloud. 146 00:10:34,360 --> 00:10:35,880 Yeah, I think there's that. 147 00:10:35,880 --> 00:10:52,640 And then I want to get, before I forget, I want to answer the question about the surprise, because I think I have a pretty good surprise, which was we did a lot of testing of the LLMs with preliminary manual analysis before we started building the APIs and automating all of that. 148 00:10:52,640 --> 00:10:59,060 And one of the things that we found, which really surprised me, was sometimes the LLMs would not fix the problem correctly. 149 00:10:59,060 --> 00:11:02,440 You could tell them, hey, would you please go back and try again? 150 00:11:02,440 --> 00:11:05,020 Here's what the compiler said was still wrong. 151 00:11:05,340 --> 00:11:13,140 And what shocked me was that once I saw it manually, I gave it the manual feedback like that, and it said, okay, I've fixed that. 152 00:11:13,140 --> 00:11:21,300 And by the way, I'm going to fix a whole bunch of other things in the code that I think are stylistically wrong, and, you know, you shouldn't do it like this, and I'm going to fix it. 153 00:11:21,300 --> 00:11:24,620 And it fixed, like, six different things that I didn't want it to do. 154 00:11:24,780 --> 00:11:25,980 And that was a surprise. 155 00:11:25,980 --> 00:11:40,560 And it was also a bad surprise, because we really didn't want it messing with any code that we didn't think was the actual source of the flaw, because we were afraid it would disrupt the performance of the open source system. 156 00:11:40,740 --> 00:11:43,860 So one other question, I'll hand it off. 157 00:11:45,540 --> 00:11:50,000 I was like, it's really funny, because that's basically what junior developers do. 158 00:11:50,000 --> 00:11:53,480 They're like, oh, I fixed that thing you asked, and I also fixed 12 other things. 159 00:11:53,480 --> 00:11:57,260 And it's all in one patch, and you're not going to be able to review it. 160 00:11:57,260 --> 00:12:03,760 So it's basically an intern, which I've been saying for a really long time, a lot of these models are operating at the level of an intern. 161 00:12:03,880 --> 00:12:05,500 It kind of is, and it would have gotten fired. 162 00:12:05,500 --> 00:12:11,200 Because yeah, I'm always telling guys, you know, don't change anything that doesn't actually have to be changed. 163 00:12:11,200 --> 00:12:13,480 And that's what we had to tell the large language models. 164 00:12:13,500 --> 00:12:23,020 So one of the things, there's all these little weird nuance tricks with large language models, one of them just came out, which was, take a breath, and then give me the answer. 165 00:12:23,020 --> 00:12:27,480 And it's really unknown why that helps give it a way better answer. 166 00:12:27,480 --> 00:12:34,580 Was there kind of unique tweaks that you put in a large language model where it's like, oh, take a breath and then answer or something like that? 167 00:12:34,620 --> 00:12:47,920 So this is one of the things that I think, to answer your earlier question about what changed during the two years, is that it used to be, you'd say, yeah, you know, I like cats, and could you fix this software problem for me, and it would get better. 168 00:12:47,920 --> 00:12:49,560 I don't think that's true anymore. 169 00:12:49,960 --> 00:12:57,200 A large language models got dramatically better at understanding and fixing software, which is exactly what we needed them to do. 170 00:12:57,400 --> 00:13:03,440 And you can still tell if you're a computer science expert, we do, but it doesn't make much difference. 171 00:13:04,640 --> 00:13:05,520 Interesting. 172 00:13:06,060 --> 00:13:14,200 Yeah, it's funny because as time has gone on, we've figured out how to use the models better, and they change, and then they abstract, and things like that. 173 00:13:14,200 --> 00:13:24,140 How often were you finding, when it came back with the software patch, how were you developing ways to pull in that code, normalize it, and then create the unit test? 174 00:13:24,140 --> 00:13:25,700 Was that difficult to do? 175 00:13:29,460 --> 00:13:31,700 Yeah, I mean, it was quite a challenge. 176 00:13:31,700 --> 00:13:42,920 So we used like a DSPy pipeline, and we would alter the prompts whenever we got code that we weren't satisfied with, or got like a return on a patch we weren't satisfied with. 177 00:13:46,100 --> 00:13:58,840 And I mean... That's another thing that changed during the two years, not just the budgets that we were given, but the scale of what you can feed into the LLM , and what it can give back out, went dramatically higher. 178 00:13:58,840 --> 00:14:04,540 So when we started, the token limits on input were tens of thousands of tokens. 179 00:14:05,060 --> 00:14:07,840 And so you had to be very, very careful about what code you were giving it. 180 00:14:07,840 --> 00:14:11,840 You couldn't generally give it a whole code file from, let's say, NGINX. 181 00:14:12,180 --> 00:14:14,540 Any of the individual code files is too big. 182 00:14:14,600 --> 00:14:15,980 That's no longer true. 183 00:14:15,980 --> 00:14:23,380 If you pay enough, you can send in 300,000 tokens now, and a large number of source code files will fit into that. 184 00:14:23,380 --> 00:14:29,380 So the things can now take in the whole source code file and spit it back out, modified. 185 00:14:30,320 --> 00:14:31,980 So hindsight's 20-20. 186 00:14:32,320 --> 00:14:45,460 Having gone through the whole contest now, like everything's about to get open, you're doing your presentation later, what would you have done differently having all the knowledge you have now in your process and your build out? 187 00:14:47,200 --> 00:14:51,460 Well, the infrastructure turned out to be a tremendous challenge for our team. 188 00:14:52,260 --> 00:15:04,160 And one of the things we talked about is, you know, we're bringing forward this ancient Lisp architecture that has been adapted to work in Docker containers, no problem, but it's still talking old school stuff. 189 00:15:04,160 --> 00:15:08,000 And we talked about going clean slate and starting from scratch. 190 00:15:08,000 --> 00:15:24,260 And I think if we had had enough staff, we would have done a parallel approach, and we would have said, you sub team, go start from scratch, make it all Pythonic, don't try and bring forward all that old stuff. 191 00:15:25,460 --> 00:15:33,060 We didn't do that because we just didn't have enough time, person time, to staff both things. 192 00:15:34,280 --> 00:15:35,140 Cool. 193 00:15:35,140 --> 00:15:36,740 Well, hey, thank you, LaCrosse. 194 00:15:36,740 --> 00:15:39,120 Thank you for taking the time to talk to us, really. 195 00:15:39,360 --> 00:15:40,560 Congratulations, man. 196 00:15:40,560 --> 00:15:43,920 There was, what, 40, 50 teams that competed. 197 00:15:43,920 --> 00:15:46,240 You guys were in the final set. 198 00:15:46,620 --> 00:15:47,480 Congratulations. 199 00:15:47,480 --> 00:15:49,120 That is a huge accomplishment. 200 00:15:49,120 --> 00:15:51,500 So thank you for taking the time to talk with us. 201 00:15:51,500 --> 00:15:52,720 Thank you for watching.