Detection rules › Sigma

AD Privileged Users or Groups Reconnaissance

Status
test
Severity
high
Log source
product windows, service security
Author
Samir Bousseaden
Source
github.com/SigmaHQ/sigma

Detect priv users or groups recon based on 4661 eventid and known privileged users or groups SIDs

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: AD Privileged Users or Groups Reconnaissance
id: 35ba1d85-724d-42a3-889f-2e2362bcaf23
status: test
description: Detect priv users or groups recon based on 4661 eventid and known privileged users or groups SIDs
references:
    - https://web.archive.org/web/20230329163438/https://blog.menasec.net/2019/02/threat-hunting-5-detecting-enumeration.html
author: Samir Bousseaden
date: 2019-04-03
modified: 2022-07-13
tags:
    - attack.discovery
    - attack.t1087.002
logsource:
    product: windows
    service: security
    definition: 'Requirements: enable Object Access SAM on your Domain Controllers'
detection:
    selection:
        EventID: 4661
        ObjectType:
            - 'SAM_USER'
            - 'SAM_GROUP'
    selection_object:
        - ObjectName|endswith:
              - '-512'
              - '-502'
              - '-500'
              - '-505'
              - '-519'
              - '-520'
              - '-544'
              - '-551'
              - '-555'
        - ObjectName|contains: 'admin'
    filter:
        SubjectUserName|endswith: '$'
    condition: selection and selection_object and not filter
falsepositives:
    - If source account name is not an admin then its super suspicious
level: high

Stages and Predicates

Stage 0: condition

selection and selection_object and not filter

Stage 1: selection

selection:
    EventID: 4661
    ObjectType:
        - 'SAM_USER'
        - 'SAM_GROUP'

Stage 2: selection_object

selection_object:
    - ObjectName|endswith:
          - '-512'
          - '-502'
          - '-500'
          - '-505'
          - '-519'
          - '-520'
          - '-544'
          - '-551'
          - '-555'
    - ObjectName|contains: 'admin'

Stage 3: not filter

filter:
    SubjectUserName|endswith: '$'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
SubjectUserNameends_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.

FieldKindValues
ObjectNameends_with
  • -500 corpus 3 (sigma 3)
  • -502
  • -505
  • -512 corpus 3 (sigma 3)
  • -519
  • -520
  • -544
  • -551
  • -555
ObjectNamematch
  • admin
ObjectTypeeq
  • SAM_GROUP corpus 4 (sigma 4)
  • SAM_USER corpus 5 (sigma 5)