Fuzz introspector
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

Project functions overview

The following table shows data about each function in the project. The functions included in this table correspond to all functions that exist in the executables of the fuzzers. As such, there may be functions that are from third-party libraries.

For further technical details on the meaning of columns in the below table, please see the Glossary .

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Fuzzer details

Fuzzer: fuzz_marker

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 66 66.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 34 34.0%
All colors 100 100

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
60 39 distlib.markers.Evaluator.evaluate call site: 00039 distlib.markers._get_versions
5 12 distlib.util.parse_marker.marker_var call site: 00012 parts.append
1 30 distlib.markers.interpret_parsed call site: 00030 context.update

Runtime coverage analysis

Covered functions
71
Functions that are reachable but not covered
41
Reachable functions
52
Percentage of reachable functions covered
21.15%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/ 1
...fuzz_marker 3
distlib.markers 12
distlib.util 12
distlib.version 28

Fuzzer: fuzz_metadata

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 178 95.6%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 8 4.30%
All colors 186 100

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
143 2 ...fuzz_metadata.TestOneInput call site: 00002 distlib.metadata.LegacyMetadata.read
35 150 ...fuzz_metadata.TestOneInput call site: 00150 distlib.metadata.LegacyMetadata.__init__

Runtime coverage analysis

Covered functions
71
Functions that are reachable but not covered
92
Reachable functions
94
Percentage of reachable functions covered
2.13%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/ 1
...fuzz_metadata 8
distlib.metadata 60
distlib.version 34

Analyses and suggestions

Optimal target analysis

Remaining optimal interesting functions

The following table shows a list of functions that are optimal targets. Optimal targets are identified by finding the functions that in combination, yield a high code coverage.

Func name Functions filename Arg count Args Function depth hitcount instr count bb count cyclomatic complexity Reachable functions Incoming references total cyclomatic complexity Unreached complexity
distlib.wheel.Wheel.install distlib.wheel 4 ['N/A', 'N/A', 'N/A', 'N/A'] 12 0 21 25 13 209 0 697 387
distlib.scripts.ScriptMaker._copy_script distlib.scripts 3 ['N/A', 'N/A', 'N/A'] 5 0 10 10 7 76 2 257 195
distlib.locators.SimpleScrapingLocator._fetch distlib.locators 1 ['N/A'] 14 0 6 5 5 146 0 499 165
distlib.database.DistributionPath.provides_distribution distlib.database 3 ['N/A', 'N/A', 'N/A'] 14 0 4 5 5 161 0 556 135
distlib.wheel.Wheel.update distlib.wheel 4 ['N/A', 'N/A', 'N/A', 'N/A'] 12 0 7 8 6 147 0 501 120
distlib.index.PackageIndex.upload_file distlib.index 8 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 3 0 7 4 5 52 0 164 110
distlib.wheel.Wheel.mount distlib.wheel 2 ['N/A', 'N/A'] 4 0 5 6 5 43 0 140 81
distlib.manifest.Manifest.process_directive distlib.manifest 2 ['N/A', 'N/A'] 3 0 9 13 8 33 0 118 77
distlib.locators.Locator.locate distlib.locators 3 ['N/A', 'N/A', 'N/A'] 9 0 5 10 7 87 0 297 65
distlib.locators.DependencyFinder.find distlib.locators 4 ['N/A', 'N/A', 'N/A', 'N/A'] 7 0 17 15 9 56 0 191 59

Implementing fuzzers that target the above functions will improve reachability such that it becomes:

Functions statically reachable by fuzzers
30.0%
174 / 579
Cyclomatic complexity statically reachable by fuzzers
34.0%
726 / 2110

All functions overview

If you implement fuzzers for these functions, the status of all functions in the project will be:

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Files and Directories in report

This section shows which files and directories are considered in this report. The main reason for showing this is fuzz introspector may include more code in the reasoning than is desired. This section helps identify if too many files/directories are included, e.g. third party code, which may be irrelevant for the threat model. In the event too much is included, fuzz introspector supports a configuration file that can exclude data from the report. See the following link for more information on how to create a config file: link

Files in report

Source file Reached by Covered by
[] []
hashlib [] []
html [] []
dummy_thread [] []
distlib.resources [] []
distlib.index [] []
...fuzz_metadata ['fuzz_metadata'] []
platform [] []
distlib.locators [] []
contextlib [] []
threading [] []
distlib [] []
types [] []
warnings [] []
distlib.manifest [] []
sys [] []
email [] []
ssl [] []
base64 [] []
distlib.compat [] []
urlparse [] []
importlib [] []
zipfile [] []
ConfigParser [] []
distlib.wheel [] []
sysconfig [] []
glob [] []
bisect [] []
subprocess [] []
tempfile [] []
java [] []
_osx_support [] []
urllib [] []
codecs [] []
fnmatch [] []
socket [] []
time [] []
distutils [] []
http [] []
csv [] []
StringIO [] []
zipimport [] []
io [] []
textwrap [] []
shutil [] []
...fuzz_marker ['fuzz_marker'] []
httplib [] []
distlib.database [] []
distlib.scripts [] []
_abcoll [] []
imp [] []
[] []
dummy_threading [] []
xmlrpclib [] []
configparser [] []
datetime [] []
tarfile [] []
thread [] []
re [] []
reprlib [] []
distlib.version ['fuzz_marker', 'fuzz_metadata'] []
HTMLParser [] []
py_compile [] []
posixpath [] []
distlib.util ['fuzz_marker'] []
stat [] []
_aix_support [] []
pkgutil [] []
os [] []
xmlrpc [] []
struct [] []
distlib.markers ['fuzz_marker'] []
urllib2 [] []
queue [] []
atheris [] []
collections [] []
tokenize [] []
json [] []
logging [] []
itertools [] []
distlib.metadata ['fuzz_metadata'] []

Directories in report

Directory