← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing Windows LSASS Memory Dump via comsvcs.dll MiniDump Dataset

This hunt uses a simulated EDR/Sysmon dataset (windows_lsass_comsvcs_2022-08-08T151000.json) capturing T1003.001: OS Credential Dumping (LSASS Memory), where an attacker abuses the built-in comsvcs.dll MiniDump export via rundll32.exe to dump LSASS memory without dropping a known offensive tool binary, evading signature-based detection.

Step 1: Hypothesis Formation

Hypothesis: rundll32.exe is launched with command-line arguments invoking comsvcs.dll,MiniDump targeting the LSASS process ID, writing a .dmp file to disk - a living-off-the-land technique for credential dumping that requires no additional tooling. Indicators:

Null Hypothesis: A legitimate crash-dump or diagnostic collection tool is generating an LSASS minidump for a genuine troubleshooting case (e.g., Microsoft-supplied ProcDump run by IT support under a documented ticket). Invalidate by confirming no support ticket references LSASS troubleshooting and that rundll32.exe (not procdump.exe) is the invoking binary.

Rationale: Because comsvcs.dll is a native, digitally-signed Windows DLL, this technique frequently evades AV signatures that only flag known dumping tools like Mimikatz or ProcDump - this hunt validates process-argument and handle-access based detection as a signature-independent control.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed events (5 shown) confirm rundll32.exe, spawned from a compromised IIS worker process, dumped LSASS to a temp folder using the comsvcs.dll technique.

Timestamp (UTC)HostEventDetailIOC/Why Suspicious?
2022-08-08 15:10:02SRV-WEB-012Sysmon 1 - Process Createw3wp.exe spawns cmd.exe /c whoami & tasklistWeb-shell IOC: IIS worker process spawning a shell is a classic post-web-shell-upload indicator, preceding the credential-dumping attempt.
2022-08-08 15:10:41SRV-WEB-012Sysmon 1 - Process Createcmd.exe spawns rundll32.exe C:\Windows\System32\comsvcs.dll, MiniDump 812 C:\Windows\Temp\update.dmp fullLOLBIN IOC: signed, native DLL invoked to dump PID 812 (lsass.exe) - no external tool required, evading tool-signature AV rules.
2022-08-08 15:10:42SRV-WEB-012Sysmon 10 - Process Accessrundll32.exe opens lsass.exe with GrantedAccess 0x1410 (PROCESS_VM_READ \PROCESS_QUERY_INFORMATION)Handle-access IOC: this specific access mask on lsass.exe is a strong, tool-agnostic credential-dumping signal.
2022-08-08 15:10:43SRV-WEB-012File writeC:\Windows\Temp\update.dmp (167 MB) createdLocation IOC: legitimate LSASS crash dumps never land in C:\Windows\Temp; the filename mimics a benign update artifact.
2022-08-08 15:11:20SRV-WEB-012NetworkOutbound SMB/HTTP transfer of update.dmp to 203.0.113.77Exfil IOC: the dump was staged and immediately transferred off-host for offline parsing (Mimikatz sekurlsa::minidump).

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - an attacker used the built-in comsvcs.dll MiniDump technique via rundll32.exe to dump LSASS credentials following a web shell compromise, then exfiltrated the dump for offline parsing!