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: 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 distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 527 91.0%
gold [1:9] 26 4.49%
yellow [10:29] 5 0.86%
greenyellow [30:49] 2 0.34%
lawngreen 50+ 19 3.28%
All colors 579 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
8 8 1 :

['strlcpy']

8 142 yr_parser_reduce_import call site: 00000 /src/yara/libyara/parser.c:1357
0 47 1 :

['yr_compiler_destroy']

0 47 yr_compiler_create call site: 00000 /src/yara/libyara/compiler.c:276
0 15 1 :

['yr_object_destroy']

0 21 yr_object_destroy call site: 00025 /src/yara/libyara/object.c:355
0 6 1 :

['yr_free']

0 6 yr_arena_release call site: 00224 /src/yara/libyara/arena.c:275
0 4 1 :

['yr_free']

0 4 yr_ac_automaton_create call site: 00000 /src/yara/libyara/ahocorasick.c:739
0 4 1 :

['yr_free']

0 4 yr_hash_table_add_raw_key call site: 00126 /src/yara/libyara/hash.c:318
0 2 1 :

['yr_free']

0 2 yr_rules_from_arena call site: 00000 /src/yara/libyara/rules.c:342
0 0 None 33161 34737 yara_yyparse call site: 00000 /src/yara/libyara/grammar.c:1964
0 0 None 33161 34737 yara_yyparse call site: 00000 /src/yara/libyara/grammar.c:2061
0 0 None 33161 34737 yara_yyparse call site: 00000 /src/yara/libyara/grammar.c:2080
0 0 None 33161 34737 yara_yyparse call site: 00000 /src/yara/libyara/grammar.c:2083
0 0 None 33161 34737 yara_yyparse call site: 00000 /src/yara/libyara/grammar.c:2093

Runtime coverage analysis

Covered functions
93
Functions that are reachable but not covered
121
Reachable functions
146
Percentage of reachable functions covered
17.12%
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
tests/oss-fuzz/dex_fuzzer.cc 2
libyara/rules.c 1
libyara/scanner.c 10
libyara/mem.c 5
libyara/hash.c 12
libyara/object.c 15
libyara/sizedstr.c 10
libyara/libyara.c 2
libyara/notebook.c 3
libyara/stopwatch.c 2
libyara/threading.c 2
libyara/exefiles.c 7
libyara/scan.c 14
libyara/strutils.c 1
libyara/exec.c 14
libyara/arena.c 6
./libyara/include/yara/unaligned.h 5
libyara/modules.c 3
libyara/re.c 11

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 distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 522 90.1%
gold [1:9] 25 4.31%
yellow [10:29] 8 1.38%
greenyellow [30:49] 3 0.51%
lawngreen 50+ 21 3.62%
All colors 579 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
19 19 1 :

['yara_yywarning']

35 80 yr_parser_reduce_rule_declaration_phase_2 call site: 00000 /src/yara/libyara/parser.c:1108
8 8 1 :

['strlcpy']

8 238 yr_parser_reduce_rule_declaration_phase_1 call site: 00000 /src/yara/libyara/parser.c:1014
8 8 1 :

['strlcpy']

8 142 yr_parser_reduce_import call site: 00000 /src/yara/libyara/parser.c:1357
4 4 2 :

['strcmp', 'memcmp']

4 10 _yr_hash_table_lookup call site: 00328 /src/yara/libyara/hash.c:149
0 47 1 :

['yr_compiler_destroy']

0 47 yr_compiler_create call site: 00000 /src/yara/libyara/compiler.c:276
0 29 1 :

['yr_parser_emit_with_arg']

0 75 yr_parser_reduce_operation call site: 00000 /src/yara/libyara/parser.c:1456
0 15 1 :

['yr_object_destroy']

0 23 yr_object_destroy call site: 00025 /src/yara/libyara/object.c:371
0 15 1 :

['yr_object_destroy']

0 21 yr_object_destroy call site: 00025 /src/yara/libyara/object.c:355
0 6 1 :

['yr_free']

0 6 yr_arena_release call site: 00224 /src/yara/libyara/arena.c:275
0 6 1 :

['yr_free']

0 6 _yr_hash_table_lookup call site: 00328 /src/yara/libyara/hash.c:153
0 4 1 :

['yr_free']

0 4 yr_ac_automaton_create call site: 00000 /src/yara/libyara/ahocorasick.c:739
0 4 1 :

['yr_free']

0 4 yr_hash_table_add_raw_key call site: 00126 /src/yara/libyara/hash.c:318

Runtime coverage analysis

