CWE-528

Exposure of Core Dump File to an Unauthorized Control Sphere. [Improper-Access-Control, Improper-Control-Of-A-Resource-Through-Its-Lifetime]

Required inputs: IR

The product generates a core dump file in a directory, archive, or other resource that is stored, transferred, or otherwise made accessible to unauthorized actors.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

sensitive_data_may_written_to_disk

Ensure that sensitive data is not written out to disk.

None

False

Options

critical_routines_pattern

critical_routines_pattern : typing.Pattern[str] = 'authenticate'

Routines with a fully qualified name matching this pattern are considered as taking credentials for parameters
 

enable_detection_secrecy_handling_functions

enable_detection_secrecy_handling_functions : bool = True

Whether to use the detection patterns to find functions processing secrecy data.
 

key_detection_pattern

key_detection_pattern : typing.Pattern[str] = 'BEGIN (.*) PRIVATE KEY'

Regex pattern used to detect the ASCII armor of private keys in string literals
 

secrecy_data_handling_functions

secrecy_data_handling_functions : set[bauhaus.analysis.config.QualifiedName] = set()

Set of function names that process secrecy data, such as passwords.
 

suspect_detection_pattern

suspect_detection_pattern : typing.Pattern[str] = 'password|.*secret.*'

Objects with identifiers including the pattern are considered suspects for holding credentials