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

Fuzzer details

Fuzzer: fuzz_tokencache

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 2 15.3%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 11 84.6%
All colors 13 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
2 7 ...fuzz_tokencache.build_token call site: 00007 fdp.ConsumeString

Runtime coverage analysis

Covered functions
6
Functions that are reachable but not covered
9
Reachable functions
11
Percentage of reachable functions covered
18.18%
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_tokencache 10

Fuzzer: fuzz_auth

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 434 97.9%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 9 2.03%
All colors 443 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
430 5 ...fuzz_auth.TestInput call site: 00005 msal.application.ClientApplication.get_accounts
3 439 ...fuzz_auth.TestInput call site: 00439 re.findall
1 437 ...fuzz_auth.TestInput call site: 00437 fdp.ConsumeString

Runtime coverage analysis

Covered functions
39
Functions that are reachable but not covered
248
Reachable functions
249
Percentage of reachable functions covered
0.4%
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_auth 10
msal.authority 2
msal.application 19
msal.cloudshell 1
requests.sessions 77
requests.models 70
requests.cookies 27
requests.utils 69
requests._internal_utils 5
requests.structures 4
requests.hooks 2
requests.auth 8

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
msal.application.ClientApplication.acquire_token_silent_with_error msal.application 7 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 6 0 3 6 5 332 1 1079 321
requests.adapters.HTTPAdapter.send requests.adapters 7 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 3 0 12 12 8 101 0 329 191
requests.auth.HTTPDigestAuth.handle_401 requests.auth 3 ['N/A', 'N/A', 'N/A'] 3 0 7 3 4 38 0 126 105
msal.oauth2cli.oauth2.Client.obtain_token_by_browser msal.oauth2cli.oauth2 4 ['N/A', 'N/A', 'N/A', 'N/A'] 3 0 2 2 4 48 0 153 96
msal.application.ClientApplication.acquire_token_by_username_password msal.application 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 6 0 3 3 4 288 0 929 76
msal.application.PublicClientApplication.acquire_token_interactive msal.application 13 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 6 0 5 5 5 308 0 1001 48
msal.application.ClientApplication.__init__ msal.application 19 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 6 0 5 6 5 275 0 891 41
requests.models.Response.iter_lines requests.models 4 ['N/A', 'N/A', 'N/A', 'N/A'] 1 0 3 4 5 12 0 44 35

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

Functions statically reachable by fuzzers
54.5%
519/952
Cyclomatic complexity statically reachable by fuzzers
55.7%
1696 / 3045

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
[] []
requests.utils ['fuzz_auth'] []
cryptography [] []
os [] []
struct [] []
collections [] []
urllib3 [] []
idna [] []
msal.throttled_http_client [] []
msal.wstrust_request [] []
tempfile [] []
...fuzz_auth ['fuzz_auth'] []
re [] []
base64 [] []
urllib [] []
msal.application ['fuzz_auth'] []
chardet [] []
calendar [] []
requests.packages [] []
binascii [] []
requests.cookies ['fuzz_auth'] []
charset_normalizer [] []
warnings [] []
msal [] []
uuid [] []
requests.hooks ['fuzz_auth'] []
requests.help [] []
jwt [] []
certifi [] []
msal.wstrust_response [] []
time [] []
platform [] []
requests.auth ['fuzz_auth'] []
requests.__version__ [] []
random [] []
requests.api [] []
webbrowser [] []
requests.sessions ['fuzz_auth'] []
msal.authority ['fuzz_auth'] []
copy [] []
codecs [] []
winreg [] []
datetime [] []
requests.compat [] []
string [] []
requests.status_codes [] []
logging [] []
requests.adapters [] []
msal.oauth2cli.oauth2 [] []
requests.certs [] []
requests._internal_utils ['fuzz_auth'] []
subprocess [] []
requests.models ['fuzz_auth'] []
threading [] []
json [] []
zipfile [] []
requests.structures ['fuzz_auth'] []
msal.oauth2cli.authcode [] []
msal.oauth2cli [] []
socket [] []
netrc [] []
requests [] []
msal.individual_cache [] []
msal.oauth2cli.http [] []
[] []
...fuzz_tokencache ['fuzz_tokencache'] []
requests.exceptions [] []
hashlib [] []
msal.cloudshell ['fuzz_auth'] []
http [] []
msal.oauth2cli.oidc [] []
functools [] []
msal.broker [] []
simplejson [] []
xml [] []
heapq [] []
pymsalruntime [] []
urlparse [] []
msal.telemetry [] []
argparse [] []
atheris [] []
msal.oauth2cli.assertion [] []
BaseHTTPServer [] []
dummy_threading [] []
msal.region [] []

Directories in report

Directory