Detection rules › Splunk
System Shutdown or Reboot (Windows Event Log)
Adversaries may shutdown/reboot systems to interrupt access to, or aid in the destruction of, those systems. Operating systems may contain commands to initiate a shutdown/reboot of a machine
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Impact | T1529 System Shutdown/Reboot |
References
Event coverage
| Provider | Event | Title |
|---|---|---|
| User32 | Event ID 1074 | The process param1 has initiated the param5 of computer param2 on behalf of user param7 for the following reason: |
Rule body yaml
id: '8106.10012'
title: System Shutdown or Reboot
description: 'Adversaries may shutdown/reboot systems to interrupt access to, or aid
in the destruction of, those systems. Operating systems may contain commands to
initiate a shutdown/reboot of a machine. -- Software Association: Blackbyte, Conti,
DirtyMoe'
logic_format: Splunk
logic: '`get_endpoint_data` `get_endpoint_data_winevent` (TERM(EventCode=1074) OR
"<EventID>1074<") | rex field=Message "(?i)process\s+(?<process_name>.*?\.(exe|dll|\w{2,4}))"|
rex field=Message "user\s+(?<user>.*?\x5c\S+)" | eval shutdown_type=Shutdown_Type
| table _time, host, user process_name, shutdown_type, signature_id | bin span=1s
| stats values(*) as * by _time, host '
techniques:
- impact:system shutdown/reboot
technique_id:
- T1529
data_category:
- Windows event logs
references:
- https://news.sophos.com/en-us/2020/09/17/maze-attackers-adopt-ragnar-locker-virtual-machine-technique/
Stages and Predicates
Stage 1: search
`get_endpoint_data` `get_endpoint_data_winevent` (TERM(EventCode=1074) OR "<EventID>1074<")
Stage 2: rex
| rex field=Message "(?i)process\s+(?<process_name>.*?\.(exe|dll|\w{2,4}))"
Stage 3: eval
| rex field=Message "user\s+(?<user>.*?\x5c\S+)"
Stage 4: eval
| eval shutdown_type=Shutdown_Type
Stage 5: table
| table _time, host, user process_name, shutdown_type, signature_id
Stage 6: bucket
| bin span=1s
Stage 7: stats
| stats values(*) as * by _time, host
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 |
|---|---|---|
EventCode | eq |
|
Search terms
Bare-string tokens in the SPL search body. Splunk matches each token against _raw (the untyped raw event text) anywhere it appears, not against a specific field. These don't surface in the Indicators table because they aren't predicates on a known field.
| Stage | Term |
|---|---|
| 1 | TERM |
| 1 | "<EventID>1074<" |