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

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 13 38.2%
gold [1:9] 4 11.7%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 17 50.0%
All colors 34 100

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
2609 2645 7 :

['ObjectIsStorage', 'CryptSecretEncrypt', 'ProduceOuterWrap', 'HandleToObject', 'MemoryCopy', 'CryptHashGetDigestSize', 'TpmFail']

2609 2645 TPM2_Rewrap call site: 00000 /src/libtpms/src/tpm2/DuplicationCommands.c:202
2563 2566 3 :

['RcSafeAddToResult', 'UnwrapOuter', 'CryptSecretDecrypt']

5225 5300 TPM2_Rewrap call site: 00000 /src/libtpms/src/tpm2/DuplicationCommands.c:169
1608 1608 2 :

['IsAuthPolicyAvailable', 'CheckPolicyAuthSession']

3338 3572 CheckAuthSession call site: 00000 /src/libtpms/src/tpm2/SessionProcess.c:1427
1488 1488 1 :

['CheckSessionHMAC']

1730 1789 CheckAuthSession call site: 00000 /src/libtpms/src/tpm2/SessionProcess.c:1451
1442 1442 2 :

['IsSessionBindEntity', 'SessionGet']

4780 5271 CheckAuthSession call site: 00000 /src/libtpms/src/tpm2/SessionProcess.c:1388
1344 2613 2 :

['PCRComputeCurrentDigest', 'SignAttestInfo']

1344 2613 TPM2_Quote call site: 00000 /src/libtpms/src/tpm2/AttestationCommands.c:182
1297 1297 2 :

['CryptSecretDecrypt', 'CryptIsAsymAlgorithm']

1297 2861 TPM2_StartAuthSession call site: 00000 /src/libtpms/src/tpm2/SessionCommands.c:81
1263 1397 4 :

['RcSafeAddToResult', 'EntityGetAuthValue', 'CryptParameterDecryption', 'DecryptSize']

1263 1397 ParseSessionBuffer call site: 00000 /src/libtpms/src/tpm2/SessionProcess.c:1658
1260 1391 3 :

['EntityGetAuthValue', 'CryptParameterEncryption', 'EncryptSize']

2710 5512 BuildResponseSession call site: 00000 /src/libtpms/src/tpm2/SessionProcess.c:2110
1248 1248 1 :

['OpenSSLCryptRsaGenerateKey']

2493 2497 CryptRsaGenerateKey call site: 00000 /src/libtpms/src/tpm2/crypto/openssl/CryptRsa.c:1474
242 299 4 :

['NvGetIndexInfo', 'NvGetUINT64Data', 'TpmFail', 'NvWriteUINT64Data']

242 299 CheckAuthSession call site: 00000 /src/libtpms/src/tpm2/SessionProcess.c:1459
79 229 5 :

['SetLabelAndContext', 'PublicAttributesValidation', 'TpmFail', 'DRBG_InstantiateSeededKdf', 'RuntimeProfileRequiresAttributeFlags']

1387 4568 TPM2_CreateLoaded call site: 00000 /src/libtpms/src/tpm2/ObjectCommands.c:577

Runtime coverage analysis

Covered functions
1026
Functions that are reachable but not covered
4
Reachable functions
15
Percentage of reachable functions covered
73.33%
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
tests/fuzz.cc 2
src/tpm_library.c 9
src/tpm_memory.c 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
TPM2_SetState /src/libtpms/src/tpm_tpm2_interface.c 3 ['int', 'N/A', 'int'] 20 0 210 40 12 648 0 3284 3278
TPM_Process_DAAJoin /src/libtpms/src/tpm12/tpm_daa.c 7 ['N/A', 'N/A', 'short', 'int', 'int', 'N/A', 'N/A'] 17 0 966 155 44 448 0 2479 2317
TPM2_Process /src/libtpms/src/tpm_tpm2_interface.c 5 ['N/A', 'N/A', 'N/A', 'N/A', 'int'] 26 0 200 26 10 715 0 3230 969
TPM2_CreatePrimary /src/libtpms/src/tpm2/HierarchyCommands.c 2 ['N/A', 'N/A'] 56 0 241 22 10 481 0 2145 603
TPM_Process_GetCapabilitySigned /src/libtpms/src/tpm12/tpm_process.c 7 ['N/A', 'N/A', 'short', 'int', 'int', 'N/A', 'N/A'] 17 0 858 136 50 415 0 2288 543
TPM_Process_CMK_CreateKey /src/libtpms/src/tpm12/tpm_migration.c 7 ['N/A', 'N/A', 'short', 'int', 'int', 'N/A', 'N/A'] 17 0 940 153 53 409 0 2253 395
TPM12_ValidateState /src/libtpms/src/tpm_tpm12_interface.c 2 ['int', 'int'] 14 0 164 29 8 284 0 1400 369

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

