start	end	text
5390	8390	So CRS can interact with the challenge project in many different ways.
8390	14890	Everything from just reading the text of the source code, all the way to exercising and running the code itself.
15250	22750	Now in AICC, in order to score, a CRS has to be able to find a vulnerability and exercise it via a harness.
22810	32430	A harness is a special program that allows an input to be received and then exercise a particular part of the challenge project code on that input.
32470	42790	So if we were to look at challenge project all together, in this visual we have all of these green nodes, around 11,000 functions that make up the Tika challenge project.
42810	50830	And so this graph shows you all of the connections between these functions, as in one function can call another, and how you can reach all of these different nodes.
50830	54310	So a harness is going to expose part of this functionality.
54310	59910	About 1,000 of the 11,000 total nodes are reachable from this one particular.
60390	69310	And so a CRS has to generate an input that when it's fed to the harness, will reach the vulnerable location and exercise that vulnerability.
69430	78250	So if we were to look at that, going from the entry point of the harness, all the way to where a vulnerability is exercised, that's going to be highlighted in red here.
78250	87770	And so this shows visually a path from the entry point on the left, through the code, all the way to the point where the vulnerability triggers a sanitizer.
88170	96870	The sanitizer is a special instrumentation that detects when particular things happen, like a buffer overflow or a memory access out of bounds.
96870	103850	And so triggering a sanitizer is a proof of vulnerability, which is part of what a CRS needs in order to score.
104190	114190	One of the ways that things can go wrong with a CRS is that it might be able to find a vulnerability in terms of, I think this line of code is vulnerable, but it doesn't know how to get there.
114190	119930	Or it sends input, but the input reaches that location, it doesn't trigger the vulnerability.
119930	132970	Now, the CRSs should be able to run the code themselves and see if the sanitizer is triggering or not, but there's often a lot of difficulty in just figuring out how to reach the vulnerable location from the entry point.
133030	140130	There's a number of techniques that CRSs can use to discover these paths to the vulnerable location and try to trigger the vulnerable location.
140130	156510	But one of the things that's interesting about ASCC is it's not just about generating input that triggers a crash or sanitizer, but they also have to identify that line of code and in the history, the commit history of all of the changes that have been made,
156510	160550	they have to be able to identify when that vulnerability was introduced.
160770	169770	So, in the case of Tika here, there's something on the order of 1500 files, source code files, in Tika.
169770	180660	And if you were to look at the regular version of Tika on the there's something like 8,000 commits, 8,000 changes that stacked up to create the current version of that code.
180720	184020	So, this version that we're looking at has all these vulnerabilities.
184380	188180	The question is not just how do you trigger it, but when was it introduced?
189040	193960	So, on the other hand, if we think about how humans think about code, we read it, bot to bot.
194160	203640	And if we scan this piece of code here, looking at these words that are highlighted in you can see that this harness function talked about calls other functions.
203820	209420	And this is how the input is going to flow through and reach these other interesting parts of the code.
209820	214880	Some of these functions, like setNetLengthPacket, are going to be interesting.
214980	218980	So, if we go to where it's defined, we can read this code.
219060	224160	Now, that jump that we just made from one to the next, that's what's being shown in the call graph.
224160	226780	So, the call graph gives us that top-level view.
226780	231400	It's really interesting because CRSs don't think about code the way that a human does.
231400	233500	They can process it and exercise it.
233500	239820	But really, how they go from this starting point to finding the vulnerabilities is going to be one of the coolest parts of AICC.
