WEBVTT

00:00.000 --> 00:03.780
You guys have been competing for a few years, and we're with the lacrosse team right now.

00:04.020 --> 00:08.100
How long has the AICC Challenge been going on for you guys?

00:08.340 --> 00:09.900
So it's been about two years.

00:09.900 --> 00:15.280
The announcement was made earlier, and we submitted a white paper.

00:15.400 --> 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.

00:23.360 --> 00:27.800
And then at DEFCON last year, it was announced that our team had made it into the finals.

00:27.800 --> 00:31.960
So then we had one more year, a little less than a year, to work on the system.

00:31.960 --> 00:34.880
Further, the challenges evolved as well.

00:34.880 --> 00:36.800
So the whole thing didn't stay the same.

00:36.860 --> 00:41.260
And we had to basically build the system again to compete in the finals.

00:41.500 --> 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?

00:50.940 --> 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.

01:04.100 --> 01:10.160
And then our system was designed to fully autonomously find those bugs and then fix them by itself.

01:10.260 --> 01:15.240
They ran for six days or so, continuously doing that with no hands on.

01:15.240 --> 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?

01:24.000 --> 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.

01:36.980 --> 01:40.320
We've been doing large scale fuzzing projects for many years.

01:40.320 --> 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.

01:47.780 --> 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.

01:56.780 --> 01:59.340
And it uses them for several things.

01:59.560 --> 02:02.600
Finding flaws, they can do that all by themselves.

02:02.660 --> 02:07.160
And creating potential inputs that might trigger those flaws.

02:07.160 --> 02:09.260
They're not very good at that, I will say.

02:09.440 --> 02:12.360
And then patching the software itself.

02:12.360 --> 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?

02:21.140 --> 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?

02:27.120 --> 02:32.300
So high level, you were given a code base, Apache, something like that.

02:32.300 --> 02:35.740
May have had artificial ones, may have been an old exploit.

02:35.800 --> 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.

02:56.600 --> 03:00.060
And that had to be completely autonomous from start to finish.

03:00.700 --> 03:03.240
That is a heck of a lot of work.

03:03.660 --> 03:09.000
So when you first heard about this, what was your approach?

03:09.500 --> 03:11.520
Well, as I mentioned, we've been doing this for a while.

03:11.520 --> 03:15.660
And 10 years ago or so, DARPA funded a cyber grand challenge.

03:15.660 --> 03:17.220
So the previous competition.

03:17.220 --> 03:20.640
And our team participated in that challenge as well.

03:20.640 --> 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.

03:31.340 --> 03:33.820
And they weren't very large scale programs.

03:34.420 --> 03:41.120
But we already had all that tooling to task hundreds of nodes, how to fuzz test and use other analysis tools.

03:41.160 --> 03:44.340
So we basically started with all that in our back pockets.

03:44.400 --> 03:47.060
And then we started integrating large language models.

03:47.380 --> 03:49.000
So how big is your team?

03:49.280 --> 03:54.260
So our team is all at the company called SIFT, Smart Information Flow Technologies.

03:54.260 --> 03:56.000
Our company is about 35 people.

03:56.000 --> 04:01.260
And over the course of the two years, about 15 of those people worked on the project on and off.

04:01.500 --> 04:02.940
What was your specialty on it?

04:02.940 --> 04:09.680
Was inside a team, everyone kind of have a specialty or does everyone kind of generally touch every piece of it?

04:09.680 --> 04:13.340
Well, we had some people who touched just about everything like Louis here.

04:13.400 --> 04:14.480
A little bit of everything.

04:14.480 --> 04:14.640
Yeah.

04:14.640 --> 04:14.960
Yeah.

04:14.960 --> 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.

04:24.260 --> 04:26.060
So walk me through your setup.

04:26.100 --> 04:27.420
You would have code.

04:27.420 --> 04:30.760
How would you, what would be the initial trigger?

04:31.000 --> 04:32.440
Code comes in.

04:32.440 --> 04:34.140
Where does it go?

04:34.340 --> 04:36.360
Everyone had a different approach.

04:36.460 --> 04:37.240
So code comes in.

04:37.240 --> 04:39.000
What was the first thing that you did with it?

04:39.000 --> 04:39.280
Yeah.

04:39.280 --> 04:44.480
So we get a code repository from the challengers.

04:44.660 --> 04:48.600
It'd come in through a Python API and we feed it to one.

04:48.600 --> 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.

04:55.780 --> 04:57.500
Would you use open source?

04:57.880 --> 05:00.480
Tools, a commercial tool to do the fuzzing?

05:01.060 --> 05:03.760
Mostly open source stuff now.

