Credential Harvesting for Pivoting
What you'll learn: How to extract credentials from compromised systems to unlock access to additional targets in the network.
The Core Concept
Once you've compromised a system, credential harvesting is the process of extracting usernames, passwords, hashes, and authentication tokens stored in that system's memory, registries, and files. These credentials become your keys to "pivot"—moving laterally from your current foothold to other machines and accounts.
Think of it like finding a janitor's keyring in one office that opens doors to other offices throughout the building.
Where Credentials Hide
Credentials lurk in multiple locations on compromised systems:
Memory: Active processes hold plaintext passwords, NTLM hashes, and Kerberos tickets. Tools target LSASS (Local Security Authority Subsystem Service) memory dumps to extract these live credentials.
Registry: Windows stores password hashes in the SAM (Security Account Manager) database and cached domain credentials. Even deleted credentials sometimes leave traces.
Files: Configuration files, scripts, browser saved passwords, SSH keys, database connection strings, and application credentials often sit unencrypted on disk. PowerShell history files may contain passwords typed in plaintext.
Why This Enables Pivoting
Harvested credentials let you authenticate to other systems without triggering alerts from exploit-based attacks. You're using legitimate credentials—just not legitimately. A domain admin password found on a compromised workstation can unlock access to servers, databases, and domain controllers, dramatically expanding your reach through pass-the-hash, pass-the-ticket, or direct authentication.
Key Takeaway: Credential harvesting transforms a single compromised system into a treasure map—every credential discovered is a potential path to pivot deeper into the network, making thorough extraction critical for successful lateral movement campaigns.