LoFP LoFP / legitimate software uses the scripts (preinstall, postinstall)

Techniques

Sample rules

Suspicious Installer Package Child Process

Description

Detects the execution of suspicious child processes from macOS installer package parent process. This includes osascript, JXA, curl and wget amongst other interpreters

Detection logic

condition: selection_installer
selection_installer:
  CommandLine|contains:
  - preinstall
  - postinstall
  Image|endswith:
  - /sh
  - /bash
  - /dash
  - /python
  - /ruby
  - /perl
  - /php
  - /javascript
  - /osascript
  - /tclsh
  - /curl
  - /wget
  ParentImage|endswith:
  - /package_script_service
  - /installer