Detect LSASS Credential Dumping via Memory Access in Elastic Security
LSASS (Local Security Authority Subsystem Service) process memory dumping remains the primary credential theft technique across ransomware operators and APT groups. Attackers access LSASS memory to extract NTLM hashes, Kerberos tickets, and cleartext credentials of all users who have recently authenticated to the system. Common tools: Mimikatz (sekurlsa::logonpasswords, lsadump::sam), ProcDump (procdump -ma lsass.exe), Task Manager dump, comsvcs.dll MiniDump via rundll32, and custom loaders. All documented ransomware groups (Akira, Black Basta, LockBit) use credential dumping to escalate from standard user to domain admin. Detection prioritises the MiniDump-via-rundll32 technique (stealthy, LOL-binary) and ProcDump which are most prevalent. NCSC UK's 2025 ransomware guidance specifically calls out LSASS dumping as a critical detection opportunity in the pre-ransomware kill chain.
MITRE ATT&CK
- Tactic
- Credential Access
Elastic Detection Query
sequence by host.name with maxspan=5m
[
any where (
(
event.category == "process" and event.type == "start" and
process.name : "rundll32.exe" and
(
(process.args : "comsvcs*" and (process.args : "*MiniDump*" or process.args : "*#24*")) or
(process.command_line : "*comsvcs*" and process.command_line : "*MiniDump*") or
(process.command_line : "*lsass*" and process.command_line : "*dump*")
)
) or
(
event.category == "process" and event.type == "start" and
process.name : ("procdump.exe", "procdump64.exe") and
(process.command_line : "*lsass*" or process.args : "-ma")
) or
(
event.category == "process" and event.type == "access" and
process.name : "lsass.exe" and
not process.parent.name : ("svchost.exe", "wininit.exe", "lsm.exe", "csrss.exe", "SecurityHealthService.exe", "MsMpEng.exe", "SenseIR.exe", "MsSense.exe")
) or
(
event.category == "file" and event.type == "creation" and
(file.extension : "dmp" or file.extension : "mdmp") and
file.path : ("*\\Temp\\*", "*\\tmp\\*", "*\\ProgramData\\*", "*\\Users\\*", "*\\Public\\*") and
not process.name : ("werfault.exe", "WerFaultSecure.exe", "drwtsn32.exe", "msdtc.exe")
)
)
] Detects LSASS credential dumping via four methods: (1) rundll32.exe with comsvcs.dll MiniDump LOL technique, (2) ProcDump targeting lsass.exe, (3) direct process access to lsass from non-whitelisted processes, (4) suspicious .dmp/.mdmp file creation in writable user-accessible locations. Covers Akira, Black Basta, LockBit, and Scattered Spider TTPs.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate memory diagnostic tools used by IT operations running ProcDump against system processes for debugging purposes
- Crash dump collection by Windows Error Reporting (WER) creating .dmp files in temp locations during application failures
- EDR and AV solutions that legitimately access lsass.exe memory for process protection and credential guard monitoring
Other platforms for THREAT-CredentialDump-LSASS
Testing Methodology
Validate this detection against 2 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1LSASS MiniDump via rundll32.exe + comsvcs.dll (LOL Technique)
Expected signal: Sysmon Event ID 1: rundll32.exe with comsvcs.dll and MiniDump in command line. Sysmon Event ID 11: lsass.dmp created in C:\Windows\Temp\. Windows Security Event ID 4656: handle to lsass.exe requested.
- Test 2LSASS Dump via ProcDump
Expected signal: Sysmon Event ID 1: procdump.exe with -ma and lsass in command line. Sysmon Event ID 10: procdump64.exe accessing lsass.exe process.
References (5)
- https://www.ncsc.gov.uk/collection/ransomware/credential-access
- https://attack.mitre.org/techniques/T1003/001/
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003.001/T1003.001.md
- https://lolbas-project.github.io/lolbas/Libraries/Comsvcs/
- https://docs.microsoft.com/en-us/windows-server/security/credentials-protection-and-management/protected-users-security-group
Unlock Pro Content
Get the full detection package for THREAT-CredentialDump-LSASS including response playbook, investigation guide, and atomic red team tests.