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

Fuzzer details

Fuzzer: fuzz_helpers

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 12 31.5%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 26 68.4%
All colors 38 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 21 google.cloud._helpers._rfc3339_nanos_to_datetime call site: 00021 datetime.datetime.strptime
2 5 ...fuzz_helpers.TestOneInput call site: 00005 .isinstance
2 32 google.cloud._helpers._name_from_project_path call site: 00032 match.group
1 16 google.cloud._helpers._time_from_iso8601_time_naive call site: 00016 datetime.datetime.strptime
1 35 ...fuzz_helpers.TestOneInput call site: 00035 fdp.ConsumeString

Runtime coverage analysis

Covered functions
229
Functions that are reachable but not covered
17
Reachable functions
21
Percentage of reachable functions covered
19.05%
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_helpers 9
google.cloud._helpers 12

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'] 12 0 18 23 12 206 9 689 674
google.oauth2._id_token_async.fetch_id_token google.oauth2._id_token_async 2 ['N/A', 'N/A'] 19 0 3 4 5 214 0 693 657
google.api_core.operations_v1.transports.rest.OperationsRestTransport._list_operations google.api_core.operations_v1.transports.rest 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 8 0 3 2 4 93 0 326 260
google.auth._default._get_explicit_environ_credentials google.auth._default 1 ['N/A'] 7 0 3 2 4 99 1 315 180
google.protobuf.text_format._Printer.PrintFieldValue google.protobuf.text_format 3 ['N/A', 'N/A', 'N/A'] 13 0 14 12 8 185 14 619 145
google.api_core.operations_v1.transports.rest.OperationsRestTransport.__init__ google.api_core.operations_v1.transports.rest 12 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 5 0 4 2 4 50 0 163 127
google.auth.aws.RequestSigner.get_request_options google.auth.aws 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 3 0 1 4 5 27 1 87 63

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

Functions statically reachable by fuzzers
19.0%
345 / 1815
Cyclomatic complexity statically reachable by fuzzers
21.0%
1236 / 5970

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
re.match 42 17 40.47% []
urllib3.response.MultiDecoder 618 137 22.16% []
m.groupdict 34 6 17.64% []
cachetools.LRUCache 592 132 22.29% []
key.split 258 76 29.45% []
url.find 206 60 29.12% []
d.get 188 24 12.76% []
api.Authenticate 202 15 7.425% []
connection.close 70 18 25.71% []
google.protobuf.descriptor_pool.DescriptorPool._ConvertMessageDescriptor 31 0 0.0% []
google.protobuf.descriptor_pool.DescriptorPool._SetFieldType 47 0 0.0% []
name.rstrip 67 13 19.40% []
google.protobuf.internal.api_implementation._CanImport 43 21 48.83% []
google.protobuf.internal.python_message._AddInitMethod.init 50 0 0.0% []
google.protobuf.internal.python_message._AddMergeFromStringMethod.InternalParse 38 0 0.0% []
google.protobuf.descriptor.MakeDescriptor 44 0 0.0% []
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% []
collections.OrderedDict.values 238 76 31.93% []
google.protobuf.internal.well_known_types.Timestamp.FromJsonString 38 0 0.0% []
methods.items 55 19 34.54% []
request.pop 103 46 44.66% []
urllib3.util.ssl_.create_urllib3_context 176 53 30.11% []

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

Directories in report

Directory