Detection rules › Splunk

System Shutdown or Reboot (Windows Event Log)

Group by
_time, host
Source
github.com/anvilogic-forge/armory

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

TacticTechniques
ImpactT1529 System Shutdown/Reboot

References

Event coverage

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.

FieldKindValues
EventCodeeq
  • 1074

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.

StageTerm
1TERM
1"<EventID>1074<"