Covered functions
109
Functions that are reachable but not covered
119
Reachable functions
146
Percentage of reachable functions covered
18.49%
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
tests/oss-fuzz/pe_fuzzer.cc 2
libyara/rules.c 1
libyara/scanner.c 10
libyara/mem.c 5
libyara/hash.c 12
libyara/object.c 15
libyara/sizedstr.c 10
libyara/libyara.c 2
libyara/notebook.c 3
libyara/stopwatch.c 2
libyara/threading.c 2
libyara/exefiles.c 7
libyara/scan.c 14
libyara/strutils.c 1
libyara/exec.c 14
libyara/arena.c 6
./libyara/include/yara/unaligned.h 5
libyara/modules.c 3
libyara/re.c 11

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 distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 382 65.9%
gold [1:9] 6 1.03%
yellow [10:29] 3 0.51%
greenyellow [30:49] 1 0.17%
lawngreen 50+ 187 32.2%
All colors 579 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
192 192 1 :

['yr_scan_verify_match']

192 192 _yr_scanner_scan_mem_block call site: 00172 /src/yara/libyara/scanner.c:154
19 19 1 :

['yara_yywarning']

35 80 yr_parser_reduce_rule_declaration_phase_2 call site: 00000 /src/yara/libyara/parser.c:1108
8 8 1 :

['strlcpy']

8 238 yr_parser_reduce_rule_declaration_phase_1 call site: 00000 /src/yara/libyara/parser.c:1014
8 8 1 :

['strlcpy']

8 142 yr_parser_reduce_import call site: 00000 /src/yara/libyara/parser.c:1357
8 8 1 :

['strlcpy']

8 8 yr_parser_reduce_operation call site: 00000 /src/yara/libyara/parser.c:1481
5 5 1 :

['ss_dup']

5 5 yr_object_copy call site: 00074 /src/yara/libyara/object.c:562
4 4 2 :

['strcmp', 'memcmp']

4 10 _yr_hash_table_lookup call site: 00328 /src/yara/libyara/hash.c:149
2 6 3 :

['strlen', 'yr_free', 'yr_malloc']

2 6 sstr_new call site: 00000 /src/yara/libyara/simple_str.c:72
0 47 1 :

['yr_compiler_destroy']

0 47 yr_compiler_create call site: 00000 /src/yara/libyara/compiler.c:276
0 5 1 :

['sstr_free']

0 5 sstr_newf call site: 00000 /src/yara/libyara/simple_str.c:100
0 4 1 :

['yr_free']

0 4 yr_ac_automaton_create call site: 00000 /src/yara/libyara/ahocorasick.c:739
0 4 1 :

['yr_free']

0 4 yr_hash_table_add_raw_key call site: 00126 /src/yara/libyara/hash.c:318

Runtime coverage analysis

Covered functions
201
Functions that are reachable but not covered
76
Reachable functions
146
Percentage of reachable functions covered
47.95%
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
tests/oss-fuzz/dotnet_fuzzer.cc 2
libyara/rules.c 1
libyara/scanner.c 10
libyara/mem.c 5
libyara/hash.c 12
libyara/object.c 15
libyara/sizedstr.c 10
libyara/libyara.c 2
libyara/notebook.c 3
libyara/stopwatch.c 2
libyara/threading.c 2
libyara/exefiles.c 7
libyara/scan.c 14
libyara/strutils.c 1
libyara/exec.c 14
libyara/arena.c 6
./libyara/include/yara/unaligned.h 5
libyara/modules.c 3
libyara/re.c 11

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 distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 900 53.0%
gold [1:9] 9 0.53%
yellow [10:29] 11 0.64%
greenyellow [30:49] 13 0.76%
lawngreen 50+ 764 45.0%
All colors 1697 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
2 521 7 :

['yr_arena_get_ptr', '_yr_parser_write_string', 'yr_re_ast_has_unbounded_quantifier_for_dot', 'yr_arena_ref_to_ptr', 'memcmp', 'yr_re_ast_split_at_chaining_point', 'yara_yywarning']

2 556 yr_parser_reduce_string_declaration call site: 00830 /src/yara/libyara/parser.c:794
2 2 1 :

['strlen']

2 2 strlcat call site: 01182 /src/yara/libyara/strutils.c:138
0 47 1 :

['yr_compiler_destroy']

0 47 yr_compiler_create call site: 00013 /src/yara/libyara/compiler.c:276
0 15 1 :

['yr_object_destroy']

0 23 yr_object_destroy call site: 00040 /src/yara/libyara/object.c:371
0 15 1 :

['yr_object_destroy']

0 21 yr_object_destroy call site: 00040 /src/yara/libyara/object.c:355
0 6 1 :

['yr_free']

