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

Fuzzer details

Fuzzer: fuzz_fileio

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 91 79.8%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 23 20.1%
All colors 114 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
78 14 google.cloud.storage.fileio.BlobReader.read call site: 00014 google.cloud.storage.blob.Blob._prep_and_do_download
13 97 google.cloud.storage.fileio.BlobReader.seek call site: 00097 google.cloud.storage._helpers._PropertyMixin.reload

Runtime coverage analysis

Covered functions
420
Functions that are reachable but not covered
59
Reachable functions
66
Percentage of reachable functions covered
10.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.
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_fileio 7
google.cloud.storage.fileio 8
google.cloud.storage.blob 43
google.cloud.storage._helpers 13
google.cloud._helpers 3
google.resumable_media._download 1
google.cloud.storage.bucket 1

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
google.protobuf.text_format._Parser._MergeField google.protobuf.text_format 3 ['N/A', 'N/A', 'N/A'] 11 0 18 23 12 218 9 733 712
google.oauth2._id_token_async.fetch_id_token google.oauth2._id_token_async 2 ['N/A', 'N/A'] 32 0 3 4 5 202 0 650 608
google.cloud.storage.blob.Blob._prep_and_do_upload google.cloud.storage.blob 16 ['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'] 7 0 5 2 4 174 4 564 442
google.api_core.operations_v1.transports.rest.OperationsRestTransport._list_operations google.api_core.operations_v1.transports.rest 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 8 0 3 2 4 93 0 326 263
mock.mock._patch.__enter__ mock.mock 1 ['N/A'] 5 0 5 38 18 63 1 231 204
google.auth._default._get_explicit_environ_credentials google.auth._default 1 ['N/A'] 7 0 3 2 4 100 1 318 196
google.protobuf.text_format._Printer.PrintFieldValue google.protobuf.text_format 3 ['N/A', 'N/A', 'N/A'] 11 0 14 12 8 197 14 663 142

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