Functions statically reachable by fuzzers
55.0%
1373 / 2515
Cyclomatic complexity statically reachable by fuzzers
45.0%
8201 / 18213

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

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
[] []
/src/libtpms/src/tpm12/tpm_delegate.c [] []
/src/libtpms/src/tpm2/TpmEcc_Util.c [] []
/src/libtpms/src/tpm2/BnMath.c [] []
/src/libtpms/src/tpm2/Cancel.c [] []
/src/libtpms/src/tpm2/TpmEcc_Signature_ECDAA.c [] []
/src/libtpms/src/tpm2/Volatile.c [] []
/src/libtpms/src/tpm2/Bits.c [] []
/src/libtpms/src/tpm12/tpm_crypto.c [] []
/src/libtpms/src/tpm12/tpm_time.c [] []
/src/libtpms/src/tpm2/Utils.h [] []
/src/libtpms/src/tpm2/ResponseCodeProcessing.c [] []
/src/libtpms/src/tpm12/tpm_storage.c [] []
/src/libtpms/src/tpm2/crypto/openssl/TpmToOsslSupport.c [] []
/src/libtpms/src/tpm2/BnMemory.c [] []
/src/libtpms/src/tpm2/ClockCommands.c [] []
/src/libtpms/src/tpm2/crypto/openssl/CryptEccSignature.c [] []
/src/libtpms/src/tpm12/tpm_load.c [] []
/src/libtpms/src/tpm2/TpmEcc_Signature_SM2.c [] []
/src/libtpms/src/tpm2/CommandDispatcher.c [] []
/src/libtpms/src/tpm2/AttestationCommands.c [] []
/src/libtpms/src/tpm_memory.c ['fuzz'] ['fuzz']
/src/libtpms/src/tpm2/TpmBigNumThunks.c [] []
/src/libtpms/src/tpm2/TpmEcc_Signature_Util.c [] []
/src/libtpms/src/tpm2/Unmarshal.c [] []
/src/libtpms/src/tpm12/tpm_sizedbuffer.c [] []
/src/libtpms/src/tpm2/crypto/openssl/CryptEccMain.c [] []
/src/libtpms/src/tpm2/AsymmetricCommands.c [] []
/src/libtpms/src/tpm2/crypto/openssl/CryptEccCrypt.c [] []
/src/libtpms/src/tpm2/Locality.c [] []
/src/libtpms/src/tpm12/tpm_store.c [] []
/src/libtpms/src/tpm2/NVReserved.c [] []
/src/libtpms/src/tpm2/SigningCommands.c [] []
/src/libtpms/src/tpm2/TestingCommands.c [] []
/src/libtpms/src/tpm2/PlatformACT.c [] []
/src/libtpms/src/tpm2/SessionCommands.c [] []
/src/libtpms/src/tpm2/Time.c [] []
/src/libtpms/src/tpm2/EphemeralCommands.c [] []
/src/libtpms/src/tpm2/crypto/openssl/CryptEccKeyExchange.c [] []
/src/libtpms/src/tpm2/Memory.c [] []
/src/libtpms/src/tpm2/IoBuffers.c [] []
/src/libtpms/src/tpm2/PPPlat.c [] []
/src/libtpms/src/tpm12/tpm_owner.c [] []
/src/libtpms/src/tpm2/CommandCodeAttributes.c [] []
/src/libtpms/src/tpm12/tpm_audit.c [] []
/src/libtpms/src/tpm2/TpmMath_Util.c [] []
/src/libtpms/src/tpm2/ACT_spt.c [] []
/src/libtpms/src/tpm_tpm2_tis.c [] []
/src/libtpms/src/tpm2/Marshal.c [] []
/src/libtpms/src/tpm2/Entity.c [] []
/src/libtpms/src/tpm_library.c ['fuzz'] ['fuzz']
/src/libtpms/src/tpm2/crypto/openssl/CryptDes.c [] []
/src/libtpms/src/tpm2/Response.c [] []
/src/libtpms/src/tpm2/NVMem.c [] []
/src/libtpms/src/tpm2/AlgorithmTests.c [] []
/src/libtpms/src/tpm12/tpm_openssl_helpers.c [] []
/src/libtpms/src/tpm2/NVMarshal.c [] []
/src/libtpms/src/tpm12/tpm_ver.c [] []
/src/libtpms/src/tpm2/crypto/openssl/TpmToOsslDesSupport.c [] []
/src/libtpms/src/tpm2/crypto/openssl/Helpers.c [] []
/src/libtpms/src/tpm2/AuditCommands.c [] []
/src/libtpms/src/tpm2/HierarchyCommands.c [] []
/src/libtpms/src/tpm2/X509_spt.c [] []
/src/libtpms/src/tpm2/PP.c [] []
/src/libtpms/src/tpm2/CryptSelfTest.c [] []
/src/libtpms/src/tpm2/RunCommand.c [] []
/src/libtpms/src/tpm2/TpmAsn1.c [] []
/src/libtpms/src/tpm2/Hierarchy.c [] []
/src/libtpms/src/tpm2/Power.c [] []
/src/libtpms/src/tpm2/HashCommands.c [] []
/src/libtpms/src/tpm12/tpm_session.c [] []
/src/libtpms/src/tpm2/DA.c [] []
/src/libtpms/src/tpm2/CryptUtil.c [] []
/src/libtpms/src/tpm2/StartupCommands.c [] []
/src/libtpms/src/tpm2/PCR.c [] []
/src/libtpms/src/tpm2/Session.c [] []
/src/libtpms/src/tpm12/tpm_secret.c [] []
/src/libtpms/src/tpm12/tpm_auth.c [] []
/src/libtpms/src/tpm2/ExecCommand.c [] []
/src/libtpms/src/tpm2/crypto/CryptRsa.h [] []
/src/libtpms/src/tpm2/NVDynamic.c [] []
/src/libtpms/src/tpm12/tpm_libtpms_io.c [] []
/src/libtpms/src/tpm2/RuntimeCommands.c [] []
/src/libtpms/src/tpm2/crypto/openssl/CryptHash.c [] []
/src/libtpms/src/tpm2/EncryptDecrypt_spt.c [] []
/src/libtpms/src/tpm_tpm12_interface.c [] []
/src/libtpms/src/tpm2/Ticket.c [] []
/src/libtpms/src/tpm2/BackwardsCompatibilityBitArray.c [] []
/src/libtpms/src/tpm2/RuntimeProfile.c [] []
/src/libtpms/src/tpm12/tpm_init.c [] []
/src/libtpms/src/tpm2/ManagementCommands.c [] []
/src/libtpms/src/tpm2/TpmEcc_Signature_Schnorr.c [] []
/src/libtpms/src/tpm2/crypto/openssl/CryptCmac.c [] []
/src/libtpms/src/tpm2/TpmFail.c [] []
/src/libtpms/src/tpm2/crypto/openssl/BnToOsslMath.c [] []
/src/libtpms/src/tpm2/Entropy.c [] []
/src/libtpms/src/tpm12/tpm_transport.c [] []
/src/libtpms/src/tpm2/BnConvert.c [] []
/src/libtpms/src/tpm12/tpm_pcr.c [] []
/src/libtpms/src/tpm_debug.c [] []
/src/libtpms/src/tpm12/tpm_nvram.c [] []
/src/libtpms/src/tpm2/Object_spt.c [] []
/src/libtpms/src/tpm2/SymmetricCommands.c [] []
/src/libtpms/src/tpm2/DuplicationCommands.c [] []
/src/libtpms/src/tpm2/NV_spt.c [] []
/src/libtpms/src/tpm2/BackwardsCompatibilityObject.c [] []
/src/libtpms/src/tpm2/NVCommands.c [] []
/src/libtpms/src/tpm2/PropertyCap.c [] []
/src/libtpms/tests/fuzz.cc ['fuzz'] ['fuzz']
/src/libtpms/src/tpm2/crypto/openssl/CryptSym.c [] []
/src/libtpms/src/tpm12/tpm_startup.c [] []
/src/libtpms/src/tpm12/tpm_cryptoh.c [] []
/src/libtpms/src/tpm2/RuntimeAttributes.c [] []
/src/libtpms/src/tpm12/tpm_nonce.c [] []
/src/libtpms/src/tpm2/Policy_spt.c [] []
/src/libtpms/src/tpm2/CapabilityCommands.c [] []
/src/libtpms/src/tpm12/tpm_process.c [] []
/src/libtpms/src/tpm2/ContextCommands.c [] []
/src/libtpms/src/tpm2/X509_ECC.c [] []
/src/libtpms/src/tpm2/Handle.c [] []
/src/libtpms/src/tpm12/tpm_permanent.c [] []
/src/libtpms/src/tpm12/tpm_counter.c [] []
/src/libtpms/src/tpm2/IntegrityCommands.c [] []
/src/libtpms/src/tpm12/tpm_admin.c [] []
/src/libtpms/src/tpm2/TPMCmdp.c [] []
/src/libtpms/src/tpm2/crypto/openssl/CryptRand.c [] []
/src/libtpms/src/tpm2/Context_spt.c [] []
/src/libtpms/src/tpm2/X509_RSA.c [] []
/src/libtpms/src/tpm2/crypto/openssl/CryptPrime.c [] []
/src/libtpms/src/tpm12/tpm_platform.c [] []
/src/libtpms/src/tpm2/Object.c [] []
/src/libtpms/src/tpm2/StateMarshal.c [] []
/src/libtpms/src/tpm2/MathOnByteBuffers.c [] []
/src/libtpms/src/tpm2/EACommands.c [] []
/src/libtpms/src/tpm2/ExtraData.c [] []
/src/libtpms/src/tpm2/LibtpmsCallbacks.c [] []
/src/libtpms/src/tpm2/AlgorithmCap.c [] []
/src/libtpms/src/tpm2/Clock.c [] []
/src/libtpms/src/tpm_nvfile.c [] []
/src/libtpms/src/tpm12/tpm_migration.c [] []
/src/libtpms/src/tpm2/VendorInfo.c [] []
/src/libtpms/src/tpm2/Attest_spt.c [] []
/src/libtpms/src/tpm2/PowerPlat.c [] []
/src/libtpms/src/tpm2/RandomCommands.c [] []
/src/libtpms/src/tpm2/crypto/openssl/CryptRsa.c [] []
/src/libtpms/src/tpm2/LocalityPlat.c [] []
/src/libtpms/src/tpm2/ObjectCommands.c [] []
/src/libtpms/src/tpm2/BnEccConstants.c [] []
/src/libtpms/src/tpm2/SessionProcess.c [] []
/src/libtpms/src/tpm12/tpm_global.c [] []
/src/libtpms/src/tpm2/crypto/openssl/CryptPrimeSieve.c [] []
/src/libtpms/src/tpm_tpm12_tis.c [] []
/src/libtpms/src/tpm2/PlatformPCR.c [] []
/src/libtpms/src/tpm2/RuntimeAlgorithm.c [] []
/src/libtpms/src/tpm12/tpm_key.c [] []
/src/libtpms/src/tpm12/tpm_ticks.c [] []
/src/libtpms/src/tpm2/Manufacture.c [] []
/src/libtpms/src/tpm2/CommandAudit.c [] []
/src/libtpms/src/tpm12/tpm_digest.c [] []
/src/libtpms/src/tpm2/crypto/openssl/CryptSmac.c [] []
/src/libtpms/src/tpm2/crypto/openssl/ExpDCache.c [] []
/src/libtpms/src/tpm_tpm2_interface.c [] []
/src/libtpms/src/tpm12/tpm_daa.c [] []
/src/libtpms/src/tpm2/DictionaryCommands.c [] []
/src/libtpms/src/tpm2/TpmEcc_Signature_ECDSA.c [] []
/src/libtpms/src/tpm12/tpm_identity.c [] []

Directories in report

Directory
/src/libtpms/src/tpm12/
/src/libtpms/src/tpm2/crypto/openssl/
/src/libtpms/src/
/src/libtpms/src/tpm2/
/src/libtpms/src/tpm2/crypto/
/src/libtpms/tests/