Detection rules › Sigma
SAM database user credentials dump with Mimikatz
Detects scenarios where an attacker dump the LSASS memory content using Mimikatz (sekurlsa module).
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Credential Access | T1003.001 OS Credential Dumping: LSASS Memory |
Event coverage
| Provider | Event | Title |
|---|---|---|
| Security-Auditing | Event ID 4661 | A handle to an object was requested. |
Rule body yaml
title: SAM database user credentials dump with Mimikatz
description: Detects scenarios where an attacker dump the LSASS memory content using Mimikatz (sekurlsa module).
correlation: correlate TargetLogonId from ID 4624 with SubjectLogonId from ID 4661 to identify the source of the enumeration.
requirements: extended rights auditing enabled (https://www.manageengine.com/products/active-directory-audit/active-directory-auditing-configuration-guide-configure-object-level-auditing-manually.html)
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0006-Credential%20Access/T1003-Credential%20dumping
- https://ivanitlearning.wordpress.com/2019/09/07/mimikatz-and-password-dumps/
tags:
- attack.credential_access
- attack.t1003.001
author: mdecrevoisier
status: experimental
logsource:
product: windows
service: security
detection:
selection:
EventID: 4661
ProcessName|endswith: '\lsass.exe'
ObjectServer: Security Account Manager
ObjectType: SAM_USER
ObjectName|startswith: 'S-1-5-21-' # User SID dumped
AccessList|contains|all:
- '%%5446' # ChangePassword
- '%%5447' # SetPassword
filter:
SubjectUserName|endswith: '$'
condition: selection and not filter | count(ObjectName) by Computer > 10
falsepositives:
- None
level: high
Stages and Predicates
Stage 0: condition
selection and not filter | count(ObjectName) by Computer > 10Stage 1: selection
selection:
EventID: 4661
ProcessName|endswith: '\lsass.exe'
ObjectServer: Security Account Manager
ObjectType: SAM_USER
ObjectName|startswith: 'S-1-5-21-'
AccessList|contains|all:
- '%%5446'
- '%%5447'
Stage 2: not filter
filter:
SubjectUserName|endswith: '$'
Exclusions
Top-level NOT(...) conjuncts: predicates this rule actively suppresses.
| Field | Kind | Excluded values |
|---|---|---|
SubjectUserName | ends_with | $ |
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
AccessList | match |
|
ObjectName | starts_with |
|
ObjectServer | eq |
|
ObjectType | eq |
|
ProcessName | ends_with |
|