Course contentsShow
← Security
Lesson 2135 of 3,05242. Penetration Testing and Red TeamingFree lesson

Windows Credential Dumping Techniques

Extracting credentials from memory using mimikatz, LSASS dumps, SAM database access, and cached credentials to escalate privileges.

Windows Credential Dumping Techniques

What you'll learn: How attackers extract plaintext and hashed credentials from Windows memory, databases, and caches to escalate privileges and move laterally across networks.

The Core Concept

Windows stores credentials in multiple locations—some encrypted in memory, others hashed in databases. Once you've gained initial access to a system, credential dumping techniques let you harvest these secrets to authenticate as other users, often escalating from a low-privilege account to Administrator or SYSTEM.

Think of it like finding a building's master key list. Even if you only entered through the janitor's closet, discovering where the security office keeps credential copies lets you unlock executive offices.

Primary Credential Stores

LSASS Memory

The Local Security Authority Subsystem Service (LSASS) process holds credentials for currently logged-in users. Tools like mimikatz read this memory to extract plaintext passwords, NTLM hashes, and Kerberos tickets—you've already learned about LSASS dumping and protections.

SAM Database

The Security Account Manager (SAM) database (C:\Windows\System32\config\SAM) stores local account password hashes. While locked during runtime, you can extract it offline or using SYSTEM-level access with registry dumps.

Cached Domain Credentials

Windows caches domain credentials locally (in registry key HKLM\SECURITY\Cache) so users can log in even when domain controllers are unreachable. These cached credentials require cracking but persist even after password changes.

Attack Flow

You combine these techniques with privilege escalation methods you've learned: exploit service misconfigurations to gain SYSTEM, then dump LSASS or extract SAM hashes. These credentials enable pass-the-hash attacks and domain enumeration you've studied previously.

Key Takeaway: Windows credential dumping extracts passwords, hashes, and tickets from LSASS memory, SAM databases, and cached credentials—transforming initial access into privileged accounts across the entire network.