start	end	text
0	20620	We were sitting down with Shellfish, who were in the final 10 for the AI Cyber Challenge, which ultimately was, we talked about in this before, which is, you have to create an autonomous system driven by some sort of AI to find bugs in real software or software where they had them injected,
20620	38080	so there was at least something to find there, which you guys ended up finding O-Days, which is a whole other thing, but automatically find bugs through an orchestration system that used AI, and then automatically patch those bugs, and they would submit for points and things like that.
38080	44160	So when this first happened, like when you first heard of this concept, what was your initial knee-jerk?
44160	47480	Like, I'm up for more pain, I need to do this.
48020	55600	Yeah, initially we were thinking that this won't work, that we're traditional binary analysis people, right?
56060	63060	We've been through thick and thin with trying to make all sorts of crazy architectures and whatnot work, and we're like, AI can't do this, right?
63680	67240	When this competition was announced, it was GPT 3.5, right?
67340	71580	And if you've ever played around with it, you know that it just was not good, right?
72360	85580	And so we're like, okay, fuck this AI shit, we're gonna make a system built on analysis that we know works, and we're gonna crush the competition, right?
86180	89460	Two years later, it's maybe a little bit of a different story now.
89460	103300	The models have improved, we've improved, it really changed the landscape of how we thought about security as these models got better, as more techniques came out, and as we got to play with them more.
103340	115260	But I think one thing to mention there that is also interesting is we were like, we did start out with the, oh, this is not going to work at all, we know that it can't do these tasks, and we're just like, but we very quickly realized that, for example,
115260	125440	for the part of the competition where you have to provide patches and fix software, we looked at the state of the art of things of like, how do you automatically do patches?
125620	128280	There was no such thing at the time, really.
128280	140580	There was a lot of research, but most of it ended up boiling down to, oh, let me mess up these conditions a little bit, change a less than or equal to a less than, and like those kinds of things.
140580	147260	But very quickly realized that, yeah, while we can't rely on these LLMs, there's parts that we can't do without them either.
147320	152100	Well, and so previously, did you guys compete in the prior Cyber Grand Challenge?
152300	155240	So our successors or predecessors had.
155240	155400	Gotcha .
155400	155640	Yeah.
155640	160960	Because I know during that time, I don't know if that required patches as well, or if it was just exploitation.
160960	161880	It did require patches.
161880	163740	And so, and in that case, it was pure binary.
163740	169920	So you were doing stuff that was basically monkey patching, just like pop some new assembly in, call it a day.
169920	181320	In this case, you have the binaries to run and test them, but they want code patches for the original source code, which I don't, yeah, I've never, I've been in the industry a long time.
181320	183140	I've never heard of anything doing that.
183340	183520	Yeah.
183520	198520	And even in that competition, like the patching ended up boiling down to mostly like these more like mitigation type fixes, where it's like, oh, we're going to jumble the stack frame and rearrange the variables, or we're going to add stack canaries into the binary afterwards.
198520	198900	Right ?
198900	202760	So really, these more like, they don't prevent the bug from being triggered.
202760	203880	They don't remove the bug.
203880	206780	They just make it unexploitable or harder to exploit.
207480	220220	That was what was so interesting with this contest, is you were allowed to use, or you had the choice to use commercial static code analysis to help identify bugs, or you, heck, you'd use binary code, like the barcode or something like that.
220220	221940	You were allowed commercial licenses.
222000	229640	You would use almost an orchestration platform to kick these things off, detect them, run it, check your own uptime and all of that.
229640	232000	Did you guys end up using any commercial tools?
232000	239320	So I think the only truly commercial tool that we used was CodeQL for static analysis.
239320	242960	But beyond that, it's very funny that you mentioned orchestration framework.
242960	254100	Because normally, when you have such a huge challenge and all of these components interacting, you would want to use something that's stable, well-tested, like maybe Apache Airflow or something.
254100	261720	But instead, you can write entirely from scratch your own orchestration framework, built entirely upon YAML files.
263680	265100	Go on!
265100	272580	YAML files that end up templating bash into the root process of Docker containers.
274300	275840	Go on!
277040	278620	Hackery in the purest sense.
278640	282440	Yeah, I mean, like, this is a hacker competition, so you may as well have hacks.
282440	286400	It was literally whatever we could do to make it work.
286400	289700	And it ended up being a very cool and portable system.
289700	294380	We can run the entire cyber reasoning system on just a workstation.
294380	298180	Or we can scale it up to hundreds of machines in Azure.
298240	306960	So obviously, you wrote that over the course of, I guess, the pre-qualifiers before the finals, or at least round one, whatever that was.
307140	310180	How did that evolve into the finals?
310180	315720	Because I know during the pre or the first round, you had to provide a proof of vulnerability.
315720	318000	But it sounded like in the finals, you didn't.
318500	322420	That was one, I guess, twist that we had heard about.
322420	329600	Were there any other twists in terms of your orchestration that you're like, oh, we spent all this time and now we don't have to do that anymore?
329600	331760	Or, oh, crap, now there's a new thing.
331920	333740	And how are we going to deal with that?
333740	341700	Yeah, I think the biggest thing that comes to mind is like the the budgets just massively increased in terms of both compute and LLM costs that we had available.
341700	345860	So for semifinals, for each challenge, you had about $100 of LLM credits.
346120	354880	And so at the time, you know, all of the LLM prototypes we built, all of the techniques had to fit within that $100 bill budget.
355040	357440	And so that really limited what we could do.
357460	362940	Now we had, I think, for 60 challenges, we had like 50K LLM budget.
362940	363280	Yeah.
363280	366420	And so that boiled down to like $900 per challenge.
366420	368940	And all of a sudden, you have a lot more freedom to experiment.
369500	377040	How many within Static Code Analysis, like the tool, did you ever find true vulnerabilities using only the LLM?
377300	379180	Oh, using only the LLM?
379380	380300	Yes.
380300	380880	Yeah, yeah.
380880	381620	Really?
381620	381960	Yes.
381960	386460	So like feeding in parts of the Static Code to identify a bug here?
386460	392840	So part of our whole CRS framework, we can break it down into several different phases.
392840	397260	But the initial phase, run a bunch of Static Analysis tools, gather the results.
397360	405400	And then because we have full code bases to work on of hundreds of thousands, if not millions of lines of code, we need to boil this down to something that the LLMs can ingest.
405400	413040	So we use the Static Analysis tools to figure out where they should look at first, rank these in some order, and then say, hey, can you reach this location?
413040	414840	Or, hey, is there a bug here?
414840	418080	And if there's a bug here, can you just crash it for me?
418420	422360	And as it turns out, it can, in fact, just crash it for you.
422920	428120	So wait, you mentioned that it really sucked in the beginning, and then it got better over time.
428220	432220	Was it capable at like the GPT 3.5 era to just do it?
432220	434620	Or did that not come until later models?
434620	438620	Or did you find yourself using something other than GPT?
438620	450500	So I think it kind of started for us where we were like, hey, we can start to do something more of the now more popular approach of like the agentic thing where you let the LLM kind of run by itself.
450500	452520	We started noticing that that worked.
452520	465460	I think the first with CLAWD 3.5 Sonnet, I think we have pretty heavy uses of various types of models in our thing, but a lot of it is CLAWD 4 now.
465460	471300	And CLAWD 3.5 Sonnet was the first prototype where we were like, hey, this is actually really cool.
471300	473040	It's able to use tools we give it.
473040	474200	It can use a debugger.
474200	478140	It can write Python scripts to interact with stuff.
479100	497040	And I think that was also one of the first models where we found that ability to write Python scripts that produce inputs that we then feed to the program really helped a lot because all of a sudden, instead of having your fuzzer have to break compression or like break some checksum,
497040	501740	it can just import Zlib, zlib.compress, boom, you're there, right?
501780	505860	And so I think that was the first step where we're like, oh, wow, that's really cool.
507280	509460	So gosh, there's so much to unpack here.
509460	522700	So let's, I want to bring back to when you were interacting with the LLMs, were you interacting like directly with, oh, I'm going to open AI's API, or were you using a higher level like a lane chain or something like that to actually, so it would pick,
522700	525640	okay, this problem is best solved by this model?
526160	528020	No, we were not that sophisticated.
528360	541640	It was pretty much, it starts off of us just in like the console of GPT or Anthropic building kind of test cases of, okay, I have this input, if I, let's see if I can actually manually massage this into place.
541640	552200	And then once we've confirmed that that works, we then try and turn that into some sort of prompt and automated system so that we're able to do this over and over again and verify that.
552200	572980	And we had like our own system built on top of that, one of the people on our team built called AgentLib that built on top of lane chain, but made a bunch of like super nice wrappers around it to be tool calling and like have agents with history that automatically prune and like all of those like common techniques were a little bit like abstracted away.
572980	576120	So you could focus a little bit more on the prompting and the component writing.
576120	578300	Yeah, I've used, I've used lane chain before.
578300	583640	It's really, I'm sorry if the developers, it's really janky, it's really clunky.
583640	583840	Yeah.
583840	587760	And at a certain point, you're like, I can just maybe just do this over here somewhere.
587760	594600	I think one of the important things to note, too, is that like we evolved as AI also evolved at the same time.
594600	598220	So when we started, tool calls didn't exist as a concept.
598220	608680	We had to figure out how to get it to execute like arbitrary Python code, which was very scary because we're just like, hey, I just made this thing where if you give me Python code, I'll just run it on my system.
608960	609720	Yeah, right.
609720	612140	Full access to pull down any libraries you need.
612140	612580	Yeah, sure.
612580	613260	Just go for it.
613260	613480	Right.
613480	614520	It's probably okay.
614520	615300	I'm sure.
615480	621160	But no, then, you know, we slowly built our own agentic framework and then like agents and stuff also became a thing.
621160	623860	But our system was already so hard set in the stuff that we had done.
623860	625520	We just continued to build upon that.
625520	630160	So now that you've gotten through the competition, you guys did very well.
631100	635480	Who do you see actually deploying these types of systems?
635480	644100	Obviously, every not obviously, but every team is required as part of the competition to open source their work or some amount of it.
644100	646300	I don't know what the actual stipulations are.
646480	649580	I imagine you're very interested to see what everyone else did.
649580	649980	Yes .
650380	653560	Who do you think is going to take this and run with it after it?
653560	656460	Do you guys have plans to do something with it afterwards?
656500	658300	Are you already starting your own company?
659120	659560	Oh, yeah.
659560	661080	It's you want to go Lucas?
661080	661440	Sure.
661440	661700	Yeah.
661700	663340	I mean, I think the answer kind of.
663340	668360	I mean, for us, we've built and spent like the last two years building the system.
668480	670620	Obviously we want to keep it going, right?
670620	679380	And so yeah, we're thinking of exactly this kind of thing of like, how can we make a company that then can actually provide stuff to people, right?
679380	681780	Like that can actually make people's code safer.
681900	687980	And I think that answer is of like, who's going to use it and how is different depending on the use case.
687980	694260	I mean, if you're someone like Google that has just infinite money, basically, to throw at the problem, right?
694260	703180	Then you can do a lot more of the techniques that I think this competition finals incentivize where you're just like, have a lot more resources available.
703500	710120	I think for smaller companies, there is parts though, of these systems that generally don't cost that much money.
711080	717860	One of the settings of the challenge was you're given a target repository, plus a set of changes.
717860	723060	And then you're instructed to find bugs that are introduced by those changes.
723260	728520	Now it turns out that that problem all of a sudden is a lot cheaper to solve, right?
729040	733540	You can by just limiting it to those functions plus what they impact.
733540	743760	So for example, if they make new functions reachable that weren't reachable before, that is all of a sudden that something you can maybe do for $5, maybe $20, right?
743760	750820	Depending on how big your changes are, that's all of a sudden a lot more approachable for a lot of folks.
751200	759260	So one of the biggest problems I've seen in static code analysis is you find, oh, there's an injection point right here, but there's no way of reaching it.
759260	763820	So it's kind of like, oh, I don't want to submit this because it's just creating noise for the developers.
763940	766020	How did you guys solve that problem?
767120	767460	Yeah.
767460	773060	So I mean, I think this comes back to the LLM being able to generate reaching seats, right?
773060	786080	So we found that in a lot of cases, if you give the LLM a point and you give it like a good start, like let's say some PDF parser, you give it like a good starting grammar maybe for the fuzzer to create a PDF out of.
786080	791260	It's actually very good at manipulating that to reach that location.
791260	795460	And maybe it doesn't necessarily instantly crash it, but it can get very close.
795460	801780	And maybe within a few minutes or hours, it's able to actually mutate whatever your sheet is to crash the program.
801780	809800	So you had, just to recap what you just said, you had LLMs essentially writing fuzzers as part of your framework.
809800	825400	So not just like we were talking previously about concolic execution, where you have a stack analysis that hits a state space explosion, so you just go run a fuzzer, and then you figure out where the state space shrinks a little bit more, then you go back and forth.
825400	833580	In this case, you actually had the LLM or whatever model mutating your fuzzer to that's dope.
833580	835440	Yeah, that's just cool.
835580	844820	Yeah, we had a this was one of the cooler things where I think we built a lot of stuff around that we want to see the logs to see how well that did.
844820	846840	I think there's obviously stuff that could have gone better.
846840	853880	But I think there's probably also a lot of very cool stuff in there where the LLM is very good at recognizing patterns.
853880	854180	Right.
854180	855380	It looks at a function.
855380	860000	Oh, I know what this this is like, oh, this is clearly trying to parse a PDF.
860460	872020	And so then because we had the LLM write these input grammars that describe the structure of the input, we could detect, hey, this part of this input structure that the LLM is trying to describe looks like a PDF.
872780	892360	And then what we would do is we can take these corpuses of entire known PDFs, but also handwritten grammars for PDFs and splice them in at that point to really supercharge the exploration of that LLM where it's like, OK, well, it got there and it kind of has an idea of where it's trying to go.
892360	899860	We'll help it along so it can focus on like reaching other stuff that's custom to this application instead of having to worry about the PDF format structure itself.
899860	904620	So we're talking about PDFs really quick, but I have a somewhat leading question.
905720	916440	Did the competition give you not necessarily all of the not file formats, but input formats that it would be exposed to?
916440	924700	Or was your system expected to be able to look at a new code base, decide how to exercise it?
924700	933260	So it had to not just reason about how to mutate a fuzzer, it had to reason about what to generate, what fuzzer to generate.
933260	934420	This is all I'll tell you.
934640	935440	That's wild.
935440	939500	I didn't realize the input to these to our system is cURL.
939500	946440	So they will send us a cURL request that contains a JSON body that just tells us here's the link to the repo.
946440	950960	And here's like the very base metadata of this is a C project.
950960	952760	Here's where you can find the Docker file.
952760	955500	Here's where you can find like the supported fuzzers.
955500	956480	And then that's it.
956780	957380	Yeah.
959160	964840	So let's let's talk about stages, because there's probably some breakdown and we'll call it your orchestration, which is a stage.
964840	969740	The first stage is discovery or identification, probably recon, whatever you want to call it.
969740	972160	Can you walk us through the stages of your approach?
972580	972900	Sure .
972900	974000	Yeah, absolutely.
974000	974300	Yeah.
974300	979960	So we break it down into I think it's about five stages.
979960	981140	One is just the input, right?
981140	982980	This is this is what we ingest.
982980	989860	And in the case of this competition, it's OSS fuzz projects, right, which have a relatively set format and is somewhat easy to parse.
989860	1000920	Then we have our static analysis stage where we run tools like CodeQL, Semgrep, and then if they give us any sort of diffs, if it's that type of challenge, we figure out, OK, what are the functions that were touched that were changed?
1000940	1008580	Then we feed this information into our dynamic analysis phase, which includes the LLMs trying to generate reaching input.
1008580	1008760	Yes.
1008760	1012480	I want to pause you on the static code analysis, where you're running Semgrep and things like that.
1013060	1022600	The outputs of those files, were you running them through some sort of report parser that you wrote or were you handing those straight over to an LLM and say, make sense of that?
1022600	1024680	So kind of a little bit of both.
1024680	1032000	So we have a component that we called CodeSwipe that basically just aggregates rankings from different tools.
1034200	1041260	But one of those tools or specifically two of those tools that feed into that ranking would use LLMs to try to rank it.
1041260	1048100	So, for example, we had a component called DiffGuy that would take the diff, it would analyze, it would try to find what's reachable.
1048220	1057360	And then for each of those functions, it would hand them off to LLMs in combinations of like, hey, do you think there's a bug of type of a buffer overflow here or just do you think there's a bug here?
1058220	1072260	The other thing we had was this like custom model that one of the people on our team trained that was trying to do the same thing where you just give it all of the functions and it tells you, I think this is more likely vulnerable than this other function over here.
1072460	1073880	So a little bit of both.
1073880	1091340	But everything kind of culminated in this ranking, this numerical ranking, where honestly, that's just like heuristics where we're just like, hey, four times this score plus two times this score, just to give us a numerical ranking that we can then rate the functions by and hand off to the LLM C generator.
1091340	1092180	So I'd grab that.
1092180	1096120	So I'd grab those outputs then and move those into the dynamic analysis portion.
1096120	1096340	Yeah.
1096340	1100380	So then we know kind of where we need to start, at least for the LLM portion.
1100380	1104760	Where do you need to start looking to try and exploit or find crashes or bugs?
1104760	1113660	And then on the flip side of that is you had our suite of fuzzers, right, where we identify first, OK, what type of input does this thing take?
1113660	1115060	Are we talking SQL queries?
1115060	1116500	Are we talking PDFs?
1116960	1121320	And then as we fuzz, we generate coverage reports.
1121320	1131020	We figure out how far did this grammar that we've generated actually reach into the program and then feed that back into the LLM grammar generation that says, hey, you reached this far.
1131020	1133000	This is what's in your immediate vicinity.
1133200	1134780	This is what you've done so far.
1134780	1136200	Can you go even further?
1136280	1142540	Well, what's cool about this, too, is that, like, I was I think we were all a little bit hesitant to do this initially.
1142580	1154040	But when we talk about this, like, oh, the LLM has to reach certain functions and it has to it has to hit a certain piece of code with a certain vulnerability in it.
1155000	1159200	One of the main components actually just lets the LLM choose what it wants to reach.
1159740	1163760	And so that's kind of cool where it's like, it's like, oh, you've reached these functions.
1163760	1167340	It has a list of goals of like, hey, I'm trying to reach these things.
1167340	1170380	And it can itself decide, I want to add this as a goal function.
1170380	1172160	I want to add this as a goal function.
1172200	1176260	And then it gets it in the status report with a nice little green checkmark when it finally does.
1177360	1181440	So like, wait, so dynamic analysis back here, so many questions I want to ask.
1181440	1183120	Go after dynamic analysis.
1183120	1184280	Where did it run off to?
1184280	1184720	Yes.
1184720	1186780	So then we had root causing, right?
1186780	1190640	Because ultimately, we need to patch these vulnerabilities that we find.
1190640	1193540	And in order to patch them, you do have to understand them.
1193880	1206380	We found that a good portion of vulnerabilities, once you're given the crash, you're patching or LLM can understand it based on the crash report and just give you something that's pretty good, right?
1206480	1217920	But when you have things that are like use after free or heap buffer overflows, where maybe the actual user or vulnerability location happened way earlier than the actual crash location.
1217920	1222440	And so in that case, we had two separate triaging systems that attempted to find the root cause.
1222560	1232040	So , yeah, I was going to say, well, how did your system deal with detecting the victim rather than the perpetrator of, you know, use after free or race condition?
1232040	1234140	Or did you did you get there?
1234360	1239700	Yeah, I mean, I think there's kind of like two pretty different approaches.
1239700	1241980	We've tried to have a little bit of a mix there.
1242700	1249420	One can be kind of boiled down to you hook up the LLM to a debugger and say, tell me what's up.
1250840	1256660	And that one is actually surprisingly effective if you constrain it enough and give it good enough input.
1256660	1258460	Will was working on that one for a while.
1258520	1258700	Yeah.
1258700	1264620	One of the biggest challenges with that is that if you just tell the LLM, hey, you can access GDB, here's where we crashed.
1264620	1274220	Can you tell me like a little bit about what happened is it starts trying to examine every single pointer that it can see and then every single value that that pointer points to.
1274220	1279120	And then it started looking at the stack values and then it just does it just freaks out.
1279120	1279380	Right.
1279380	1282820	So you have to put it in a little bit of a box first.
1283000	1284800	But if you do, it's actually quite effective.
1284920	1298860	And then the other approach was a little bit more of like the traditional, more statistical approaches of trying to do call traces, seeing which parts light up more in crashing inputs versus non-crashing inputs and that kind of thing.
1298860	1305220	And then both of those approaches produce their own reports and their own ranking of like, this is where I think the patch should happen.
1305840	1316020	I'm guessing at this point, after this point, it was probably pretty easy because you now can hand an LLM saying like, here is the exact crash location.
1316020	1318940	Here is the piece of code causing this.
1318940	1320980	Here's the type of bug.
1320980	1322180	Go patch it.
1322180	1323460	So is that correct?
1323460	1324020	You would think.
1324020	1324640	You would think.
1324640	1325420	I would think.
1325420	1326260	You would think.
1326300	1327340	So it actually turns out...
1327340	1329080	And it's also what we thought, too, by the way.
1329080	1329820	Yes.
1330440	1332780	So that it is true.
1332780	1339800	It is somewhat easy to get to a patch that ends up then actually fixing that specific crashing input.
1339800	1347540	But what it turns out is a lot harder is making sure that you submit a patch that fixes all crashing inputs.
1348060	1351060	So, for example, we had a case in one of the...
1351600	1355220	So DARPA ran a couple of exhibition rounds before to let us test the systems.
1356400	1362800	In one of the exhibition rounds, they had a target where we found a bypass to the organizer written patch.
1363500	1371080	And so there was a lot of logic that we had we added that was like, OK, make sure that there's definitely no more crashes.
1371080	1371220	Right.
1371220	1373100	So we would take the patches.
1373100	1374160	We would fuzz them for a little bit.
1374160	1380880	We would give them to our vulnerability hunter agent again and say, like, now try to bypass this patch.
1380880	1387860	And it turns out that there was actually a decent amount of patches that without those stages were bypassable.
1387860	1391820	Whereas it was like, oh, let me just double the size of the buffer or something.
1391820	1392040	Right.
1392040	1401000	Like patching is even like even in these we were we had exhibition rounds leading up to the finals where the organizers would give us a set of pre challenges that they had done.
1401000	1407600	And then after the round was over, they'd release, oh, here's the vulnerabilities and here's the diffs for some of them.
1407640	1411060	And in the diffs were supposed to be the patches that they applied.
1411060	1413620	And we were able to bypass some of those patches as well.
1413620	1416300	So even for humans, writing patches is difficult.
1416400	1417300	It's interesting.
1417300	1419460	It's like we both agreed.
1419460	1423020	You're like, we thought that was going to be easy, but it wasn't.
1423020	1430340	What was what are other like what is the most surprising thing you hit where you're like, I was expecting this and it totally was not that.
1431020	1443980	I mean, I think the first one was the the that the surprising fact that these LLMs can even just do this like one shot seed writing where you're just like, oh, here's a bunch of functions along a path you want to hit.
1444120	1448280	And these functions are really hard sometimes for fuzzers to hit.
1448860	1451380	And the LLM does it for like 50 cents.
1451520	1453300	It's like, yeah, it's just wild.
1453300	1461100	I mean , honestly, the first time we we were all in like a room together and I know I knew people were working on this component and they say, oh, I hit the bug.
1461100	1465300	And I was like, bullshit, you over tuned like, you know, you told it where you needed to go.
1465300	1468960	And then they showed me they do it a second time on like something totally like fuck.
1469940	1476440	So a couple of years ago, I pivoted away from vulnerability research and doing Linux development now.
1476440	1486340	And one of the reasons for that is I got a little burnt out and I realized that the problem is, in some senses, like if you want to go do embedded systems work, it's never been easier.
1486340	1496260	In other ways, it's only beginning harder and harder and harder to make a living in this space, at least compared to even 10 years ago, five years ago.
1496440	1501460	What you're describing is like, oh, we just found a way to make it significantly easier.
1502120	1502920	Great.
1502920	1503980	Oh, shit.
1504700	1507600	Oh, crap, is my response to that.
1507600	1509240	That's fascinating.
1509520	1522580	So so the cool thing about it, though, is that I think one thing that I've taken away from a lot of this is that traditionally, I've not been a super big believer in the idea of like directed fuzzing and all of that.
1522580	1526380	I think it's mostly had at best marginal effects.
1526380	1534680	But now if this is remains true, which is what seems to be true, which is like you can just tell the LM, hey, I think there's a bug here.
1534680	1535660	Go try hit it.
1535860	1548600	Now, all of a sudden, you can do a lot more research into what do bugs look like and how can I find the pattern of a bug and how do I identify bad looking code, like that code smell idea.
1548860	1555180	And all of a sudden, all of that research, now you have an actionable thing that can take that and say, oh, you're right, that is bad.
1555420	1566380	So I think for me, this seems like the obvious step, because we look at most code analysis tools and they're pretty stupid, like SEMGRAP, like we are looking for patterns which we have created.
1566380	1585320	What we're now doing, though, with large language models, which are great at grabbing unstructured data and adding structure to them and looking patterns, I think the only thing which is going to be like a significant gotcha with it is that the generic training we're doing is including so many stupid patterns.
1586080	1594980	So really, so an interesting part about the grammar fuzzing thing is we actually had to tune it a little bit differently because the LM was too good at generating structured code.
1595040	1603600	It would generate code that was that would be within the bounds of what a normal programmer would think to do, but didn't actually test maybe the max or min.
1603600	1608360	And so on top of that, grammar had to add an extra layer that was like, oh, it's trying to set an integer here.
1608360	1618320	Let's actually extend that a little bit so it can be a hacker domain LLM that is just like, no, we're going to keep this one private because it would be too dangerous to release.
1620040	1624220	No, code smell would be a good name for that tool.
1624820	1629500	So if it's not already trademarked, I recommend we're not going to publish this video right away.
1629500	1630600	Feel free to run off.
1630600	1632040	We'll get on it right after.
1633340	1639440	So you hit the point, you've done triage, you identified a bug, you're now ready to do a PR .
1639440	1641000	What's the next step?
1641180	1642540	Do you build unit tests?
1642540	1646440	Like , I'm assuming now you want to build a unit test almost.
1646440	1650240	I guess you've identified a bug, you've done a PR somewhere along the line.
1650240	1651880	I'm guessing you're building a unit test.
1651880	1652660	We'll check.
1652660	1654200	Have I properly patched it?
1654200	1656600	I'm guessing that's the part you were kind of talking about.
1656600	1656880	Yeah.
1656880	1663440	So the way it works in the setting of the competition is basically the unit tests are given to us by the organizers.
1663440	1664540	Not ahead of time, right?
1664540	1667220	We don't ever see them, but the system sees them.
1667360	1674700	And so when we produce a patch, we have to run all of the unit tests and they run them all before the submission.
1674700	1680440	And our patches are only considered valid if all of the functionality tests remain passing.
1681200	1699160	What we have done is a little bit more of what we talked about earlier, where our version of unit testing is basically taking the aggregated set of all crashing inputs we've ever found, making sure that all of the ones that we've clustered together in that same bucket that we believe belong to the same vulnerability,
1699160	1702720	making sure that they patch as many of those as possible.
1702720	1716680	And then with the patches we end up submitting to the organizers are only the ones that are either perfect and patching their entire cluster, or after some amount of time, we'll be like, OK, we've tried, we're clearly not able to make a perfect patch,
1716680	1718800	maybe we'll submit the imperfect one.
1718800	1722700	So that's a little bit more of the testing of the patches that we do.
1722700	1726180	So before we let you go, there's two questions, there's two ones I have to ask.
1726180	1737980	One, in early days of LLMs, there was little stupid tweaks you could do, like take a breath and then answer, or you are a penetration tester trying to do this.
1737980	1743720	Did you find weird tweaks like that along the way where if we said this, this massively improved it?
1743720	1753220	So I'll say initially, yes, we had crazy ideas, we would yell at it, we would threaten it, right?
1753220	1762180	We came up, we never really used this, but the Russian roulette expert approach in which you ask, you know, the three expert approach, right?
1762540	1771800	Where instead, you have 100 experts, and each time it doesn't give you the answer you want, you say, I killed expert 86, do you want to try that again?
1772940	1787420	But and then ultimately, as models got better, these things phase out as they're better understanding like human language and intention, it phased out into just have well structured prompts, define things like this is the instruction in like XML tags,
1787420	1790740	this is the input I'm giving you and yada yada.
1790740	1792740	I did have to laugh early days.
1792740	1794240	It was like this is life or death.
1794240	1797420	If you do not get this right, you are going to kill me.
1797420	1800180	And if he gets it wrong, you're like, you killed me, please.
1800180	1806280	And now the LLM is turning it around on us and Claude is going to phone the FBI when we threaten it.
1806700	1808620	That was the first question.
1808620	1811520	The second question is hindsight 2020.
1811680	1812960	You're now at the end.
1813340	1817420	If you could say something to yourself at the beginning of the competition.
1817940	1820000	What would you tell yourself?
1822380	1824100	Say it was worth it.
1824100	1827520	Yeah, yeah, I think I go for it.
1827560	1830660	I think that I learned so much along this way.
1830660	1834800	I mean, traditional binary analysis knew nothing about AI or LLM when I started.
1834800	1837140	I did not actually even like the field at all.
1838020	1840400	But I thought, hey, these things are kind of popping up.
1840400	1842500	It would be cool to get experience doing this.
1842500	1844720	And I think I learned how to use these.
1844720	1847600	And I think I know what makes them tick a little bit.
1847600	1854580	And I know how I can integrate it in my own projects to make them better and maybe hopefully, you know, make the world a better place.
1854580	1856220	Open source tools, you know.
1856620	1868620	I think my answer would be a little bit of like the don't be afraid to experiment just because I think, you know, this is a pretty big effort to build a fully autonomous system that has to be full hands off, right?
1868620	1870060	Like you're in the real world.
1870060	1873060	You might have people that can fix stuff when it breaks.
1873060	1876180	But in our case, we had to do a lot of engineering to make that happen.
1878320	1886120	And so for me, it was really nice between semifinals and finals to have that breathing room where you're like, OK, we made it past that boundary.
1886120	1887980	Now we can start exploring the space again.
1887980	1890660	And then we rapidly tried out a bunch of stuff.
1890680	1900240	And I think encouraging that more and like earlier and realizing that, you know, the system is going to run whatever it's you have to make it work.
1900240	1904700	But in the approaches, you can be a little bit more experimental.
1904700	1907860	I think that could have been very, very cool just to see what else is out there.
1907860	1911460	I think there's so much stuff we haven't tried yet that we want to try still.
1911460	1915180	And it really is amazing how much it's changed even in two years.
1915180	1920800	And it's I'm curious, especially with the sheer amount of open source tools.
1920800	1928860	Yeah, I'm curious how long before or if there was an approach which was like, go find another open source tool to do this thing.
1928860	1932960	It's just like creating its own, you know, creating tools or finding new tools.
1933820	1934620	Perfect.
1935140	1937660	We've now that we've solved the world problems.
1937660	1938920	I mean, what do we do now?
1941200	1943440	Thank you so much for joining us.
1943440	1945280	Thanks for sharing kind of the secrets.
1945280	1948840	I cannot wait for it to be open source and take a look at what you guys did.
1948900	1950880	And we'll keep an eye on what was it?
1951140	1951620	Codesmell?
1952420	1953080	Codesmell, yeah.
1953080	1953580	Thank you.
1953580	1954760	Thank you for watching.
1954760	1955040	Thank you so much.
1955040	1956100	Thanks for having us.
1956100	1956960	And hack on!
