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

Fuzzer details

Fuzzer: fuzz_encoder

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 27 79.4%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 7 20.5%
All colors 34 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
22 3 ...fuzz_encoder.TestInput call site: 00003 redis._parsers.encoders.Encoder.encode
5 27 ...fuzz_encoder.TestInput call site: 00027 redis._parsers.encoders.Encoder.decode

Runtime coverage analysis

Covered functions
35
Functions that are reachable but not covered
15
Reachable functions
16
Percentage of reachable functions covered
6.25%
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_encoder 9
redis._parsers.encoders 6

Fuzzer: fuzz_helper

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 58 56.8%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 44 43.1%
All colors 102 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
19 1 ...fuzz_helper.TestInput call site: 00001 fdp.ConsumeString
8 87 ...fuzz_helper.TestInput call site: 00087 redis.commands.helpers.stringify_param_value
7 41 ...fuzz_helper.TestInput call site: 00041 redis.commands.helpers.nativestr
6 79 ...fuzz_helper.TestInput call site: 00079 .isinstance
5 49 ...fuzz_helper.TestInput call site: 00049 redis.commands.helpers.parse_list_to_dict
4 55 redis.commands.helpers.parse_list_to_dict call site: 00055 redis.commands.helpers.parse_list_to_dict
4 63 redis.commands.helpers.decode_dict_keys call site: 00063 obj.keys
2 23 redis.commands.helpers.list_or_args call site: 00023 .isinstance
2 38 redis.commands.helpers.delist call site: 00038 .isinstance
1 60 redis.commands.helpers.parse_list_to_dict call site: 00060 .float

Runtime coverage analysis

Covered functions
35
Functions that are reachable but not covered
38
Reachable functions
38
Percentage of reachable functions covered
0.0%
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_helper 16
redis.commands.helpers 24

Fuzzer: fuzz_func

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 36 48.6%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 38 51.3%
All colors 74 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
9 0 EP call site: 00000 atheris.FuzzedDataProvider
7 10 ...fuzz_func.TestInput call site: 00010 fdp.ConsumeBytes
7 19 ...fuzz_func.TestInput call site: 00019 fdp.ConsumeInt
6 61 ...fuzz_func.TestInput call site: 00061 redis.client.CaseInsensitiveDict.__init__
2 42 redis.client.CaseInsensitiveDict.__init__ call site: 00042 fdp.ConsumeString
2 56 ...fuzz_func.TestInput call site: 00056 k.upper
2 71 ...fuzz_func.TestInput call site: 00071 fdp.ConsumeString
1 40 ...fuzz_func.TestInput call site: 00040 data.items

Runtime coverage analysis

Covered functions
34
Functions that are reachable but not covered
16
Reachable functions
16
Percentage of reachable functions covered
0.0%
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_func 12
redis.client 4

Fuzzer: fuzz_util

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 27 81.8%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 6 18.1%
All colors 33 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 3 ...fuzz_util.TestInput call site: 00003 redis.utils.safe_str
11 21 ...fuzz_util.TestInput call site: 00021 redis.utils.merge_result

Runtime coverage analysis

Covered functions
35
Functions that are reachable but not covered
19
Reachable functions
19
Percentage of reachable functions covered
0.0%
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_util 10
redis.utils 8

Fuzzer: fuzz_backoff

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 35 79.5%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 9 20.4%
All colors 44 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
13 16 ...fuzz_backoff.TestInput call site: 00016 redis.backoff.FullJitterBackoff.compute
12 31 ...fuzz_backoff.TestInput call site: 00031 redis.backoff.DecorrelatedJitterBackoff.compute
7 3 ...fuzz_backoff.TestInput call site: 00003 redis.backoff.NoBackoff.__init__
3 11 ...fuzz_backoff.TestInput call site: 00011 fdp.ConsumeInt

Runtime coverage analysis

Covered functions
35
Functions that are reachable but not covered
19
Reachable functions
19
Percentage of reachable functions covered
0.0%
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_backoff 14
redis.backoff 4

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
redis.cluster.ClusterPipeline.send_cluster_commands redis.cluster 4 ['N/A', 'N/A', 'N/A', 'N/A'] 25 0 1 2 4 138 1 466 418
redis.connection.SSLConnection._connect redis.connection 1 ['N/A'] 4 0 10 9 7 57 0 185 179
redis.commands.search.commands.SearchCommands.sugadd redis.commands.search.commands 4 ['N/A', 'N/A', 'N/A', 'N/A'] 22 0 5 2 4 72 0 244 175
redis.asyncio.cluster.ClusterPipeline.execute redis.asyncio.cluster 3 ['N/A', 'N/A', 'N/A'] 6 0 4 3 4 71 0 248 135
redis.commands.graph.commands.GraphCommands.query redis.commands.graph.commands 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 53 0 3 4 5 107 34 358 122
redis.commands.search.commands.SearchCommands.profile redis.commands.search.commands 4 ['N/A', 'N/A', 'N/A', 'N/A'] 22 0 3 3 4 97 0 325 87
redis._parsers.resp3._RESP3Parser._read_response redis._parsers.resp3 3 ['N/A', 'N/A', 'N/A'] 4 0 0 16 9 26 3 97 76

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

