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

Fuzzer details

Fuzzer: fuzz_serialization

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 19 47.5%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 21 52.5%
All colors 40 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
16 16 botocore.validate.ParamValidator._check_special_validation_cases call site: 00016 botocore.validate.ParamValidator._validate_document
2 34 botocore.validate.ParamValidationDecorator.serialize_to_request call site: 00034 botocore.validate.ParamValidationDecorator.serialize_to_request
1 6 botocore.model.ServiceModel.__init__ call site: 00006 service_description.get

Runtime coverage analysis

Covered functions
168
Functions that are reachable but not covered
17
Reachable functions
31
Percentage of reachable functions covered
45.16%
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_serialization 8
botocore.model 4
botocore.serialize 1
botocore.validate 16
botocore.utils 2

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
botocore.configprovider.SmartDefaultsConfigStoreFactory.merge_smart_defaults botocore.configprovider 4 ['N/A', 'N/A', 'N/A', 'N/A'] 12 0 1 2 4 222 0 711 693
botocore.docs.client.ClientDocumenter._add_model_driven_method botocore.docs.client 3 ['N/A', 'N/A', 'N/A'] 5 0 3 2 4 111 6 350 323
botocore.credentials.RefreshableCredentials._refresh botocore.credentials 1 ['N/A'] 9 0 3 5 5 187 11 600 262
botocore.session.Session.__init__ botocore.session 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 5 0 5 4 5 74 1 234 154
botocore.endpoint.Endpoint._send_request botocore.endpoint 3 ['N/A', 'N/A', 'N/A'] 4 0 3 2 4 136 1 432 142
botocore.paginate.PageIterator.build_full_result botocore.paginate 1 ['N/A'] 3 0 4 6 5 43 0 151 136
botocore.regions.EndpointRulesetResolver.construct_endpoint botocore.regions 4 ['N/A', 'N/A', 'N/A', 'N/A'] 2 0 3 4 5 42 0 139 133

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

Functions statically reachable by fuzzers
19.0%
559/2940
Cyclomatic complexity statically reachable by fuzzers
19.0%
1794 / 9418

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
[] []
typing [] []
weakref [] []
datetime [] []
botocore.credentials [] []
botocore.retries.quota [] []
botocore.session [] []
json [] []
botocore.docs.method [] []
botocore.docs.example [] []
inspect [] []
botocore.docs.docstring [] []
botocore.auth [] []
botocore.waiter [] []
botocore.stub [] []
uuid [] []
hmac [] []
calendar [] []
botocore.exceptions [] []
[] []
botocore.crt [] []
logging [] []
collections [] []
botocore.docs.utils [] []
botocore.docs.bcdoc [] []
math [] []
botocore.compat [] []
botocore.endpoint [] []
botocore.docs.sharedexample [] []
hashlib [] []
botocore.docs.waiter [] []
botocore.retries [] []
botocore.vendored.requests [] []
botocore.validate ['fuzz_serialization'] []
botocore.hooks [] []
botocore.vendored.requests.packages [] []
botocore.regions [] []
binascii [] []
pathlib [] []
botocore [] []
botocore.vendored.six [] []
urllib [] []
botocore.configloader [] []
botocore.args [] []
awscrt [] []
botocore.docs.client [] []
threading [] []
botocore.loaders [] []
jmespath [] []
re [] []
botocore.httpchecksum [] []
functools [] []
botocore.docs.paginator [] []
botocore.client [] []
botocore.docs.shape [] []
botocore.vendored.requests.packages.urllib3 [] []
botocore.docs.bcdoc.docstringparser [] []
botocore.docs.bcdoc.style [] []
botocore.retries.standard [] []
enum [] []
time [] []
botocore.vendored.requests.exceptions [] []
botocore.retries.adaptive [] []
botocore.monitoring [] []
botocore.configprovider [] []
botocore.eventstream [] []
botocore.serialize ['fuzz_serialization'] []
struct [] []
botocore.model ['fuzz_serialization'] []
urllib3 [] []
botocore.errorfactory [] []
botocore.httpsession [] []
configparser [] []
types [] []
string [] []
botocore.config [] []
botocore.retries.bucket [] []
botocore.parsers [] []
os [] []
botocore.handlers [] []
botocore.paginate [] []
email [] []
botocore.docs [] []
botocore.awsrequest [] []
shlex [] []
random [] []
botocore.docs.params [] []
xform_name [] []
importlib [] []
botocore.docs.service [] []
botocore.retries.base [] []
botocore.retries.throttling [] []
botocore.vendored.requests.packages.urllib3.exceptions [] []
dateutil [] []
http [] []
botocore.vendored [] []
...fuzz_serialization ['fuzz_serialization'] []
copy [] []
itertools [] []
botocore.tokens [] []
warnings [] []
io [] []
botocore.history [] []
botocore.retryhandler [] []
atheris [] []
botocore.crt.auth [] []
botocore.docs.bcdoc.restdoc [] []
botocore.response [] []
certifi [] []
operator [] []
botocore.retries.special [] []
botocore.discovery [] []
base64 [] []
platform [] []
xml [] []
botocore.utils ['fuzz_serialization'] []
botocore.signers [] []
botocore.endpoint_provider [] []
html [] []
botocore.translate [] []
sys [] []
socket [] []

Directories in report

Directory