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

Fuzzer details

Fuzzer: fuzz_native

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 81 50.6%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 79 49.3%
All colors 160 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
21 138 psutil.Process.as_dict call site: 00138 psutil.process_iter.add
14 95 psutil.Process.create_time call site: 00095 psutil._common.debug
10 19 psutil.pids call site: 00019 psutil._psbsd._pid_0_exists
5 37 psutil.pids call site: 00037 psutil._psosx.Process.create_time
5 47 psutil.pids call site: 00047 psutil._compat.b
5 85 psutil.Process.create_time call site: 00085 psutil._pssunos.Process._proc_basic_info
4 14 psutil.pids call site: 00014 .int
3 114 psutil._common.cat call site: 00114 .open
3 120 psutil._common.cat call site: 00120 psutil._common.open_text
2 2 ...fuzz_native.TestOneInput call site: 00002 fdp.ConsumeIntInRange
2 56 psutil.process_iter call site: 00056 psutil.process_iter.remove
2 91 psutil.Process.create_time call site: 00091 psutil._psaix.Process._proc_basic_info

Runtime coverage analysis

Covered functions
96
Functions that are reachable but not covered
95
Reachable functions
109
Percentage of reachable functions covered
12.84%
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_native 5
psutil 60
psutil._psaix 6
psutil._psbsd 9
psutil._pslinux 14
psutil._compat 1
psutil._psosx 7
psutil._pssunos 9
psutil._pswindows 8
psutil._common 10

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
psutil._psbsd.wrap_exceptions.wrapper psutil._psbsd 3 ['N/A', 'N/A', 'N/A'] 9 0 0 3 4 194 0 608 409
psutil._pssunos.wrap_exceptions.wrapper psutil._pssunos 3 ['N/A', 'N/A', 'N/A'] 9 0 0 3 4 190 0 596 166
psutil.Process.__str__ psutil 1 ['N/A'] 4 0 0 3 4 100 0 317 114
psutil.Process.cpu_percent psutil 2 ['N/A', 'N/A'] 3 0 2 3 4 80 0 253 110
psutil.cpu_times_percent psutil 2 ['N/A', 'N/A'] 4 0 4 4 5 51 0 160 99
psutil._pslinux.Connections.retrieve psutil._pslinux 3 ['N/A', 'N/A', 'N/A'] 5 0 1 5 5 50 5 162 80
psutil.disk_io_counters psutil 2 ['N/A', 'N/A'] 3 0 1 3 4 38 0 121 61
psutil.Process.memory_percent psutil 2 ['N/A', 'N/A'] 3 0 1 2 4 37 0 119 55
psutil._pslinux.disk_partitions psutil._pslinux 1 ['N/A'] 4 0 4 8 6 33 1 110 46
psutil.Process.exe psutil 1 ['N/A'] 5 0 1 2 4 72 0 234 37

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

Functions statically reachable by fuzzers
44.0%
230 / 522
Cyclomatic complexity statically reachable by fuzzers
44.0%
775 / 1747

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 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
[] []
socket [] []
psutil._psutil_linux [] []
xml [] []
glob [] []
psutil._psbsd ['fuzz_native'] []
_psutil_bsd [] []
pkg_resources [] []
psutil._psposix [] []
psutil._psaix ['fuzz_native'] []
psutil._psosx ['fuzz_native'] []
psutil._common ['fuzz_native'] []
shutil [] []
stat [] []
atheris [] []
sys [] []
psutil._compat ['fuzz_native'] []
...fuzz_native ['fuzz_native'] []
enum [] []
subprocess [] []
curses [] []
inspect [] []
resource [] []
psutil._pswindows ['fuzz_native'] []
psutil._pslinux ['fuzz_native'] []
re [] []
collections [] []
_psutil_aix [] []
threading [] []
pwd [] []
functools [] []
psutil._psutil_posix [] []
base64 [] []
_psutil_sunos [] []
os [] []
time [] []
warnings [] []
psutil._pssunos ['fuzz_native'] []
datetime [] []
struct [] []
_psutil_windows [] []
_psutil_osx [] []
dummy_threading [] []
fcntl [] []
psutil ['fuzz_native'] []
[] []
imp [] []
ctypes [] []
platform [] []
contextlib [] []

Directories in report

Directory