Functions statically reachable by fuzzers
12.0%
200 / 1653
Cyclomatic complexity statically reachable by fuzzers
14.0%
752 / 5536

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

Fuzz engine guidance

This sections provides heuristics that can be used as input to a fuzz engine when running a given fuzz target. The current focus is on providing input that is usable by libFuzzer.

/src/fuzz_encoder.py

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['...fuzz_encoder.TestInput']

/src/fuzz_helper.py

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['...fuzz_helper.TestInput', 'redis.commands.helpers.parse_list_to_dict', 'redis.commands.helpers.decode_dict_keys', 'redis.commands.helpers.list_or_args', 'redis.commands.helpers.delist']

/src/fuzz_func.py

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['...fuzz_func.TestInput', 'redis.client.CaseInsensitiveDict.__init__']

/src/fuzz_util.py

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['...fuzz_util.TestInput']

/src/fuzz_backoff.py

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['...fuzz_backoff.TestInput']

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 [] []
threading [] []
redis.commands.json.decoders [] []
redis.backoff ['fuzz_backoff'] []
warnings [] []
redis.asyncio.sentinel [] []
redis._parsers.resp3 [] []
collections [] []
redis.commands.graph.execution_plan [] []
datetime [] []
...fuzz_func ['fuzz_func'] []
redis._parsers.socket [] []
redis.commands.graph.exceptions [] []
redis.commands.bf.info [] []
redis.ocsp [] []
redis.asyncio [] []
redis.commands.graph.commands [] []
[] []
...fuzz_encoder ['fuzz_encoder'] []
redis.asyncio.connection [] []
OpenSSL [] []
queue [] []
redis.typing [] []
json [] []
redis.commands.timeseries.utils [] []
itertools [] []
redis.commands.search.indexDefinition [] []
os [] []
hashlib [] []
redis.commands.bf.commands [] []
redis._parsers.base [] []
redis._parsers [] []
redis.commands.search.commands [] []
redis.commands.graph [] []
importlib [] []
asyncio [] []
redis.commands.search.reducers [] []
binascii [] []
re [] []
distutils [] []
redis.commands.graph.path [] []
...fuzz_helper ['fuzz_helper'] []
redis.commands.search._util [] []
redis.commands.sentinel [] []
redis.commands.json.commands [] []
inspect [] []
redis.client ['fuzz_func'] []
redis.commands.search [] []
functools [] []
redis._parsers.helpers [] []
redis.commands.search.field [] []
redis.commands [] []
redis [] []
sys [] []
redis.commands.graph.edge [] []
redis.commands.search.querystring [] []
types [] []
redis.lock [] []
redis.asyncio.utils [] []
redis.commands.timeseries.info [] []
cryptography [] []
redis.commands.search.document [] []
redis._parsers.commands [] []
io [] []
time [] []
hiredis [] []
uuid [] []
redis.retry [] []
...fuzz_util ['fuzz_util'] []
redis.commands.search.query [] []
redis.asyncio.lock [] []
redis.credentials [] []
redis.commands.helpers ['fuzz_helper'] []
redis.utils ['fuzz_util'] []
redis.commands.timeseries [] []
atheris [] []
redis.crc [] []
async_timeout [] []
redis.asyncio.cluster [] []
...fuzz_backoff ['fuzz_backoff'] []
redis.asyncio.client [] []
redis.commands.json._util [] []
redis._parsers.resp2 [] []
redis.commands.search.result [] []
redis.commands.cluster [] []
redis.asyncio.retry [] []
redis.sentinel [] []
requests [] []
redis.exceptions [] []
redis.commands.json.path [] []
redis.commands.graph.query_result [] []
redis.commands.json [] []
redis._cache [] []
socket [] []
redis.commands.timeseries.commands [] []
redis.commands.search.suggestion [] []
weakref [] []
redis.connection [] []
redis.commands.bf [] []
redis._parsers.encoders ['fuzz_encoder'] []
redis.commands.search.aggregation [] []
redis._parsers.hiredis [] []
copy [] []
redis.commands.graph.node [] []
ssl [] []
redis.commands.core [] []
random [] []
redis.cluster [] []
logging [] []
typing [] []
redis.commands.redismodules [] []
importlib_metadata [] []
base64 [] []

Directories in report

Directory