Nullpath

Credential Dumping (on-host secret stores overview)

concept windowscredential-accesspost-exploitation updated 07 Sept 2026 · 3 min

Credential Dumping

Windows holds secrets in several distinct stores, each with its own dump method, its own offline format, and its own detection footprint. This is the map of which store has what, so the right tool goes at the right secret. The detailed mechanics live on each store’s page.

The stores

StoreWhat’s in itWhereDump via
lsasslive NTLM hashes, Kerberos TGT/TGS, DPAPI master keys, cert keysmemory (lsass.exe)procdump/comsvcs/minidump → mimikatz; or secretsdump via SMB
sam-databaselocal account NTLM hashes (+ LAPS)System32\config\SAM + SYSTEMoffline hive copy → secretsdump/secretsdump -sam
ntds-ditevery domain account (NTLM + Kerberos keys), trustsNTDS.dit on DCssecretsdump -ntds (vssadmin/ntdsutil), dcbackup
DPAPIbrowser stores, Wi-Fi, RDP creds, vaultper-user profiledpapi (mimikatz) with the master keys from LSASS/SAM
Cached domain credslast N domain logon NTLMsSYSTEM hive Cacheoffline secretsdump -system
Registryauto-logon password, stored credsSYSTEM/Software hiveshive copy + parse
AD CS certscert private keys + PFXcert store / CAcertipy/ForgeCert (golden-certificate)

The two dump postures

  • Online (host access) — you have a shell/session: LSASS is the prize (it has the live TGT and the NTLM and DPAPI keys in one file). procdump -ma lsass.exe → exfil → mimikatz/Impacket secretsdump.
  • Offline (file access only) — you have the hives/NTDS.dit (e.g. via SYSTEM+SAM+SYSTEM from SMB ADMIN$, or a DC VSS snapshot): impacket-secretsdump -sam SAM -system SYSTEM domain\host for local, impacket-secretsdump -ntds NTDS.dit ... for domain. No code on the target.

What each secret buys you (downstream)

Red-team notes (OPSEC)

  • Prefer offline when you can — an NTDS.dit + hives over SMB ADMIN$ needs no execution on the DC (the noisiest host) and produces a clean, parseable secret set.
  • LSASS is the one-stop shop but it’s in memory — it’s the store CredGuard/VistA/Cimahi class defenses guard first; the fallback is comsvcs/named-pipe or minidump with a renamed dump file.
  • Exfil before you parse — the dump is your artifact; get it off the host (or at least out of C:\-root) before a defender wipes the pagefile.

Detection

  • LSASS: Sysmon 10 (lsass.exe access), Process Access to lsass.exe from an unusual parent, comsvcs/named-pipe creation. The telemetry is sysmon; the rule that fires on it is sigma.
  • Offline hives: ADMIN$ access + VSS shadow copy creation on a DC (vssadmin), NTDS.dit opened from a non-DC context.
  • The secret reuse (a new PtH/PtT from the dumped hash) is often the higher-fidelity downstream alert — see the per-technique pages.