Windows Password Attacks – Hash Dumping and Cracking
Once you have local admin or SYSTEM access, dumping password hashes from SAM and LSASS gives you credentials for every local account. Hashes can be used directly for pass-the-hash authentication or cracked offline for plaintext passwords. Plaintext passwords from LSASS unlock additional lateral movement and privilege escalation opportunities.
Prerequisites Check
Hash dumping from SAM requires local admin. LSASS dumping requires SeDebugPrivilege (present for local admins by default):
SAM Database — Local Account Hashes
The SAM database contains NTLM hashes for all local accounts. It is locked while Windows is running but can be copied via reg save or Volume Shadow Copy.
Method 1 — reg save (requires local admin):
Transfer to attack box and extract:
Method 2 — Remote extraction (if you have admin creds):
LSASS — Plaintext Passwords and Hashes
LSASS caches logon session credentials in memory. On Windows with WDigest enabled (older systems), plaintext passwords are available. On modern Windows, you typically get NTLM hashes and Kerberos tickets.
Method 1 — Mimikatz (in-memory):
Output includes plaintext passwords (if WDigest is enabled) and NTLM hashes for all logged-in users.
Method 2 — Mimikatz one-liner:
Method 3 — LSASS memory dump (AV-evasive):
Create a minidump of LSASS without running mimikatz on the target:
Transfer the dump to your attack box and extract with mimikatz:
Or on Windows with mimikatz:
Cracking NTLM Hashes
Format for hashcat: just the NT hash (32 hex chars). Format for john: username:hash or just the hash.
Pass-the-Hash
Use the NT hash directly without cracking:
Enable WDigest for Plaintext Passwords
On targets where WDigest is disabled (Windows 8.1+ default), enable it and wait for the user to log in again:
After the user logs out and back in, plaintext passwords are available in LSASS.
LSA Secrets — Service Account Passwords
LSA secrets contain service account passwords, auto-logon passwords, and other system secrets:
References
-
gentilkiwi Windows credential extraction from LSASS and SAM.
-
fortra secretsdump, psexec, and other credential extraction tools.
-
Hashcat Documentationhashcat.net/wiki (opens in new tab)
NTLM hash cracking mode 1000 reference and rule files.
Was this helpful?
Your feedback helps improve this page.