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
Trigger phrases:
"detecting credential dumping techniques"
"Detect LSASS credential dumping, SAM database extraction, and NTDS"
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
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
# Example: IOC detection
import re
IOC_PATTERNS = {
"ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",
"domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",
"hash_md5": r"\b[a-f0-9]{32}\b",
"hash_sha256": r"\b[a-f0-9]{64}\b",
}
def extract_iocs(text: str) -> dict:
return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}
- 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.
When NOT to Use
- You need to perform the attack to test detection (use performing-* skills)
- Task is about analyzing past incidents (use analyzing-* skills)
- You need to implement detection rules (use implementing-* skills)
- Task is about threat hunting proactively (use hunting-* skills)
- You don't have access to logs or monitoring data
- Task requires incident response (use IR skills)
Red Flags
- Performing actions without explicit written authorization from the asset owner
- Testing against production systems without a defined scope and rules of engagement
- Sharing sensitive findings or credentials in unencrypted communications
- Failing to properly scope and contain the assessment before starting
Process
- Reconnaissance — Gather target information, identify attack surface, enumerate services
- Analysis/Exploitation — Execute the technique, analyze results, document findings
- Reporting — Document IOCs, write findings, provide remediation recommendations
Verification
- All steps executed successfully against a test environment before production use
- Output documented with screenshots or logs demonstrating expected behavior
- Results validated against known-good baselines or reference implementations
- Documentation complete enough for another analyst to reproduce findings
Anti-Rationalization Table
| Rationalization |
Reality |
| "We are too small to be targeted" |
Automated attacks target everyone. Size does not matter. |
| "Security slows us down" |
A breach slows you down 100x more. Build security in from the start. |
| "We will fix it after launch" |
Vulnerabilities in production are exploited within hours. Fix before deploy. |
1---2name: detecting-credential-dumping-techniques3description: Use when detect LSASS credential dumping, SAM database extraction, and4 NTDS.dit theft using Sysmon Event ID 10, Windows Security logs, and SIEM correlation5 rules. Use when detecting lsass credential dumping, sam database extraction, and6 ntds.dit theft.7domain: cybersecurity8subdomain: threat-detection9tags:10- credential-dumping11- lsass12- mimikatz13- sysmon14- active-directory15- windows-security16- defense-evasion17version: '1.0'18author: oyi7719license: Apache-2.020d3fend_techniques:21- Token Binding22- Execution Isolation23- File Metadata Consistency Validation24- Restore Access25- Application Protocol Command Analysis26nist_csf:27- DE.CM-0128- DE.AE-0229- DE.AE-0630- ID.RA-0531category: cybersecurity32metadata:33 source: https://skillmd.com/skills/oyi77/detecting-credential-dumping-techniques34---353637# Detecting Credential Dumping Techniques3839## Overview4041Credential 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.424344## When to Use45**Trigger phrases:**46- "detecting credential dumping techniques"47- "Detect LSASS credential dumping, SAM database extraction, and NTDS"484950- When investigating security incidents that require detecting credential dumping techniques51- When building detection rules or threat hunting queries for this domain52- When SOC analysts need structured procedures for this analysis type53- When validating security monitoring coverage for related attack techniques5455## Prerequisites5657- Sysmon v14+ deployed with ProcessAccess logging (Event ID 10) for lsass.exe58- Windows Security audit policy enabling process creation (Event ID 4688) with command line logging59- Splunk or Elastic SIEM ingesting Sysmon and Windows Security logs60- Python 3.8+ for log analysis6162## Steps6364```python65# Example: IOC detection66import re6768IOC_PATTERNS = {69 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",70 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",71 "hash_md5": r"\b[a-f0-9]{32}\b",72 "hash_sha256": r"\b[a-f0-9]{64}\b",73}7475def extract_iocs(text: str) -> dict:76 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}77```78791. Configure Sysmon to log ProcessAccess events targeting lsass.exe802. Forward Sysmon Event ID 10 and Windows Event ID 4688 to SIEM813. Create detection rules for known GrantedAccess patterns (0x1010, 0x1FFFFF)824. Detect comsvcs.dll MiniDump and procdump.exe targeting LSASS PID835. Alert on reg.exe SAM/SECURITY/SYSTEM hive export commands846. Detect ntdsutil/vssadmin shadow copy creation for NTDS.dit theft857. Correlate detections with user/host context for risk scoring8687## Expected Output8889JSON report containing detected credential dumping indicators with technique classification, severity ratings, process details, MITRE ATT&CK mapping, and Splunk/Elastic detection queries.90## When NOT to Use9192- You need to perform the attack to test detection (use performing-* skills)93- Task is about analyzing past incidents (use analyzing-* skills)94- You need to implement detection rules (use implementing-* skills)95- Task is about threat hunting proactively (use hunting-* skills)96- You don't have access to logs or monitoring data97- Task requires incident response (use IR skills)9899100## Red Flags101102- Performing actions without explicit written authorization from the asset owner103- Testing against production systems without a defined scope and rules of engagement104- Sharing sensitive findings or credentials in unencrypted communications105- Failing to properly scope and contain the assessment before starting106107## Process1081091. **Reconnaissance** — Gather target information, identify attack surface, enumerate services1101. **Analysis/Exploitation** — Execute the technique, analyze results, document findings1111. **Reporting** — Document IOCs, write findings, provide remediation recommendations112113## Verification114115- All steps executed successfully against a test environment before production use116- Output documented with screenshots or logs demonstrating expected behavior117- Results validated against known-good baselines or reference implementations118- Documentation complete enough for another analyst to reproduce findings119120## Anti-Rationalization Table121122| Rationalization | Reality |123|---|---|124| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |125| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |126| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |