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 17 36.1%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 30 63.8%
All colors 47 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
15 31 google.auth.jwt.decode call site: 00031 google.auth.jwt._verify_iat_and_exp
2 28 google.auth.jwt.decode call site: 00028 google.auth.exceptions.GoogleAuthError.__init__

Runtime coverage analysis

Covered functions
74
Functions that are reachable but not covered
27
Reachable functions
33
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.
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 18
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 281 87.5%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 40 12.4%
All colors 321 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
161 65 google.auth.exceptions.GoogleAuthError.__init__ call site: 00065 google.auth.jwt.encode
69 248 google.auth.jwt.decode call site: 00248 google.auth.jwt.encode
25 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
2 245 google.auth.jwt.decode call site: 00245 google.auth.exceptions.GoogleAuthError.__init__
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
74
Functions that are reachable but not covered
162
Reachable functions
178
Percentage of reachable functions covered
8.99%
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 26
google.auth.iam 10
google.auth.api_key 1
google.auth.credentials 20
google.auth.external_account 6
google.auth.impersonated_credentials 12
google.auth.metrics 2
google.auth.exceptions 2
google.oauth2.sts 11
google.oauth2.utils 5
google.oauth2.gdch_credentials 8
google.oauth2._client 29
google.auth._exponential_backoff 2
google.auth.app_engine 2
google.oauth2.credentials 8
google.oauth2.reauth 23
google.auth.compute_engine.credentials 5
google.auth.compute_engine._metadata 14
google.oauth2.service_account 17
google.auth.crypt 3
google.auth.external_account_authorized_user 5

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'] 4 0 3 2 4 99 1 314 244
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 4 3 4 32 0 104 71
google.oauth2._credentials_async.Credentials.refresh google.oauth2._credentials_async 2 ['N/A', 'N/A'] 4 0 0 3 4 46 0 153 49
google.oauth2._id_token_async.fetch_id_token google.oauth2._id_token_async 2 ['N/A', 'N/A'] 11 0 4 4 5 199 0 640 42
google.auth.pluggable.Credentials.retrieve_subject_token google.auth.pluggable 2 ['N/A', 'N/A'] 1 0 2 5 5 13 0 50 38
google.auth.crypt._python_rsa.RSAVerifier.from_string google.auth.crypt._python_rsa 2 ['N/A', 'N/A'] 1 0 1 2 4 16 0 52 37
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'] 1 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%
181 / 528
Cyclomatic complexity statically reachable by fuzzers
37.0%
625 / 1712

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

Directories in report

Directory