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

Credential Dumping Fundamentals

Extracting credentials from memory, registry, and files using tools like Mimikatz, secretsdump, and LaZagne.

Credential Dumping Fundamentals

What you'll learn: How attackers extract credentials from compromised systems to escalate privileges and move laterally through networks.


What is Credential Dumping?

After gaining initial access to a system (the post-exploitation phase), attackers need credentials to move deeper into the network. Credential dumping is the technique of extracting usernames, passwords, and authentication tokens from a compromised machine. Think of it like finding the keys to every door in a building after breaking into one room.

Credentials hide in three main locations on a system:

1. Memory

Running processes store credentials in RAM—particularly the Windows Local Security Authority Subsystem Service (LSASS). Tools like Mimikatz read LSASS memory to extract plaintext passwords, NTLM hashes, and Kerberos tickets from logged-in users.

2. Registry

Windows stores password hashes in the SAM (Security Account Manager) database and cached domain credentials. Secretsdump (part of Impacket) can dump these hashes remotely or locally, allowing offline cracking or pass-the-hash attacks.

3. Files

Applications often store credentials insecurely in configuration files, browser databases, or credential managers. LaZagne automatically scans for credentials across browsers, email clients, databases, and system tools.

Why It Matters

Credential dumping transforms a single compromised endpoint into a gateway to the entire network. One low-privileged account becomes domain admin credentials, which becomes full network control. Understanding these techniques is essential for both attackers (in authorized penetration tests) and defenders building detection mechanisms.

Key Takeaway: Credential dumping extracts authentication secrets from memory, registry, and files using specialized tools, enabling privilege escalation and lateral movement—making it a critical post-exploitation technique that defenders must detect and prevent.