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: rules_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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: elf_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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: macho_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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: dotnet_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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: dex_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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: pe_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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

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
dotnet__load /src/yara/libyara/modules/dotnet/dotnet.c 4 ['N/A', 'N/A', 'N/A', 'size_t'] 13 0 157 21 8 85 0 843 686
pe__declarations /src/yara/libyara/modules/pe/pe.c 1 ['N/A'] 8 0 6899 772 330 86 0 892 587
pe__load /src/yara/libyara/modules/pe/pe.c 4 ['N/A', 'N/A', 'N/A', 'size_t'] 10 0 551 23 9 67 0 626 440
elf__load /src/yara/libyara/modules/elf/elf.c 4 ['N/A', 'N/A', 'N/A', 'size_t'] 8 0 537 56 21 42 0 447 302
elf__declarations /src/yara/libyara/modules/elf/elf.c 1 ['N/A'] 8 0 2833 319 142 60 0 472 301
macho__declarations /src/yara/libyara/modules/macho/macho.c 1 ['N/A'] 8 0 4641 520 239 34 0 408 262
math__declarations /src/yara/libyara/modules/math/math.c 1 ['N/A'] 8 0 509 52 26 62 0 376 212
dex__declarations /src/yara/libyara/modules/dex/dex.c 1 ['N/A'] 8 0 3528 401 155 52 0 496 195
dex__load /src/yara/libyara/modules/dex/dex.c 4 ['N/A', 'N/A', 'N/A', 'size_t'] 10 0 224 15 6 41 0 282 129
macho__load /src/yara/libyara/modules/macho/macho.c 4 ['N/A', 'N/A', 'N/A', 'size_t'] 9 0 123 17 7 55 0 263 114

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

Functions statically reachable by fuzzers
70.0%
558 / 797
Cyclomatic complexity statically reachable by fuzzers
85.0%
6507 / 7641

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/yara/libyara/base64.c ['rules_fuzzer'] []
/src/yara/libyara/proc/linux.c [] []
/src/yara/libyara/re_lexer.l ['rules_fuzzer'] []
/src/yara/libyara/scan.c ['elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/tests/oss-fuzz/dotnet_fuzzer.cc ['dotnet_fuzzer'] []
/src/yara/tests/oss-fuzz/pe_fuzzer.cc ['pe_fuzzer'] []
/src/yara/libyara/exec.c ['elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/libyara/modules.c ['rules_fuzzer', 'elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/libyara/modules/dotnet/dotnet.c [] []
/src/yara/libyara/modules/math/math.c [] []
/src/yara/tests/oss-fuzz/rules_fuzzer.cc ['rules_fuzzer'] []
/src/yara/libyara/arena.c ['rules_fuzzer', 'elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/libyara/modules/console/console.c [] []
/src/yara/libyara/parser.c ['rules_fuzzer'] []
/src/yara/libyara/re.c ['rules_fuzzer', 'elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/libyara/bitmask.c ['rules_fuzzer'] []
/src/yara/libyara/modules/pe/pe_utils.c [] []
/src/yara/libyara/hex_lexer.c ['rules_fuzzer'] []
/src/yara/libyara/hex_lexer.l ['rules_fuzzer'] []
/src/yara/libyara/strutils.c ['rules_fuzzer', 'elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/libyara/tlshc/tlsh_impl.c [] []
/src/yara/libyara/re_lexer.c ['rules_fuzzer'] []
/src/yara/libyara/libyara.c ['rules_fuzzer', 'elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/libyara/modules/dex/dex.c [] []
/src/yara/libyara/exception.h [] []
/src/yara/libyara/atoms.c ['rules_fuzzer'] []
/src/yara/libyara/modules/string/string.c [] []
/src/yara/libyara/lexer.l ['rules_fuzzer'] []
/src/yara/libyara/tlshc/tlsh.c [] []
/src/yara/libyara/tlshc/tlsh_util.c [] []
/src/yara/libyara/compiler.c ['rules_fuzzer'] []
/src/yara/libyara/rules.c ['rules_fuzzer', 'elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/tests/oss-fuzz/macho_fuzzer.cc ['macho_fuzzer'] []
/src/yara/libyara/stopwatch.c ['elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/libyara/modules/time/time.c [] []
/src/yara/libyara/ahocorasick.c ['rules_fuzzer'] []
/src/yara/libyara/filemap.c [] []
/src/yara/libyara/hash.c ['rules_fuzzer', 'elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/libyara/notebook.c ['elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/libyara/modules/tests/tests.c [] []
/src/yara/./libyara/include/yara/unaligned.h ['elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/libyara/grammar.c ['rules_fuzzer'] []
/src/yara/libyara/threading.c ['rules_fuzzer', 'elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/libyara/lexer.c ['rules_fuzzer'] []
/src/yara/libyara/exefiles.c ['elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/libyara/sizedstr.c ['rules_fuzzer', 'elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/libyara/stream.c [] []
/src/yara/libyara/stack.c ['rules_fuzzer'] []
/src/yara/tests/oss-fuzz/dex_fuzzer.cc ['dex_fuzzer'] []
/src/yara/libyara/modules/pe/pe.c [] []
/src/yara/tests/oss-fuzz/elf_fuzzer.cc ['elf_fuzzer'] []
/src/yara/libyara/mem.c ['rules_fuzzer', 'elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/libyara/modules/elf/elf.c [] []
/src/yara/libyara/simple_str.c [] []
/src/yara/hex_grammar.c ['rules_fuzzer'] []
/src/yara/libyara/object.c ['rules_fuzzer', 'elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/re_grammar.c ['rules_fuzzer'] []
/src/yara/libyara/scanner.c ['elf_fuzzer', 'macho_fuzzer', 'dotnet_fuzzer', 'dex_fuzzer', 'pe_fuzzer'] []
/src/yara/libyara/modules/macho/macho.c [] []
/src/yara/libyara/proc.c [] []

Directories in report

Directory
/src/yara/./libyara/include/yara/
/src/yara/
/src/yara/libyara/modules/macho/
/src/yara/libyara/modules/dotnet/
/src/yara/libyara/tlshc/
/src/yara/libyara/modules/pe/
/src/yara/libyara/modules/tests/
/src/yara/libyara/modules/time/
/src/yara/libyara/proc/
/src/yara/libyara/
/src/yara/libyara/modules/math/
/src/yara/libyara/modules/console/
/src/yara/libyara/modules/dex/
/src/yara/libyara/modules/string/
/src/yara/libyara/modules/elf/
/src/yara/tests/oss-fuzz/