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

Fuzzer details

Fuzzer: fuzz_jwt

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 14 33.3%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 28 66.6%
All colors 42 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
14 27 google.auth.jwt.decode call site: 00027 google.auth.jwt._verify_iat_and_exp

Runtime coverage analysis

Covered functions
73
Functions that are reachable but not covered
26
Reachable functions
32
Percentage of reachable functions covered
18.75%
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_jwt 4
google.auth.jwt 17
google.auth._helpers 8
google.auth.exceptions 2
google.auth.crypt 3

Fuzzer: fuzz_jwt_roundtrip

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 276 87.8%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 38 12.1%
All colors 314 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
142 61 google.auth.exceptions.GoogleAuthError.__init__ call site: 00061 google.auth.jwt.encode
89 221 google.auth.jwt.decode call site: 00221 google.auth.jwt.encode
21 38 google.auth.jwt.encode call site: 00038 google.auth.iam.Signer._make_signing_request
14 2 ...fuzz_jwt_roundtrip.test_roundtrip_unverified call site: 00002 google.auth.crypt._python_rsa.RSASigner.from_string
2 23 ...fuzz_jwt_roundtrip.test_roundtrip_unverified call site: 00023 fdp.ConsumeString
2 26 ...fuzz_jwt_roundtrip.test_roundtrip_unverified call site: 00026 google.auth.jwt.encode
2 32 google.auth.jwt.encode call site: 00032 google.auth._helpers.unpadded_urlsafe_b64encode
2 35 google.auth._helpers.unpadded_urlsafe_b64encode call site: 00035 google.auth._helpers.unpadded_urlsafe_b64encode
1 0 EP call site: 00000 ...fuzz_jwt_roundtrip.test_roundtrip_unverified
1 30 google.auth.jwt.encode call site: 00030 header.update

Runtime coverage analysis

Covered functions
73
Functions that are reachable but not covered
164
Reachable functions
179
Percentage of reachable functions covered
8.38%
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_jwt_roundtrip 8
google.auth.crypt._python_rsa 8
google.auth._helpers 17
google.auth.crypt._cryptography_rsa 3
google.auth.jwt 25
google.auth.iam 10
google.auth.credentials 20
google.auth.external_account 9
google.auth.impersonated_credentials 11
google.auth.metrics 3
google.auth.exceptions 2
google.oauth2.sts 11
google.oauth2.utils 5
google.auth.external_account_authorized_user 5
google.oauth2.gdch_credentials 8
google.oauth2._client 28
google.auth._exponential_backoff 2
google.oauth2.credentials 8
google.oauth2.reauth 23
google.auth.app_engine 2
google.oauth2.service_account 17
google.auth.crypt 3
google.auth.compute_engine.credentials 4
google.auth.compute_engine._metadata 13
google.auth.api_key 1

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
google.auth._default._get_explicit_environ_credentials google.auth._default 1 ['N/A'] 8 0 3 2 4 100 1 318 248
google.auth.aws.Credentials.retrieve_subject_token google.auth.aws 2 ['N/A', 'N/A'] 4 0 2 3 4 43 0 141 105
google.auth.transport.urllib3.AuthorizedHttp.configure_mtls_channel google.auth.transport.urllib3 2 ['N/A', 'N/A'] 4 0 2 3 4 31 0 101 71
google.oauth2._credentials_async.Credentials.refresh google.oauth2._credentials_async 2 ['N/A', 'N/A'] 6 0 0 3 4 45 0 150 49
google.oauth2._id_token_async.fetch_id_token google.oauth2._id_token_async 2 ['N/A', 'N/A'] 24 0 3 4 5 199 0 641 39
google.auth.pluggable.Credentials.retrieve_subject_token google.auth.pluggable 2 ['N/A', 'N/A'] 2 0 2 5 5 13 0 50 38
google.auth.transport._aiohttp_requests.AuthorizedSession.request google.auth.transport._aiohttp_requests 9 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 2 0 4 3 4 11 1 38 35

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

