[00:05.390]So CRS can interact with the challenge project in many different ways.
[00:08.390]

[00:08.390]Everything from just reading the text of the source code, all the way to exercising and running the code itself.
[00:14.890]

[00:15.250]Now in AICC, in order to score, a CRS has to be able to find a vulnerability and exercise it via a harness.
[00:22.750]

[00:22.810]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.
[00:32.430]

[00:32.470]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.
[00:42.790]

[00:42.810]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.
[00:50.830]

[00:50.830]So a harness is going to expose part of this functionality.
[00:54.310]

[00:54.310]About 1,000 of the 11,000 total nodes are reachable from this one particular.
[00:59.910]

[01:00.390]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.
[01:09.310]

[01:09.430]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.
[01:18.250]

[01:18.250]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.
[01:27.770]

[01:28.170]The sanitizer is a special instrumentation that detects when particular things happen, like a buffer overflow or a memory access out of bounds.
[01:36.870]

[01:36.870]And so triggering a sanitizer is a proof of vulnerability, which is part of what a CRS needs in order to score.
[01:43.850]

[01:44.190]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.
[01:54.190]

[01:54.190]Or it sends input, but the input reaches that location, it doesn't trigger the vulnerability.
[01:59.930]

[01:59.930]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.
[02:12.970]

[02:13.030]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.
[02:20.130]

[02:20.130]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,
[02:36.510]

[02:36.510]they have to be able to identify when that vulnerability was introduced.
[02:40.550]

[02:40.770]So, in the case of Tika here, there's something on the order of 1500 files, source code files, in Tika.
[02:49.770]

[02:49.770]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.
[03:00.660]

[03:00.720]So, this version that we're looking at has all these vulnerabilities.
[03:04.020]

[03:04.380]The question is not just how do you trigger it, but when was it introduced?
[03:08.180]

[03:09.040]So, on the other hand, if we think about how humans think about code, we read it, bot to bot.
[03:13.960]

[03:14.160]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.
[03:23.640]

[03:23.820]And this is how the input is going to flow through and reach these other interesting parts of the code.
[03:29.420]

[03:29.820]Some of these functions, like setNetLengthPacket, are going to be interesting.
[03:34.880]

[03:34.980]So, if we go to where it's defined, we can read this code.
[03:38.980]

[03:39.060]Now, that jump that we just made from one to the next, that's what's being shown in the call graph.
[03:44.160]

[03:44.160]So, the call graph gives us that top-level view.
[03:46.780]

[03:46.780]It's really interesting because CRSs don't think about code the way that a human does.
[03:51.400]

[03:51.400]They can process it and exercise it.
[03:53.500]

[03:53.500]But really, how they go from this starting point to finding the vulnerabilities is going to be one of the coolest parts of AICC.
[03:59.820]

