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: fuzz_filter

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 352 47.7%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 385 52.2%
All colors 737 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
62 543 soupsieve.css_match.CSSMatch.match_selectors call site: 00543 soupsieve.css_match._DocumentNav.get_attribute_by_name
30 695 soupsieve.css_match.CSSMatch.match_selectors call site: 00695 soupsieve.css_match.CSSMatch.match_dir
20 204 soupsieve.css_parser.CSSParser.parse_pseudo_class call site: 00204 soupsieve.css_parser.CSSParser.parse_selectors
18 618 soupsieve.css_match.CSSMatch.match_lang call site: 00618 soupsieve.css_match._DocumentNav.iter_attributes
15 679 soupsieve.css_match.CSSMatch.match_selectors call site: 00679 soupsieve.css_match._DocumentNav.get_attribute_by_name
13 7 bs4.BeautifulSoup.__init__ call site: 00007 bs4.builder.TreeBuilderRegistry.lookup
11 141 soupsieve.css_parser.CSSParser.parse_selectors call site: 00141 .print
11 452 soupsieve.css_match._DocumentNav.get_next call site: 00452 soupsieve.css_match._DocumentNav.is_content_string
9 438 soupsieve.css_match._DocumentNav.is_special_string call site: 00438 soupsieve.css_match._DocumentNav.is_cdata
8 43 bs4.BeautifulSoup.__init__ call site: 00043 bs4.BeautifulSoup._decode_markup
8 670 soupsieve.css_match.CSSMatch.match_selectors call site: 00670 soupsieve.css_match._DocumentNav.get_attribute_by_name
8 726 soupsieve.css_match.CSSMatch.match_selectors call site: 00726 soupsieve.css_match.SoupSieve.match

Runtime coverage analysis

Covered functions
337
Functions that are reachable but not covered
155
Reachable functions
253
Percentage of reachable functions covered
38.74%
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
/ 1
...fuzz_filter 5
bs4 37
bs4.builder 7
bs4.element 4
soupsieve 7
soupsieve.css_parser 80
soupsieve.util 3
soupsieve.css_match 124
soupsieve.css_types 2

Fuzzer: fuzz_match

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 332 45.9%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 390 54.0%
All colors 722 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
62 525 soupsieve.css_match.CSSMatch.match_selectors call site: 00525 soupsieve.css_match._DocumentNav.get_attribute_by_name
31 676 soupsieve.css_match.CSSMatch.match_selectors call site: 00676 soupsieve.css_match.CSSMatch.match_dir
20 208 soupsieve.css_parser.CSSParser.parse_pseudo_class call site: 00208 soupsieve.css_parser.CSSParser.parse_selectors
18 600 soupsieve.css_match.CSSMatch.match_lang call site: 00600 soupsieve.css_match._DocumentNav.iter_attributes
15 660 soupsieve.css_match.CSSMatch.match_selectors call site: 00660 soupsieve.css_match._DocumentNav.get_attribute_by_name
13 12 bs4.BeautifulSoup.__init__ call site: 00012 bs4.builder.TreeBuilderRegistry.lookup
11 145 soupsieve.css_parser.CSSParser.parse_selectors call site: 00145 .print
8 48 bs4.BeautifulSoup.__init__ call site: 00048 bs4.BeautifulSoup._decode_markup
8 651 soupsieve.css_match.CSSMatch.match_selectors call site: 00651 soupsieve.css_match._DocumentNav.get_attribute_by_name
7 200 soupsieve.css_parser.CSSParser.parse_pseudo_class call site: 00200 soupsieve.css_types.SelectorList.__init__
6 30 bs4.builder.TreeBuilderRegistry.lookup call site: 00030 .len
6 40 bs4.BeautifulSoup.__init__ call site: 00040 warnings.warn

Runtime coverage analysis

Covered functions
337
Functions that are reachable but not covered
139
Reachable functions
241
Percentage of reachable functions covered
42.32%
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
/ 1
...fuzz_match 8
bs4 37
bs4.builder 7
bs4.element 4
soupsieve 8
soupsieve.css_parser 80
soupsieve.util 3
soupsieve.css_match 110
soupsieve.css_types 2

