Password managers
MITRE ATT&CK™ Credentials from Password Stores: Password Managers - Technique T1555.005
Theory
Password managers generate and securely store passwords of various services, safeguarding them under a single master password. This master password serves as the key to access all the stored passwords within the password manager.
Examples of Password Manager applications:
Third-party: KeePass, 1Password, LastPass
However, misconfiguration and security flaws are found in these applications that let us access stored data. Various tools could be used during the enumeration stage to get sensitive data in password manager applications used by Internet browsers and desktop applications.
Practice
KeePass
Cracking Master Password
If we gained access to the keepass database, we may be able to extract it and crack the master database password.
Keepass database is stored as a .kdbx
file, we can search for such files using following commands:
One we exfiltrate the database to our attacking computer, we can start by using keepass2john and save the output hase a crackable hash.
Then, we may crack the master password using hashcat. See this page for more details about cracking passwords.
Now, we can open the database using kpcli and dump passwords
Resources
Last updated