start	end	text
0	1020	All right.
1020	2380	Hi, everyone.
2480	4140	Welcome to DEF CON.
4220	15580	Today I'll talk about Orion, a system we built to automate the entire fuzzing workflow, from picking up what to fuzz, to generate harnesses, seeds, even creating fixes.
15860	18380	This work is a collaboration between me and Marius.
18380	28840	We both spent many years creating authentic security tooling, so Orion is our way to make fuzzing smarter, faster, and frankly, less painful.
31660	32300	All right.
32800	34300	Let's talk who we are.
34300	38800	I'm Max Bazali, I lead an authentic security team at NVIDIA DriveOS.
38920	48240	My main focus right now is discovery of vulnerabilities, using AI tools, formal methods, and general security research.
48340	55600	Before NVIDIA, I was doing a lot of research on Apple operating systems, creating jailbreaks for iOS and watchOS.
55600	61820	Actually, I present very first Apple watch jailbreak here at DEF CON 25, many years ago.
62440	71700	During the time, we even discovered first Pegasus spyware on iOS and published the white paper about tried and exploit chain using that attack.
71740	72940	Let me hand it off to Marius.
73420	79760	I'm Marius Fleischer, I'm a security engineer with NVIDIA's authentic security team for DriveOS.
79760	83640	I primarily focus on applying AI to security challenges.
83840	89520	Before NVIDIA, I was at UC Santa Barbara, working at the security lab with Giovanni Vigna and Chris Krugel.
89520	95080	I was primarily looking at how we can do automated vulnerability discovery for operating systems.
95600	96260	Cool.
96340	106400	So, most of us spend a lot of time, probably more than we wanted, on creating harnesses, managing fuzz and infra, and do all this, like, glue around fuzzing.
106580	112400	So, that's why we created Orion, to make, like, take the painful parts out of fuzzing and automate them.
113100	116080	Let's actually see what exactly we are doing.
116080	119320	And for that, we need to understand the core loop behind the fuzzing.
119360	124540	That's how all the modern feedback doing tools like IFL or the fuzzer works.
124800	134020	It all starts with a, like, seed corpus, initial inputs, the fuzzing tool takes it, mutates it, run to the target through the test case.
134340	138880	All the test cases executed through the harness, that's, like, a very important step.
139200	146280	And if, like, during the run time, we basically can collect the code coverage to understand what is going on with our target.
146440	152520	If our inputs, you know, like, explore the new path, hit the new branch, that is great.
152620	158820	It gets added to the seed corpus, and basically that's the way how the fuzzing tool can understand where to dig deeper over time.
159260	162060	If our inputs find a crash, that's great.
162060	163500	We potentially found a bug.
163700	171820	Most of the bugs currently detected by ASAN UBISOFT, great sanitizers detecting stuff at the run time.
172060	173980	So, what's the problem with the loop?
173980	176800	Basically it's hard to make it work properly.
176800	178300	A lot of moving parts.
178300	185500	We need right targets, we need the solid harness, we need the good seeds, and basically a good fuzzing tool.
185500	190020	If anything goes wrong, basically our fuzzing campaign most likely will fail.
190240	192680	So, that's where Orion comes in.
192680	197400	We take the, like, time-consuming parts out of this loop and automate it one by one.
199620	201640	Let's talk about LMs a bit .
201640	207740	I hear they're very, very popular right now, and surprisingly we use LMs at Orion.
209320	213980	Let's talk a bit why we think LMs are a good fit for this kind of task.
214440	233540	Actually, LMs, like, we know neural networks, training huge corporate text and code, that's all good, using, like, transformer architecture under the hood, which unlock really nice capabilities, like, reasoning through the code, generating code, spotting some risky patterns.
233820	237660	That's why we think it's a great fit for security automation like fuzzing.
238280	245340	Speaking of the risky patterns, LMs can spot bugs, they can occasionally even introduce the new ones.
245340	254560	So, that's why we should never trust them, never trust them blindly, and always run through the validation loops, and we will talk in a bit how exactly that works.
255140	258500	Okay, just a few words about agents.
258820	266620	Basically, this is how LMs can evolve into something more capable than just, like, passive tools, we ask, they respond.
267040	276960	With agents, we can give LMs a task, we can give it access to tools, and a way to, basically, understand what's going on, refine and correct if needed.
276960	279620	Very, very similar to what humans would do.
280040	281540	What does it mean in practice?
281760	291340	We need to generate, let's say, fuzzing harness, so the agent can, you know, first scan for any dependencies, generate the code, try to compile the code.
291500	294380	If compilation fails, okay, let's make another attempt.
294380	299520	So, that's what we call the agentic loop, it's like act, observe, and refine.
299620	302880	Again, very similar to what the real humans would do.
303940	313740	This loop is important, this agentic loop is important because that's a way how we can trust these agents and basically make this automation possible in the first place.
315080	315880	Cool.
316220	321680	We're going back to our fuzzing loop to understand, like, what exactly we're automating.
321860	326500	The very first question with fuzzing to understand what we want to fuzz, right?
326700	339040	And that may be tricky because in the large code bases, like we got in Drive IS, maybe millions of lines of code, thousands of functions, probably a lot of them are really interesting from security perspective.
339040	347860	What we really care is, like, high risky interfaces, code that's parsing, untrusted user input, stuff like that.
348900	359220	That's usually the very manual work to identify them, there is no easy way, like we need to do some threat modeling, look into the code, look in architecture, like, all of this.
359500	370300	That's why we create an agent that can help us do this work, analyze the code, understand how this code can be triggered, run the function and basically say, hey, this is what makes sense to fuzz.
372460	382280	Next one, even if we know what to fuzz, we need to trigger the code that we want to fuzz, basically we need to create the harness, this glue between fuzzing tool and the target.
382820	393560	If our harness is bad, like, incomplete, you know, we miss some memory location, it will just crash or, like, do nothing and waste a lot of fuzzing cycles.
393560	397560	So, if I have a bad harness, we'll find zero bugs.
398840	413720	That's why we basically create another agent in Orion that can analyze the code for us, understand what kind of dependence is needed, do the proper setup, proper, like, teardown if needed, memory location, basically creating all this context for harness.
413720	417120	And we will look really soon how exactly that works.
417460	418420	Cool.
418740	420280	What next?
420340	423100	We know what to fuzz, we know how to fuzz.
423120	432020	We not really go far without initials inputs, because we remember that's the very first thing that fuzzing tool takes and mutates.
432080	438000	If our inputs are bad, it will be rejected by a target or, even worse, it can just crash the target.
438700	451520	So, we create another agent that can help us analyze the code, understand how the inputs are handled, what are the checks, are there any magic bytes, are there any string constants that we need to take care.
451620	455340	And basically create an input that makes sense from target point of view.
455920	459240	So, we not waste time on fuzzing the wrong thing.
460820	461700	All right.
462260	468200	Let's say we collect it all together, we run, and our fuzzing finds some crashes.
468200	469360	So, what's next?
469620	471500	Are these crashes the real bugs?
471500	472460	Maybe.
472740	473520	We don't know.
473520	475620	We don't know until we can reproduce them.
475620	480020	So, if we can't reproduce the bug, we can't triage it, we cannot fix it.
480300	484000	And usually, the process of reproducing it may take time.
484000	490000	So, we need to take inputs, like run it in the same environment where the crash happens, like many, many steps.
490000	501040	We create an agent that helps us with that and basically look into what happened, why it happened, what sanitizers trigger a crash, and basically create some minimal reproducer.
501040	506360	So, some small program that we can run over and over to understand if this bug still exists or not.
507300	513420	And finally, the final challenge that we are automating after we detect the bug and reproduce it.
513420	515840	So, we want to fix it, ideally.
516720	525860	And fixing, it's maybe a problem, because where the crash happens, maybe not the root cause, where the actual bug is at first.
526380	532680	Second, our fix, like, it can introduce the new security bugs, like, more than we are fixing.
532700	536020	So, we really need to understand why this happened, what the root cause.
536240	537840	It's usually the manual work.
538200	550980	So, we create an agent that first rely on the reproducer from the previous step, creates us a minimal patch, verify this patch using the reproducer, and if everything is cool, we send it for a human to review.
550980	560160	So, we still, we don't want LLMs to, you know, push the code uncontrollably into our release branches, so we still want to review these kind of things.
560240	566520	All right, this is how everything comes together, like, it's the high-level design of Orion.
566680	575220	We create it to automate the entire fuzzing workflow, from identifying what to fuzz, to creating patches if there are any crashes, right?
576080	582440	It's separated into different phases, like, each phase is dedicated for specific agents that are doing this kind of work.
582660	589740	So, we start with one agent, the output, the first agent is input to another one, and so on, so on.
589740	592920	Think of it like an assembly line, but for fuzzing.
593380	599820	We start with interface analysis agents, like, analyze the code, say, OK, this is what makes sense to fuzz.
600080	601540	Switch to the harness.
601560	607660	Harness generation agent creates the harnesses that we can compile for all the targets we selected.
608080	612740	Next, seed generation agent, then we just run our fuzzing campaign.
612980	618360	Depending on the tool we use, depending on, like, what we want to fuzz, it may take some time.
618360	630080	If there are any crashes or findings, the agents will pick it up, basically create the reproducers, create the patches if possible, and basically give it for humans to review.
630880	637720	So, with this approach, basically we can run all the agents together, we can run all the agents one by one.
637720	643220	If anything fails in between, let's say we create a harness, we can't compile it, that's OK.
643260	648120	The agent will make another attempt with updated information from the compiler, for example.
648740	660220	We use it to scale fuzzing across NVIDIA, and since we deployed this project, we found more bugs compared with, like, manual fuzzing campaigns.
661280	661960	All right.
662600	665740	I want to talk a bit about feedback loops and oracles.
665740	668820	Basically, that would make this agent reliable.
668820	675240	Because we don't trust LLMs, they will hallucinate, do all this kind of, like, interesting stuff.
675560	683060	So, but what we can do, we can take a tool that we can trust, like some deterministic tools, and use them to validate the output.
683160	686480	For example, we generate the code, we run it through the compiler.
686780	693460	We create a harness , we try to execute the harness and see if it crashes, if it's really generating any code coverage for us.
693460	694620	This kind of stuff.
694920	702860	So, these agents, they are part of this loop, we call it validation loop for every agent.
702860	707120	And until the agent can pass all the validation checks, it's not moving forward.
707120	711420	That would make it reliable and basically all this automation possible.
712480	713440	All right.
714120	717180	A few words about infrastructure.
717240	721960	Because it's all this stuff not going to be possible without proper infrastructure.
721960	732080	Because by default, LLMs have no idea how our code is structured, what interface are internal, what are external, where the data types are defined, all of it.
732160	738280	Without that, agents will be guessing, hallucinating, like, all kind of non-fun stuff.
738340	740580	So, we have to create infrastructure.
740640	759980	Basically, we have to parse the code, we have to understand dependencies between functions, we have to create the call graphs, basically create some minimal context, basically, like, where all the data types or dependencies are defined, that we can pass an agent to do the proper work for analysis or code generation.
760900	761460	All right.
761800	764220	Next, we will talk about benchmarking.
766660	770640	Benchmarking is another very important part of building a system like Orion.
770640	777600	It really helps you understand how your individual improvements improve the overall performance of Orion.
778080	786020	We chose to have a very simple, reliable benchmark suite by using human annotated ground-truth data as the base.
786200	792820	And then we can use a few different ways, a few different aspects of our system's output and analyze that based on that data.
792920	796560	The simplest way, of course, is to just directly compare to your ground-truth data.
796560	799200	That may work especially well for integers.
799520	808440	In some other cases, when you're ranking target functions, you may care more about the relative ranking of these individual functions more than the actual concrete score.
808440	811560	So you may look for pairs and how they relate to each other.
812020	819560	If none of this works, you can always fall back to an LLM judge where you just have an LLM review the system's output.
819560	824740	In our case, because we have ground-truth data, we can get a very reliable judge in that way.
825240	831500	For our targets, we choose, of course, the NVIDIA GPIO driver for QNX, which is a user-space driver.
831500	837280	Because of that, we choose two additional open-source user-space applications listed on our slides.
838420	841280	So let's have a look at our actual agents now.
841360	844860	The first one is about finding the targets we want to fuzz.
844940	850080	We really want to find functions that are likely to have bugs that a fuzzer can find.
850280	856180	So that means we define a set of metrics that you can individually evaluate against the functions.
856580	859620	And then you can combine those scores for the final ranking.
859940	868460	One example of such a metric would be dangerous expressions, so we're looking for pointer dereferences or pointer arithmetic or similar things.
869120	871220	The output of that agent might look something like this.
871220	877240	We have individual scores for all the metrics, and we combine them and rank on the final combined score to have a holistic picture.
878180	883540	Once we have the functions that we actually want to fuzz, we can go on to the next phase, the harness generation.
884220	888600	The first step in the harness generation is what we call the dependency analysis.
888900	900160	So in this step, we have an agent that goes to the code base and tries to understand which functions depend on which others, and also how do you clean up after calling your interface.
900160	903160	So you may have to deallocate some objects.
904880	913920	The output that we get here is essentially a list of functions to call before our target function and a list of functions after, and also the reason why we have to do that.
914560	918960	With this information, we can now actually go and create a harness.
919380	927320	So this harness generation agent has to create this piece of code that sits between the fuzzer and the actual target interface.
927320	942540	So that means it has to be compatible with the fuzzer, has to be able to understand those inputs, transform them into whatever structure the target understands, and also set up and tear down the target interface correctly so that we can repeat this over and over again.
943400	950480	In our case, we're fuzzing with lip fuzzer and AFL, so we use the harness format that is compatible with that.
950600	957400	It's also important to have all the right header files included, otherwise your harness won't compile, and we do need to call the target function in the end.
958900	964580	Now, because LLMs may or may not produce correct code, we do need to do some verification here.
964900	973180	Of course, we can just give it to a compiler, ask the compiler is this code correct, and if it's not, we'll give it back to the LLM to fix that.
973380	981060	We also have another LLM with some guidelines to review the harness to make sure there are some more semantic components that make sense.
981820	993000	If anything goes wrong here, like on the right side here, we would just take the error and take the harness that produced the error, give it back to the harness generation agent, and ask it to fix that problem.
993140	995280	If not, we're happy and we can move on.
997020	999720	Now, next step is the seed generation.
999900	1015340	So now, we want to find those inputs that are good in the sense that they will produce good coverage, and they will also hit a few of the edge cases, maybe help the fuzzer overcome some of the challenging aspects like checksums or matching values that you need to hit.
1015460	1026260	So we have an agent that goes through a code base, looks for all these things, and then tries to output a good seed corpus of multiple inputs that together cover all these cases.
1027640	1045660	For a function that has, say, three arguments that might look something like this, for each individual argument, we will have a part of the seed that corresponds to that, and because LLMs are not great at outputting binary data, we either get a structured output from it,
1045660	1052840	or we can also have it generate, for example, a batch script that if you execute, actually gives you the binary seed that we can provide to the fuzzer.
1054500	1059900	At this point, we have all the artifacts that we need, the harness, the seeds, and we can start fuzzing.
1060100	1073820	So at NVIDIA, we have a cloud infrastructure that you can just provide these artifacts to, and then this infrastructure will go wait for a runner to become available, set up that runner correctly so that it's the correct fuzzing environment, it will run the fuzzing,
1073820	1075380	monitor what's going on.
1075380	1079280	Once we have results, it will collect that and provide it back to Orion.
1079820	1082460	The purpose here is kind of twofold.
1082500	1088400	One, of course, it executes our fuzzer, but it also kind of works like a second feedback loop.
1088400	1101040	If there's anything unexpected during a fuzzing campaign, say, less coverage than we expected, or some crashes that shouldn't have happened, we can give that back to Orion, to the harness or seed generation agent, and ask for an approval again.
1101780	1103860	Of course, we may also find bugs.
1103860	1109160	In that case, we would then go and start our patch or bug analysis pipeline.
1110240	1113760	The first step here is to analyze what went wrong.
1113760	1116720	So we're looking for the root cause with this first agent.
1116960	1124000	It will essentially go look at stack traces, look at sanitizer logs, also have a look at the source code, and try to figure out what went wrong.
1124300	1131980	Once it has an idea, it will also generate a minimal reproducer to prove that it was right, which is, again, another feedback loop.
1132600	1145220	Once we have that reproducer, we have something that we can actually give to a human that makes it easier to understand what went wrong, and we also have what we need for the next phase as a reproducer, as a feedback loop.
1146260	1149160	The next phase being the patch generation.
1150100	1161460	So here now, we want to generate a patch that's meaningful and that actually goes to fix the root cause, not just block symptoms or maybe even just removes the vulnerable function.
1162140	1166280	It should apply cleanly to the code base and it should compile.
1166660	1171700	If it matches the coding style of the whole code base, that's also great.
1173040	1177260	So the output is essentially a diff file that you can apply.
1177300	1180140	We will, of course, give that to a compiler as a feedback loop.
1180140	1188640	We will also use the reproducer that we just generated and have that as a second way of verifying that we actually patched the bug that we wanted.
1189300	1196180	And as Max previously already mentioned, we will not just push this to main, we will actually give this to a developer to make sure that this is correct.
1197340	1201080	At this point, you might ask, does this actually work?
1201140	1206620	And to give you an idea of whether or not this works, we brought some of our benchmarking suite data.
1207320	1216320	So for a little bit of context, we started the development of these agents with GPT 4.0, but we have since switched to 4.1 just because it's better.
1216620	1222460	And all the data that you will see on the following slides and on this one will all be from GPT 4.1.
1223060	1227800	The LLM judges that we have as part of our benchmarking suite, they use open source models.
1227800	1230260	So Lama, Nemotron, these kinds of things.
1231240	1236540	In terms of the interface analysis, overall we have seven different metrics that we evaluate.
1236540	1247640	And if you average across these metrics and across all the three different targets that we have in our benchmarking suite, you will see that in 95 percent of the cases, we actually evaluate the metrics correctly, which is pretty cool.
1248280	1254360	The two metrics that you can see here on the slides are actually the two worst metrics out of the seven that we have.
1254360	1256420	All the other ones are better than what you see here.
1256740	1260300	The metric we seem to be struggling the most with is dangerous expressions.
1260340	1264520	So what we're looking for here is essentially, are there pointer references?
1264520	1265820	Is there pointer arithmetic?
1265940	1267740	Maybe there's also some bit operations.
1268200	1278180	As far as we know, the problem here is that some of our targets use macros heavily or have some other aspects that make it hard to resolve some of the symbols.
1278180	1281200	So the LLM doesn't really fully understand the code.
1281200	1285300	And that makes sense, but also makes it very hard for the LLM to figure out what's going on.
1286000	1289200	The other metric on the slide here is about sync functions.
1289200	1293600	So we're looking for functions that are commonly seen in the context of vulnerabilities.
1293600	1297040	For example, memcpy for a buffer overflow or things like that.
1297040	1300540	And that seems to be doable for the LLM.
1302240	1306780	In terms of harness generation, this task seems to be a little harder.
1306960	1310280	The performance is a little worse, but still pretty good overall.
1310500	1314300	We have nine different metrics that we evaluate here in our benchmark.
1314300	1317940	The two here, I think, might be the most interesting for you.
1317940	1324300	The one in the middle is about whether or not our generated harness passed all the verification steps.
1324300	1329400	So that's the compiler, that's also our other LLM that verifies if everything is correct.
1329640	1332800	And we have a pretty good performance here, I would say.
1333240	1338580	The metric on the right is the one that I find actually more interesting and more impressive, even though the number is lower.
1339140	1344880	This metric is about finding out whether or not in the harness there's all the functions that we need to call.
1344880	1349020	So all the dependencies, the actual target function, and also the cleanup after.
1349320	1358900	The reason why I think that's the more impressive number is because this performance is largely dominated by the dependency agent.
1359160	1365940	And the task of this agent is to go through the code base without any documentation and understand where are the dependencies in this code base.
1365940	1371620	I think that's a pretty hard task, even for a human, and the fact that this agent is doing so well is actually quite impressive.
1372480	1376500	Now I'll pass it back to Max for the time-savings.
1379420	1380660	All right.
1380700	1382220	Thanks, Marius.
1382440	1385660	Basically, let's take a look at the time-savings.
1385900	1391880	We compare how much time we spend doing this work manually compared with the automation.
1392360	1396140	And that's the real numbers from our internal deployments of Orion.
1396240	1402000	We split it in three sections, like interface analysis, harness generation, and patching.
1402780	1415880	For interface analysis, we get a lot of time-savings, because if you remember, that's work that we need to do manually, like look into the code, understand if it makes sense to fuzz or not, if it makes sense how we can fuzz it, and so on.
1415880	1423200	So with agent doing this work for us, we can save days, sometimes even weeks, of the manual work.
1423460	1424900	Next one is harness generation.
1424900	1426740	This is where we see most of our savings.
1426740	1432360	And the reason for that, doing harness is taking a lot of time.
1432360	1433380	It's hard, right?
1433380	1443260	Because we need to think about input, we need to think about any set-up, tear-down, globals, all this kind of stuff.
1443260	1448180	With agents that can do this work for us, we see most of the savings.
1448180	1452320	Again, let's say we need to create harnesses for a hundred functions.
1452320	1456840	It may take days, it may take weeks, again, depending on the code base.
1457060	1459240	So that's a really, really good help.
1459240	1460740	Finally, the patching.
1460860	1468420	This category is maybe not as impressive as harness gen, and the reason for that, we still want to review patches that LM generated.
1468420	1472620	We don't trust LM that much to uncontrollably push the code.
1473060	1479600	Still, like, it can create us, the reproducers, it can create the patches that pass the validation checks.
1479600	1481000	It's a huge, huge help.
1481680	1489960	All right, I know it's a Friday night, guys, so let's take a look at how we run works in practice.
1490400	1494140	So what we will do now, we'll run Orion on the real target.
1494140	1497560	It's a C -lib, it's an open source C package manager.
1497620	1500980	We take the latest version of C-lib and we run Orion on it.
1501520	1503240	And let's take a look.
1503560	1506780	So we split the screen in two parts.
1506800	1510700	Left side is show the current flow of the agents, what's going on.
1510700	1513280	The right side shows the output of an agent.
1513280	1515080	And we start with the target selection.
1515080	1519360	Basically, we scan the code and look like what makes sense to us.
1521340	1525280	It may take some time, because we run each function.
1525280	1528860	Okay, so we've got like 11 functions that make sense to us.
1528860	1531560	And we jump to the next phase, which is seed generation.
1531560	1535460	Basically, creating the seeds for C-lib package install.
1537420	1544480	It takes time, analyze the code, analyze all the input arguments, and we jump into harness.
1544600	1550680	So the reason why we do seeds and harness, we want harness to support our seeds first.
1551060	1558100	With harness generation, we have to take a look at the dependencies, set up, tear down stuff, globals.
1558100	1561740	So it will take time for an agent to figure it all out.
1562060	1566000	Create us or generate us the code that will pass to the compiler.
1566220	1568160	Basically, that's what happens on the right side.
1568160	1571580	So we see some intermediate code generated by an agent.
1572800	1575880	And let's see if it can be compiled.
1580190	1581430	All right.
1582390	1586490	Again, depending on the size of the code, it may take more time.
1586510	1592910	Well, in our case, the compilation failed, which means the code generated by LLM was not great.
1592930	1593890	But that's okay.
1593890	1600430	The agent will make another attempt to self-correct, basically, and create us a new harness.
1600430	1602230	All right.
1602230	1609830	So essentially, we took the warning that the compiler gave us and give it back to the harness generation agent.
1610090	1616430	It will generate a new harness, and it will then first pass it to the LLM verifier to make sure everything's okay.
1616550	1621670	And only if it passes that verification, we will actually go on and go back to the compiler.
1621670	1632150	Only if both of those pass, and we can see here, the LLM passed, only if both the verifications pass, we will actually use this harness for the further processing.
1633590	1635130	So we're through the first stage.
1635130	1636690	The LLM thinks this is okay.
1636690	1638370	Now we're waiting for the compiler.
1643700	1645640	That may take a second.
1650070	1652230	And the compiler also thinks this is okay.
1652230	1653870	So now we can actually start the fuzzing.
1653870	1658530	We will use the seeds that we just generated with our harness, and we just run the fuzzer.
1659490	1666430	Now we had very good seeds, so we very quickly found a bug, and we kick off the patch generation.
1666630	1678970	So the patch generation now goes through the code base, and we'll start modifying the code base to try and patch the bug, and it will then also invoke the compiler and the small reproducer to see if this is patched.
1678970	1681230	You can see here, it was actually successful.
1681230	1683150	So we did generate a correct bug.
1683150	1687610	It compiles, and the reproducer doesn't trigger anymore.
1689590	1690850	Thank you.
1694110	1696650	All right, let's talk a bit about findings.
1696650	1701790	So we tried to run many open source targets.
1701790	1705330	One of them is C-lib, so we just found a stack overflow.
1705570	1709190	We tried on H3, and we deployed it internally at NVIDIA.
1709570	1712690	So at C-lib we found many security bugs.
1713090	1717150	C-lib was fuzzed for years by OSS fuzz, but they still are missing.
1717390	1721110	We will not share all the details of the bugs because they are not fixed yet.
1721370	1724830	We want to give maintainers a bit more time to fix them.
1724830	1730550	If you use C-lib in the production, and you are concerned about that, sure, let us know, we can talk.
1730990	1747190	Internally we deployed at NVIDIA drive stack, maybe like 18 months ago, we found 100 new bugs, mostly in C and C++ code, memory corruption, the main source of the bugs.
1747670	1758730	With the help of agent that can help us filter out if it's a real bug or not, of course, understanding if it's a crash or a real bug helps a lot.
1758950	1762330	Anyway, that's for the findings.
1762330	1765330	Let's talk a bit about where the LM can fail.
1765810	1772130	And as we already mentioned, LMs first of all don't know your code base.
1772350	1775110	So they will be guessing without the proper context.
1775350	1780050	If you don't provide all the information, they will hallucinate and do all the other type of stuff.
1780350	1787230	So this infrastructure is the mass that creates at least the minimal context that we pass to an agent for analysis for code generation.
1787630	1791910	The next one, even with the proper context, LMs still can be unreliable.
1791910	1796870	They can hallucinate, invent stuff, do all the other kind of things.
1796870	1804750	For example, very first iteration of our patching agent was just removing the code that crashed it and say, hey, old tester, pass it, like all good.
1805410	1818950	So to mitigate this kind of stuff, we need to use oracles, like tools that we trust, compilers, fuzzers, sanitizers, any tool that can be used to validate the output of an agent or LLM.
1819010	1821330	Otherwise, it will hallucinate.
1821330	1826030	Finally, sometimes LLMs are not the best answer, right?
1826030	1836950	Like Python on Barscript, if the Python on Barscript can do exactly the same work as the fancy multi-step agent, maybe just use the script, it will be faster and definitely cheaper.
1838150	1840090	Let's talk a bit about the tools.
1840310	1846890	So we hear discussion, are the LLMs going to replace all the tools, like what the future is?
1847050	1848350	First of all, we don't think so.
1848350	1864630	I think each side doing what they design it to do, so the tools are great combination with agent, with LLMs, because sometimes they just belong to the models, like models probably not going to do the great work generating call graphs, generating ISTs,
1864630	1867890	where there's some deterministic tool can do it very reliably.
1868610	1870490	But tools can be great oracles.
1870610	1876030	So as I mentioned, if you have a tool that can use for validating the output, definitely use it.
1876030	1885290	If you can use it, if you can do it in the way basically without like any probabilistic guessing that LLMs do.
1885290	1889910	So for example, I really want to believe this is my compiler not hallucinating to me.
1890650	1895870	Finally, tools are great for providing context for an agent.
1895870	1906110	So generating call graphs and generating dependency graphs, all this kind of stuff, it's really helps and really boost agents to do the proper work for analysis or generation.
1907590	1916290	In terms of benchmarking, some of the lessons that we learned is that, well first of all, LLMs and LLM agents, they're still software.
1916290	1920810	So all the things that we learned about how to benchmark software, that still applies here as well.
1920810	1925510	You want to look for coverage, you want to hit all the edge cases that you can and so on.
1926210	1933370	It's always of course the best if you can verify your agent's output using an actual tool without any LLMs, that's most reliable.
1933370	1938950	But that's not always going to be possible and LLM judges can be very effective in this scenario.
1939350	1948010	You do want to think very closely about the task that you're giving your LLM agent though, because the more simple that task is, the more reliable your agent will be.
1948050	1956770	If you don't do this, you may end up in a situation where you now have to worry about your LLM judge's performance, so you kind of need a benchmark for your benchmark.
1956770	1958390	That's not a good place to be in.
1958690	1964350	So keep the task simple, maybe have some ground truth data that it can compare against and it'll be fine.
1966490	1972090	In terms of infrastructure, we already talked about the fact that it's very important to have good infrastructure.
1972270	1978870	The reason here is that essentially you need all the right context, but only the right context for your LLM.
1978950	1981270	If you have too much, it's going to be overwhelmed.
1981270	1983370	If something's missing, it will hallucinate.
1983470	1990090	So it's really important to spend a good amount of time on your infrastructure to get it right, and the return on that investment will be great.
1990670	1997050	In that context, be ready to build a lot of wrappers and glue code around existing tools.
1997050	2004610	Their interfaces unfortunately don't always fit exactly what you need, and you will just have to accept that you will need to spend some time on that.
2005390	2011350	Another thing is that agents and LLMs do benefit from many different kinds of context.
2011350	2018550	It can be documentation, but it can also be previous examples of the agent's own performance that were very good.
2018550	2029350	So if you have some sort of persistent memory where you can store very successful executions of the agent, and you can then use that for future iterations, that can also be very beneficial.
2030970	2031810	Cool.
2031870	2034090	Let's talk about open source.
2034310	2039650	I have many questions about what we're going to do with open source, and the short answer is we're working on it.
2039930	2052150	The long answer is it's complicated, because it's really coupled with our NVIDIA infrastructure, like the way how we generate the context, the way how we do fuzzing, the way how we build our stuff.
2052610	2057690	Unfortunately, as of today, there is no drop-in replacement for the context creation.
2057690	2060470	I mean, the Codex and Cloud Code are great tools.
2060470	2064730	They're not 100% replacement yet, so the coupling will take time.
2065070	2074170	Alternatively, we're thinking just release some modules like logic that generate the harnesses or generate patches, so we can just take it and plug it in your own setup.
2075010	2085210	And if it's going to be released, we don't plan any hosted version, which mean if you want to use Orion, you will have to provide your own LLM and fuzzing infrastructure.
2086450	2088630	Well, that's pretty much it.
2089590	2091010	That's how we built Orion.
2091010	2094270	We use it internally to fuzz our C and C++.
2094470	2104230	And by the targets, we are happy to go deeper into agents, oracles, future plans, so let's open it up for questions.
2116100	2119900	There's a microphone over there where you probably want to line up.
2120260	2121020	Yeah, that's a good call.
2121020	2123200	Yeah, please, please use microphone in the room.
2128230	2129090	Hi, guys.
2129090	2129670	Thanks, Tal.
2129670	2131390	That was really great.
2132150	2135550	Is Orion ready to do anything besides C?
2138190	2143270	I mean, it depends on the fuzzing tool you use.
2143270	2146510	If the fuzzing tool, I mean, we support IFL and LiveFuzzer.
2146510	2150550	If the language you want to fuzz is supported by these two tools, Orion can do it.
2150550	2152910	Can I get this from GitHub or something?
2153330	2154350	Yeah, let's talk.
2154350	2156830	That's basically what we want to announce.
2156830	2160890	If you're interested to contribute, if you want to try it, we'll be happy to connect and chat.
2160890	2161690	Yeah, absolutely.
2161690	2162250	Fantastic.
2162250	2162990	Thanks again.
2165470	2170610	Is there any reason you chose GPT as your foundational model for the agents?
2171470	2173070	Well, good question.
2173070	2176650	I think both models are good, both clouds and GPT are good.
2176650	2182430	We just see some better results in hardness generation with GPT.
2182430	2184710	But really, they're really, really close.
2185170	2190530	So, I mean, right now the new models get dropped, like GPT 5 and 4.1.
2190530	2192650	We have not updated our benchmarks yet.
2192650	2198350	So, GPT 4.1 was the latest and greatest by the time of when we were recording this demo.
2198570	2204610	So, you did test other models and see if they had less hallucination in the code generation?
2204790	2205710	Correct.
2206130	2213850	In our test cases, both 4.1 and Cloud 4 was really, really good.
2213850	2216630	But again, it will depend on Oracle.
2216630	2219230	So, both models will occasionally hallucinate.
2219430	2225330	How good and how trustable your Oracles are really will define the output.
2225710	2227130	Thank you.
2229960	2231820	Hi, really great talk.
2231820	2236180	I'm very happy someone is integrating AI into the fuzzing space.
2236180	2243660	Now, my question, do you think it would be possible to use this kind of a tool on exclusively local hardware?
2243660	2251540	Or is the, for lack of a better term, horsepower need so great that you really need to use the cloud?
2251640	2253080	Yeah, great question.
2253080	2262720	Right now we use it on the cloud models mostly, but we're working on fine-tuning the smaller models that we can open source to so you can run it locally.
2262840	2269800	It's not done yet, work in progress, most likely like the second iteration after we open source Orion.
2269800	2271840	So it should be doable.
2276010	2278130	Hello, great talk.
2278290	2282410	I have two questions on the evaluations.
2282410	2303590	The first one, what acceptance rate did you see on your generated patches, including how many did you actually send to other maintainers and how much do the maintainers actually like revised and were accepted?
2312040	2317000	Yeah, well, we actually, we run it mostly on our internal targets.
2317000	2320980	So, and we compare, we have the ground truth data.
2320980	2328260	So we know how this bug should be fixed because we run through the manual fixes first.
2328640	2337370	And I think acceptance rates, it's around like 70 something percent.
2337370	2348770	I mean, it's eventually like hallucinate, but as we show, we run it through the validation loop first because it doesn't mean the first patch generated by a model will be good.
2348850	2351830	So we generate the patch, we run the reproducer.
2351830	2355450	If the reproducer still can, you know, record the bug, that's a bad patch.
2355490	2356290	Yeah.
2356290	2361130	And after that, maybe around like the final version, like around 70% were good.
2361770	2365270	When we start, it was maybe like 30%.
2365270	2371050	As I mentioned, models will just remove the code that caused the crash and say, yeah, we fixed that.
2371110	2376690	So definitely like some, some additional work required to detect this kind of things.
2376690	2378010	Yeah, that's a good number.
2378010	2382630	So what percentage actually passed the validation loop?
2385050	2400490	I don't think I have data on like what's passed and what's not passed because we right now, we only look on the patches that pass at least all the validation loops and how many of them are valid, right?
2400490	2405970	Because it's, it may pass the validation loop, but still the fix is like stupid or something like that.
2405970	2416190	So it was around 70% on our internal targets and on the C-lib, at least on the demo, I think it takes like first attempt.
2416410	2416730	Right.
2416730	2425070	So it was like, it was a not very hard bug, but the first attempt for C-lib, it was able to generate a valid patch.
2425070	2425950	Okay, thanks.
2425950	2431610	And for the second question, like you said, you have a seed generation agent.
2431610	2436530	How much performance gain do you see from the seed generation?
2436530	2448490	Like alternatively, I think you can also patch the patch of the harness so that for the fuzzing mode, it can pass the magic value checks.
2448490	2453570	So what's, yeah, how much performance boost did you see?
2453910	2457750	Well, I think we measure in terms of like fuzzing cycles.
2457750	2462470	So it's really good question.
2462470	2469950	I don't think we measure without seed because basically we never measure to run the fuzzing without seed.
2469950	2477850	So we always generate the seeds and if the seeds and we do the small fuzzing runs and we collect some of the code coverage.
2477850	2484670	So that's the minimal validation steps that the seeds are valid, correct and don't crash the target.
2484690	2485670	But that's a good question.
2485670	2493650	I think we can collect this data and, you know, try to run everything the same without the seeds, probably to waste tons of fuzzing cycles.
2493750	2499610	And then we can, you know, give you the better answer how much time it's saving just on the seed optimization.
2499610	2518330	Yeah, I guess it might be better like to patch the harness so that more running are valid rather than just get the magic value only giving that to the initial seed because the mutation might invalidate some of the like checksum or something.
2518330	2524270	Yeah, that's exactly what we're trying to avoid to make fuzzing tool brute force it over time.
2524270	2528150	We're trying to give it like as much valid input as possible.
2528150	2531870	So that can at least hit many, many branches from the beginning.
2532310	2532590	Cool.
2532590	2534530	Thanks for answering my questions.
2534530	2535070	Sure.
2535070	2536710	Thank you.
2537070	2545510	Hi, I was wondering if you've done any financial cost benefit analysis on automating fuzzing?
2545510	2549150	Well, I think we can calculate it from the time savings.
2549150	2552290	I mean, I haven't done the financial analysis.
2552330	2557390	We've done only like time and how much time, how faster our fuzzing campaigns now can be.
2558810	2567890	Again, I think that's something that we can collate, like how many engineers need to work on that, you know, manually and then see how much money we save.
2567890	2570670	But as of out of my head, I don't have the data.
2573560	2576020	Thanks, this was really great.
2576180	2582480	I was wondering what your experience with the quality of the generated fuzzing code was.
2583280	2590120	Like, can humans maintain it over time and read it when they need to debug it and so forth?
2590560	2592920	You mean the actual harnesses that we generate?
2592920	2593560	Yeah.
2593560	2594100	Yes.
2594100	2597360	So what we do, we provide some initial templates.
2597360	2601880	So we don't want agents, you know, to be very creative in the harnesses.
2601880	2604280	We provide the template for the specific tools.
2604280	2615340	For example, if we know that we're going with LiveFuzzer, we provide the template and LiveFuzzer format and very specific instructions how the harness should look like, which make it like pretty maintainable.
2615340	2622300	Well, occasionally once in a blue moon, agents, of course, can be very creative and add a lot of unneeded code.
2622440	2624920	But we figure out how to detect it.
2624920	2635800	As Marius mentioned, lm judge that can, you know, we're not just passing the compilation checks, but judge look at the generated code and say, like, hmm, it shouldn't really be here, right?
2635800	2639380	And right now we have to pass the judge checks.
2639660	2644320	So overall, if it's all good, validation pass it, it's pretty maintainable code.
2644360	2645240	Okay, thanks.
2646100	2647080	Thank you.
2647800	2654800	All right, guys, if you have more questions, we'll be around near the speaker corner, room 227.
2654840	2658460	Thank you all and, yeah, enjoy the rest of DEF CON.
