Detect OS Credential Dumping in Splunk
Adversaries may attempt to dump credentials to obtain account login and credential material, normally in the form of a hash or a clear text password. Credentials can be obtained from OS caches, memory, or structures. This parent technique encompasses multiple sub-techniques targeting LSASS memory, SAM database, NTDS, LSA Secrets, cached domain credentials, DCSync, the Linux /proc filesystem, and /etc/passwd and /etc/shadow files. Credential material is subsequently used for lateral movement, privilege escalation, and persistent access. Widely used by APT groups including APT32, APT39, Ember Bear, BlackByte, Tonto Team, and Mustang Panda, as well as malware families such as Mimikatz, Carbanak, MgBot, and Revenge RAT.
MITRE ATT&CK
- Tactic
- Credential Access
- Technique
- T1003 OS Credential Dumping
- Canonical reference
- https://attack.mitre.org/techniques/T1003/
SPL Detection Query
index=wineventlog
(
(sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1)
OR
(sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=10)
OR
(sourcetype="WinEventLog:Security" EventCode=4688)
)
| eval is_tool_name=if(
match(lower(coalesce(Image, ProcessName, "")),
"mimikatz|mimilib|procdump|wce\.exe|pwdump|fgdump|gsecdump|cachedump|lsadump|lazagne|nanodump|handlekatz|sharpdump|sharpkatz|safetydump"
), 1, 0
)
| eval is_suspicious_args=if(
match(lower(coalesce(CommandLine, NewProcessName, "")),
"sekurlsa|lsadump|dcsync|logonpasswords|wdigest|privilege::debug|token::elevate|ntds\.dit|comsvcs.*minidump|out-minidump|pypykatz|volatility"
), 1, 0
)
| eval is_lsass_access=if(
(EventCode=10 AND match(lower(coalesce(TargetImage, "")), "lsass\.exe")
AND NOT match(lower(coalesce(SourceImage, "")),
"msmpeng|svchost|csrss|wininit|system|taskmgr|services"
)
), 1, 0
)
| eval is_comsvcs_minidump=if(
(EventCode=1
AND match(lower(coalesce(Image, "")), "rundll32\.exe")
AND match(lower(coalesce(CommandLine, "")), "comsvcs")
AND match(lower(coalesce(CommandLine, "")), "minidump")
), 1, 0
)
| eval SuspicionScore = is_tool_name + is_suspicious_args + is_lsass_access + is_comsvcs_minidump
| where SuspicionScore > 0
| eval DetectionBranches=mvappend(
if(is_tool_name=1, "ToolName", null()),
if(is_suspicious_args=1, "SuspiciousArgs", null()),
if(is_lsass_access=1, "LsassAccess", null()),
if(is_comsvcs_minidump=1, "ComsvcsMinidump", null())
)
| eval CommandLine=coalesce(CommandLine, NewProcessName, "")
| eval ProcessImage=coalesce(Image, ProcessName, "")
| eval ParentImage=coalesce(ParentImage, ParentProcessName, "")
| table _time, host, User, ProcessImage, CommandLine, ParentImage,
is_tool_name, is_suspicious_args, is_lsass_access, is_comsvcs_minidump,
SuspicionScore, DetectionBranches
| sort - SuspicionScore, - _time Multi-branch credential dumping detection using Sysmon Event ID 1 (Process Creation), Event ID 10 (Process Access), and Security Event ID 4688. Evaluates four categories: known tool binary names, suspicious credential-targeting arguments, unauthorized LSASS memory access from unexpected processes, and comsvcs.dll MiniDump invocations. A cumulative SuspicionScore drives alert prioritization — score of 2 or higher warrants immediate escalation. Field normalization handles differences between Sysmon and Security event schemas.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Legitimate security tools and EDR agents (CrowdStrike Falcon, Carbon Black, SentinelOne) that access LSASS for memory scanning and threat detection
- Authorized penetration testing or red team exercises using Mimikatz or ProcDump against non-production systems
- IT helpdesk or sysadmin tools that access SAM or SECURITY hives for backup, recovery, or password synchronization tasks
- Microsoft SCCM, Intune, or backup agents that read registry hives during system state backups
- Vulnerability scanning tools (Tenable Nessus, Qualys) that enumerate credential-related registry keys during credentialed scans
Other platforms for T1003
Testing Methodology
Validate this detection against 5 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 1Mimikatz sekurlsa::logonpasswords Simulation
Expected signal: Sysmon Event ID 1: Process Create with Image=powershell.exe and CommandLine containing 'sekurlsa' and 'logonpasswords'. Security Event ID 4688 (if command line auditing enabled). PowerShell ScriptBlock Log Event ID 4104 with the simulated command content.
- Test 2LSASS Memory Dump via comsvcs.dll MiniDump
Expected signal: Sysmon Event ID 1: Process Create with Image=rundll32.exe, CommandLine containing 'comsvcs.dll' and 'MiniDump'. Security Event ID 4688 with same details. The command will fail for PID 0 but process creation telemetry is generated regardless.
- Test 3Registry Hive Save for Offline SAM Extraction
Expected signal: Sysmon Event ID 1: Three Process Create events with Image=reg.exe and CommandLines matching 'save HKLM\SAM', 'save HKLM\SYSTEM', and 'save HKLM\SECURITY'. Sysmon Event ID 11: File creation events for .hiv files in %TEMP%. Security Event ID 4688 for each reg.exe invocation.
- Test 4Linux /etc/shadow Read Attempt
Expected signal: Linux auditd SYSCALL record with syscall=openat and path=/etc/shadow. Syslog entry showing sudo usage. If auditd is configured with a rule for -w /etc/shadow -p rwa, an AUDIT_WATCH_READ record is generated. /var/log/auth.log will show the sudo invocation.
- Test 5ProcDump LSASS Dump Pattern Simulation
Expected signal: Sysmon Event ID 1: Process Create for powershell.exe with CommandLine referencing 'procdump' and 'lsass'. Child process create for cmd.exe spawned by PowerShell. PowerShell ScriptBlock Log Event ID 4104 capturing the simulated command.
References (12)
- https://attack.mitre.org/techniques/T1003/
- https://medium.com/threatpunter/detecting-attempts-to-steal-passwords-from-memory-558f16dce4ea
- https://adsecurity.org/?p=1729
- https://github.com/gentilkiwi/mimikatz
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003/T1003.md
- https://github.com/SigmaHQ/sigma/tree/master/rules/windows/credential_access
- https://www.ired.team/offensive-security/credential-access-and-credential-dumping
- https://learn.microsoft.com/en-us/sysinternals/downloads/procdump
- https://labs.portcullis.co.uk/download/eu-18-Wadhwa-Brown-Where-2-worlds-collide-Bringing-Mimikatz-et-al-to-UNIX.pdf
- https://www.mandiant.com/resources/blog/detecting-mimikatz-in-your-environment
- https://jpcertcc.github.io/ToolAnalysisResultSheet/details/mimikatz.htm
- https://www.cybereason.com/blog/the-anatomy-of-mimikatz
Unlock Pro Content
Get the full detection package for T1003 including response playbook, investigation guide, and atomic red team tests.