Detection rules › Sigma

Local Accounts Discovery

Severity
low
Author
Timur Zinniatullin, Daniil Yugoslavskiy, oscd.community
Source
upstream

Local accounts, System Owner/User discovery using operating systems utilities

MITRE ATT&CK coverage

TacticTechniques
DiscoveryT1033 System Owner/User Discovery, T1087.001 Account Discovery: Local Account

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation

Stages and Predicates

Stage 1: selection_cmd

CommandLine|contains: ' /c'
CommandLine|contains: '\Users\'
CommandLine|contains: 'dir '
Image|endswith: '\cmd.exe'

Stage 2: not filter_cmd

CommandLine|contains: ' rmdir '

Stage 3: selection_net

or:
Image|endswith: '\net.exe'
Image|endswith: '\net1.exe'
CommandLine|contains: user

Stage 4: not filter_net

or:
CommandLine|contains: '/active'
CommandLine|contains: '/add'
CommandLine|contains: '/delete'
CommandLine|contains: '/domain'
CommandLine|contains: '/expires'
CommandLine|contains: '/passwordreq'
CommandLine|contains: '/scriptpath'
CommandLine|contains: '/times'
CommandLine|contains: '/workstations'

Stage 5: 1 of selection_other_img

or:
Image|endswith: '\quser.exe'
Image|endswith: '\qwinsta.exe'
Image|endswith: '\whoami.exe'
OriginalFileName: quser.exe
OriginalFileName: qwinsta.exe
OriginalFileName: whoami.exe

Stage 6: 1 of selection_other_wmi

CommandLine|contains: get
CommandLine|contains: useraccount
Image|endswith: '\wmic.exe'

Stage 7: 1 of selection_other_cmdkey

CommandLine|contains: ' /l'
Image|endswith: '\cmdkey.exe'

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
CommandLinematch
  • /c
  • /l
  • rmdir
  • /active
  • /add corpus 3 (sigma 3)
  • /delete corpus 4 (sigma 4)
  • /domain
  • /expires
  • /passwordreq
  • /scriptpath
  • /times
  • /workstations
  • \Users\
  • dir corpus 4 (sigma 4)
  • get
  • user corpus 4 (sigma 4)
  • useraccount corpus 2 (sigma 2)
Imageends_with
  • \cmd.exe corpus 92 (sigma 92)
  • \cmdkey.exe corpus 3 (sigma 3)
  • \net.exe corpus 27 (sigma 27)
  • \net1.exe corpus 25 (sigma 25)
  • \quser.exe corpus 2 (sigma 2)
  • \qwinsta.exe corpus 2 (sigma 2)
  • \whoami.exe corpus 18 (sigma 18)
  • \wmic.exe corpus 37 (sigma 37)
OriginalFileNameeq
  • quser.exe corpus 2 (sigma 2)
  • qwinsta.exe
  • whoami.exe corpus 9 (sigma 9)