CWE-922¶
Insecure Storage of Sensitive Information. [Improper-Control-Of-A-Resource-Through-Its-Lifetime]
Required inputs: IR
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¶
This rule shares the following common options: confidence, exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
critical_routines_pattern¶
critical_routines_pattern : typing.Pattern[str] = 'authenticate'
insecure_section_pattern¶
insecure_section_pattern : typing.Pattern[str] = 'unsafe|exchange'
key_detection_pattern¶
key_detection_pattern : typing.Pattern[str] = 'BEGIN (.*) PRIVATE KEY'
section_macro_pattern¶
section_macro_pattern : typing.Pattern[str] = '^(?P<prefix>.+)_(?P<direction>START|STOP)_SEC_(?P<suffix>.+)$'
suspect_detection_pattern¶
suspect_detection_pattern : typing.Pattern[str] = 'password|passwd|pwd|secret|token|credential|key'