Detection rules › Sigma
Suspicious Child Process Created as System
Detection of child processes spawned with SYSTEM privileges by parents with LOCAL SERVICE or NETWORK SERVICE accounts
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Privilege Escalation | |
| Stealth |
Telemetry coverage
| Provider | Record / event type |
|---|---|
| Sysmon | Event ID 1: Process creation |
Rule body
title: Suspicious Child Process Created as System
id: 590a5f4c-6c8c-4f10-8307-89afe9453a9d
status: test
description: Detection of child processes spawned with SYSTEM privileges by parents with LOCAL SERVICE or NETWORK SERVICE accounts
references:
- https://speakerdeck.com/heirhabarov/hunting-for-privilege-escalation-in-windows-environment
- https://foxglovesecurity.com/2016/09/26/rotten-potato-privilege-escalation-from-service-accounts-to-system/
- https://github.com/antonioCoco/RogueWinRM
- https://twitter.com/Cyb3rWard0g/status/1453123054243024897
author: Teymur Kheirkhabarov, Roberto Rodriguez (@Cyb3rWard0g), Open Threat Research (OTR)
date: 2019-10-26
modified: 2024-12-01
tags:
- attack.privilege-escalation
- attack.stealth
- attack.t1134.002
logsource:
category: process_creation
product: windows
definition: 'Requirements: ParentUser field needs sysmon >= 13.30'
detection:
selection:
ParentUser|contains:
- 'AUTHORI'
- 'AUTORI'
ParentUser|endswith:
- '\NETWORK SERVICE'
- '\LOCAL SERVICE'
User|contains: # covers many language settings
- 'AUTHORI'
- 'AUTORI'
User|endswith: # System
- '\SYSTEM'
- '\Système'
- '\СИСТЕМА'
IntegrityLevel:
- 'System'
- 'S-1-16-16384'
filter_rundll32:
Image|endswith: '\rundll32.exe'
CommandLine|contains: 'DavSetCookie'
condition: selection and not 1 of filter_*
falsepositives:
- Unknown
level: high
Stages and Predicates
Stage 0: condition
selection and not 1 of filter_*Stage 1: selection
selection:
ParentUser|contains:
- 'AUTHORI'
- 'AUTORI'
ParentUser|endswith:
- '\NETWORK SERVICE'
- '\LOCAL SERVICE'
User|contains:
- 'AUTHORI'
- 'AUTORI'
User|endswith:
- '\SYSTEM'
- '\Système'
- '\СИСТЕМА'
IntegrityLevel:
- 'System'
- 'S-1-16-16384'
Stage 2: not filter_rundll32
filter_rundll32:
Image|endswith: '\rundll32.exe'
CommandLine|contains: 'DavSetCookie'
Exclusions
The rule actively suppresses these predicates.
| Field | Kind | Excluded values | Search |
|---|---|---|---|
CommandLine | match | DavSetCookie | excludes:CommandLine field:"CommandLine" value:"DavSetCookie" |
Image | ends_with | \rundll32.exe | excludes:Image field:"Image" value:"\rundll32.exe" |
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
IntegrityLevel | eq |
| field:"IntegrityLevel" kind:eq |
ParentUser | ends_with |
| field:"ParentUser" kind:ends_with |
ParentUser | match |
| field:"ParentUser" kind:match |
User | ends_with |
| field:"user" kind:ends_with |
User | match |
| field:"user" kind:match |