WEBVTT

00:07.600 --> 00:13.760
CIFF personnel have been performing cutting-edge research on autonomous cybersecurity for over 25 years.

00:13.760 --> 00:21.460
Even with that experience, the DARPA challenges have been key to really accelerating and expanding the scope of our research.

00:21.480 --> 00:31.180
Around 2008, we were working on fuzz testing, which involves generating semi-random inputs to a program to find ways it can be vulnerable and crash.

00:31.180 --> 00:49.640
For the first DARPA Cyber Grand Challenge, about 10 years ago, we evolved our software fuzz testing technology into a massively parallel cyber reasoning system, or CRS, capable of coordinating the search for vulnerabilities and repair efforts across 500 or more parallel computing nodes.

00:49.660 --> 00:56.100
Back then, it was one of the largest scale efforts to automatically find and fix software vulnerabilities.

00:56.300 --> 01:11.360
The new AI Cyber Challenge is giving us the opportunity to incorporate recently developed large language models, or LLMs, into our cyber reasoning system, giving it more generalized methods to reason about code flaws and fixes.

01:11.360 --> 01:28.040
While large language models do not actually understand the code that we present to them, they have learned from so much existing code, good and bad code, that they can recognize the code and often usefully answer questions like, does this code have vulnerabilities?

01:28.420 --> 01:30.940
What inputs would crash this code?

01:30.940 --> 01:35.980
We can even ask them, how would you rewrite this code to eliminate the vulnerability?

01:35.980 --> 01:39.400
And they will sometimes get it right, but not always.

01:39.400 --> 01:56.140
Our new LaCrosse cyber reasoning system uses these answers to help chew its more reliable, robust methods, such as symbolic analysis and fuzz testing, to find real crashing inputs and real software patches that fix flaws.

01:56.300 --> 02:04.880
The large language models are wrong sometimes, but LaCrosse double checks their answers and asks again until they get it right.

02:04.940 --> 02:18.720
Overall, the DARPA challenges have significantly accelerated our research and pushed us to develop a cyber reasoning system that is scalable to real-world problems and deployable in a realistic cloud computing setting.

02:18.720 --> 02:27.300
A cyber reasoning system can find vulnerability by examining a program's source code, its binary executable code, or its actual behavior during execution.

02:27.300 --> 02:31.700
We have technologies try to find vulnerabilities in all of these different situations.

02:31.920 --> 02:42.160
For the AI cyber challenge, we're fortunate to have the target source code, so our LaCrosse cyber reasoning system can start at the beginning and ask large language models if there are any apparent source code vulnerabilities.

02:42.640 --> 02:46.840
LaCrosse can also use compiler checks to directly identify source code weaknesses.

02:47.180 --> 02:55.760
LaCrosse can also use fuzz testing to directly explore the behavior of the target software, trying to drive it towards new execution paths that may, with luck, reveal vulnerabilities.

02:57.180 --> 03:00.440
A vulnerability can take many different forms in code.

03:00.440 --> 03:03.300
Some are fairly obvious, and some are quite subtle.

03:03.360 --> 03:06.700
Here's a simple example of a small piece of vulnerable code.

03:07.140 --> 03:15.620
First, a character string of size 256 bytes is allocated, and then another string, an argument to the program, is copied into the buffer.

03:16.320 --> 03:26.400
Because whoever calls this program controls what goes into that argument vector, they can put in very large strings, longer than 256 bytes.

03:26.440 --> 03:41.560
And since the string copy command here does not limit how much data it will copy, the attacker can cause the copied data to get written past the end of the allocated buffer, potentially corrupting other program memory and even allowing the attacker to execute any code they want.

03:41.980 --> 03:48.400
So a normal short input to this program will not cause any problems, but a long input can be an effective attack.

03:48.940 --> 03:58.200
This is an example of a buffer overflow vulnerability, and it is so common that any code trained large language model will detect it immediately and produce an effective patch.

03:58.200 --> 04:01.720
Compilers will also detect and warn that this is bad code.

04:02.160 --> 04:12.700
LaCrosse is designed to handle simple examples like this, and also much more complicated software flaws that can span many lines of code across different files and even different programming languages.

04:13.340 --> 04:26.820
One challenge in the current AICC contest is that the cyber reasoning system must demonstrate a detailed understanding of each bug it finds by actually finding an input that will trigger the bug and also finding which change to the code introduced the bug.

04:27.480 --> 04:37.240
The example we just showed is trivial because any long string will trigger the bug, but other examples, including those given by the contest organizers, can be much more complex.

04:37.640 --> 04:42.880
One of the provided example triggering inputs is over a thousand bytes of carefully structured data.

04:42.880 --> 04:46.220
Figuring that out is really challenging indeed.

04:46.580 --> 04:51.280
Fixing likely software flaws without finding actual proofs is considerably easier.

04:51.700 --> 04:59.280
Bug hunting really boils down to capturing all the details of what's going on in a program and trying to figure out ways that things can go wrong.

04:59.400 --> 05:16.500
If a fuzzer can't figure it out, the LLMs won't help much on complex problems because they will just hallucinate a solution to the problem that just won't We had a pretty sophisticated cyber reasoning system when we started, but we did have to do a lot of work to adapt it to the running conditions of this competition.

05:16.500 --> 05:23.220
But that's an expected challenge, as is the tremendous time crunch to get everything working in time.

05:23.340 --> 05:33.060
I think the biggest lesson learned is probably how unreliable the large language models are at performing any sort of task that requires high confidence results.

05:33.140 --> 05:40.740
We had already explored a lot of large language model technology, building, training, and fine-tuning models on our own.

05:40.740 --> 05:47.620
Here we're using off-the-shelf models, and they hallucinate or confabulate wrong answers all the time.

05:47.620 --> 06:00.180
For example, in one of our early tests using the large language models, we had a bug in our code that mistakenly omitted the target code to be analyzed from the prompt given to the large language model.

06:00.180 --> 06:04.160
So we essentially asked it to patch an empty code file.

06:04.160 --> 06:12.220
The large language model hallucinated the code to analyze, complete with variables and comments suggested in our prompt.

06:12.220 --> 06:18.200
On the surface, the large language model response looked reasonable, but it was, of course, totally wrong.

06:18.200 --> 06:26.700
That was our fault, and we fixed it, but the large language model never blinked an eye, or gave any indication that our query didn't make any sense.

06:26.880 --> 06:35.540
Those kinds of hallucinations can range from whole software modules to tiny components, like a missing macro definition.

06:35.740 --> 06:41.600
Detecting some of these subtle hallucinations would require hours of human analysis.

06:41.600 --> 06:52.380
Our LaCrosse cyber reasoning system does check every output from a large language model, and try to confirm its correctness using testing and comparison to other model outputs.

06:52.380 --> 06:55.640
But even so, mistakes may slip through.

06:55.680 --> 07:05.760
Another interesting lesson is that many of the LLM vendors have augmented the base LLM technology of token prediction with their own layers of AI to improve results.

07:05.780 --> 07:15.260
For example, some of the models can call to tools such as symbolic analysis and math solvers to try to answer queries that go just beyond language token prediction.

07:15.440 --> 07:24.680
We've done several experiments to try to figure out what each of the LLMs are good at, but the technology is moving really quickly, so our results can be outdated in just a few days.

07:24.680 --> 07:26.420
That's probably the biggest lesson.

07:26.420 --> 07:29.280
Everything is moving incredibly quickly in this space.

07:29.280 --> 07:35.300
The intersection of AIs, LLMs, and cybersecurity is exciting, and yes, a little bit scary.

