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_looker

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 43 35.5%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 78 64.4%
All colors 121 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
33 81 ...fuzz_looker.TestOneInput call site: 00081 looker_sdk.rtl.api_methods.APIMethods.post
2 31 looker_sdk.rtl.api_settings.ApiSettings._clean_input call site: 00031 warnings.warn
2 115 ...fuzz_looker.TestOneInput call site: 00115 looker_sdk.rtl.api_methods.APIMethods.post
1 9 ...fuzz_looker.TestOneInput call site: 00009 looker_sdk._settings
1 36 looker_sdk.rtl.api_settings.ApiSettings._clean_input call site: 00036 value.strip
1 41 looker_sdk.rtl.api_settings.ApiSettings._bool call site: 00041 val.lower
1 53 looker_sdk.rtl.api_methods.APIMethods.__init__ call site: 00053 looker_sdk.rtl.auth_session.AuthSession.__init__
1 62 looker_sdk.rtl.auth_token.AuthToken.set_token call site: 00062 datetime.timedelta
1 119 ...fuzz_looker.TestOneInput call site: 00119 fdp.ConsumeUnicodeNoSurrogates

Runtime coverage analysis

Covered functions
541
Functions that are reachable but not covered
55
Reachable functions
82
Percentage of reachable functions covered
32.93%
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_looker 16
looker_sdk 6
looker_sdk.rtl.api_settings 26
looker_sdk.rtl.requests_transport 4
looker_sdk.rtl.api_methods 13
looker_sdk.rtl.auth_session 2
looker_sdk.rtl.auth_token 5
mock.mock 7
looker_sdk.sdk.api40.methods 2
looker_sdk.error 8

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
looker_sdk.rtl.requests_transport.RequestsTransport.request looker_sdk.rtl.requests_transport 7 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 9 0 3 5 5 235 0 769 730
mock.mock._patch.__enter__ mock.mock 1 ['N/A'] 6 0 5 39 19 77 1 275 242
requests.adapters.HTTPAdapter.send requests.adapters 7 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 5 0 3 10 7 78 0 258 105
requests.auth.HTTPDigestAuth.handle_401 requests.auth 3 ['N/A', 'N/A', 'N/A'] 4 0 7 3 4 38 0 126 105
requests.utils.extract_zipped_paths requests.utils 1 ['N/A'] 2 0 2 5 5 16 1 53 50
mock.mock.NonCallableMock.assert_called_with mock.mock 3 ['N/A', 'N/A', 'N/A'] 4 0 1 2 4 14 1 49 40
mock.mock._patch_dict.__call__ mock.mock 2 ['N/A', 'N/A'] 3 0 0 2 4 23 0 74 35
requests.models.Response.iter_lines requests.models 4 ['N/A', 'N/A', 'N/A', 'N/A'] 3 0 3 4 5 12 0 44 35

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

