1 00:00:07,900 --> 00:00:10,700 So where do we think AI can contribute to software security? 2 00:00:10,700 --> 00: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. 3 00:00:18,580 --> 00:00:22,940 Instead, we're going to be using AI to augment the existing state-of-the-art. 4 00:00:23,140 --> 00: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. 5 00:00:28,580 --> 00: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. 6 00:00:36,540 --> 00:00:40,380 So for instance, you might use an AI to generate a template for a fuzzer. 7 00:00:40,460 --> 00: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. 8 00:00:47,640 --> 00:00:50,640 Two is you might look for known bad code patterns. 9 00:00:50,960 --> 00: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. 10 00:00:58,100 --> 00:01:00,880 And then third, you might use an LLM for patching. 11 00:01:00,880 --> 00:01:07,760 By using their expertise in language and translation, we can make readable idiomatic style patches much more quickly. 12 00:01:07,920 --> 00:01:12,900 Vulnerabilities might be really complex, but many times a patch just affects a single line of code. 13 00:01:13,240 --> 00: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. 14 00:01:22,280 --> 00: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. 15 00:01:30,660 --> 00:01:33,580 By the time you get to Rust, it's barely functional. 16 00:01:33,880 --> 00:01:38,620 If you want to support another language, you need to train a model to specialize in it. 17 00:01:38,620 --> 00: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. 18 00:01:46,880 --> 00:01:50,660 Our patching system operates in a giant feedback loop with three steps. 19 00:01:50,660 --> 00:01:52,820 Step one, we find the bug. 20 00:01:52,820 --> 00: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. 21 00:02:05,320 --> 00:02:07,760 Step two, we create a candidate patch. 22 00:02:07,760 --> 00: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. 23 00:02:15,800 --> 00: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. 24 00:02:21,160 --> 00:02:23,700 And then three, we provide feedback. 25 00:02:23,700 --> 00: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. 26 00:02:32,820 --> 00:02:36,480 We've encountered two primary challenges working in the AICC. 27 00:02:36,480 --> 00:02:38,300 The first has been reliability. 28 00:02:38,500 --> 00: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. 29 00:02:46,580 --> 00: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. 30 00:02:53,260 --> 00:02:58,560 AI can't solve this problem on its own, but it has proven useful at accelerating fuzzing. 31 00:02:58,880 --> 00: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. 32 00:03:05,720 --> 00: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. 33 00:03:15,140 --> 00: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.