Detection rules › Sigma
Hidden account creation (with fast deletion)
Detects scenarios where an attacker creates a hidden local account. See also rule "User account creation disguised in a computer account".
Known false positives
- IAM account lifecycle software
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Persistence |
Telemetry coverage
Rule body
title: Hidden account creation (with fast deletion)
description: Detects scenarios where an attacker creates a hidden local account. See also rule "User account creation disguised in a computer account".
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0003-Persistence/T1136-Create%20account
- https://github.com/wgpsec/CreateHiddenAccount
tags:
- attack.persistence
- attack.t1098 # account manipulation
- attack.t1136 # user creation
- attack.defense_evesion
- attack.t0136 # masquerading
author: mdecrevoisier
status: experimental
logsource:
product: windows
service: security
detection:
selection_create:
EventID: 4720
selection_delete:
EventID: 4726
filter:
Computer: '%domain_controllers%'
condition: selection_create and selection_delete and not filter # requires grouping over 'TargetSid' to not mix different user accounts
timeframe: 1m
falsepositives:
- IAM account lifecycle software
level: medium
Stages and Predicates
Stage 0: condition
selection_create and selection_delete and not filter # requires grouping over 'TargetSid' to not mix different user accountsStage 1: selection_create
selection_create:
EventID: 4720
Stage 2: selection_delete
selection_delete:
EventID: 4726
Stage 3: not filter
filter:
Computer: '%domain_controllers%'
Exclusions
The rule actively suppresses these predicates.
| Field | Kind | Excluded values | Search |
|---|---|---|---|
Computer | eq | %domain_controllers% | excludes:Computer field:"Computer" value:"%domain_controllers%" |