CWE-922

Insecure Storage of Sensitive Information. [Improper-Control-Of-A-Resource-Through-Its-Lifetime]

Required inputs: IR

The product stores sensitive information without properly limiting read or write access by unauthorized actors. If read access is not properly restricted, then attackers can steal the sensitive information. If write access is not properly restricted, then attackers can modify and possibly delete the data, causing incorrect results and possibly a denial of service.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

insecure_storage

Object with a sensitive-looking name is stored in a memory section explicitly marked as insecure.

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
 

insecure_section_pattern

insecure_section_pattern : typing.Pattern[str] = 'unsafe|exchange'

Sections whose name matches this pattern are considered not protected against unauthorized read or write access.
 

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
 

section_macro_pattern

section_macro_pattern : typing.Pattern[str] = '^(?P<prefix>.+)_(?P<direction>START|STOP)_SEC_(?P<suffix>.+)$'

Matches the AUTOSAR MemMap bracketing macros (`_START_SEC_` / `_STOP_SEC_`) used to mark the beginning and end of a named memory section.
 

suspect_detection_pattern

suspect_detection_pattern : typing.Pattern[str] = 'password|passwd|pwd|secret|token|credential|key'

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