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

Fuzzer details

Fuzzer: fuzz_crawl

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 280 100.%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 0 0.0%
All colors 280 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
279 0 EP call site: 00000 scrapy.crawler.CrawlerRunner.crawl

Runtime coverage analysis

Covered functions
62
Functions that are reachable but not covered
163
Reachable functions
164
Percentage of reachable functions covered
0.61%
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
/ 1
...fuzz_crawl 6
scrapy.crawler 54
scrapy.utils.log 27
scrapy.settings 26
scrapy.utils.versions 5
scrapy.utils.ssl 2
scrapy.utils.misc 9
scrapy.utils.reactor 18
scrapy.middleware 13
scrapy.core.engine 26
scrapy.core.scraper 7

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
scrapy.commands.shell.Command.run scrapy.commands.shell 3 ['N/A', 'N/A', 'N/A'] 6 0 4 3 4 82 0 263 223
scrapy.cmdline.execute scrapy.cmdline 2 ['N/A', 'N/A'] 7 0 9 4 5 123 2 388 149
scrapy.linkextractors.lxmlhtml.LxmlLinkExtractor.extract_links scrapy.linkextractors.lxmlhtml 2 ['N/A', 'N/A'] 6 0 2 2 4 51 1 164 143
scrapy.spiders.feed.XMLFeedSpider._parse scrapy.spiders.feed 3 ['N/A', 'N/A', 'N/A'] 5 0 2 4 5 66 0 214 140
scrapy.pipelines.files.FilesPipeline.media_downloaded scrapy.pipelines.files 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 5 0 6 2 4 52 0 169 119
scrapy.downloadermiddlewares.httpcompression.HttpCompressionMiddleware.process_response scrapy.downloadermiddlewares.httpcompression 4 ['N/A', 'N/A', 'N/A', 'N/A'] 5 0 2 6 5 48 0 159 106
scrapy.commands.check.Command.run scrapy.commands.check 3 ['N/A', 'N/A', 'N/A'] 4 0 7 4 5 62 0 198 105

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

