Detection rules › Sigma

Account renamed to admin (or likely) account to evade defense

Status
experimental
Severity
high
Log source
product windows, service security
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker rename a non admin account in order to evade SOC & operations vigilance

MITRE ATT&CK coverage

Event coverage

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 filter

Stage 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.

FieldKindExcluded values
OldTargetUserNameends_with-adm
OldTargetUserNameends_with-admin
OldTargetUserNameends_with<customer pattern>
OldTargetUserNamestarts_with<customer pattern>
OldTargetUserNamestarts_withadm-
OldTargetUserNamestarts_withadmin-
TargetSidends_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.

FieldKindValues
NewTargetUserNameends_with
  • -adm
  • -admin
  • <customer pattern>
NewTargetUserNamestarts_with
  • <customer pattern>
  • adm-
  • admin-