Fuzzer: fuzz_select

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 326 45.8%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 385 54.1%
All colors 711 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
62 521 soupsieve.css_match.CSSMatch.match_selectors call site: 00521 soupsieve.css_match._DocumentNav.get_attribute_by_name
31 672 soupsieve.css_match.CSSMatch.match_selectors call site: 00672 soupsieve.css_match.CSSMatch.match_dir
20 204 soupsieve.css_parser.CSSParser.parse_pseudo_class call site: 00204 soupsieve.css_parser.CSSParser.parse_selectors
18 596 soupsieve.css_match.CSSMatch.match_lang call site: 00596 soupsieve.css_match._DocumentNav.iter_attributes
15 656 soupsieve.css_match.CSSMatch.match_selectors call site: 00656 soupsieve.css_match._DocumentNav.get_attribute_by_name
13 8 bs4.BeautifulSoup.__init__ call site: 00008 bs4.builder.TreeBuilderRegistry.lookup
11 141 soupsieve.css_parser.CSSParser.parse_selectors call site: 00141 .print
8 44 bs4.BeautifulSoup.__init__ call site: 00044 bs4.BeautifulSoup._decode_markup
8 647 soupsieve.css_match.CSSMatch.match_selectors call site: 00647 soupsieve.css_match._DocumentNav.get_attribute_by_name
7 196 soupsieve.css_parser.CSSParser.parse_pseudo_class call site: 00196 soupsieve.css_types.SelectorList.__init__
6 26 bs4.builder.TreeBuilderRegistry.lookup call site: 00026 .len
6 36 bs4.BeautifulSoup.__init__ call site: 00036 warnings.warn

Runtime coverage analysis

Covered functions
337
Functions that are reachable but not covered
136
Reachable functions
236
Percentage of reachable functions covered
42.37%
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
/ 1
...fuzz_select 5
bs4 37
bs4.builder 7
bs4.element 4
soupsieve 6
soupsieve.css_parser 80
soupsieve.util 3
soupsieve.css_match 110
soupsieve.css_types 2

Fuzzer: fuzz_closest

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 326 45.2%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 394 54.7%
All colors 720 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
62 521 soupsieve.css_match.CSSMatch.match_selectors call site: 00521 soupsieve.css_match._DocumentNav.get_attribute_by_name
31 672 soupsieve.css_match.CSSMatch.match_selectors call site: 00672 soupsieve.css_match.CSSMatch.match_dir
20 204 soupsieve.css_parser.CSSParser.parse_pseudo_class call site: 00204 soupsieve.css_parser.CSSParser.parse_selectors
18 596 soupsieve.css_match.CSSMatch.match_lang call site: 00596 soupsieve.css_match._DocumentNav.iter_attributes
15 656 soupsieve.css_match.CSSMatch.match_selectors call site: 00656 soupsieve.css_match._DocumentNav.get_attribute_by_name
13 8 bs4.BeautifulSoup.__init__ call site: 00008 bs4.builder.TreeBuilderRegistry.lookup
11 141 soupsieve.css_parser.CSSParser.parse_selectors call site: 00141 .print
8 44 bs4.BeautifulSoup.__init__ call site: 00044 bs4.BeautifulSoup._decode_markup
8 647 soupsieve.css_match.CSSMatch.match_selectors call site: 00647 soupsieve.css_match._DocumentNav.get_attribute_by_name
7 196 soupsieve.css_parser.CSSParser.parse_pseudo_class call site: 00196 soupsieve.css_types.SelectorList.__init__
6 26 bs4.builder.TreeBuilderRegistry.lookup call site: 00026 .len
6 36 bs4.BeautifulSoup.__init__ call site: 00036 warnings.warn

Runtime coverage analysis

Covered functions
337
Functions that are reachable but not covered
136
Reachable functions
241
Percentage of reachable functions covered
43.57%
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
/ 1
...fuzz_closest 7
bs4 37
bs4.builder 7
bs4.element 4
soupsieve 8
soupsieve.css_parser 80
soupsieve.util 3
soupsieve.css_match 111
soupsieve.css_types 2

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.

/src/fuzz_filter.py

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=['soupsieve.css_match.CSSMatch.match_selectors', 'soupsieve.css_parser.CSSParser.parse_pseudo_class', 'soupsieve.css_match.CSSMatch.match_lang', 'bs4.BeautifulSoup.__init__', 'soupsieve.css_parser.CSSParser.parse_selectors', 'soupsieve.css_match._DocumentNav.get_next', 'soupsieve.css_match._DocumentNav.is_special_string']

/src/fuzz_match.py

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=['soupsieve.css_match.CSSMatch.match_selectors', 'soupsieve.css_parser.CSSParser.parse_pseudo_class', 'soupsieve.css_match.CSSMatch.match_lang', 'bs4.BeautifulSoup.__init__', 'soupsieve.css_parser.CSSParser.parse_selectors']

/src/fuzz_select.py

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=['soupsieve.css_match.CSSMatch.match_selectors', 'soupsieve.css_parser.CSSParser.parse_pseudo_class', 'soupsieve.css_match.CSSMatch.match_lang', 'bs4.BeautifulSoup.__init__', 'soupsieve.css_parser.CSSParser.parse_selectors']