0 6 _yr_hash_table_lookup call site: 00086 /src/yara/libyara/hash.c:153
0 4 1 :

['yr_free']

0 4 yr_ac_automaton_create call site: 00015 /src/yara/libyara/ahocorasick.c:739
0 4 1 :

['yr_free']

0 4 yr_hash_table_add_raw_key call site: 00097 /src/yara/libyara/hash.c:318
0 2 1 :

['yr_free']

0 2 yr_rules_from_arena call site: 01681 /src/yara/libyara/rules.c:342
0 2 1 :

['yr_free']

0 2 yr_stack_create call site: 00996 /src/yara/libyara/stack.c:50
0 0 None 20 34737 yara_yyparse call site: 01374 /src/yara/libyara/grammar.c:2004
0 0 None 20 34737 yara_yyparse call site: 01395 /src/yara/libyara/grammar.c:2061

Runtime coverage analysis

Covered functions
250
Functions that are reachable but not covered
52
Reachable functions
273
Percentage of reachable functions covered
80.95%
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
tests/oss-fuzz/rules_fuzzer.cc 1
libyara/compiler.c 14
libyara/mem.c 5
libyara/hash.c 15
libyara/arena.c 14
libyara/ahocorasick.c 15
libyara/object.c 4
libyara/lexer.l 5
libyara/lexer.c 27
libyara/strutils.c 3
libyara/libyara.c 2
libyara/grammar.c 6
libyara/parser.c 23
libyara/modules.c 1
libyara/re.c 21
libyara/hex_lexer.l 3
libyara/threading.c 2
libyara/hex_lexer.c 24
hex_grammar.c 2
libyara/re_lexer.l 6
libyara/re_lexer.c 25
re_grammar.c 2
libyara/base64.c 7
libyara/sizedstr.c 3
libyara/atoms.c 17
libyara/stack.c 4
libyara/bitmask.c 1
libyara/rules.c 2

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 distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 404 69.7%
gold [1:9] 8 1.38%
yellow [10:29] 2 0.34%
greenyellow [30:49] 1 0.17%
lawngreen 50+ 164 28.3%
All colors 579 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
192 192 1 :

['yr_scan_verify_match']

192 192 _yr_scanner_scan_mem_block call site: 00172 /src/yara/libyara/scanner.c:154
8 8 1 :

['strlcpy']

8 142 yr_parser_reduce_import call site: 00000 /src/yara/libyara/parser.c:1357
5 5 1 :

['ss_dup']

5 5 yr_object_copy call site: 00074 /src/yara/libyara/object.c:562
4 4 2 :

['strcmp', 'memcmp']

4 10 _yr_hash_table_lookup call site: 00328 /src/yara/libyara/hash.c:149
0 47 1 :

['yr_compiler_destroy']

0 47 yr_compiler_create call site: 00000 /src/yara/libyara/compiler.c:276
0 4 1 :

['yr_free']

0 4 yr_ac_automaton_create call site: 00000 /src/yara/libyara/ahocorasick.c:739
0 4 1 :

['yr_free']

0 4 yr_hash_table_add_raw_key call site: 00126 /src/yara/libyara/hash.c:318
0 2 1 :

['yr_free']

0 4 yr_object_set_string call site: 00115 /src/yara/libyara/object.c:1036
0 2 1 :

['yr_free']

0 2 yr_notebook_create call site: 00146 /src/yara/libyara/notebook.c:95
0 2 1 :

['yr_free']

0 2 yr_rules_from_arena call site: 00000 /src/yara/libyara/rules.c:342
0 0 None 33155 34737 yara_yyparse call site: 00000 /src/yara/libyara/grammar.c:1964
0 0 None 33155 34737 yara_yyparse call site: 00000 /src/yara/libyara/grammar.c:2061

Runtime coverage analysis

Covered functions
149
Functions that are reachable but not covered
81
Reachable functions
146
Percentage of reachable functions covered
44.52%
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
tests/oss-fuzz/elf_fuzzer.cc 2
libyara/rules.c 1
libyara/scanner.c 10
libyara/mem.c 5
libyara/hash.c 12
libyara/object.c 15
libyara/sizedstr.c 10
libyara/libyara.c 2
libyara/notebook.c 3
libyara/stopwatch.c 2
libyara/threading.c 2
libyara/exefiles.c 7
libyara/scan.c 14
libyara/strutils.c 1
libyara/exec.c 14
libyara/arena.c 6
./libyara/include/yara/unaligned.h 5
libyara/modules.c 3
libyara/re.c 11

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 distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 378 65.2%
gold [1:9] 6 1.03%
yellow [10:29] 3 0.51%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 192 33.1%
All colors 579 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
192 192 1 :

