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_parse

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 437 100.%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 0 0.0%
All colors 437 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
436 0 EP call site: 00000 astroid.builder.parse

Runtime coverage analysis

Covered functions
145
Functions that are reachable but not covered
222
Reachable functions
232
Percentage of reachable functions covered
4.31%
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_parse 4
astroid.builder 53
astroid.manager 35
astroid.raw_building 68
astroid.nodes.scoped_nodes.mixin 2
astroid.nodes.scoped_nodes.scoped_nodes 14
astroid.interpreter.objectmodel 4
astroid.nodes.node_classes 14
astroid.bases 1
astroid._ast 7
astroid.rebuilder 8
astroid.transforms 10
astroid.context 1
astroid.modutils 42
astroid.interpreter._import.spec 13
astroid.exceptions 1
astroid.interpreter._import.util 12
astroid.brain.brain_builtin_inference 4

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
astroid.inference_tip._inference_tip_cached.inner astroid.inference_tip 3 ['N/A', 'N/A', 'N/A'] 24 0 6 3 4 586 0 1949 1195
astroid.decorators.path_wrapper.wrapped astroid.decorators 4 ['N/A', 'N/A', 'N/A', 'N/A'] 24 0 3 4 5 520 2 1712 369
astroid.brain.brain_dataclasses.dataclass_transform astroid.brain.brain_dataclasses 1 ['N/A'] 22 0 1 5 5 275 0 924 138
astroid.bases.UnboundMethod.infer_call_result astroid.bases 3 ['N/A', 'N/A', 'N/A'] 21 0 1 2 4 345 0 1129 59
astroid.protocols.arguments_assigned_stmts astroid.protocols 4 ['N/A', 'N/A', 'N/A', 'N/A'] 22 0 0 2 4 356 0 1173 58
astroid.protocols.starred_assigned_stmts astroid.protocols 4 ['N/A', 'N/A', 'N/A', 'N/A'] 2 0 17 16 9 24 1 82 46
astroid.nodes.scoped_nodes.scoped_nodes.FunctionDef.infer_call_result astroid.nodes.scoped_nodes.scoped_nodes 3 ['N/A', 'N/A', 'N/A'] 4 0 10 12 8 38 0 124 40

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

Functions statically reachable by fuzzers
30.0%
376 / 1237
Cyclomatic complexity statically reachable by fuzzers
33.0%
1411 / 4214

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
[] []
astroid.brain.brain_numpy_core_multiarray [] []
astroid.brain.brain_threading [] []
astroid.interpreter._import.util ['fuzz_parse'] []
re [] []
astroid.nodes.scoped_nodes [] []
astroid.filter_statements [] []
atheris [] []
ast [] []
gi [] []
os [] []
astroid.brain.brain_unittest [] []
astroid.brain.brain_mechanize [] []
astroid.brain.brain_functools [] []
itertools [] []
astroid.brain.brain_numpy_ma [] []
astroid.brain.brain_signal [] []
astroid.brain.brain_re [] []
pytest [] []
astroid.brain.brain_numpy_core_umath [] []
astroid.modutils ['fuzz_parse'] []
astroid.nodes.scoped_nodes.utils [] []
pprint [] []
astroid.brain.brain_responses [] []
astroid.decorators [] []
astroid.brain.brain_numpy_random_mtrand [] []
typing [] []
astroid.brain.brain_http [] []
astroid.brain.brain_numpy_utils [] []
astroid.transforms ['fuzz_parse'] []
astroid.inference_tip [] []
astroid.astroid_manager [] []
astroid.brain.brain_numpy_core_einsumfunc [] []
astroid.brain.brain_namedtuple_enum [] []
astroid.bases ['fuzz_parse'] []
astroid.brain.helpers [] []
pathlib [] []
astroid.raw_building ['fuzz_parse'] []
keyword [] []
astroid.brain.brain_boto3 [] []
astroid.brain.brain_ctypes [] []
astroid.nodes.utils [] []
astroid.util [] []
importlib [] []
astroid.brain.brain_regex [] []
astroid.brain.brain_sqlalchemy [] []
astroid.brain.brain_random [] []
astroid.manager ['fuzz_parse'] []
warnings [] []
astroid.nodes.node_classes ['fuzz_parse'] []
astroid.test_utils [] []
enum [] []
astroid.interpreter._import [] []
astroid.brain.brain_dateutil [] []
astroid.__pkginfo__ [] []
operator [] []
astroid.brain.brain_collections [] []
io [] []
logging [] []
astroid.brain.brain_dataclasses [] []
astroid.nodes [] []
astroid.helpers [] []
astroid.brain.brain_curses [] []
astroid.protocols [] []
astroid.brain.brain_multiprocessing [] []
astroid.brain.brain_crypt [] []
astroid.brain.brain_numpy_core_numerictypes [] []
astroid.nodes.scoped_nodes.scoped_nodes ['fuzz_parse'] []
sys [] []
astroid.brain.brain_six [] []
astroid.brain.brain_uuid [] []
astroid.constraint [] []
astroid.brain.brain_attrs [] []
zipimport [] []
builtins [] []
astroid.interpreter._import.spec ['fuzz_parse'] []
astroid.brain.brain_argparse [] []
astroid.brain.brain_scipy_signal [] []
astroid.brain.brain_hypothesis [] []
astroid.nodes.scoped_nodes.mixin ['fuzz_parse'] []
astroid.brain.brain_numpy_core_function_base [] []
astroid.brain.brain_numpy_ndarray [] []
collections [] []
tokenize [] []
astroid.brain.brain_qt [] []
astroid.brain.brain_builtin_inference ['fuzz_parse'] []
sysconfig [] []
inspect [] []
...fuzz_parse ['fuzz_parse'] []
astroid.brain.brain_pkg_resources [] []
astroid.objects [] []
astroid.context ['fuzz_parse'] []
astroid._ast ['fuzz_parse'] []
astroid.nodes._base_nodes [] []
astroid.brain [] []
astroid.brain.brain_pathlib [] []
astroid.brain.brain_gi [] []
astroid.brain.brain_hashlib [] []
astroid.brain.brain_subprocess [] []
astroid.exceptions ['fuzz_parse'] []
numpy [] []
astroid.brain.brain_io [] []
astroid.brain.brain_numpy_core_numeric [] []
astroid.nodes.const [] []
astroid.brain.brain_pytest [] []
astroid.interpreter.objectmodel ['fuzz_parse'] []
astroid.interpreter.dunder_lookup [] []
functools [] []
astroid.brain.brain_datetime [] []
astroid.typing [] []
astroid.arguments [] []
astroid.const [] []
astroid [] []
astroid.brain.brain_numpy_core_fromnumeric [] []
[] []
contextlib [] []
astroid.brain.brain_ssl [] []
astroid.interpreter [] []
textwrap [] []
astroid.nodes.node_ng [] []
astroid.builder ['fuzz_parse'] []
astroid.rebuilder ['fuzz_parse'] []
astroid.brain.brain_type [] []
astroid.brain.brain_typing [] []
random [] []

Directories in report

Directory