CWE-320

Key Management Errors. [Authentication-Errors, Communication-Channel-Errors, Data-Integrity-Issues, Key-Management-Errors, Improper-Access-Control]

Required inputs: IR

Weaknesses in this category are related to errors in the management of cryptographic keys.Excerpts from CWE [https://cwe.mitre.org], Copyright (C) 2006-2026, the MITRE Corporation. See 9.4 3rd-Party Licenses in the documentation for full details.

Possible Messages

Key

Text

Severity

Disabled

missing_verification

TLS/SSL handshake performed without prior peer verification.

None

False

Options

handshake_functions

handshake_functions

Type: list[str]

Default: ['SSL_do_handshake', 'BIO_do_handshake', 'wolfSSL_connect', 'wolfSSL_accept', 'mbedtls_ssl_handshake', 'gnutls_handshake']

Functions that perform (or complete) a TLS/SSL handshake.
 

verification_functions

verification_functions

Type: list[str]

Default: ['SSL_CTX_set_verify', 'SSL_set_verify', 'wolfSSL_CTX_set_verify', 'wolfSSL_set_verify', 'mbedtls_ssl_conf_authmode', 'gnutls_certificate_set_verify_function']

Functions that configure certificate/peer verification for a TLS session or context.