Windows Credential Manager uses DPAPI to store secrets in vaults. Each vault stores multiple credentials. There are two vaults in Windows:
- Web Credentials: stores browser credentials
- Windows Credentials: stores credentials saved by Windows/AD (e.g. mstsc, which is an RDP tool)
To enumerate using Cobalt Strike:
Master key (located in C:\Users\<user>\AppData\Roaming\Microsoft\Protect\<SID>\<GUID>
) is also encrypted.
To decrypt the master key:
Then decrypt the credential blob: