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

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
ssh2_pub_priv_keyfilememory /src/libssh2/src/openssl.c 8 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'size_t', 'N/A'] 8 0 145 15 4 110 0 566 490
kex_method_diffie_hellman_group_exchange_sha1_key_exchange /src/libssh2/src/kex.c 2 ['N/A', 'N/A'] 27 0 336 44 18 119 0 1051 257
kex_method_curve25519_key_exchange /src/libssh2/src/kex.c 2 ['N/A', 'N/A'] 36 0 280 39 15 121 0 1038 103
kex_method_ecdh_key_exchange /src/libssh2/src/kex.c 2 ['N/A', 'N/A'] 36 0 293 38 15 120 0 1039 96
hostkey_method_ssh_ecdsa_initPEM /src/libssh2/src/hostkey.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 9 0 66 11 5 85 0 379 56
libssh2_channel_read_ex /src/libssh2/src/channel.c 4 ['N/A', 'int', 'N/A', 'size_t'] 29 0 179 37 12 74 0 806 55
libssh2_channel_direct_streamlocal_ex /src/libssh2/src/channel.c 4 ['N/A', 'N/A', 'N/A', 'int'] 29 0 101 22 8 77 0 802 47
libssh2_poll /src/libssh2/src/session.c 3 ['N/A', 'int', 'size_t'] 11 0 888 111 30 75 0 796 45
ssh2_pem_parse /src/libssh2/src/pem.c 7 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 5 0 156 21 10 19 0 93 43
hostkey_method_ssh_ecdsa_sig_verify /src/libssh2/src/hostkey.c 6 ['N/A', 'N/A', 'size_t', 'N/A', 'size_t', 'N/A'] 3 0 126 20 9 23 0 73 38

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

Functions statically reachable by fuzzers
50.0%
179 / 359
Cyclomatic complexity statically reachable by fuzzers
65.0%
2023 / 3119

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/libssh2/src/chacha.c [] []
/src/libssh2/src/bcrypt_pbkdf.c [] []
/src/libssh2/src/pem.c [] []
/src/libssh2/src/global.c ['ssh2_client_fuzzer'] []
/src/libssh2/src/cipher-chachapoly.c [] []
/src/libssh2/src/hostkey.c ['ssh2_client_fuzzer'] []
/src/libssh2/src/keepalive.c ['ssh2_client_fuzzer'] []
/src/libssh2/src/./blowfish.c [] []
/src/libssh2/src/misc.c ['ssh2_client_fuzzer'] []
/src/libssh2/src/openssl.c ['ssh2_client_fuzzer'] []
/src/libssh2/src/crypt.c ['ssh2_client_fuzzer'] []
/src/libssh2/src/kex.c ['ssh2_client_fuzzer'] []
/src/libssh2/src/packet.c ['ssh2_client_fuzzer'] []
/src/libssh2/src/comp.c ['ssh2_client_fuzzer'] []
/src/libssh2/src/channel.c ['ssh2_client_fuzzer'] []
/src/libssh2/src/mac.c ['ssh2_client_fuzzer'] []
/src/libssh2/src/poly1305.c [] []
/src/libssh2/src/session.c ['ssh2_client_fuzzer'] []
/src/libssh2/src/transport.c ['ssh2_client_fuzzer'] []
/src/libssh2/tests/ossfuzz/ssh2_client_fuzzer.cc ['ssh2_client_fuzzer'] []

Directories in report

Directory
/src/libssh2/src/./
/src/libssh2/src/
/src/libssh2/tests/ossfuzz/