[00:04.690 --> 00:09.410] I was primarily responsible for the Linux kernel and Nginx vulnerability injections. [00:09.410 --> 00:13.290] The way we went about selecting those was it had to have a large market share. [00:13.310 --> 00:17.010] We wanted it to be a fairly well recognizable piece of software. [00:17.010 --> 00:21.970] The second thing was we wanted the code base to be decently large, so that you could inject vulnerabilities. [00:21.970 --> 00:23.950] You didn't want them to be too concentrated. [00:23.950 --> 00:25.970] They need to be spread out across the source code. [00:25.970 --> 00:30.690] The third part was we really wanted to have unit tests, ideally. [00:30.890 --> 00:38.630] That way, when competitors submit patches, we can run this test to confirm that all the functionality still exists. [00:38.650 --> 00:43.190] So we partnered with the Linux Foundation, and we began injecting vulnerabilities. [00:43.390 --> 00:48.050] And the way you trigger them with the Linux kernel is by writing C programs. [00:48.050 --> 00:54.550] We quickly encountered that LLMs, it's very hard to generate working, complex code to trigger some of these. [00:54.550 --> 00:57.990] What we quickly pivoted to was this idea of a test harness. [00:57.990 --> 01:04.590] What it does is it wraps a series of commands into a containerized blob format. [01:04.590 --> 01:08.090] So the blob format allows seven different commands. [01:08.090 --> 01:10.430] You can open a socket connection. [01:10.430 --> 01:12.050] You can call setsockopt. [01:12.050 --> 01:16.890] You can send a blob of data over the connection you've created. [01:16.890 --> 01:21.210] You can send a netlink packet, which is a very specific subsystem within Linux kernel. [01:21.210 --> 01:22.890] You can close a listening socket. [01:22.890 --> 01:25.310] And you can close a connected socket. [01:25.310 --> 01:33.670] These seven function calls allow a significant attack surface for the attackers and for us to inject vulnerabilities into. [01:33.670 --> 01:37.870] However, generating this is a little difficult because it's a binary format blob. [01:37.870 --> 01:47.150] So we also created a Python script that was generic enough to allow us to take whatever vulnerability we wrote and turn it into a blob. [01:47.570 --> 01:54.810] So here's a good example of why we decided to not require LLMs to generate source code to trigger vulnerabilities. [01:54.810 --> 01:59.450] So this is the TIPSC bug that we also released as an exemplar for the teams. [01:59.450 --> 02:07.890] The amount of code and the complexity of the code required to communicate with the TIPSC's netlink subsystem is non-trivial. [02:07.890 --> 02:10.550] This challenge or competition isn't about code generation. [02:10.550 --> 02:12.190] It's about bug finding and patching. [02:12.190 --> 02:18.030] So that was a big influence using the blob host and the harness as opposed to requiring perfect nodes. [02:18.030 --> 02:21.930] The challenges that we wrote kind of fall into easy, medium, and hard. [02:21.930 --> 02:25.170] Cppv1 is, without a doubt, relatively easy. [02:25.350 --> 02:31.470] It was injected into sockets.c, specifically the socket create function. [02:31.470 --> 02:34.970] And all it does is remove the bounds of the protocol check. [02:34.970 --> 02:38.130] You have a network, a family, and a type, and a protocol. [02:38.410 --> 02:40.030] And these are bound. [02:40.030 --> 02:43.170] Because what they do, they actually reference finite size structure. [02:43.410 --> 02:45.070] You go outside the bounds, you'll cause it. [02:45.070 --> 02:49.990] And so this patch injection simply removed the checks for the bounds. [02:49.990 --> 02:53.710] So it allows you to reference outside of that, the bounds of that structure. [02:54.090 --> 02:58.470] As I mentioned before, the Cppv8 is kind of a mid-range vulnerability. [02:58.470 --> 03:01.670] But it was also the exemplar Cppv that we released to the teams. [03:01.670 --> 03:05.810] So they can begin understanding the format, the API that we expect. [03:06.010 --> 03:10.310] So an example of one that I would consider kind of difficult is Cppv20. [03:10.310 --> 03:14.190] It was an inject into the TCP options code. [03:14.190 --> 03:18.290] So when you send a packet to a host, it'll send a SYN. [03:18.290 --> 03:24.230] And then inside of that, there are different option fields to tell how to handle this packet, what to do in various cases. [03:24.410 --> 03:28.390] But on top of that, the problem we have is we also have to ensure that the functionality is there. [03:28.390 --> 03:30.450] The teams patch out the code. [03:30.450 --> 03:31.650] You don't want it to just be gone. [03:31.650 --> 03:34.870] You want to confirm that the functionality still exists while the vulnerability doesn't. [03:34.870 --> 03:39.910] To test for this, we had to modify the code to also send back information. [03:39.910 --> 03:43.730] You send a packet, and then you get back data. [03:43.730 --> 03:48.050] So here's an example of the back and forth, with the ability to confirm that the functionality is still there. [03:48.050 --> 03:54.050] You see it sends, but then it also responds with this option. [03:54.390 --> 03:58.150] With this, we were able to confirm that the patch didn't remove functionality. [03:58.830 --> 04:01.770] So we selected Ningenix because it had an existing project in OSS Fuzz. [04:01.770 --> 04:10.830] There was already existing infrastructure around it to do fuzzing and test harness so we can capture when something crashes or there's a vulnerable condition that arises. [04:10.830 --> 04:15.310] And the way it works is very similar to the Linux test harness. [04:15.310 --> 04:22.710] You have a blob of data that you pass to it, and it runs it through the parsing, the handling of the functionality. [04:22.790 --> 04:29.410] We want teams to have access to the internet or the network, so the networking side of it is actually kind of stubbed out and pretend. [04:29.410 --> 04:33.450] So we trick Ningenix into thinking that it's talking over the network, and it's not. [04:33.610 --> 04:41.230] Our first CPP that we went with was in this thing called the from header inside of HTTP. [04:41.390 --> 04:43.850] Ningenix doesn't implement all of the HTTP spec. [04:43.850 --> 04:55.310] What I did was I browsed through the HTTP RFC looking for functionality that exists in RFC, so it's valid HTTP traffic, but isn't really handled by Ningenix. [04:55.310 --> 04:59.270] The reason behind this is that an LLN is going to know the RFC. [04:59.270 --> 05:03.730] It's going to have been trained on the RFC, and so it will have seen this from header. [05:03.910 --> 05:13.290] Now, if I had made some other header that doesn't exist in RFC, the LLN could quickly see that, okay, I don't know what this is. [05:13.290 --> 05:18.290] I've never seen it in the RFC before, and so it kind of puts a spotlight on that code. [05:18.290 --> 05:27.910] So what I did was I added this functionality in Ningenix, the handling of this from HTTP header, and it accepts an email, parses it out, and handles it. [05:27.910 --> 05:34.410] So you can see we have this additional from header, and then how it validates it. [05:34.590 --> 05:51.610] So if an LLN is able to actually develop these patches that don't crash, fix the vulnerability itself, and conform to the programming practices of that project, it will reduce significantly the number of person hours required to fix vulnerabilities and deploy these solutions, [05:51.610 --> 05:53.410] in a way to make us all much more secure.