Functions statically reachable by fuzzers
12.0%
179 / 1499
Cyclomatic complexity statically reachable by fuzzers
13.0%
623 / 4879

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
[] []
protego [] []
scrapy.utils.engine [] []
scrapy.commands.list [] []
scrapy.commands.edit [] []
scrapy.downloadermiddlewares.httpcompression [] []
scrapy.http.response.json [] []
threading [] []
scrapy.downloadermiddlewares.cookies [] []
lxml [] []
scrapy.utils.ssl ['fuzz_crawl'] []
scrapy.resolver [] []
scrapy.spidermiddlewares.httperror [] []
scrapy.exceptions [] []
parsel [] []
scrapy.exporters [] []
scrapy.utils.benchserver [] []
scrapy.http.response [] []
scrapy.core.downloader.contextfactory [] []
scrapy.spiders.init [] []
scrapy.robotstxt [] []
scrapy.utils.request [] []
traceback [] []
scrapy.extensions.debug [] []
scrapy.core.downloader.handlers.http11 [] []
scrapy.http.cookies [] []
scrapy.extensions.spiderstate [] []
scrapy.utils.deprecate [] []
subprocess [] []
scrapy.templates.project.module [] []
scrapy.statscollectors [] []
gc [] []
scrapy [] []
scrapy.core.downloader.handlers.s3 [] []
scrapy.core.http2.stream [] []
scrapy.extensions.memusage [] []
sys [] []
scrapy.commands.parse [] []
collections [] []
scrapy.downloadermiddlewares.downloadtimeout [] []
scrapy.core.downloader.tls [] []
itemadapter [] []
scrapy.loader [] []
OpenSSL [] []
mimetypes [] []
scrapy.core.downloader.webclient [] []
typing [] []
scrapy.spiderloader [] []
scrapy.utils.test [] []
scrapy.commands.crawl [] []
scrapy.http.request.json_request [] []
scrapy.commands.bench [] []
scrapy.__main__ [] []
scrapy.pipelines.files [] []
scrapy.middleware ['fuzz_crawl'] []
unittest [] []
scrapy.commands.fetch [] []
ftplib [] []
scrapy.core.http2.protocol [] []
scrapy.extensions [] []
scrapy.utils.conf [] []
scrapy.logformatter [] []
copy [] []
pdb [] []
scrapy.commands.settings [] []
scrapy.core.engine ['fuzz_crawl'] []
os [] []
itertools [] []
scrapy.contracts.default [] []
importlib [] []
reppy [] []
scrapy.interfaces [] []
tempfile [] []
shlex [] []
scrapy.downloadermiddlewares [] []
lzma [] []
scrapy.utils.url [] []
scrapy.settings ['fuzz_crawl'] []
scrapy.commands.version [] []
hashlib [] []
scrapy.http [] []
scrapy.utils.job [] []
time [] []
atheris [] []
scrapy.utils.template [] []
binascii [] []
xml [] []
scrapy.utils.decorators [] []
scrapy.extensions.statsmailer [] []
PIL [] []
scrapy.downloadermiddlewares.stats [] []
robotexclusionrulesparser [] []
tldextract [] []
scrapy.pqueues [] []
pickle [] []
scrapy.extension [] []
marshal [] []
scrapy.core.http2.agent [] []
ctypes [] []
scrapy.utils.defer [] []
scrapy.core.downloader.handlers [] []
scrapy.shell [] []
scrapy.extensions.closespider [] []
scrapy.responsetypes [] []
base64 [] []
scrapy.utils.response [] []
scrapy.http.response.html [] []
brotli [] []
urllib [] []
signal [] []
scrapy.extensions.throttle [] []
scrapy.extensions.httpcache [] []
scrapy.spidermiddlewares.urllength [] []
scrapy.commands.shell [] []
scrapy.downloadermiddlewares.ajaxcrawl [] []
scrapy.templates.project.module.spiders [] []
scrapy.selector [] []
scrapy.utils.console [] []
scrapy.extensions.corestats [] []
scrapy.http.headers [] []
scrapy.linkextractors [] []
zlib [] []
scrapy.commands.genspider [] []
scrapy.utils.trackref [] []
scrapy.utils.display [] []
scrapy.core.http2 [] []
boto3 [] []
scrapy.utils.reactor ['fuzz_crawl'] []
twisted [] []
scrapy.settings.default_settings [] []
scrapy.core.scheduler [] []
scrapy.http.request [] []
scrapy.utils.asyncgen [] []
string [] []
scrapy.extensions.periodic_log [] []
http [] []
scrapy.contracts [] []
packaging [] []
socket [] []
h2 [] []
datetime [] []
scrapy.spiders.feed [] []
scrapy.utils.iterators [] []
scrapy.commands.view [] []
scrapy.utils.python [] []
scrapy.extensions.memdebug [] []
scrapy.signalmanager [] []
scrapy.dupefilters [] []
readline [] []
pydispatch [] []
scrapy.utils.gz [] []
asyncio [] []
scrapy.utils.serialize [] []
scrapy.utils.boto [] []
scrapy.downloadermiddlewares.httpcache [] []
weakref [] []
ast [] []
google [] []
scrapy.spidermiddlewares [] []
code [] []
scrapy.extensions.telnet [] []
scrapy.crawler ['fuzz_crawl'] []
scrapy.pipelines.media [] []
scrapy.utils.httpobj [] []
scrapy.utils.testsite [] []
scrapy.core.downloader.handlers.file [] []
gzip [] []
scrapy.extensions.logstats [] []
scrapy.spidermiddlewares.depth [] []
scrapy.utils.signal [] []
scrapy.core.downloader.handlers.datauri [] []
scrapy.downloadermiddlewares.useragent [] []
configparser [] []
logging [] []
scrapy.core.downloader.handlers.http2 [] []
scrapy.downloadermiddlewares.httpauth [] []
io [] []
scrapy.utils [] []
argparse [] []
scrapy.link [] []
csv [] []
scrapy.addons [] []
scrapy.downloadermiddlewares.retry [] []
scrapy.utils.testproc [] []
IPython [] []
scrapy.cmdline [] []
scrapy.utils.ftp [] []
w3lib [] []
scrapy.squeues [] []
scrapy.pipelines [] []
scrapy.utils.versions ['fuzz_crawl'] []
bpython [] []
scrapy.core.scraper ['fuzz_crawl'] []
scrapy.linkextractors.lxmlhtml [] []
scrapy.core [] []
scrapy.http.request.form [] []
json [] []
pathlib [] []
scrapy.downloadermiddlewares.robotstxt [] []
scrapy.http.request.rpc [] []
warnings [] []
functools [] []
scrapy.utils.spider [] []
scrapy.utils.log ['fuzz_crawl'] []
scrapy.extensions.feedexport [] []
scrapy.utils.project [] []
scrapy.downloadermiddlewares.redirect [] []
zope [] []
...fuzz_crawl ['fuzz_crawl'] []
scrapy.mail [] []
zstandard [] []
scrapy.commands.check [] []
scrapy.utils.sitemap [] []
scrapy.spiders.sitemap [] []
scrapy.core.downloader.middleware [] []
scrapy.selector.unified [] []
scrapy.core.downloader.handlers.ftp [] []
inspect [] []
scrapy.core.downloader.handlers.http10 [] []
scrapy.http.response.text [] []
scrapy.pipelines.images [] []
scrapy.spidermiddlewares.referer [] []
shutil [] []
scrapy.core.spidermw [] []
ipaddress [] []
scrapy.extensions.postprocessing [] []
scrapy.downloadermiddlewares.httpproxy [] []
scrapy.spidermiddlewares.offsite [] []
pkgutil [] []
scrapy.utils.curl [] []
contextlib [] []
scrapy.utils.ossignal [] []
email [] []
operator [] []
scrapy.http.response.xml [] []
scrapy.commands [] []
xmlrpc [] []
scrapy.downloadermiddlewares.defaultheaders [] []
pygments [] []
[] []
scrapy.spiders.crawl [] []
scrapy.item [] []
re [] []
pprint [] []
scrapy.utils.datatypes [] []
scrapy.signals [] []
scrapy.core.downloader [] []
random [] []
cProfile [] []
scrapy.commands.startproject [] []
scrapy.utils.misc ['fuzz_crawl'] []
bz2 [] []
scrapy.spiders [] []
posixpath [] []
scrapy.commands.runspider [] []
scrapy.core.downloader.handlers.http [] []
platform [] []

Directories in report

Directory