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 58 22.7%
gold [1:9] 2 0.78%
yellow [10:29] 2 0.78%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 193 75.6%
All colors 255 100

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
255 255 1 :

['srtp_unprotect_aead']

255 255 srtp_unprotect call site: 00000 /src/libsrtp/srtp/srtp.c:2913
186 186 1 :

['srtp_protect_aead']

186 186 srtp_protect call site: 00000 /src/libsrtp/srtp/srtp.c:2582
176 176 1 :

['srtp_unprotect_rtcp_aead']

176 176 srtp_unprotect_rtcp call site: 00000 /src/libsrtp/srtp/srtp.c:4619
175 175 1 :

['srtp_crypto_kernel_status']

175 175 srtp_crypto_kernel_init call site: 00000 /src/libsrtp/crypto/kernel/crypto_kernel.c:78
71 71 1 :

['srtp_protect_rtcp_aead']

71 71 srtp_protect_rtcp call site: 00000 /src/libsrtp/srtp/srtp.c:4382
23 23 1 :

['srtp_cryptex_protect']

68 73 srtp_protect call site: 00000 /src/libsrtp/srtp/srtp.c:2751
15 15 1 :

['srtp_cryptex_unprotect']

32 251 srtp_unprotect call site: 00000 /src/libsrtp/srtp/srtp.c:3077
15 15 1 :

['srtp_cryptex_unprotect_cleanup']

17 231 srtp_unprotect call site: 00000 /src/libsrtp/srtp/srtp.c:3098
6 6 1 :

['srtp_get_rtp_xtn_hdr_profile']

6 12 srtp_cryptex_unprotect_init call site: 00000 /src/libsrtp/srtp/srtp.c:247
5 5 1 :

['srtp_cryptex_protect_cleanup']

45 45 srtp_protect call site: 00000 /src/libsrtp/srtp/srtp.c:2772
2 2 1 :

['srtp_inject_mki']

116 258 srtp_protect call site: 00000 /src/libsrtp/srtp/srtp.c:2642
2 2 1 :

['srtp_inject_mki']

73 100 srtp_protect_rtcp call site: 00000 /src/libsrtp/srtp/srtp.c:4422

Runtime coverage analysis

Covered functions
179
Functions that are reachable but not covered
15
Reachable functions
84
Percentage of reachable functions covered
82.14%
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 15
fuzzer/mt19937.cpp 3
srtp/srtp.c 28
crypto/kernel/alloc.c 2
crypto/kernel/err.c 1
crypto/math/datatypes.c 7
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 30 3 2 68 0 371 259
LLVMFuzzerInitialize /src/libsrtp/fuzzer/fuzzer.c 2 ['N/A', 'N/A'] 8 0 144 25 7 42 0 261 194
fuzz_srtp_protect /src/libsrtp/fuzzer/fuzzer.c 4 ['N/A', 'N/A', 'N/A', 'size_t'] 9 0 43 3 2 65 0 355 115
fuzz_srtp_unprotect_rtcp /src/libsrtp/fuzzer/fuzzer.c 4 ['N/A', 'N/A', 'N/A', 'size_t'] 10 0 30 3 2 46 0 246 84
fuzz_srtp_protect_rtcp /src/libsrtp/fuzzer/fuzzer.c 4 ['N/A', 'N/A', 'N/A', 'size_t'] 9 0 43 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 128 16 6 14 0 70 47
srtp_update /src/libsrtp/srtp/srtp.c 2 ['N/A', 'N/A'] 11 0 72 13 6 63 0 370 37

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

Functions statically reachable by fuzzers
68.0%
165 / 243
Cyclomatic complexity statically reachable by fuzzers
80.0%
1199 / 1491

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

Directories in report

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