title: Enumeration for Credentials in Registry
id: e0b0c2ab-3d52-46d9-8cb7-049dc775fbd1
status: experimental
description: |
  Adversaries may search the Registry on compromised systems for insecurely stored credentials.
  The Windows Registry stores configuration information that can be used by the system or other programs.
  Adversaries may query the Registry looking for credentials and passwords that have been stored for use by other programs or services
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1552.002/T1552.002.md
author: frack113
date: 2021/12/20
logsource:
    category: process_creation
    product: windows
detection:
    reg:
        Image|endswith: \reg.exe
        CommandLine|contains|all:
            - ' query '
            - '/t '
            - 'REG_SZ'
            - '/s'
    hive:
        - CommandLine|contains|all: 
            - '/f '
            - 'HKLM'
        - CommandLine|contains|all:
            - '/f '
            - 'HKCU'
        - CommandLine|contains: 'HKCU\Software\SimonTatham\PuTTY\Sessions'
    condition: reg and hive
falsepositives:
    - Unknown
level: medium
tags:
    - attack.credential_access
    - attack.t1552.002