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

Project functions overview

The following table shows data about each function in the project. The functions included in this table correspond to all functions that exist in the executables of the fuzzers. As such, there may be functions that are from third-party libraries.

For further technical details on the meaning of columns in the below table, please see the Glossary .

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined 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

Fuzzer details

Fuzzer: srtp-fuzzer

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 78 26.4%
gold [1:9] 11 3.72%
yellow [10:29] 7 2.37%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 199 67.4%
All colors 295 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
10 271 run_srtp_func call site: 00271 srtp_stream_remove
7 0 EP call site: 00000 fuzz_write_input
7 191 srtp_stream_init_keys call site: 00191 srtp_kdf_init
6 282 srtp_get_stream call site: 00282 srtp_stream_add
4 14 srtp_crypto_alloc call site: 00014 octet_string_set_to_zero
4 247 srtp_insert_or_dealloc_stream call site: 00247 srtp_stream_dealloc
3 241 srtp_stream_init_keys call site: 00241 srtp_stream_dealloc
2 88 srtp_stream_list_alloc call site: 00088 srtp_dealloc
2 174 srtp_kdf_init call site: 00174 srtp_cipher_dealloc
2 182 srtp_stream_init_keys call site: 00182 srtp_nibble_to_hex_char
2 208 srtp_stream_init_keys call site: 00208 srtp_kdf_clear
2 264 run_srtp_func call site: 00264 fuzz_alloc_succeed

Runtime coverage analysis

Covered functions
162
Functions that are reachable but not covered
19
Reachable functions
106
Percentage of reachable functions covered
82.08%
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
fuzzer/fuzzer.c 14
fuzzer/mt19937.cpp 3
srtp/srtp_policy.c 20
crypto/kernel/alloc.c 2
crypto/kernel/err.c 1
crypto/math/datatypes.c 7
srtp/srtp.c 29
./include/srtp_priv.h 2
crypto/cipher/cipher.c 5
crypto/replay/rdbx.c 4
crypto/kernel/crypto_kernel.c 4
crypto/replay/rdb.c 1
crypto/kernel/key.c 1
crypto/hash/auth.c 1
fuzzer/testmem.c 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
fuzz_srtp_unprotect /src/libsrtp/fuzzer/fuzzer.c 4 ['N/A', 'N/A', 'N/A', 'size_t'] 10 0 26 3 2 68 0 378 266
LLVMFuzzerInitialize /src/libsrtp/fuzzer/fuzzer.c 2 ['N/A', 'N/A'] 8 0 119 23 7 41 0 259 194
fuzz_srtp_protect /src/libsrtp/fuzzer/fuzzer.c 4 ['N/A', 'N/A', 'N/A', 'size_t'] 9 0 37 3 2 65 0 356 115
fuzz_srtp_unprotect_rtcp /src/libsrtp/fuzzer/fuzzer.c 4 ['N/A', 'N/A', 'N/A', 'size_t'] 10 0 26 3 2 46 0 250 86
fuzz_srtp_protect_rtcp /src/libsrtp/fuzzer/fuzzer.c 4 ['N/A', 'N/A', 'N/A', 'size_t'] 9 0 37 3 2 43 0 214 56
srtp_hmac_compute /src/libsrtp/crypto/hash/hmac.c 5 ['N/A', 'N/A', 'size_t', 'size_t', 'N/A'] 5 0 119 16 6 14 0 70 47
srtp_update /src/libsrtp/srtp/srtp.c 2 ['N/A', 'N/A'] 11 0 66 13 6 67 0 432 35

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

Functions statically reachable by fuzzers
72.0%
187 / 260
Cyclomatic complexity statically reachable by fuzzers
84.0%
1376 / 1630

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 Runtime reached by Fuzzers Combined 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
[] []
/src/libsrtp/crypto/kernel/err.c ['srtp-fuzzer'] ['srtp-fuzzer']
/src/libsrtp/crypto/kernel/crypto_kernel.c ['srtp-fuzzer'] ['srtp-fuzzer']
/usr/include/x86_64-linux-gnu/bits/byteswap.h [] []
/src/libsrtp/crypto/kernel/alloc.c ['srtp-fuzzer'] ['srtp-fuzzer']
/src/libsrtp/fuzzer/fuzzer.c ['srtp-fuzzer'] ['srtp-fuzzer']
/src/libsrtp/crypto/kernel/key.c ['srtp-fuzzer'] ['srtp-fuzzer']
/src/libsrtp/./include/srtp_priv.h ['srtp-fuzzer'] []
/src/libsrtp/crypto/hash/hmac.c [] []
/src/libsrtp/srtp/srtp.c ['srtp-fuzzer'] ['srtp-fuzzer']
/src/libsrtp/fuzzer/testmem.c ['srtp-fuzzer'] ['srtp-fuzzer']
/src/libsrtp/crypto/replay/rdb.c ['srtp-fuzzer'] ['srtp-fuzzer']
/src/libsrtp/crypto/math/datatypes.c ['srtp-fuzzer'] ['srtp-fuzzer']
/src/libsrtp/crypto/cipher/aes_icm.c [] []
/src/libsrtp/crypto/hash/sha1.c [] []
/src/libsrtp/crypto/cipher/null_cipher.c [] []
/src/libsrtp/fuzzer/mt19937.cpp ['srtp-fuzzer'] ['srtp-fuzzer']
/src/libsrtp/crypto/hash/null_auth.c [] []
/src/libsrtp/crypto/cipher/aes.c [] []
/src/libsrtp/crypto/replay/rdbx.c ['srtp-fuzzer'] ['srtp-fuzzer']
/src/libsrtp/crypto/cipher/cipher.c ['srtp-fuzzer'] ['srtp-fuzzer']
/src/libsrtp/crypto/hash/auth.c ['srtp-fuzzer'] ['srtp-fuzzer']
/src/libsrtp/srtp/srtp_policy.c ['srtp-fuzzer'] ['srtp-fuzzer']

Directories in report

Directory
/src/libsrtp/crypto/hash/
/src/libsrtp/srtp/
/src/libsrtp/crypto/kernel/
/src/libsrtp/fuzzer/
/usr/include/x86_64-linux-gnu/bits/
/src/libsrtp/./include/
/src/libsrtp/crypto/math/
/src/libsrtp/crypto/replay/
/src/libsrtp/crypto/cipher/