Detection rules › Sigma
Account renamed to admin (or likely) account to evade defense
Detects scenarios where an attacker rename a non admin account in order to evade SOC & operations vigilance
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Persistence | T1078.002 Valid Accounts: Domain Accounts |
Event coverage
| Provider | Event | Title |
|---|---|---|
| Security-Auditing | Event ID 4781 | The name of an account was changed. |
Rule body yaml
title: Account renamed to admin (or likely) account to evade defense
description: Detects scenarios where an attacker rename a non admin account in order to evade SOC & operations vigilance
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0003-Persistence/T1098.xxx-Account%20manipulation
tags:
- attack.persistence
- attack.t1078.002
author: mdecrevoisier
status: experimental
logsource:
product: windows
service: security
detection:
selection_event:
EventID: 4781 # Account name change
selection_pattern:
- NewTargetUserName|startswith:
- admin-
- adm-
- <customer pattern>
- NewTargetUserName|endswith:
- -admin
- -adm
- <customer pattern>
filter:
- OldTargetUserName|startswith: # Original target account name should not be already an admin account
- admin-
- adm-
- <customer pattern>
- OldTargetUserName|endswith:
- -admin
- -adm
- <customer pattern>
- TargetSid|endswith: '-500' # Exclude default builtin account
condition: selection_event and selection_pattern and not filter
falsepositives:
- builtin admin account renamed for obfuscation
level: high
Stages and Predicates
Stage 0: condition
selection_event and selection_pattern and not filterStage 1: selection_event
selection_event:
EventID: 4781
Stage 2: selection_pattern
selection_pattern:
- NewTargetUserName|startswith:
- admin-
- adm-
- <customer pattern>
- NewTargetUserName|endswith:
- -admin
- -adm
- <customer pattern>
Stage 3: not filter
filter:
- OldTargetUserName|startswith:
- admin-
- adm-
- <customer pattern>
- OldTargetUserName|endswith:
- -admin
- -adm
- <customer pattern>
- TargetSid|endswith: '-500'
Exclusions
Top-level NOT(...) conjuncts: predicates this rule actively suppresses.
| Field | Kind | Excluded values |
|---|---|---|
OldTargetUserName | ends_with | -adm |
OldTargetUserName | ends_with | -admin |
OldTargetUserName | ends_with | <customer pattern> |
OldTargetUserName | starts_with | <customer pattern> |
OldTargetUserName | starts_with | adm- |
OldTargetUserName | starts_with | admin- |
TargetSid | ends_with | -500 |
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 |
|---|---|---|
NewTargetUserName | ends_with |
|
NewTargetUserName | starts_with |
|