detecting-credential-dumping-with-edr
Detect OS credential dumping techniques including LSASS access, SAM extraction, and DCSync using EDR telemetry and Sysmon logs.
What this skill does
# Detecting Credential Dumping with EDR ## When to Use - When hunting for post-exploitation credential theft in compromised environments - After detecting suspicious LSASS process access in EDR alerts - When investigating potential Active Directory compromise - During incident response to determine scope of credential exposure - When proactively hunting for T1003 sub-techniques across endpoints ## Prerequisites - EDR platform with process access monitoring (CrowdStrike, MDE, SentinelOne) - Sysmon deployed with Event ID 10 (Process Access) configured for LSASS - Windows Security Event Log 4688 with command-line auditing enabled - Active Directory event forwarding for DCSync detection (Event ID 4662) - Windows Security Event Log 4656/4663 for SAM registry access ## Workflow 1. **Identify Credential Dumping Vectors**: Map the T1003 sub-techniques relevant to your environment (LSASS Memory, SAM, NTDS, DCSync, /etc/passwd, Cached Credentials). 2. **Query LSASS Access Events**: Search for Sysmon Event ID 10 where TargetImage is lsass.exe with suspicious GrantedAccess masks (0x1010, 0x1038, 0x1FFFFF). 3. **Analyze Process Context**: Examine the source process accessing LSASS - legitimate security tools vs. unknown or suspicious binaries. 4. **Hunt for SAM/NTDS Access**: Query for reg.exe save operations against SAM/SECURITY/SYSTEM hives and ntdsutil/vssadmin shadow copy access. 5. **Detect DCSync Activity**: Monitor for DS-Replication-Get-Changes requests from non-domain-controller sources (Event ID 4662). 6. **Correlate with Network Activity**: Cross-reference credential dumping with subsequent lateral movement or authentication anomalies. 7. **Assess Impact and Report**: Determine which credentials were potentially exposed and recommend password resets and containment. ## Key Concepts | Concept | Description | |---------|-------------| | T1003 | OS Credential Dumping - parent technique | | T1003.001 | LSASS Memory - dumping credentials from LSASS process | | T1003.002 | Security Account Manager (SAM) - extracting local password hashes | | T1003.003 | NTDS - extracting AD database from Domain Controllers | | T1003.004 | LSA Secrets - accessing stored service credentials | | T1003.005 | Cached Domain Credentials (DCC2) | | T1003.006 | DCSync - replicating AD credentials via DRSUAPI | | LSASS | Local Security Authority Subsystem Service | | GrantedAccess | Bitmask indicating the access rights requested for a process | | Minidump | Memory dump technique used by tools like comsvcs.dll | ## Tools & Systems | Tool | Purpose | |------|---------| | CrowdStrike Falcon | LSASS access detection and process tree analysis | | Microsoft Defender for Endpoint | Advanced hunting for credential access events | | Sysmon | Process access monitoring (Event ID 10) | | Velociraptor | Endpoint artifact collection for LSASS analysis | | Elastic Security | Correlation of credential dumping indicators | | Splunk | SPL queries for credential access event analysis | | Volatility | Memory forensics for LSASS credential extraction | ## Common Scenarios 1. **Mimikatz LSASS Dump**: Attacker runs `sekurlsa::logonpasswords` causing direct LSASS memory read with GrantedAccess 0x1010. 2. **Comsvcs.dll MiniDump**: Process uses `rundll32.exe comsvcs.dll MiniDump [LSASS PID]` to create LSASS memory dump file. 3. **ProcDump LSASS**: Attacker uses Microsoft-signed procdump.exe with `-ma lsass.exe` to dump LSASS memory. 4. **SAM Registry Export**: Adversary runs `reg save HKLM\SAM sam.bak` to extract local password hashes. 5. **DCSync Replication**: Compromised account with Replicating Directory Changes permissions performs DCSync from a workstation. 6. **NTDS Shadow Copy**: Attacker uses `vssadmin create shadow /for=C:` then copies ntds.dit from the shadow copy. ## Output Format ``` Hunt ID: TH-CRED-DUMP-[DATE]-[SEQ] Technique: T1003.[Sub-technique] Source Process: [Process accessing LSASS/SAM/NTDS] Target: [lsass.exe / SAM / NTDS.dit / DC Replication] Host: [Hostname] User: [Account context] GrantedAccess: [Access mask if applicable] Timestamp: [UTC] Risk Level: [Critical/High/Medium/Low] Evidence: [Log entries, process tree, network activity] Recommended Action: [Password reset scope, containment steps] ```
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.