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

Fuzzer details

Fuzzer: fuzz_serialization

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 67 45.5%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 80 54.4%
All colors 147 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
32 22 jupyter_client.session.json_packer call site: 00022 jupyter_client.jsonutil.json_clean
10 9 jupyter_client.session.Session._check_packers call site: 00009 jupyter_client.jsonutil.squash_dates
6 55 jupyter_client.session.Session._check_packers call site: 00055 jupyter_client.session.Session._check_packers.
6 106 jupyter_client.session.Session.msg call site: 00106 fdp.ConsumeBytes
5 65 jupyter_client.session.Session._check_packers call site: 00065 jupyter_client.session.Session._check_packers.
3 142 jupyter_client.jsonutil.parse_date call site: 00142 warnings.warn
2 97 jupyter_client.session.Session._new_auth call site: 00097 traitlets.log.get_logger
2 103 jupyter_client.session.Session.msg call site: 00103 .isinstance
1 136 jupyter_client.jsonutil.extract_dates call site: 00136 jupyter_client.jsonutil.extract_dates

Runtime coverage analysis

Covered functions
253
Functions that are reachable but not covered
55
Reachable functions
71
Percentage of reachable functions covered
22.54%
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_serialization 9
jupyter_client.session 29
jupyter_client.jsonutil 30
jupyter_server.services.kernels.connection.base 13

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
jupyter_server.serverapp.ServerApp.initialize jupyter_server.serverapp 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 7 0 18 5 5 149 0 485 458
jupyter_server.auth.decorator.authorized.wrapper.inner jupyter_server.auth.decorator 3 ['N/A', 'N/A', 'N/A'] 4 0 1 6 5 142 0 458 406
jupyter_server.services.contents.manager.ContentsManager.copy jupyter_server.services.contents.manager 3 ['N/A', 'N/A', 'N/A'] 9 0 4 8 6 110 0 360 303
jupyter_client.manager.in_pending_state.wrapper jupyter_client.manager 3 ['N/A', 'N/A', 'N/A'] 5 0 5 2 4 66 0 215 176
jupyter_client.localinterfaces._load_ips jupyter_client.localinterfaces 1 ['N/A'] 4 0 3 2 4 41 2 132 117
jupyter_server.auth.identity.IdentityProvider._get_user jupyter_server.auth.identity 2 ['N/A', 'N/A'] 3 0 5 8 6 42 1 136 100
jupyter_server.services.kernels.kernelmanager.MappingKernelManager._async_start_kernel jupyter_server.services.kernels.kernelmanager 4 ['N/A', 'N/A', 'N/A', 'N/A'] 6 0 8 6 5 85 0 272 95

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