/src/fuzz_closest.py

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=['soupsieve.css_match.CSSMatch.match_selectors', 'soupsieve.css_parser.CSSParser.parse_pseudo_class', 'soupsieve.css_match.CSSMatch.match_lang', 'bs4.BeautifulSoup.__init__', 'soupsieve.css_parser.CSSParser.parse_selectors']

Runtime coverage analysis

This section shows analysis of runtime coverage data.

For futher technical details on how this section is generated, please see the Glossary .

Complex functions with low coverage

Func name Function total lines Lines covered at runtime percentage covered Reached by fuzzers
soupsieve.css_match.Inputs.parse_value 49 2 4.081% ['fuzz_filter', 'fuzz_select', 'fuzz_closest', 'fuzz_match']
soupsieve.css_match.CSSMatch.extended_language_filter 33 0 0.0% ['fuzz_filter', 'fuzz_select', 'fuzz_closest', 'fuzz_match']
soupsieve.css_match.CSSMatch.match_nth 80 36 45.0% ['fuzz_filter', 'fuzz_select', 'fuzz_closest', 'fuzz_match']
soupsieve.css_match.CSSMatch.match_indeterminate.get_parent_form 47 0 0.0% ['fuzz_filter', 'fuzz_select', 'fuzz_closest', 'fuzz_match']
soupsieve.css_match.CSSMatch.match_lang 63 34 53.96% ['fuzz_filter', 'fuzz_select', 'fuzz_closest', 'fuzz_match']
soupsieve.css_match.CSSMatch.match_dir 39 0 0.0% ['fuzz_filter', 'fuzz_select', 'fuzz_closest', 'fuzz_match']
bs4.builder._html5lib.TextNode.cloneNode 72 0 0.0% []
bs4.element.PageElement.insert 36 18 50.0% ['fuzz_filter', 'fuzz_select', 'fuzz_closest', 'fuzz_match']
bs4.element.SoupStrainer._matches 49 4 8.163% ['fuzz_filter', 'fuzz_select', 'fuzz_closest', 'fuzz_match']
bs4.element.ResultSet.__getattr__ 315 106 33.65% ['fuzz_filter', 'fuzz_select', 'fuzz_closest', 'fuzz_match']
html.entities.codepoint2name.items 994 51 5.130% ['fuzz_filter', 'fuzz_select', 'fuzz_closest']
bs4.dammit.chardet_dammit 374 149 39.83% ['fuzz_filter', 'fuzz_select', 'fuzz_closest', 'fuzz_match']
match.group 40 21 52.5% ['fuzz_filter', 'fuzz_select', 'fuzz_closest']
bs4.builder._lxml.LXMLTreeBuilder.test_fragment_to_document 96 15 15.62% ['fuzz_filter', 'fuzz_select', 'fuzz_closest', 'fuzz_match']

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
[] []
copy [] []
soupsieve ['fuzz_filter', 'fuzz_match', 'fuzz_select', 'fuzz_closest'] []
os [] []
soupsieve.css_parser ['fuzz_filter', 'fuzz_match', 'fuzz_select', 'fuzz_closest'] []
soupsieve.util ['fuzz_filter', 'fuzz_match', 'fuzz_select', 'fuzz_closest'] []
html5lib [] []
bs4.builder._htmlparser [] []
...fuzz_match ['fuzz_match'] []
bs4.builder ['fuzz_filter', 'fuzz_match', 'fuzz_select', 'fuzz_closest'] []
cProfile [] []
logging [] []
traceback [] []
soupsieve.__meta__ [] []
tempfile [] []
warnings [] []
bs4.builder._lxml [] []
functools [] []
bs4.element ['fuzz_filter', 'fuzz_match', 'fuzz_select', 'fuzz_closest'] []
re [] []
bs4 ['fuzz_filter', 'fuzz_match', 'fuzz_select', 'fuzz_closest'] []
pickle [] []
collections [] []
bs4.formatter [] []
atheris [] []
unicodedata [] []
bs4.diagnose [] []
datetime [] []
bs4.builder._html5lib [] []
[] []
cchardet [] []
chardet [] []
io [] []
bs4.testing [] []
random [] []
codecs [] []
soupsieve.pretty [] []
typing [] []
soupsieve.css_types ['fuzz_filter', 'fuzz_match', 'fuzz_select', 'fuzz_closest'] []
html [] []
copyreg [] []
lxml [] []
pstats [] []
unittest [] []
soupsieve.css_match ['fuzz_filter', 'fuzz_match', 'fuzz_select', 'fuzz_closest'] []
sys [] []
time [] []
...fuzz_select ['fuzz_select'] []
bs4.dammit [] []
...fuzz_closest ['fuzz_closest'] []
...fuzz_filter ['fuzz_filter'] []

Directories in report

Directory