CmdID

CmdID / Rules / Windows

Suspicious Execution of Shutdown

A Sigma rule for process creation on Windows, by frack113.

medium 1 ATT&CK technique 2 programs it names 7 everyday examples trip it

What it looks for

its detection, as SigmaHQ writes it
detection:
  selection:
    CommandLine|contains:
      - '/r '
      - '/s '
    Image|endswith: '\shutdown.exe'
  condition: selection

The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by frack113, under the Detection Rule License 1.1. CmdID evaluates it on a command line alone: a test on what a command line cannot show, such as the parent process or the user, is not met.

Command lines that trip it

everyday examples from tldr-pages, CC BY 4.0, each read by CmdID

To force apps to close and to restart the local computer after a one-minute delay, with the reason Application: Maintenance (Planned) and the comment "Reconfiguring myapp.exe", type on the page for shutdown

shutdown /r /t 60 /c "Reconfiguring myapp.exe" /f /d p:4:1Identify

To perform a planned shutdown of a device in 10 minutes and capture the reason in the shutdown event tracker with the comment "Scheduled maintenance", type on the page for shutdown

shutdown.exe /s /t 600 /d p:0:0 /e /c "Scheduled maintenance"Identify

To restart the remote computer myremoteserver with the same parameters as the previous example, type on the page for shutdown

shutdown /r /m \\myremoteserver /t 60 /c "Reconfiguring myapp.exe" /f /d p:4:1Identify

To restart the remote computer myremoteserver in 5 minutes due to a security update and include a custom reason in the shutdown event tracker, type on the page for shutdown

shutdown /r /t 300 /e /c "Security Update" /m \\myremoteserverIdentify

Shut down the current machine force-closing all apps on the page for shutdown

shutdown /s /fIdentify

Restart the current machine immediately on the page for shutdown

shutdown /r /t 0Identify

Specify a timeout in seconds to wait before shutting down on the page for shutdown

shutdown /s /t 8Identify

Programs and files it names

their pages here

ATT&CK

the techniques it is tagged with
T1529System Shutdown/Reboot