Functions statically reachable by fuzzers
17.0%
234 / 1416
Cyclomatic complexity statically reachable by fuzzers
18.0%
836 / 4759

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

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
jupyter_client.session.Session.send 41 0 0.0% []
jupyter_client.session.Session.deserialize 41 0 0.0% []
os.walk 98 33 33.67% []
re.compile 163 75 46.01% []
jupyter_client.jsonutil.json_clean 31 0 0.0% ['fuzz_serialization']
q.append 44 22 50.0% []
traitlets.Instance.remove_kernel_spec 1736 359 20.67% []
loop.spawn_callback 281 103 36.65% []
traitlets.config.configurable.LoggingConfigurable.__init__ 258 87 33.72% []
stream.on_recv_stream 731 115 15.73% []
jupyter_client.client.KernelClient._async_execute_interactive 53 0 0.0% []
asyncio.Lock 92 45 48.91% []
jupyter_core.utils.ensure_dir_exists 106 45 42.45% []
time.perf_counter 493 179 36.30% []
jupyter_client.connect.write_connection_file 55 0 0.0% []
tornado.concurrent.Future 83 39 46.98% []
paths.items 443 55 12.41% []
importlib_metadata.EntryPoint 407 203 49.87% []
glob.glob 31 14 45.16% []
platform.system 123 36 29.26% []
tornado.httpserver.HTTPServer 127 44 34.64% []
jupyter_client.launcher.launch_kernel 54 1 1.851% []
jupyter_client.multikernelmanager.MultiKernelManager.list_kernel_ids 33 0 0.0% []
packaging.version.Version 167 72 43.11% []
tornado.netutil.bind_sockets 232 65 28.01% []
tornado.httpclient.AsyncHTTPClient.fetch 245 70 28.57% []
jupyter_server.base.handlers.JupyterHandler.prepare 31 0 0.0% []
tornado.web.RequestHandler.write_message 1429 313 21.90% []
inspect.iscoroutinefunction 632 122 19.30% []
template.render 494 108 21.86% []
tornado.log.app_log.exception 115 27 23.47% []
resources.get 1578 2 0.126% []
traitlets.config.application.Application.launch_instance 519 144 27.74% []
extensions.items 1480 561 37.90% []
tornado.httputil.format_timestamp 435 115 26.43% []
tornado.escape.json_encode 126 44 34.92% []
traitlets.config.loader.JSONFileConfigLoader.load_config 587 153 26.06% []
future.add_done_callback 415 88 21.20% []
zmq.eventloop.zmqstream.ZMQStream 278 75 26.97% []
connection.disconnect 450 66 14.66% []
tornado.gen.with_timeout 322 77 23.91% []
itertools.count 62 11 17.74% []
tornado.websocket.WebSocketHandler.ping 745 163 21.87% []
parser.parse_args 816 376 46.07% []

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
[] []
jupyter_client.session ['fuzz_serialization'] []
jupyter_server.services.nbconvert.handlers [] []
jupyter_server.auth.authorizer [] []
dateutil [] []
jupyter_server.services.contents.checkpoints [] []
jupyter_server.extension.manager [] []
jupyter_client.utils [] []
jupyter_client.blocking.client [] []
jupyter_server.serverapp [] []
jupyter_server.kernelspecs.handlers [] []
jupyter_server.view [] []
jupyter_server.gateway.handlers [] []
ipykernel [] []
platform [] []
jupyter_server.services.kernelspecs.handlers [] []
json [] []
importlib_metadata [] []
jupyter_server.prometheus.metrics [] []
jupyter_server.traittypes [] []
_winapi [] []
jupyter_client.connect [] []
sys [] []
jupyter_server.services.sessions.handlers [] []
jupyter_server.services.events.handlers [] []
jupyter_server.services.api [] []
jupyter_server.auth.security [] []
websocket [] []
zipfile [] []
hashlib [] []
jupyter_client [] []
jupyter_server.pytest_plugin [] []
os [] []
pysqlite2 [] []
jupyter_client.ssh.forward [] []
jupyter_server.services.kernels.connection.base ['fuzz_serialization'] []
jupyter_server.base.call_context [] []
jupyter_server.extension.application [] []
jupyter_server.extension.config [] []
jupyter_client.ioloop.manager [] []
jupyter_server.services.kernels.connection [] []
jupyter_server.terminal.api_handlers [] []
jupyter_client.provisioning.local_provisioner [] []
ast [] []
jupyter_server.terminal.terminalmanager [] []
subprocess [] []
signal [] []
nbformat [] []
datetime [] []
jupyter_client.provisioning.factory [] []
jupyter_client.clientabc [] []
jupyter_server.services.kernels.connection.channels [] []
jupyter_server.gateway.connections [] []
atexit [] []
jupyter_server.services.kernelspecs [] []
jupyter_client.channelsabc [] []
jupyter_client.jsonutil ['fuzz_serialization'] []
socketserver [] []
jupyter_client.win_interrupt [] []
jupyter_client.runapp [] []
jupyter_server.services.contents.largefilemanager [] []
jupyter_server.services.sessions.sessionmanager [] []
jupyter_server.base.websocket [] []
jupyter_server.auth.login [] []
jupyter_server.extension.utils [] []
jupyter_server.extension.serverextension [] []
jupyter_client.consoleapp [] []
prometheus_client [] []
jupyter_server.services.kernels.connection.abc [] []
struct [] []
jupyter_client.ioloop.restarter [] []
jupyter_server._version [] []
jupyter_server.services.config [] []
jupyter_server.prometheus [] []
jupyter_server.services [] []
ipaddress [] []
jupyter_client.channels [] []
jupyter_client.multikernelmanager [] []
http [] []
threading [] []
copy [] []
jupyter_server.base.zmqhandlers [] []
[] []
jupyter_server.nbconvert [] []
pathlib [] []
jupyter_client.threaded [] []
jupyter_client.asynchronous [] []
jupyter_client.ssh [] []
getpass [] []
colorama [] []
jupyter_server.auth [] []
stat [] []
socket [] []
textwrap [] []
jupyter_client.adapter [] []
find_connection_file [] []
jupyter_client.managerabc [] []
send2trash [] []
jupyter_server.files [] []
argparse [] []
jupyter_server.services.nbconvert [] []
hmac [] []
shutil [] []
jupyter_client.ioloop [] []
jupyter_server.auth.identity [] []
itertools [] []
notebook [] []
jupyter_client.client [] []
pickle [] []
warnings [] []
multiprocessing [] []
jupyter_server.services.shutdown [] []
jupyter_server.services.contents.filecheckpoints [] []
jupyter_server.auth.decorator [] []
jupyter_client.provisioning [] []
jupyter_server.terminal.handlers [] []
jupyter_client.kernelapp [] []
uuid [] []
time [] []
asyncio [] []
jinja2 [] []
jupyter_server.services.kernels.websocket [] []
jupyter_server.services.config.handlers [] []
re [] []
jupyter_server.services.kernels.handlers [] []
netifaces [] []
tunnel_to_kernel [] []
nbconvert [] []
concurrent [] []
jupyter_client.asynchronous.client [] []
jupyter_server._sysinfo [] []
jupyter_client.provisioning.provisioner_base [] []
jupyter_server.services.config.manager [] []
packaging [] []
jupyter_server.services.contents.filemanager [] []
_subprocess [] []
jupyter_server.services.events [] []
atheris [] []
types [] []
sqlite3 [] []
binascii [] []
jupyter_client.kernelspec [] []
jupyter_core [] []
tornado [] []
jupyter_client.localinterfaces [] []
base64 [] []
jupyter_server.auth.logout [] []
typing [] []
math [] []
jupyter_server.prometheus.log_functions [] []
abc [] []
jupyter_server.terminal [] []
contextvars [] []
queue [] []
dataclasses [] []
functools [] []
jupyter_server.transutils [] []
jupyter_server.files.handlers [] []
pexpect [] []
jupyter_server.i18n [] []
glob [] []
jupyter_server.log [] []
...fuzz_serialization ['fuzz_serialization'] []
resource [] []
email [] []
gettext [] []
jupyter_server.auth.__main__ [] []
urllib [] []
jupyter_client.kernelspecapp [] []
jupyter_server.services.security.handlers [] []
traitlets [] []
IPython [] []
jupyter_server [] []
mimetypes [] []
jupyter_client._version [] []
jupyter_server.services.contents.fileio [] []
jupyter_server.utils [] []
jupyter_server.services.contents [] []
tempfile [] []
traceback [] []
jupyter_client.manager [] []
jupyter_server.base.handlers [] []
jupyter_server.services.contents.handlers [] []
jupyter_server.gateway [] []
jupyter_server.__main__ [] []
importlib [] []
paramiko [] []
jupyter_server.auth.utils [] []
jupyter_server.services.sessions [] []
ctypes [] []
jupyter_server.nbconvert.handlers [] []
jupyter_client.blocking [] []
jupyter_client.restarter [] []
select [] []
inspect [] []
jupyter_server._tz [] []
io [] []
logging [] []
jupyter_server.extension.handler [] []
random [] []
zmq [] []
jupyter_server.services.api.handlers [] []
jupyter_events [] []
collections [] []
jupyter_server.extension [] []
pprint [] []
jupyter_client.ssh.tunnel [] []
jupyter_server.config_manager [] []
fnmatch [] []
jupyter_server.services.kernels [] []
jupyter_server.kernelspecs [] []
jupyter_client.launcher [] []
jupyter_server.view.handlers [] []
jupyter_server.gateway.managers [] []
jupyter_server.services.security [] []
jupyter_server.gateway.gateway_client [] []
webbrowser [] []
jupyter_server.services.kernels.kernelmanager [] []
anyio [] []
jupyter_server.services.contents.manager [] []
weakref [] []
argon2 [] []
jupyter_server.base [] []

Directories in report

Directory