Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1.75 KB

T1214.md

File metadata and controls

39 lines (24 loc) · 1.75 KB

T1214 - Credentials in Registry

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. Sometimes these credentials are used for automatic logons.

Example commands to find Registry keys related to password information: (Citation: Pentestlab Stored Credentials) *Local Machine Hive: reg query HKLM /f password /t REG_SZ /s *Current User Hive: reg query HKCU /f password /t REG_SZ /s

Detection: Monitor processes for applications that can be used to query the Registry, such as Reg, and collect command parameters that may indicate credentials are being searched. Correlate activity with related suspicious behavior that may indicate an active intrusion to reduce false positives.

Platforms: Windows

Data Sources: Windows Registry, Process command-line parameters, Process Monitoring

Permissions Required: User, Administrator

System Requirements: Ability to query some Registry locations depends on the adversary's level of access. User permissions are usually limited to access of user-related Registry keys.

Contributors: Sudhanshu Chauhan, @Sudhanshu_C

Atomic Tests


Atomic Test #1 - Enumeration for Credentials in Registry

Queries to enumerate for credentials in the Registry.

Supported Platforms: Windows

Run it with command_prompt!

reg query HKLM /f password /t REG_SZ /s
reg query HKCU /f password /t REG_SZ /s