start	end	text
0	3780	You guys have been competing for a few years, and we're with the lacrosse team right now.
4020	8100	How long has the AICC Challenge been going on for you guys?
8340	9900	So it's been about two years.
9900	15280	The announcement was made earlier, and we submitted a white paper.
15400	23360	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.
23360	27800	And then at DEFCON last year, it was announced that our team had made it into the finals.
27800	31960	So then we had one more year, a little less than a year, to work on the system.
31960	34880	Further, the challenges evolved as well.
34880	36800	So the whole thing didn't stay the same.
36860	41260	And we had to basically build the system again to compete in the finals.
41500	50840	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?
50940	64080	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.
64100	70160	And then our system was designed to fully autonomously find those bugs and then fix them by itself.
70260	75240	They ran for six days or so, continuously doing that with no hands on.
75240	84000	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?
84000	96980	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.
96980	100320	We've been doing large scale fuzzing projects for many years.
100320	107780	We have an existing large scale architecture for tasking hundreds of compute nodes to do fuzzing or other kinds of software analysis.
107780	116780	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.
116780	119340	And it uses them for several things.
119560	122600	Finding flaws, they can do that all by themselves.
122660	127160	And creating potential inputs that might trigger those flaws.
127160	129260	They're not very good at that, I will say.
129440	132360	And then patching the software itself.
132360	140860	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?
141140	147120	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?
147120	152300	So high level, you were given a code base, Apache, something like that.
152300	155740	May have had artificial ones, may have been an old exploit.
155800	176600	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.
176600	180060	And that had to be completely autonomous from start to finish.
180700	183240	That is a heck of a lot of work.
183660	189000	So when you first heard about this, what was your approach?
189500	191520	Well, as I mentioned, we've been doing this for a while.
191520	195660	And 10 years ago or so, DARPA funded a cyber grand challenge.
195660	197220	So the previous competition.
197220	200640	And our team participated in that challenge as well.
200640	211340	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.
211340	213820	And they weren't very large scale programs.
214420	221120	But we already had all that tooling to task hundreds of nodes, how to fuzz test and use other analysis tools.
221160	224340	So we basically started with all that in our back pockets.
224400	227060	And then we started integrating large language models.
227380	229000	So how big is your team?
229280	234260	So our team is all at the company called SIFT, Smart Information Flow Technologies.
234260	236000	Our company is about 35 people.
236000	241260	And over the course of the two years, about 15 of those people worked on the project on and off.
241500	242940	What was your specialty on it?
242940	249680	Was inside a team, everyone kind of have a specialty or does everyone kind of generally touch every piece of it?
249680	253340	Well, we had some people who touched just about everything like Louis here.
253400	254480	A little bit of everything.
254480	254640	Yeah.
254640	254960	Yeah.
254960	264260	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.
264260	266060	So walk me through your setup.
266100	267420	You would have code.
267420	270760	How would you, what would be the initial trigger?
271000	272440	Code comes in.
272440	274140	Where does it go?
274340	276360	Everyone had a different approach.
276460	277240	So code comes in.
277240	279000	What was the first thing that you did with it?
279000	279280	Yeah.
279280	284480	So we get a code repository from the challengers.
284660	288600	It'd come in through a Python API and we feed it to one.
288600	295020	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.
295780	297500	Would you use open source?
297880	300480	Tools, a commercial tool to do the fuzzing?
301060	303760	Mostly open source stuff now.
304220	307520	It's all going to be open source on August 24th.
307680	317760	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.
317760	321520	And then we would give it the vulnerability we found.
321520	324640	And then LLM would either say, yeah, this classifies as this.
324640	325280	We'd get the description.
325280	328600	We would run some tests on the description and see, is it right?
328600	329080	Is it wrong?
329080	332380	And then we'd query the LLM with that new information that we get.
332420	335700	So obviously AI is all the rage right now, AICC.
336140	343440	Just how bad were the bottles at doing this when you started versus when, where you got to?
343440	348980	Because I think that's the really, not the most interesting piece, but I think that's the thing that everyone knows now.
349080	350520	It hallucinates to hell.
350520	351400	It gets things wrong.
351400	352160	It can't do math.
352160	353120	It can't do that.
353120	356800	Did you find, did it get easier over time?
356800	359760	Did it get things more right over time or did it devolve?
359760	362280	Did you stick with one particular model?
362280	364020	Did you have to migrate to different models?
364020	365900	Like how bad was it at the beginning?
365900	368340	And did you actually manage to wrangle it?
368620	373460	So in the semifinals, we were given like a pretty constrained amount of LLM budget.
373460	377240	I think only free tiers were available for us with OpenAI and Anthropic.
377400	379100	And I think Google was in there as well.
379100	389040	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.
389040	391520	And they kept kind of supporting other providers as well.
391520	394220	I think XAI eventually was involved in that too.
394840	398900	And yeah, throughout the entire course of the finals, we were shuffling around our model lists all the time.
398900	400700	What model do we want to use as our primary model?
400700	404800	Like we want to focus on O3 the most, or do we want to focus on Sonnet 3.7?
404800	406280	Like which one we want to choose?
406560	413680	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.
413840	415320	Yeah, but we didn't use just one.
415320	427640	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.
428000	440040	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.
440060	441880	But a lot of it was also tested.
441880	453200	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.
453380	455460	So you did FOSS testing.
455460	461920	Did you use any other like standard static code analysis tools, package analysis or anything like that?
461920	466640	So if you come to our talk tomorrow, we'll put up a diagram of kind of all the things we plan to do.
466640	472560	And then there are a bunch of red X's through a bunch of boxes that either didn't work or never got integrated.
472560	477600	And static analysis was one thing that we really worked hard on in the semifinal competition.
477600	481200	We never really found a tool we thought was working well enough to be included.
481200	483160	So it's got an X through it.
483180	484180	Static analysis.
484180	491920	Was it mostly open source static analysis tools or did you throw whatever like Coverity I think is paid and things like that?
491920	493340	We didn't have any licensed software.
493340	493720	Gotcha.
494680	498300	So your entire model is going to be open source as part of the requirement for the contest.
498300	498560	Right.
498560	500520	Your entire model is going to be open source.
500560	505740	Well, when we use the term model, we're usually talking about large language models, and we did not fine tune our own model.
505740	510840	So we were just using the ones that you can pay for now that Lewis listed them, some of them.
510840	517760	But our entire software system, which we're calling Lacrosse, is going to be open source in a couple of weeks.
517920	519460	So what did you program?
519460	525220	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.
525220	528840	I'm guessing that orchestrator you created was a custom orchestrator.
529560	536320	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.
537880	541340	Doing multiple autonomous systems originally was what it was designed for.
541400	546240	Tasking unmanned air vehicles was the original start of that stuff.
546240	548600	And a lot of that code is still in there.
549140	551960	Everybody's going to get it open source, so you can all look, and it's all a list.
552500	554820	So that's our secret sauce.
554820	559800	So I'm curious, was this your introduction to DEF CON, this challenge?
559800	565520	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?
566660	569600	This is only my second time at DEF CON, so I'm not a regular.
569780	571780	This is my first DEF CON, but I've always wanted to come.
571780	576020	I used to see all the talks online when I was in grad school, so pretty excited to be here.
576020	580160	So as you guys were building the model, there's probably two things that you came across.
580160	583060	One, something which was completely unexpected.
583060	588000	You started going, man, that was not something I expected in the challenge, and that was really interesting.
588160	592360	Or you hit this problem, and you're like, I have no idea how we're going to solve that.
592360	593920	And I want to start with the problem.
593960	598700	So somewhere along the line, what was the biggest problem you had throughout the challenge?
601980	607320	Probably scaling and adapting to cloud.
607860	614660	We had to make sure our system run autonomously through Azure, and that was something that had changed between the semifinals into the finals.
615820	619740	And that proved, I mean, I think that was one of the things that I worked on the most.
619740	633460	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.
634360	635880	Yeah, I think there's that.
635880	652640	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.
652640	659060	And one of the things that we found, which really surprised me, was sometimes the LLMs would not fix the problem correctly.
659060	662440	You could tell them, hey, would you please go back and try again?
662440	665020	Here's what the compiler said was still wrong.
665340	673140	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.
673140	681300	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.
681300	684620	And it fixed, like, six different things that I didn't want it to do.
684780	685980	And that was a surprise.
685980	700560	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.
700740	703860	So one other question, I'll hand it off.
705540	710000	I was like, it's really funny, because that's basically what junior developers do.
710000	713480	They're like, oh, I fixed that thing you asked, and I also fixed 12 other things.
713480	717260	And it's all in one patch, and you're not going to be able to review it.
717260	723760	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.
723880	725500	It kind of is, and it would have gotten fired.
725500	731200	Because yeah, I'm always telling guys, you know, don't change anything that doesn't actually have to be changed.
731200	733480	And that's what we had to tell the large language models.
733500	743020	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.
743020	747480	And it's really unknown why that helps give it a way better answer.
747480	754580	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?
754620	767920	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.
767920	769560	I don't think that's true anymore.
769960	777200	A large language models got dramatically better at understanding and fixing software, which is exactly what we needed them to do.
777400	783440	And you can still tell if you're a computer science expert, we do, but it doesn't make much difference.
784640	785520	Interesting.
786060	794200	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.
794200	804140	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?
804140	805700	Was that difficult to do?
809460	811700	Yeah, I mean, it was quite a challenge.
811700	822920	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.
826100	838840	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.
838840	844540	So when we started, the token limits on input were tens of thousands of tokens.
845060	847840	And so you had to be very, very careful about what code you were giving it.
847840	851840	You couldn't generally give it a whole code file from, let's say, NGINX.
852180	854540	Any of the individual code files is too big.
854600	855980	That's no longer true.
855980	863380	If you pay enough, you can send in 300,000 tokens now, and a large number of source code files will fit into that.
863380	869380	So the things can now take in the whole source code file and spit it back out, modified.
870320	871980	So hindsight's 20-20.
872320	885460	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?
887200	891460	Well, the infrastructure turned out to be a tremendous challenge for our team.
892260	904160	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.
904160	908000	And we talked about going clean slate and starting from scratch.
908000	924260	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.
925460	933060	We didn't do that because we just didn't have enough time, person time, to staff both things.
934280	935140	Cool.
935140	936740	Well, hey, thank you, LaCrosse.
936740	939120	Thank you for taking the time to talk to us, really.
939360	940560	Congratulations, man.
940560	943920	There was, what, 40, 50 teams that competed.
943920	946240	You guys were in the final set.
946620	947480	Congratulations.
947480	949120	That is a huge accomplishment.
949120	951500	So thank you for taking the time to talk with us.
951500	952720	Thank you for watching.
