LSASS is a critical service on Windows systems that manages credentials and authentication processes. It caches credentials in memory, creates access tokens, enforces security policies, and writes to the security log. When a user logs on, LSASS loads credentials into memory to validate subsequent authentications.
Methods for Dumping LSASS
Task Manager
Processes → Local Security Authority Process (lsass.exe) → right-click → "Create dump file". It is saved in C:\Users\[usuario]\AppData\Local\Temp.
Rundll32.exe and Comsvcs.dll
You need to know the lsass.exe PID (tasklist /svc or Get-Process lsass):
powershell
rundll32 C:\windows\system32\comsvcs.dll, MiniDump [PID] C:\lsass.dmp full
Note: modern antivirus software may detect this.
Extracting Credentials with Pypykatz
terminal
pypykatz lsa minidump /ruta/a/lsass.dmp
txt
== MSV ==
Username: bob
NT: 64f12cddaa88057e06a81b54e73b949b
MSV: validates credentials against the SAM, extracts NT and SHA1 hashes.
WDIGEST: plaintext on older systems, disabled on modern systems.
Kerberos: extracts session tickets.
DPAPI: extracts master keys to decrypt data from Chrome, Outlook, and Credential Manager.
Important Notes
Dumping LSASS is more flexible than SAM because it includes credentials for active users. Most modern antivirus solutions detect and block LSASS dump attempts.