Functions statically reachable by fuzzers
34.0%
180 / 535
Cyclomatic complexity statically reachable by fuzzers
36.0%
623 / 1736

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
[] []
urllib [] []
google.auth._credentials_async [] []
google.auth.crypt._python_rsa ['fuzz_jwt_roundtrip'] []
cffi [] []
asyncio [] []
google.auth.identity_pool [] []
google.auth.iam ['fuzz_jwt_roundtrip'] []
copy [] []
datetime [] []
google.auth.credentials ['fuzz_jwt_roundtrip'] []
google.oauth2._service_account_async [] []
google.oauth2.gdch_credentials ['fuzz_jwt_roundtrip'] []
...fuzz_jwt ['fuzz_jwt'] []
google.auth.api_key ['fuzz_jwt_roundtrip'] []
google.auth._cloud_sdk [] []
google.auth.external_account_authorized_user ['fuzz_jwt_roundtrip'] []
cryptography [] []
[] []
random [] []
google.auth.compute_engine.credentials ['fuzz_jwt_roundtrip'] []
platform [] []
inspect [] []
google.auth.transport.grpc [] []
google.auth.compute_engine._metadata ['fuzz_jwt_roundtrip'] []
google.auth.aws [] []
pyasn1_modules [] []
google.oauth2.challenges [] []
google.oauth2._reauth_async [] []
google.auth.external_account ['fuzz_jwt_roundtrip'] []
functools [] []
OpenSSL [] []
google.auth.crypt.base [] []
google.auth._exponential_backoff ['fuzz_jwt_roundtrip'] []
hmac [] []
posixpath [] []
google.oauth2._client_async [] []
google.auth.jwt ['fuzz_jwt', 'fuzz_jwt_roundtrip'] []
google.auth.transport._aiohttp_requests [] []
pyasn1 [] []
http [] []
google.auth._service_account_info [] []
google.oauth2._credentials_async [] []
google.auth.compute_engine [] []
google.auth.environment_vars [] []
google.auth.impersonated_credentials ['fuzz_jwt_roundtrip'] []
logging [] []
requests [] []
google.oauth2._client ['fuzz_jwt_roundtrip'] []
google.oauth2.reauth ['fuzz_jwt_roundtrip'] []
google.auth.transport [] []
google.auth.pluggable [] []
google.oauth2.sts ['fuzz_jwt_roundtrip'] []
google.auth.transport.urllib3 [] []
google.oauth2.credentials ['fuzz_jwt_roundtrip'] []
google.oauth2 [] []
google.auth._jwt_async [] []
rsa [] []
warnings [] []
...fuzz_jwt_roundtrip ['fuzz_jwt_roundtrip'] []
google.oauth2.id_token [] []
cachetools [] []
google.auth.crypt._cryptography_rsa ['fuzz_jwt_roundtrip'] []
os [] []
google.auth._oauth2client [] []
google.auth.crypt.rsa [] []
google.auth.app_engine ['fuzz_jwt_roundtrip'] []
google.oauth2._id_token_async [] []
google.auth.crypt.es256 [] []
google.auth.crypt ['fuzz_jwt', 'fuzz_jwt_roundtrip'] []
time [] []
google.auth.transport.requests [] []
sys [] []
google.auth.transport._mtls_helper [] []
google.auth._helpers ['fuzz_jwt', 'fuzz_jwt_roundtrip'] []
subprocess [] []
hashlib [] []
calendar [] []
getpass [] []
aiohttp [] []
google.auth.transport._http_client [] []
grpc [] []
google.auth.exceptions ['fuzz_jwt', 'fuzz_jwt_roundtrip'] []
certifi [] []
google.auth.version [] []
json [] []
google [] []
google.auth [] []
urllib3 [] []
google.auth.transport.mtls [] []
google.oauth2.service_account ['fuzz_jwt_roundtrip'] []
atheris [] []
google.auth.downscoped [] []
google.auth.crypt._helpers [] []
io [] []
google.oauth2.utils ['fuzz_jwt_roundtrip'] []
ctypes [] []
google.auth._default_async [] []
google.auth.transport._custom_tls_signer [] []
re [] []
google.auth.metrics ['fuzz_jwt_roundtrip'] []
base64 [] []
google.auth._default [] []

Directories in report

Directory