CmdID

CmdID / Rules / macOS

System Shutdown/Reboot - MacOs

A Sigma rule for process creation on macOS, by Igor Fits, Mikhail Larin, oscd.community.

informational 1 ATT&CK technique 3 programs it names 23 everyday examples trip it

What it looks for

its detection, as SigmaHQ writes it
detection:
  selection:
    Image|endswith:
      - '/shutdown'
      - '/reboot'
      - '/halt'
  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 Igor Fits, Mikhail Larin, oscd.community, 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

Halt the system on the page for halt

Power off the system (same as poweroff) on the page for halt

halt --poweroffIdentify

Reboot the system (same as reboot) on the page for halt

halt --rebootIdentify

Halt immediately without contacting the system manager on the page for halt

halt --forceIdentify

Write the wtmp shutdown entry without halting the system on the page for halt

halt --wtmp-onlyIdentify

Set an interface to be active or inactive (this is run inside the interface command) on the page for interface

no shutdown|shutdownIdentify

Reboot the system on the page for reboot

rebootIdentify

Power off the system (same as poweroff) on the page for reboot

reboot --poweroffIdentify

Halt (terminates all processes and shuts down the CPU) the system (same as halt) on the page for reboot

reboot --haltIdentify

Reboot immediately without contacting the system manager on the page for reboot

reboot --forceIdentify

Write the wtmp shutdown entry without rebooting the system on the page for reboot

reboot --wtmp-onlyIdentify

Reboot immediately on the page for reboot

sudo rebootIdentify

And 11 more examples on CmdID’s program pages.

Programs and files it names

their pages here

ATT&CK

the techniques it is tagged with
T1529System Shutdown/Reboot