05:04.220 --> 05:07.520
It's all going to be open source on August 24th.

05:07.680 --> 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.

05:17.760 --> 05:21.520
And then we would give it the vulnerability we found.

05:21.520 --> 05:24.640
And then LLM would either say, yeah, this classifies as this.

05:24.640 --> 05:25.280
We'd get the description.

05:25.280 --> 05:28.600
We would run some tests on the description and see, is it right?

05:28.600 --> 05:29.080
Is it wrong?

05:29.080 --> 05:32.380
And then we'd query the LLM with that new information that we get.

05:32.420 --> 05:35.700
So obviously AI is all the rage right now, AICC.

05:36.140 --> 05:43.440
Just how bad were the bottles at doing this when you started versus when, where you got to?

05:43.440 --> 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.

05:49.080 --> 05:50.520
It hallucinates to hell.

05:50.520 --> 05:51.400
It gets things wrong.

05:51.400 --> 05:52.160
It can't do math.

05:52.160 --> 05:53.120
It can't do that.

05:53.120 --> 05:56.800
Did you find, did it get easier over time?

05:56.800 --> 05:59.760
Did it get things more right over time or did it devolve?

05:59.760 --> 06:02.280
Did you stick with one particular model?

06:02.280 --> 06:04.020
Did you have to migrate to different models?

06:04.020 --> 06:05.900
Like how bad was it at the beginning?

06:05.900 --> 06:08.340
And did you actually manage to wrangle it?

06:08.620 --> 06:13.460
So in the semifinals, we were given like a pretty constrained amount of LLM budget.

06:13.460 --> 06:17.240
I think only free tiers were available for us with OpenAI and Anthropic.

06:17.400 --> 06:19.100
And I think Google was in there as well.

06:19.100 --> 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.

06:29.040 --> 06:31.520
And they kept kind of supporting other providers as well.

06:31.520 --> 06:34.220
I think XAI eventually was involved in that too.

06:34.840 --> 06:38.900
And yeah, throughout the entire course of the finals, we were shuffling around our model lists all the time.

06:38.900 --> 06:40.700
What model do we want to use as our primary model?

06:40.700 --> 06:44.800
Like we want to focus on O3 the most, or do we want to focus on Sonnet 3.7?

06:44.800 --> 06:46.280
Like which one we want to choose?

06:46.560 --> 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.

06:53.840 --> 06:55.320
Yeah, but we didn't use just one.

06:55.320 --> 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.

07:08.000 --> 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.

07:20.060 --> 07:21.880
But a lot of it was also tested.

07:21.880 --> 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.

07:33.380 --> 07:35.460
So you did FOSS testing.

07:35.460 --> 07:41.920
Did you use any other like standard static code analysis tools, package analysis or anything like that?

07:41.920 --> 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.

07:46.640 --> 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.

07:52.560 --> 07:57.600
And static analysis was one thing that we really worked hard on in the semifinal competition.

07:57.600 --> 08:01.200
We never really found a tool we thought was working well enough to be included.

08:01.200 --> 08:03.160
So it's got an X through it.

08:03.180 --> 08:04.180
Static analysis.

08:04.180 --> 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?

08:11.920 --> 08:13.340
We didn't have any licensed software.

08:13.340 --> 08:13.720
Gotcha.

08:14.680 --> 08:18.300
So your entire model is going to be open source as part of the requirement for the contest.

08:18.300 --> 08:18.560
Right.

08:18.560 --> 08:20.520
Your entire model is going to be open source.

08:20.560 --> 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.

08:25.740 --> 08:30.840
So we were just using the ones that you can pay for now that Lewis listed them, some of them.

08:30.840 --> 08:37.760
But our entire software system, which we're calling Lacrosse, is going to be open source in a couple of weeks.

08:37.920 --> 08:39.460
So what did you program?

08:39.460 --> 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.

08:45.220 --> 08:48.840
I'm guessing that orchestrator you created was a custom orchestrator.

08:49.560 --> 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.

08:57.880 --> 09:01.340
Doing multiple autonomous systems originally was what it was designed for.

09:01.400 --> 09:06.240
Tasking unmanned air vehicles was the original start of that stuff.

09:06.240 --> 09:08.600
And a lot of that code is still in there.

09:09.140 --> 09:11.960
Everybody's going to get it open source, so you can all look, and it's all a list.

09:12.500 --> 09:14.820
So that's our secret sauce.

09:14.820 --> 09:19.800
So I'm curious, was this your introduction to DEF CON, this challenge?

09:19.800 --> 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?

09:26.660 --> 09:29.600
This is only my second time at DEF CON, so I'm not a regular.

09:29.780 --> 09:31.780
This is my first DEF CON, but I've always wanted to come.

