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. Sometimes these credentials are used for automatic logons.
Example commands to find Registry keys related to password information: 
reg query HKLM /f password /t REG_SZ /s
reg query HKCU /f password /t REG_SZ /s
PowerSploit has several modules that search the Windows Registry for stored credentials:
Proactively search for credentials within the Registry and attempt to remediate the risk.
Do not store credentials within the Registry.
|Privileged Account Management
If it is necessary that software must store credentials in the Registry, then ensure the associated accounts have limited permissions so they cannot be abused if obtained by an adversary.
Monitor executed commands and arguments that may search the Registry on compromised systems for insecurely stored credentials.
Monitor newly executed 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.
Note: Pseudocode Event IDs are for Sysmon (Event ID 1 - process create) and Windows Security Log (Event ID 4688 - a new process has been created). The Analytic looks for command-line instances of searching the Windows Registry for insecurely stored credentials. This can be accomplished using the query functionality of the Reg system utility, by looking for keys and values that contain strings such as "password". In addition, adversaries may use toolkits such as PowerSploit in order to dump credentials from various applications such as IIS. Accordingly, this analytic looks for invocations of reg.exe in this capacity as well as that of several PowerSploit modules with similar functionality.
Analytic 1 - Credentials in Files & Registry
|Windows Registry Key Access
Monitor for unexpected windows registry key being accessed that may search the Registry on compromised systems for insecurely stored credentials.