['yr_scan_verify_match']

192 192 _yr_scanner_scan_mem_block call site: 00172 /src/yara/libyara/scanner.c:154
131 131 1 :

['macho_offset_to_rva']

131 377 macho_handle_main call site: 00000 /src/yara/libyara/modules/macho/macho.c:351
19 19 1 :

['yara_yywarning']

35 80 yr_parser_reduce_rule_declaration_phase_2 call site: 00000 /src/yara/libyara/parser.c:1108
8 8 1 :

['strlcpy']

8 238 yr_parser_reduce_rule_declaration_phase_1 call site: 00000 /src/yara/libyara/parser.c:1014
8 8 1 :

['strlcpy']

8 142 yr_parser_reduce_import call site: 00000 /src/yara/libyara/parser.c:1357
8 8 1 :

['strlcpy']

8 8 yr_parser_reduce_operation call site: 00000 /src/yara/libyara/parser.c:1481
5 5 1 :

['ss_dup']

5 5 yr_object_copy call site: 00074 /src/yara/libyara/object.c:562
4 4 2 :

['strcmp', 'memcmp']

4 10 _yr_hash_table_lookup call site: 00328 /src/yara/libyara/hash.c:149
0 47 1 :

['yr_compiler_destroy']

0 47 yr_compiler_create call site: 00000 /src/yara/libyara/compiler.c:276
0 4 1 :

['yr_free']

0 4 yr_ac_automaton_create call site: 00000 /src/yara/libyara/ahocorasick.c:739
0 4 1 :

['yr_free']

0 4 yr_hash_table_add_raw_key call site: 00126 /src/yara/libyara/hash.c:318
0 2 1 :

['yr_free']

0 4 yr_object_set_string call site: 00115 /src/yara/libyara/object.c:1036

Runtime coverage analysis

Covered functions
178
Functions that are reachable but not covered
77
Reachable functions
146
Percentage of reachable functions covered
47.26%
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
tests/oss-fuzz/macho_fuzzer.cc 2
libyara/rules.c 1
libyara/scanner.c 10
libyara/mem.c 5
libyara/hash.c 12
libyara/object.c 15
libyara/sizedstr.c 10
libyara/libyara.c 2
libyara/notebook.c 3
libyara/stopwatch.c 2
libyara/threading.c 2
libyara/exefiles.c 7
libyara/scan.c 14
libyara/strutils.c 1
libyara/exec.c 14
libyara/arena.c 6
./libyara/include/yara/unaligned.h 5
libyara/modules.c 3
libyara/re.c 11

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 / 7644

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

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.

tests/oss-fuzz/dex_fuzzer.cc

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=['yr_modules_do_declarations', 'yr_arena_create', 'yr_hash_table_add_raw_key', '_yr_arena_allocate_memory', 'yr_object_create', '_yr_hash_table_lookup', 'yr_realloc', 'yr_arena_get_ptr', 'yr_hash_table_create', 'yr_object_destroy']

tests/oss-fuzz/pe_fuzzer.cc

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=['yr_modules_do_declarations', 'yr_arena_create', '_yr_arena_allocate_memory', 'yr_get_configuration_uint32', 'yr_object_create', 'yr_realloc', '_yr_hash_table_lookup', 'yr_arena_get_ptr', 'yr_hash_table_create', 'yr_object_destroy']

tests/oss-fuzz/dotnet_fuzzer.cc

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=['yr_modules_load', '_yr_arena_allocate_memory', 'yr_execute_code', 'yr_scanner_scan_mem_blocks', 'yr_realloc', 'yr_object_destroy', 'yr_object_set_integer']

tests/oss-fuzz/rules_fuzzer.cc

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=['re_yyrestart', 'yara_yypop_buffer_state', 'yr_parser_reduce_string_identifier', 'yr_parser_emit_push_const', 'yara_yy_scan_bytes', 'yara_yylex', 'xtoi', 'yr_re_node_create', 'yr_parser_check_types', 'yr_parser_reduce_string_declaration']

tests/oss-fuzz/elf_fuzzer.cc

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=['yr_modules_load', 'yr_execute_code', '_yr_arena_allocate_memory', 'yr_scanner_scan_mem_blocks', '_yr_hash_table_lookup', 'yr_realloc', 'yr_object_copy', 'yr_object_set_integer', 'yr_object_destroy']

tests/oss-fuzz/macho_fuzzer.cc

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=['yr_modules_load', '_yr_arena_allocate_memory', 'yr_execute_code', 'yr_scanner_scan_mem_blocks', 'yr_realloc', 'yr_object_set_integer', 'yr_object_destroy']

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

Directories in report

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