09:31.780 --> 09:36.020
I used to see all the talks online when I was in grad school, so pretty excited to be here.

09:36.020 --> 09:40.160
So as you guys were building the model, there's probably two things that you came across.

09:40.160 --> 09:43.060
One, something which was completely unexpected.

09:43.060 --> 09:48.000
You started going, man, that was not something I expected in the challenge, and that was really interesting.

09:48.160 --> 09:52.360
Or you hit this problem, and you're like, I have no idea how we're going to solve that.

09:52.360 --> 09:53.920
And I want to start with the problem.

09:53.960 --> 09:58.700
So somewhere along the line, what was the biggest problem you had throughout the challenge?

10:01.980 --> 10:07.320
Probably scaling and adapting to cloud.

10:07.860 --> 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.

10:15.820 --> 10:19.740
And that proved, I mean, I think that was one of the things that I worked on the most.

10:19.740 --> 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.

10:34.360 --> 10:35.880
Yeah, I think there's that.

10:35.880 --> 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.

10:52.640 --> 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.

10:59.060 --> 11:02.440
You could tell them, hey, would you please go back and try again?

11:02.440 --> 11:05.020
Here's what the compiler said was still wrong.

11:05.340 --> 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.

11:13.140 --> 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.

11:21.300 --> 11:24.620
And it fixed, like, six different things that I didn't want it to do.

11:24.780 --> 11:25.980
And that was a surprise.

11:25.980 --> 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.

11:40.740 --> 11:43.860
So one other question, I'll hand it off.

11:45.540 --> 11:50.000
I was like, it's really funny, because that's basically what junior developers do.

11:50.000 --> 11:53.480
They're like, oh, I fixed that thing you asked, and I also fixed 12 other things.

11:53.480 --> 11:57.260
And it's all in one patch, and you're not going to be able to review it.

11:57.260 --> 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.

12:03.880 --> 12:05.500
It kind of is, and it would have gotten fired.

12:05.500 --> 12:11.200
Because yeah, I'm always telling guys, you know, don't change anything that doesn't actually have to be changed.

12:11.200 --> 12:13.480
And that's what we had to tell the large language models.

12:13.500 --> 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.

12:23.020 --> 12:27.480
And it's really unknown why that helps give it a way better answer.

12:27.480 --> 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?

12:34.620 --> 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.

12:47.920 --> 12:49.560
I don't think that's true anymore.

12:49.960 --> 12:57.200
A large language models got dramatically better at understanding and fixing software, which is exactly what we needed them to do.

12:57.400 --> 13:03.440
And you can still tell if you're a computer science expert, we do, but it doesn't make much difference.

13:04.640 --> 13:05.520
Interesting.

13:06.060 --> 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.

13:14.200 --> 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?

13:24.140 --> 13:25.700
Was that difficult to do?

13:29.460 --> 13:31.700
Yeah, I mean, it was quite a challenge.

13:31.700 --> 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.

13:46.100 --> 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.

13:58.840 --> 14:04.540
So when we started, the token limits on input were tens of thousands of tokens.

14:05.060 --> 14:07.840
And so you had to be very, very careful about what code you were giving it.

14:07.840 --> 14:11.840
You couldn't generally give it a whole code file from, let's say, NGINX.

14:12.180 --> 14:14.540
Any of the individual code files is too big.

14:14.600 --> 14:15.980
That's no longer true.

14:15.980 --> 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.

14:23.380 --> 14:29.380
So the things can now take in the whole source code file and spit it back out, modified.

14:30.320 --> 14:31.980
So hindsight's 20-20.

14:32.320 --> 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?

14:47.200 --> 14:51.460
Well, the infrastructure turned out to be a tremendous challenge for our team.

14:52.260 --> 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.

15:04.160 --> 15:08.000
And we talked about going clean slate and starting from scratch.

15:08.000 --> 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.

15:25.460 --> 15:33.060
We didn't do that because we just didn't have enough time, person time, to staff both things.

15:34.280 --> 15:35.140
Cool.

15:35.140 --> 15:36.740
Well, hey, thank you, LaCrosse.

15:36.740 --> 15:39.120
Thank you for taking the time to talk to us, really.

15:39.360 --> 15:40.560
Congratulations, man.

15:40.560 --> 15:43.920
There was, what, 40, 50 teams that competed.

15:43.920 --> 15:46.240
You guys were in the final set.

15:46.620 --> 15:47.480
Congratulations.

15:47.480 --> 15:49.120
That is a huge accomplishment.

15:49.120 --> 15:51.500
So thank you for taking the time to talk with us.

15:51.500 --> 15:52.720
Thank you for watching.

