WEBVTT

00:07.900 --> 00:10.700
So where do we think AI can contribute to software security?

00:10.700 --> 00:18.580
Well, I think we need to start by recognizing that fuzzers like AFL are incredibly good at finding bugs and AI is not going to replace them.

00:18.580 --> 00:22.940
Instead, we're going to be using AI to augment the existing state-of-the-art.

00:23.140 --> 00:28.220
The big problem in security is that there's too much code to look through and it's too complex to process.

00:28.580 --> 00:36.240
AI could assist in finding what's suspicious and then pass that information to a traditional system for more targeted algorithmic review.

00:36.540 --> 00:40.380
So for instance, you might use an AI to generate a template for a fuzzer.

00:40.460 --> 00:47.360
This removes the tedious parts of writing the stub code for a harness and lets you go from 0 to 60 with a fuzzer more quickly.

00:47.640 --> 00:50.640
Two is you might look for known bad code patterns.

00:50.960 --> 00:57.800
Similar to previous bad code patterns that you've trained on or that you've observed in practice or given as an example to an LLM.

00:58.100 --> 01:00.880
And then third, you might use an LLM for patching.

01:00.880 --> 01:07.760
By using their expertise in language and translation, we can make readable idiomatic style patches much more quickly.

01:07.920 --> 01:12.900
Vulnerabilities might be really complex, but many times a patch just affects a single line of code.

01:13.240 --> 01:22.180
At the end of the day, AI is not bound by the same limits as traditional methods, but instead relies on how much quality training data we can feed it.

01:22.280 --> 01:30.660
So one key limit that we'll need to overcome is that once you get past the popular languages like C and Python, support starts to drop really fast.

01:30.660 --> 01:33.580
By the time you get to Rust, it's barely functional.

01:33.880 --> 01:38.620
If you want to support another language, you need to train a model to specialize in it.

01:38.620 --> 01:46.500
An AI requires a vast amount of data and the process of collecting feature engineering and then preparing this data is no small task.

01:46.880 --> 01:50.660
Our patching system operates in a giant feedback loop with three steps.

01:50.660 --> 01:52.820
Step one, we find the bug.

01:52.820 --> 02:05.320
When our CRS discovers a vulnerability, it analyzes the proof of vulnerability, identifies the commit that introduced the bug, classifies the type of vulnerability, and pinpoints specific instructions and variables associated with it.

02:05.320 --> 02:07.760
Step two, we create a candidate patch.

02:07.760 --> 02:15.700
Once we have all this data, we pass it to a patching agent and the patching agent collaborates with one or more LLMs to generate candidate patches.

02:15.800 --> 02:21.160
These are then applied to the code base to check if they fix the vulnerability without disrupting the rest of the program.

02:21.160 --> 02:23.700
And then three, we provide feedback.

02:23.700 --> 02:32.040
So if the patch fails, the patching agent provides feedback to the LLMs and they work on refining those patches until they do work correctly.

02:32.820 --> 02:36.480
We've encountered two primary challenges working in the AICC.

02:36.480 --> 02:38.300
The first has been reliability.

02:38.500 --> 02:46.500
It has been a big challenge to make a reliable system that can deal with the uncertainty of AI-generated answers and validate them within the competition time limits.

02:46.580 --> 02:53.000
The second is that large language models are just not well suited for discovering the inputs needed to reach bugs in code.

02:53.260 --> 02:58.560
AI can't solve this problem on its own, but it has proven useful at accelerating fuzzing.

02:58.880 --> 03:05.480
AI can reduce the time needed for a fuzzer to discover a proof of vulnerability by generating seed inputs that are close to it.

03:05.720 --> 03:14.980
So we're not going to discard the last 30 years of software security advances because of AI, but we will use AI to expand the space of what we can find.

03:15.140 --> 03:25.380
This acceleration helps make the quick turnaround required by the competition more feasible and demonstrate some of the complementary strengths of AI in enhancing traditional methods.

