Credentials harvesting
Enumerate Users And Hashes
if the logonpassword command returns an error Handle on memory (0x00000005)
download the library from here (Win32) or here (Win64) in the same folder as the mimikaz executable and use the following commands in Mimikatz to disable LSASS protection
Password To NTLM
SAM
Dumping
Manual
Administrative privileges are required to dump register keys
Possible backups location
ShadowCopy Exploit
It is possible to retrieve and dump keys from old backup versions of the system saved with ShadowCopy. Once the backup version is exposed you can dump the SAM credentials and extract DPAPI hashes. All the following operations require Admin privileges
Enumerate existing copies
Create a new shadowCopy archive
Create a link to the copy
IF you're unable to navigate the link due to access permission errors It is still possible to extract files from the shadow copy
fgdump.exe
Runs locally, creates a file with the hashes.
Mimikatz
Decryption
Impacket - secretsdump.py
Samdump or Pwdump
After obtaining the hashes they can be cracked to obtain the passwords or used in Pass the Hash attacks. In order to obtain the passwords we need only the NT part of the hash. given an hash with the following structure AAAA:BBBB
the actual string to bruteforce is the one to the right of the column
Vault credentials dump
Enumerate credentials manager entries
Dump credentials associated with the vault entry
DPAPI
Usual credential files position
Enumerate Credentials hashes. The parameter guidMasterKey
reveals the hash of the master key
Retrieve the master key, decode it and store the key in cache. In order to decrypt the key we need to be operating under the same context (user, system) the key belongs to.
Decrypt other hashes with the master key
LAPS
Verify that LAPS is installed by searching for admpwd.dll
usually in C:\Program Files\LAPS\CSE
Check available commands in PowerShell
Find groups allowed to interact with LAPS. If command run with a wildcard argument throws an exception after returning one or more values call the command again but this time specify as identity parameter one of the OUs obtained the first time
Get users of the detected group
Run the following command in the context of a user part of the group allowed to interact with LAPS to dump the stored passwords. The target is the machine with LAPS enabled
Last updated