Functions statically reachable by fuzzers
13.0%
166 / 1313
Cyclomatic complexity statically reachable by fuzzers
16.0%
654 / 4191

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

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
mock.mock._patch.__enter__ 105 38 36.19% ['fuzz_looker']
mock.mock._Call.__eq__ 38 1 2.631% ['fuzz_looker']
mock.mock.create_autospec 80 0 0.0% []
looker_sdk.sdk.api40.models.Alert.__init__ 34 7 20.58% ['fuzz_looker']
looker_sdk.sdk.api40.models.BoardItem.__init__ 41 14 34.14% ['fuzz_looker']
looker_sdk.sdk.api40.models.CredentialsEmail.__init__ 31 17 54.83% ['fuzz_looker']
looker_sdk.sdk.api40.models.Dashboard.__init__ 54 5 9.259% ['fuzz_looker']
looker_sdk.sdk.api40.models.DashboardElement.__init__ 49 19 38.77% ['fuzz_looker']
looker_sdk.sdk.api40.models.DBConnection.__init__ 70 8 11.42% ['fuzz_looker']
looker_sdk.sdk.api40.models.Folder.__init__ 37 19 51.35% ['fuzz_looker']
looker_sdk.sdk.api40.models.HomepageItem.__init__ 44 16 36.36% ['fuzz_looker']
looker_sdk.sdk.api40.models.Integration.__init__ 32 14 43.75% ['fuzz_looker']
looker_sdk.sdk.api40.models.LDAPConfig.__init__ 48 5 10.41% ['fuzz_looker']
looker_sdk.sdk.api40.models.Look.__init__ 39 8 20.51% ['fuzz_looker']
looker_sdk.sdk.api40.models.LookmlModelExplore.__init__ 44 5 11.36% ['fuzz_looker']
looker_sdk.sdk.api40.models.LookmlModelExploreField.__init__ 64 5 7.812% ['fuzz_looker']
looker_sdk.sdk.api40.models.LookWithDashboards.__init__ 68 36 52.94% ['fuzz_looker']
looker_sdk.sdk.api40.models.LookWithQuery.__init__ 40 7 17.5% ['fuzz_looker']
looker_sdk.sdk.api40.models.OIDCConfig.__init__ 41 8 19.51% ['fuzz_looker']
looker_sdk.sdk.api40.models.Query.__init__ 48 22 45.83% ['fuzz_looker']
looker_sdk.sdk.api40.models.QueryTask.__init__ 42 23 54.76% ['fuzz_looker']
looker_sdk.sdk.api40.models.RenderTask.__init__ 42 22 52.38% ['fuzz_looker']
looker_sdk.sdk.api40.models.SamlConfig.__init__ 42 9 21.42% ['fuzz_looker']
looker_sdk.sdk.api40.models.ScheduledPlan.__init__ 52 14 26.92% ['fuzz_looker']
looker_sdk.sdk.api40.models.Setting.__init__ 31 6 19.35% ['fuzz_looker']
looker_sdk.sdk.api40.models.ThemeSettings.__init__ 51 6 11.76% ['fuzz_looker']
looker_sdk.sdk.api40.models.User.__init__ 52 15 28.84% ['fuzz_looker']
looker_sdk.sdk.api40.models.WriteDashboardElement.__init__ 35 15 42.85% ['fuzz_looker']
looker_sdk.sdk.api40.models.WriteDBConnection.__init__ 70 24 34.28% ['fuzz_looker']
looker_sdk.sdk.api40.models.WriteDBConnectionOverride.__init__ 35 14 40.0% ['fuzz_looker']
looker_sdk.sdk.api40.models.WriteLDAPConfig.__init__ 38 4 10.52% ['fuzz_looker']
looker_sdk.sdk.api40.models.WriteOIDCConfig.__init__ 31 7 22.58% ['fuzz_looker']
looker_sdk.sdk.api40.models.WriteScheduledPlan.__init__ 38 8 21.05% ['fuzz_looker']
name.replace 67 13 19.40% ['fuzz_looker']
p.copy 53 9 16.98% ['fuzz_looker']
requests.sessions.SessionRedirectMixin.resolve_redirects 50 0 0.0% []
requests.sessions.Session.send 36 0 0.0% []
requests.utils.super_len 32 0 0.0% []
collections.OrderedDict.pop 234 76 32.47% ['fuzz_looker']
requests.models.RequestEncodingMixin._encode_files 38 0 0.0% []
requests.models.PreparedRequest.prepare_url 39 0 0.0% []
requests.models.PreparedRequest.prepare_body 38 0 0.0% []
requests.auth.HTTPDigestAuth.build_digest_header.sha512_utf8 44 0 0.0% []
requests.adapters.HTTPAdapter.send 45 0 0.0% []
request.method.upper 108 49 45.37% ['fuzz_looker']
v.isoformat 47 6 12.76% ['fuzz_looker']
urllib3.util.ssl_.create_urllib3_context.load_verify_locations 181 82 45.30% ['fuzz_looker']
urllib3.util.retry.Retry.from_int 175 61 34.85% ['fuzz_looker']
urllib3.poolmanager.PoolManager.clear 244 87 35.65% ['fuzz_looker']
urllib3.contrib.socks.SOCKSProxyManager 83 9 10.84% ['fuzz_looker']
url.strip 204 60 29.41% ['fuzz_looker']
urllib3.fields.RequestField.make_multipart 93 20 21.50% ['fuzz_looker']
urllib3.filepost.encode_multipart_formdata 37 13 35.13% ['fuzz_looker']
d.items 32 9 28.12% ['fuzz_looker']
response.value.decode 658 142 21.58% ['fuzz_looker']
typing_extensions.TypedDict.__annotations__.keys 1787 491 27.47% ['fuzz_looker']

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
[] []
typing [] []
threading [] []
requests.compat [] []
warnings [] []
platform [] []
requests.help [] []
looker_sdk.rtl.api_settings ['fuzz_looker'] []
json [] []
looker_sdk.rtl.api_methods ['fuzz_looker'] []
mock.mock ['fuzz_looker'] []
looker_sdk.sdk.api40.methods ['fuzz_looker'] []
importlib [] []
cattr [] []
looker_sdk.error ['fuzz_looker'] []
...fuzz_looker ['fuzz_looker'] []
looker_sdk.sdk.api40.models [] []
requests.certs [] []
urllib3 [] []
dateutil [] []
looker_sdk.rtl [] []
[] []
io [] []
looker_sdk.rtl.serialize [] []
logging [] []
looker_sdk.rtl.requests_transport ['fuzz_looker'] []
simplejson [] []
requests.sessions [] []
looker_sdk.version [] []
looker_sdk.rtl.model [] []
looker_sdk ['fuzz_looker'] []
requests.packages [] []
datetime [] []
looker_sdk.sdk.constants [] []
mock.backports [] []
contextlib [] []
looker_sdk.rtl.constants [] []
calendar [] []
idna [] []
looker_sdk.rtl.hooks [] []
requests.cookies [] []
socket [] []
hashlib [] []
looker_sdk.sdk [] []
netrc [] []
requests.structures [] []
os [] []
winreg [] []
tempfile [] []
re [] []
codecs [] []
functools [] []
struct [] []
charset_normalizer [] []
time [] []
looker_sdk.rtl.auth_session ['fuzz_looker'] []
requests.utils [] []
looker_sdk.rtl.auth_token ['fuzz_looker'] []
requests.models [] []
sys [] []
cryptography [] []
configparser [] []
looker_sdk.rtl.transport [] []
attr [] []
requests.api [] []
mock [] []
pprint [] []
inspect [] []
zipfile [] []
looker_sdk.sdk.api40 [] []
requests [] []
copy [] []
http [] []
dummy_threading [] []
chardet [] []
requests._internal_utils [] []
typing_extensions [] []
requests.adapters [] []
urllib [] []
requests.__version__ [] []
certifi [] []
base64 [] []
requests.hooks [] []
unittest [] []
collections [] []
requests.status_codes [] []
dataclasses [] []
requests.exceptions [] []
requests.auth [] []
asyncio [] []
secrets [] []
atheris [] []

Directories in report

Directory