start	end	text
4690	9410	I was primarily responsible for the Linux kernel and Nginx vulnerability injections.
9410	13290	The way we went about selecting those was it had to have a large market share.
13310	17010	We wanted it to be a fairly well recognizable piece of software.
17010	21970	The second thing was we wanted the code base to be decently large, so that you could inject vulnerabilities.
21970	23950	You didn't want them to be too concentrated.
23950	25970	They need to be spread out across the source code.
25970	30690	The third part was we really wanted to have unit tests, ideally.
30890	38630	That way, when competitors submit patches, we can run this test to confirm that all the functionality still exists.
38650	43190	So we partnered with the Linux Foundation, and we began injecting vulnerabilities.
43390	48050	And the way you trigger them with the Linux kernel is by writing C programs.
48050	54550	We quickly encountered that LLMs, it's very hard to generate working, complex code to trigger some of these.
54550	57990	What we quickly pivoted to was this idea of a test harness.
57990	64590	What it does is it wraps a series of commands into a containerized blob format.
64590	68090	So the blob format allows seven different commands.
68090	70430	You can open a socket connection.
70430	72050	You can call setsockopt.
72050	76890	You can send a blob of data over the connection you've created.
76890	81210	You can send a netlink packet, which is a very specific subsystem within Linux kernel.
81210	82890	You can close a listening socket.
82890	85310	And you can close a connected socket.
85310	93670	These seven function calls allow a significant attack surface for the attackers and for us to inject vulnerabilities into.
93670	97870	However, generating this is a little difficult because it's a binary format blob.
97870	107150	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.
107570	114810	So here's a good example of why we decided to not require LLMs to generate source code to trigger vulnerabilities.
114810	119450	So this is the TIPSC bug that we also released as an exemplar for the teams.
119450	127890	The amount of code and the complexity of the code required to communicate with the TIPSC's netlink subsystem is non-trivial.
127890	130550	This challenge or competition isn't about code generation.
130550	132190	It's about bug finding and patching.
132190	138030	So that was a big influence using the blob host and the harness as opposed to requiring perfect nodes.
138030	141930	The challenges that we wrote kind of fall into easy, medium, and hard.
141930	145170	Cppv1 is, without a doubt, relatively easy.
145350	151470	It was injected into sockets.c, specifically the socket create function.
151470	154970	And all it does is remove the bounds of the protocol check.
154970	158130	You have a network, a family, and a type, and a protocol.
158410	160030	And these are bound.
160030	163170	Because what they do, they actually reference finite size structure.
163410	165070	You go outside the bounds, you'll cause it.
165070	169990	And so this patch injection simply removed the checks for the bounds.
169990	173710	So it allows you to reference outside of that, the bounds of that structure.
174090	178470	As I mentioned before, the Cppv8 is kind of a mid-range vulnerability.
178470	181670	But it was also the exemplar Cppv that we released to the teams.
181670	185810	So they can begin understanding the format, the API that we expect.
186010	190310	So an example of one that I would consider kind of difficult is Cppv20.
190310	194190	It was an inject into the TCP options code.
194190	198290	So when you send a packet to a host, it'll send a SYN.
198290	204230	And then inside of that, there are different option fields to tell how to handle this packet, what to do in various cases.
204410	208390	But on top of that, the problem we have is we also have to ensure that the functionality is there.
208390	210450	The teams patch out the code.
210450	211650	You don't want it to just be gone.
211650	214870	You want to confirm that the functionality still exists while the vulnerability doesn't.
214870	219910	To test for this, we had to modify the code to also send back information.
219910	223730	You send a packet, and then you get back data.
223730	228050	So here's an example of the back and forth, with the ability to confirm that the functionality is still there.
228050	234050	You see it sends, but then it also responds with this option.
234390	238150	With this, we were able to confirm that the patch didn't remove functionality.
238830	241770	So we selected Ningenix because it had an existing project in OSS Fuzz.
241770	250830	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.
250830	255310	And the way it works is very similar to the Linux test harness.
255310	262710	You have a blob of data that you pass to it, and it runs it through the parsing, the handling of the functionality.
262790	269410	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.
269410	273450	So we trick Ningenix into thinking that it's talking over the network, and it's not.
273610	281230	Our first CPP that we went with was in this thing called the from header inside of HTTP.
281390	283850	Ningenix doesn't implement all of the HTTP spec.
283850	295310	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.
295310	299270	The reason behind this is that an LLN is going to know the RFC.
299270	303730	It's going to have been trained on the RFC, and so it will have seen this from header.
303910	313290	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.
313290	318290	I've never seen it in the RFC before, and so it kind of puts a spotlight on that code.
318290	327910	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.
327910	334410	So you can see we have this additional from header, and then how it validates it.
334590	351610	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,
351610	353410	in a way to make us all much more secure.
