How to Use Impacket secretsdump for Windows Credential Extraction

Summary
A hands-on guide to Impacket secretsdump covers remote credential extraction with DCSync and VSS, offline registry-hive parsing, authentication options, and flags for filtering and saving output.
Key points
- The guide describes DRSUAPI (DCSync) for retrieving domain credentials from a Domain Controller and VSS snapshots for accessing locked files.
- It explains offline parsing of SAM, SECURITY, and NTDS database files alongside remote extraction.
- Authentication examples include passwords, Kerberos tickets, NTLM hashes, and AES keys.
- Options covered include selecting accounts or credential types, excluding users, checking account status, and adding password-change timestamps.
- The article describes saving extracted credentials to files and using execution methods including WMI and MMC DCOM for VSS operations.
- It notes Event 4662 with DCSync GUIDs as a detection surface for DCSync activity and says the techniques were demonstrated in an isolated lab.
Article Details
- Topic
- Impacket-secretsdump credential-dumping techniques for Windows systems
MITRE ATT&CK
T1003.002 · Security Account ManagerThe article describes dumping local account hashes from the SAM database.T1003.003 · NTDSThe article describes extracting domain credentials by parsing NTDS.DIT with the SYSTEM hive.T1003.004 · LSA SecretsThe article describes extracting LSA secrets from the SECURITY hive.T1003.006 · DCSyncThe article describes using DRSUAPI (DCSync) to retrieve domain credentials from NTDS.DIT.T1550.002 · Pass the HashThe article demonstrates authenticating with an NTLM hash using Pass-the-Hash.T1550.003 · Pass the TicketThe article describes authenticating to a Domain Controller using a Kerberos ticket.
Vendors
Tools
ImpacketImpacket-secretsdump is a powerful agentless postâexploitation tool from the Impacket framework (Fortra) that remotely extracts NTLM hashes, Kerberos keys, LSA secrets, SAM databases, and cached domain logon dataImpacket-secretsdumpImpacket-secretsdump is a powerful agentless postâexploitation tool from the Impacket framework (Fortra) that remotely extracts NTLM hashes, Kerberos keys, LSA secrets, SAM databases, and cached domain logon data
