CmdID

CmdID / Rules / macOS

Suspicious Browser Child Process - MacOS

A Sigma rule for process creation on macOS, by Sohan G (D4rkCiph3r).

medium 3 ATT&CK techniques 13 programs it names

What it looks for

its detection, as SigmaHQ writes it
detection:
  filter_main_chrome:
    CommandLine|contains:
      - '/Volumes/Google Chrome/Google Chrome.app/Contents/Frameworks/*/Resources/install.sh'
      - '/Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/*/Resources/keystone_promote_preflight.sh'
      - '/Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/*/Resources/keystone_promote_postflight.sh'
    ParentImage|contains:
      - 'Google Chrome Helper'
      - 'Google Chrome'
  filter_main_chromerecovery:
    CommandLine|contains|all:
      - '/Users/'
      - '/Library/Application Support/Google/Chrome/recovery/'
      - '/ChromeRecovery'
    ParentImage|contains:
      - 'Google Chrome Helper'
      - 'Google Chrome'
  filter_main_generic:
    CommandLine|contains: '--defaults-torrc'
  filter_main_ms_autoupdate:
    CommandLine|contains: '/Library/Application Support/Microsoft/MAU*/Microsoft AutoUpdate.app/Contents/MacOS/msupdate'
  filter_main_ms_edge:
    CommandLine|contains:
      - 'IOPlatformExpertDevice'
      - 'hw.model'
    ParentImage|contains: 'Microsoft Edge'
  filter_optional_empty:
    CommandLine: ''
  filter_optional_null:
    CommandLine: null
  selection:
    Image|endswith:
      - '/bash'
      - '/curl'
      - '/dash'
      - '/ksh'
      - '/osascript'
      - '/perl'
      - '/php'
      - '/pwsh'
      - '/python'
      - '/sh'
      - '/tcsh'
      - '/wget'
      - '/zsh'
    ParentImage|contains:
      - 'com.apple.WebKit.WebContent'
      - 'firefox'
      - 'Google Chrome Helper'
      - 'Google Chrome'
      - 'Microsoft Edge'
      - 'Opera'
      - 'Safari'
      - 'Tor Browser'
  condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*

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 Sohan G (D4rkCiph3r), 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.

None of the everyday examples and documented commands on CmdID’s program pages trips it. To see whether a command line does, paste it into CmdID.

Programs and files it names

their pages here

ATT&CK

the techniques it is tagged with
T1059Command and Scripting Interpreter
T1189Drive-by Compromise
T1203Exploitation for Client Execution