Detection rules › Sigma
User added to a group via commandline
Detects scenarios where an attacker attempts to escalate privilege by adding a user to a group via commandline.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Persistence | T1098 Account Manipulation |
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 added to a group via commandline
description: Detects scenarios where an attacker attempts to escalate privilege by adding a user to a group via commandline.
references:
- https://blogs.jpcert.or.jp/en/2016/01/windows-commands-abused-by-attackers.html
- https://attack.mitre.org/software/S0039/
tags:
- attack.persistence
- attack.t1098 # account manipulation
author: mdecrevoisier
logsource:
product: windows
category: process_creation
detection:
selection: # Full command example: 'net localgroup "Remote Desktop Users" /Add DefaultAccount'
NewProcessName|endswith:
- \net1.exe
- \net.exe
CommandLine|contains:
- group
- localgroup
CommandLine|contains: add
condition: selection
falsepositives:
- Pentest
- Administrator activity
- Splunk UF agent installation
level: high
Stages and Predicates
Stage 0: condition
selectionStage 1: selection
selection:
NewProcessName|endswith:
- \net1.exe
- \net.exe
CommandLine|contains:
- group
- localgroup
CommandLine|contains: 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 |
|