Detection rules › Sigma
User properties enumeration via commandline
Detects scenarios where an attacker attempts to enumerate local users via commandline.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Discovery | T1087.001 Account Discovery: Local Account, T1087.002 Account Discovery: Domain Account |
Event coverage
| Provider | Event | Title |
|---|---|---|
| Sysmon | Event ID 1 | Process creation |
| Security-Auditing | Event ID 4688 | A new process has been created. |
Rule body yaml
title: User properties enumeration via commandline
description: Detects scenarios where an attacker attempts to enumerate local users via commandline.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0007-Discovery/T1087-Account%20discovery
- https://blogs.jpcert.or.jp/en/2016/01/windows-commands-abused-by-attackers.html
- https://attack.mitre.org/software/S0039/
tags:
- attack.discovery
- attack.t1087.001
- attack.t1087.002
author: mdecrevoisier
logsource:
product: windows
category: process_creation
detection:
selection: # Full command example: 'net user administrator [/domain]'
NewProcessName|endswith:
- \net1.exe
- \net.exe
CommandLine|contains:
- net
- user
- domain
filter:
CommandLine|contains: add # refers to another use case for user creation via commandline
condition: selection and not filter
falsepositives:
- Pentest
- Administrator activity
level: high
Stages and Predicates
Stage 0: condition
selection and not filterStage 1: selection
selection:
NewProcessName|endswith:
- \net1.exe
- \net.exe
CommandLine|contains:
- net
- user
- domain
Stage 2: not filter
filter:
CommandLine|contains: add
Exclusions
Top-level NOT(...) conjuncts: predicates this rule actively suppresses.
| Field | Kind | Excluded values |
|---|---|---|
CommandLine | match | add |
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 |
|---|---|---|
CommandLine | match |
|
NewProcessName | ends_with |
|