Fuzz introspector
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

Fuzzer details

Fuzzer: fuzz_websocket_parser

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 11 31.4%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 24 68.5%
All colors 35 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
6 23 websockets.frames.Frame.parse call site: 00023 .len
1 3 ...websockets.fuzzing.fuzz_websocket_parser.test_one_input call site: 00003 fdp.ConsumeInt
1 5 ...websockets.fuzzing.fuzz_websocket_parser.test_one_input call site: 00005 websockets.streams.StreamReader.__init__
1 7 websockets.streams.StreamReader.__init__ call site: 00007 websockets.streams.StreamReader.feed_data
1 30 websockets.frames.Frame.parse call site: 00030 extension.decode
1 32 websockets.frames.Frame.parse call site: 00032 .next

Runtime coverage analysis

Covered functions
56
Functions that are reachable but not covered
17
Reachable functions
22
Percentage of reachable functions covered
22.73%
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
...websockets.fuzzing.fuzz_websocket_parser 10
websockets.streams 2
websockets.frames 8
websockets.utils 2

Fuzzer: fuzz_http11_request_parser

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 2 6.89%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 27 93.1%
All colors 29 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
2 15 websockets.datastructures.Headers.update call site: 00015 .isinstance

Runtime coverage analysis

Covered functions
56
Functions that are reachable but not covered
18
Reachable functions
27
Percentage of reachable functions covered
33.33%
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
...websockets.fuzzing.fuzz_http11_request_parser 6
websockets.streams 2
websockets.http11 14
websockets.datastructures 5

Fuzzer: fuzz_http11_response_parser

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 5 13.5%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 32 86.4%
All colors 37 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
2 17 websockets.datastructures.Headers.update call site: 00017 .isinstance
2 30 websockets.http11.Response.parse call site: 00030 websockets.streams.StreamReader.read_exact
1 28 websockets.http11.parse_headers call site: 00028 .int

Runtime coverage analysis

Covered functions
56
Functions that are reachable but not covered
19
Reachable functions
30
Percentage of reachable functions covered
36.67%
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
...websockets.fuzzing.fuzz_http11_response_parser 6
websockets.streams 2
websockets.http11 17
websockets.datastructures 5

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
websockets.legacy.client.WebSocketClientProtocol.handshake websockets.legacy.client 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 9 0 6 9 7 168 0 556 481
websockets.sync.client.unix_connect websockets.sync.client 3 ['N/A', 'N/A', 'N/A'] 4 0 1 2 4 33 0 115 94
websockets.legacy.server.WebSocketServerProtocol.handler websockets.legacy.server 1 ['N/A'] 6 0 22 9 7 159 1 533 77
websockets.protocol.Protocol.parse websockets.protocol 1 ['N/A'] 5 0 11 5 5 32 1 118 57
websockets.sync.connection.Connection.recv_events websockets.sync.connection 1 ['N/A'] 3 0 14 6 5 17 0 66 44
websockets.server.ServerProtocol.accept websockets.server 2 ['N/A', 'N/A'] 4 0 6 5 5 59 0 189 40
websockets.legacy.server.Serve.__init__ websockets.legacy.server 23 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 2 0 4 9 7 18 1 65 37
websockets.legacy.protocol.WebSocketCommonProtocol.connection_lost websockets.legacy.protocol 2 ['N/A', 'N/A'] 3 0 8 7 6 11 0 39 36
websockets.extensions.permessage_deflate.ServerPerMessageDeflateFactory.process_request_params websockets.extensions.permessage_deflate 3 ['N/A', 'N/A', 'N/A'] 2 0 1 14 9 9 0 44 35

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

Functions statically reachable by fuzzers
39.0%
137 / 349
Cyclomatic complexity statically reachable by fuzzers
43.0%
555 / 1279

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 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
[] []
http [] []
websockets.legacy.handshake [] []
queue [] []
websockets.sync.messages [] []
websockets.legacy [] []
typing [] []
websockets.legacy.server [] []
secrets [] []
websockets.connection [] []
websockets.http [] []
websockets.sync.client [] []
websockets.legacy.auth [] []
selectors [] []
websockets.auth [] []
hashlib [] []
...websockets.fuzzing.fuzz_websocket_parser ['fuzz_websocket_parser'] []
websockets.legacy.framing [] []
inspect [] []
websockets.legacy.protocol [] []
warnings [] []
ctypes [] []
websockets.client [] []
websockets.sync [] []
argparse [] []
websockets.sync.connection [] []
base64 [] []
websockets.headers [] []
websockets.legacy.client [] []
dataclasses [] []
socket [] []
io [] []
codecs [] []
websockets.server [] []
websockets.extensions.permessage_deflate [] []
uuid [] []
speedups [] []
sys [] []
functools [] []
websockets.datastructures ['fuzz_http11_request_parser', 'fuzz_http11_response_parser'] []
hmac [] []
websockets.streams ['fuzz_websocket_parser', 'fuzz_http11_request_parser', 'fuzz_http11_response_parser'] []
websockets.legacy.http [] []
asyncio [] []
websockets.extensions.base [] []
pathlib [] []
threading [] []
time [] []
subprocess [] []
...websockets.fuzzing.fuzz_http11_request_parser ['fuzz_http11_request_parser'] []
os [] []
websockets.imports [] []
struct [] []
websockets.version [] []
websockets.sync.utils [] []
websockets.__main__ [] []
websockets.exceptions [] []
ssl [] []
atheris [] []
[] []
websockets.legacy.async_timeout [] []
websockets.uri [] []
websockets.extensions [] []
websockets.utils ['fuzz_websocket_parser'] []
websockets.sync.server [] []
websockets.typing [] []
...websockets.fuzzing.fuzz_http11_response_parser ['fuzz_http11_response_parser'] []
websockets [] []
websockets.protocol [] []
re [] []
zlib [] []
websockets.legacy.compatibility [] []
ipaddress [] []
collections [] []
logging [] []
random [] []
websockets.frames ['fuzz_websocket_parser'] []
websockets.http11 ['fuzz_http11_request_parser', 'fuzz_http11_response_parser'] []

Directories in report

Directory