Detecting Credential Dumping Techniques
Overview
Credential dumping (MITRE ATT&CK T1003) is a post-exploitation technique where adversaries extract authentication credentials from OS memory, registry hives, or domain controller databases. This skill covers detection of LSASS memory access via Sysmon Event ID 10 (ProcessAccess), SAM registry hive export via reg.exe, NTDS.dit extraction via ntdsutil/vssadmin, and comsvcs.dll MiniDump abuse. Detection rules analyze GrantedAccess bitmasks, suspicious calling processes, and known tool signatures.
When to Use
- When investigating security incidents that require detecting credential dumping techniques
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
Detection Gaps & Validation
- Variants most often missed: rules keyed only on a direct
lsass.exe handle open (Sysmon EID 10, GrantedAccess 0x1010/0x1410) miss rundll32 comsvcs.dll, MiniDump <PID> dump.bin full, MiniDumpWriteDump via signed tools (procdump -ma, Task Manager, Process Explorer), direct syscalls / unhooked NtReadVirtualMemory (Dumpert, nanodump) that bypass userland EDR hooks, and handle duplication where a sacrificial process opens LSASS and the dumper calls NtDuplicateObject (TargetProcess = lsass but SourceProcess != dumper, so the 4656/EID 10 source looks benign).
- False negatives: SAM/SYSTEM theft via
esentutl /y or VSS \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy*\Windows\System32\config\SAM instead of reg save; NTDS.dit via DCSync (no on-host dump at all — watch EID 4662 with replication GUIDs 1131f6aa/1131f6ad). PPL/RunAsPPL and Credential Guard change but do not eliminate access paths.
- Validate the rule fires: Atomic Red Team T1003.001 (
#1 procdump LSASS, #3 comsvcs MiniDump, #7 direct syscall nanodump), T1003.002 (reg save SAM), T1003.003 (ntdsutil/vssadmin). Confirm EID 10 GrantedAccess masks 0x1010/0x1438/0x143a and the MiniDump command line all alert.
- FP tuning: baseline legitimate LSASS readers — AV/EDR agents (MsMpEng.exe),
wininit.exe, backup agents, and crash/WER (werfault.exe). Allowlist by signed SourceImage + expected GrantedAccess rather than muting lsass access wholesale.
Prerequisites
- Sysmon v14+ deployed with ProcessAccess logging (Event ID 10) for lsass.exe
- Windows Security audit policy enabling process creation (Event ID 4688) with command line logging
- Splunk or Elastic SIEM ingesting Sysmon and Windows Security logs
- Python 3.8+ for log analysis
Steps
- Configure Sysmon to log ProcessAccess events targeting lsass.exe
- Forward Sysmon Event ID 10 and Windows Event ID 4688 to SIEM
- Create detection rules for known GrantedAccess patterns (0x1010, 0x1FFFFF)
- Detect comsvcs.dll MiniDump and procdump.exe targeting LSASS PID
- Alert on reg.exe SAM/SECURITY/SYSTEM hive export commands
- Detect ntdsutil/vssadmin shadow copy creation for NTDS.dit theft
- Correlate detections with user/host context for risk scoring
Expected Output
JSON report containing detected credential dumping indicators with technique classification, severity ratings, process details, MITRE ATT&CK mapping, and Splunk/Elastic detection queries.
1---2name: detecting-credential-dumping-techniques3description: Detect LSASS credential dumping, SAM database extraction, and NTDS.dit theft using Sysmon Event ID 10, Windows Security logs, and SIEM correlation rules4license: Apache-2.05---67# Detecting Credential Dumping Techniques89## Overview1011Credential dumping (MITRE ATT&CK T1003) is a post-exploitation technique where adversaries extract authentication credentials from OS memory, registry hives, or domain controller databases. This skill covers detection of LSASS memory access via Sysmon Event ID 10 (ProcessAccess), SAM registry hive export via reg.exe, NTDS.dit extraction via ntdsutil/vssadmin, and comsvcs.dll MiniDump abuse. Detection rules analyze GrantedAccess bitmasks, suspicious calling processes, and known tool signatures.121314## When to Use1516- When investigating security incidents that require detecting credential dumping techniques17- When building detection rules or threat hunting queries for this domain18- When SOC analysts need structured procedures for this analysis type19- When validating security monitoring coverage for related attack techniques2021## Detection Gaps & Validation2223- **Variants most often missed:** rules keyed only on a direct `lsass.exe` handle open (Sysmon EID 10, GrantedAccess `0x1010`/`0x1410`) miss `rundll32 comsvcs.dll, MiniDump <PID> dump.bin full`, MiniDumpWriteDump via signed tools (procdump `-ma`, Task Manager, Process Explorer), direct syscalls / unhooked `NtReadVirtualMemory` (Dumpert, nanodump) that bypass userland EDR hooks, and **handle duplication** where a sacrificial process opens LSASS and the dumper calls `NtDuplicateObject` (TargetProcess = lsass but SourceProcess != dumper, so the 4656/EID 10 source looks benign).24- **False negatives:** SAM/SYSTEM theft via `esentutl /y` or VSS `\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy*\Windows\System32\config\SAM` instead of `reg save`; NTDS.dit via DCSync (no on-host dump at all — watch EID 4662 with replication GUIDs `1131f6aa`/`1131f6ad`). PPL/RunAsPPL and Credential Guard change but do not eliminate access paths.25- **Validate the rule fires:** Atomic Red Team T1003.001 (`#1` procdump LSASS, `#3` comsvcs MiniDump, `#7` direct syscall nanodump), T1003.002 (reg save SAM), T1003.003 (ntdsutil/vssadmin). Confirm EID 10 GrantedAccess masks `0x1010`/`0x1438`/`0x143a` and the MiniDump command line all alert.26- **FP tuning:** baseline legitimate LSASS readers — AV/EDR agents (MsMpEng.exe), `wininit.exe`, backup agents, and crash/WER (`werfault.exe`). Allowlist by signed SourceImage + expected GrantedAccess rather than muting lsass access wholesale.2728## Prerequisites2930- Sysmon v14+ deployed with ProcessAccess logging (Event ID 10) for lsass.exe31- Windows Security audit policy enabling process creation (Event ID 4688) with command line logging32- Splunk or Elastic SIEM ingesting Sysmon and Windows Security logs33- Python 3.8+ for log analysis3435## Steps36371. Configure Sysmon to log ProcessAccess events targeting lsass.exe382. Forward Sysmon Event ID 10 and Windows Event ID 4688 to SIEM393. Create detection rules for known GrantedAccess patterns (0x1010, 0x1FFFFF)404. Detect comsvcs.dll MiniDump and procdump.exe targeting LSASS PID415. Alert on reg.exe SAM/SECURITY/SYSTEM hive export commands426. Detect ntdsutil/vssadmin shadow copy creation for NTDS.dit theft437. Correlate detections with user/host context for risk scoring4445## Expected Output4647JSON report containing detected credential dumping indicators with technique classification, severity ratings, process details, MITRE ATT&CK mapping, and Splunk/Elastic detection queries.