Functions statically reachable by fuzzers
18.0%
458 / 2529
Cyclomatic complexity statically reachable by fuzzers
20.0%
1645 / 8380

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
mock.mock._patch.__enter__ 101 0 0.0% []
mock.mock._Call.__eq__ 38 1 2.631% []
mock.mock.create_autospec 69 0 0.0% []
re.findall 37 13 35.13% []
name.rstrip 72 12 16.66% []
google.cloud.storage.blob.Blob._do_multipart_upload 34 0 0.0% []
google.cloud.storage.blob.Blob._initiate_resumable_upload 34 0 0.0% []
google.cloud.storage.blob.Blob.compose 31 0 0.0% []
google.protobuf.descriptor_pool.DescriptorPool._ConvertMessageDescriptor 31 0 0.0% []
google.protobuf.descriptor_pool.DescriptorPool._SetFieldType 47 0 0.0% []
collections.OrderedDict.values 185 52 28.10% []
google.protobuf.internal.python_message._AddInitMethod.init 50 0 0.0% []
google.protobuf.internal.python_message._AddMergeFromStringMethod.InternalParse 32 0 0.0% []
google.protobuf.descriptor.MakeDescriptor 44 0 0.0% []
google.protobuf.internal.api_implementation._CanImport 43 21 48.83% []
google.protobuf.internal.decoder.EnumDecoder.DecodeField 31 13 41.93% []
google.protobuf.internal.decoder.MessageSetItemDecoder.DecodeItem 39 0 0.0% []
google.protobuf.text_format._Printer._PrintUnknownFields 35 0 0.0% []
google.protobuf.text_format._Printer.PrintFieldValue 31 0 0.0% []
google.protobuf.text_format._Parser._MergeField 73 0 0.0% []
google.protobuf.text_format._Parser._MergeScalarField 37 0 0.0% []
google.protobuf.internal.well_known_types.Timestamp.FromJsonString 38 0 0.0% []
pkg_resources.get_distribution 1578 24 1.520% []
response.content 429 86 20.04% []
cachetools.LRUCache 592 132 22.29% []
pyasn1_modules.pem.readPemBlocksFromFile 39 7 17.94% []
d.get 189 25 13.22% []
api.Authenticate 202 15 7.425% []
connection.get_api_base_url_for_mtls 231 70 30.30% ['fuzz_fileio']
url.find 206 54 26.21% []
google.cloud.storage._signing.generate_signed_url_v4 57 0 0.0% []
val.split 90 49 54.44% []
transport.request 140 34 24.28% []
google.cloud.storage.client.Client.__init__ 34 0 0.0% []
google.cloud.storage.client.Client.create_bucket 32 0 0.0% []
request.pop 40 12 30.0% []
urllib3.util.ssl_.create_urllib3_context 192 46 23.95% []

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
[] []
sys [] []
google.protobuf.internal.wire_format [] []
cffi [] []
google.protobuf.internal.field_mask [] []
google.auth.transport.mtls [] []
google.api_core.operations_v1.operations_async_client [] []
google.auth.crypt.es256 [] []
google.auth.compute_engine._metadata [] []
google.api_core.page_iterator_async [] []
google.protobuf [] []
google.protobuf.text_format [] []
google.rpc.status_pb2 [] []
google.protobuf.internal.extension_dict [] []
google.api_core.operations_v1.operations_client [] []
google.cloud.storage.notification [] []
google [] []
google._async_resumable_media._download [] []
subprocess [] []
google.api_core.datetime_helpers [] []
google.auth.compute_engine [] []
pprint [] []
google.cloud.storage.bucket ['fuzz_fileio'] []
google.api_core.extended_operation [] []
google.api_core.gapic_v1.method [] []
email [] []
google.api.billing_pb2 [] []
google.protobuf.descriptor [] []
google.auth._service_account_info [] []
google.api.routing_pb2 [] []
google.auth.transport._custom_tls_signer [] []
google.cloud.storage.acl [] []
google.oauth2._client_async [] []
time [] []
asyncio [] []
google.protobuf.internal.encoder [] []
google._async_resumable_media._helpers [] []
google.api_core.version [] []
google.api_core.operation [] []
google.auth.transport.urllib3 [] []
google.oauth2._service_account_async [] []
google.auth.crypt._python_rsa [] []
google.api_core.page_iterator [] []
google.api.endpoint_pb2 [] []
google.api [] []
google.auth._credentials_async [] []
google.api_core.grpc_helpers_async [] []
google.type.localized_text_pb2 [] []
google.cloud.storage.hmac_key [] []
google.oauth2._reauth_async [] []
google.protobuf.duration_pb2 [] []
uuid [] []
google.cloud.storage [] []
google.type [] []
google.oauth2.challenges [] []
google.auth.transport.requests [] []
google.api_core.operations_v1.transports [] []
copy [] []
google.protobuf.descriptor_pb2 [] []
google.cloud.storage.iam [] []
google.auth._jwt_async [] []
google.auth.external_account [] []
requests [] []
google._async_resumable_media._upload [] []
google.api_core.operations_v1.transports.base [] []
google.api_core.gapic_v1 [] []
distutils [] []
google.longrunning.operations_grpc [] []
google.api.source_info_pb2 [] []
warnings [] []
mock.mock [] []
google.api_core.future.async_future [] []
google.auth.crypt._cryptography_rsa [] []
google.cloud.storage.constants [] []
google.api_core.path_template [] []
google.rpc.context.audit_context_pb2 [] []
google.auth.iam [] []
google.resumable_media.requests.upload [] []
random [] []
datetime [] []
google.protobuf.service_reflection [] []
google.auth.external_account_authorized_user [] []
pyasn1 [] []
pkg_resources [] []
google.auth.transport.grpc [] []
hashlib [] []
google.resumable_media.requests [] []
google.api_core.retry_async [] []
google.protobuf.type_pb2 [] []
cachetools [] []
google.api.resource_pb2 [] []
google.cloud._testing [] []
importlib [] []
google.protobuf.proto_builder [] []
google.api_core.gapic_v1.client_info [] []
google.rpc.error_details_pb2 [] []
google._async_resumable_media.requests._request_helpers [] []
google.cloud.client [] []
urllib3 [] []
google.resumable_media._upload [] []
struct [] []
google.oauth2._credentials_async [] []
google.api.documentation_pb2 [] []
google.protobuf.timestamp_pb2 [] []
getpass [] []
hmac [] []
google.longrunning.operations_pb2 [] []
google.api_core.client_info [] []
google.rpc.code_pb2 [] []
rsa [] []
io [] []
google.protobuf.any_pb2 [] []
google.protobuf.internal.testing_refleaks [] []
google.auth.transport [] []
google.protobuf.internal.enum_type_wrapper [] []
google.api.client_pb2 [] []
inspect [] []
google.auth._default [] []
google.gapic.metadata [] []
google.cloud.storage.client [] []
google.cloud._http [] []
google.cloud.storage._helpers ['fuzz_fileio'] []
google.protobuf.symbol_database [] []
google.api_core.bidi [] []
google.longrunning.operations_grpc_pb2 [] []
google.api.distribution_pb2 [] []
google.auth._cloud_sdk [] []
google.api_core.future [] []
google.resumable_media.common [] []
google.auth._helpers [] []
http [] []
google.oauth2._client [] []
google.protobuf.descriptor_database [] []
google.protobuf.internal.containers [] []
google_crc32c [] []
google.auth.app_engine [] []
google.auth.identity_pool [] []
base64 [] []
xml [] []
google.api_core.gapic_v1.routing_header [] []
google.cloud.storage.transfer_manager [] []
google.cloud.obsolete [] []
google.rpc.context [] []
re [] []
google.protobuf.internal._parameterized [] []
google.longrunning.operations_proto [] []
mimetypes [] []
google.protobuf.internal.api_implementation [] []
google.cloud.version [] []
google.protobuf.message_factory [] []
google.cloud.operation [] []
google.longrunning.operations_pb2_grpc [] []
cryptography [] []
google.cloud.exceptions [] []
google.oauth2.utils [] []
google.type.quaternion_pb2 [] []
ctypes [] []
google.protobuf.text_encoding [] []
google.api_core.gapic_v1.config [] []
google.auth.crypt [] []
google.gapic.metadata.gapic_metadata_pb2 [] []
google._async_resumable_media.requests.upload [] []
google.type.color_pb2 [] []
google.auth.transport._http_client [] []
threading [] []
google.protobuf.field_mask_pb2 [] []
google.protobuf.pyext [] []
google.protobuf.internal.python_message [] []
google.api.system_parameter_pb2 [] []
google.api.annotations_pb2 [] []
platform [] []
aiohttp [] []
google._async_resumable_media.requests [] []
mock [] []
google.protobuf.source_context_pb2 [] []
google.type.dayofweek_pb2 [] []
google.api.field_behavior_pb2 [] []
google.type.decimal_pb2 [] []
OpenSSL [] []
google.auth.transport._mtls_helper [] []
google.type.money_pb2 [] []
google.api.http_pb2 [] []
google.oauth2.id_token [] []
grpc_status [] []
google.protobuf.json_format [] []
google.logging.type.http_request_pb2 [] []
google.protobuf.internal.builder [] []
google.type.fraction_pb2 [] []
google.api.error_reason_pb2 [] []
google.resumable_media._download ['fuzz_fileio'] []
google.protobuf.service [] []
google.rpc [] []
google.oauth2.sts [] []
google.auth._default_async [] []
google.type.latlng_pb2 [] []
google.auth.crypt.base [] []
google.api_core.operations_v1.abstract_operations_client [] []
google.protobuf.empty_pb2 [] []
google.api_core.timeout [] []
google.protobuf.compiler.plugin_pb2 [] []
google.api_core.iam [] []
google.api.monitored_resource_pb2 [] []
google.api_core.rest_helpers [] []
google.cloud.storage._signing [] []
google.api.visibility_pb2 [] []
google.api.config_change_pb2 [] []
google.api.log_pb2 [] []
google.api.quota_pb2 [] []
google.protobuf.internal.message_listener [] []
google.api_core.operations_v1.pagers [] []
google.cloud.storage.retry [] []
google.oauth2.gdch_credentials [] []
google.oauth2.reauth [] []
google.api_core.operations_v1 [] []
google.cloud.storage.batch [] []
...fuzz_fileio ['fuzz_fileio'] []
google.auth._exponential_backoff [] []
[] []
google.resumable_media.requests._request_helpers [] []
google.auth.transport._aiohttp_requests [] []
google.cloud.storage.fileio ['fuzz_fileio'] []
google.resumable_media [] []
mock.backports [] []
google.auth.environment_vars [] []
queue [] []
binascii [] []
contextlib [] []
google.api_core.protobuf_helpers [] []
pickle [] []
google.protobuf.internal [] []
google.protobuf.reflection [] []
google.api_core.future._helpers [] []
google.api_core.operation_async [] []
google.longrunning.operations_proto_pb2 [] []
google.oauth2._id_token_async [] []
google.api_core.operations_v1.transports.rest [] []
google.api_core [] []
google.api_core.grpc_helpers [] []
google.type.postal_address_pb2 [] []
google.cloud.storage.blob ['fuzz_fileio'] []
google.cloud.storage.version [] []
os [] []
certifi [] []
urllib [] []
google.logging.type.log_severity_pb2 [] []
google.auth.pluggable [] []
google.api_core.gapic_v1.config_async [] []
google.api.launch_stage_pb2 [] []
pyasn1_modules [] []
unittest [] []
google.api_core.exceptions [] []
google.type.timeofday_pb2 [] []
posixpath [] []
google.api.label_pb2 [] []
grpc_gcp [] []
google.api.httpbody_pb2 [] []
google.api_core.general_helpers [] []
google.auth [] []
google.auth.jwt [] []
google.rpc.context.attribute_context_pb2 [] []
google.cloud.extended_operations_pb2 [] []
google.auth.impersonated_credentials [] []
google.protobuf.internal.well_known_types [] []
operator [] []
google.api.policy_pb2 [] []
google.api_core.client_options [] []
google.auth.credentials [] []
google.auth._oauth2client [] []
google.api_core.gapic_v1.method_async [] []
google.api.backend_pb2 [] []
pkgutil [] []
google.oauth2.credentials [] []
typing [] []
google.api.context_pb2 [] []
google.api_core.future.base [] []
google.auth.downscoped [] []
math [] []
crcmod [] []
google.api.auth_pb2 [] []
google.protobuf.compiler [] []
google.auth.metrics [] []
google.protobuf.internal.decoder [] []
google.auth.crypt._helpers [] []
shutil [] []
google.api.usage_pb2 [] []
google.protobuf.internal.type_checkers [] []
functools [] []
google.protobuf.pyext.cpp_message [] []
google.api_core.rest_streaming [] []
google.api.metric_pb2 [] []
google.oauth2.service_account [] []
google.type.datetime_pb2 [] []
atheris [] []
google.type.month_pb2 [] []
google.api.logging_pb2 [] []
google.logging.type [] []
google.protobuf.api_pb2 [] []
google._upb._message [] []
google._async_resumable_media.requests.download [] []
google.auth.api_key [] []
grpc [] []
google.resumable_media.requests.download [] []
google.cloud.storage._http [] []
google.rpc.http_pb2 [] []
google.api_core.future.polling [] []
google.auth.compute_engine.credentials [] []
google.auth.version [] []
google.protobuf.wrappers_pb2 [] []
google.type.interval_pb2 [] []
google.type.phone_number_pb2 [] []
google.cloud.environment_vars [] []
google.type.calendar_period_pb2 [] []
google.protobuf.unknown_fields [] []
google.api.service_pb2 [] []
google.longrunning [] []
google.resumable_media._helpers [] []
google.protobuf.util [] []
logging [] []
copyreg [] []
google.type.expr_pb2 [] []
calendar [] []
google.auth.crypt.rsa [] []
google.api.monitoring_pb2 [] []
tempfile [] []
google.protobuf.descriptor_pool [] []
google.api.control_pb2 [] []
google.protobuf.message [] []
google.oauth2 [] []
collections [] []
google.api_core.operations_v1.operations_client_config [] []
google._async_resumable_media [] []
google.auth.exceptions [] []
gc [] []
google.cloud.location.locations_pb2 [] []
json [] []
google.auth.aws [] []
google.type.date_pb2 [] []
google.protobuf.struct_pb2 [] []
google.cloud._helpers ['fuzz_fileio'] []
google.api_core.retry [] []
google.api.consumer_pb2 [] []
weakref [] []

Directories in report

Directory