macOS Installer Scripts Spawning Suspicious Interpreter Child Processes

Alerts when macOS installer scripts (preinstall/postinstall) spawn shell, scripting, osascript, curl, or wget processes.

FreeReviewedSigma · Medium · v2
Product
macos
Category
process_creation
Author
Sohan G (D4rkCiph3r) (SigmaHQ), DRL 1.1
Published
2023-02-18
Updated
2026-07-31

ATT&CK techniques

Execution → C2
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Priv Esc

  6. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. Exfiltration

  12. Impact

What it detects

This rule identifies child process execution where the parent is an installer-related script (a process ending with /package_script_service or /installer) and the child executable is a common interpreter or downloader. It focuses on installer phases by matching command lines containing preinstall or postinstall. Such behavior matters because malicious software can use installer script execution to launch payloads or external fetching tools. The detection relies on macOS process creation telemetry including parent/child image paths and command-line content.

Related detections9 linkedT1071.001 — drag to rearrange
Suspicious Bash Reverse Shell via /dev/tcp
Malicious Shai-Hulud npm Payload Execution via bun_environment Script (via process_creation)
Malicious HarborWatch RAT Command and Control Beacon by User Agent (via proxy)
Suspicious UAT-10608 Credential Harvesting C2 Beacon via HTTP
Malicious BadIIS C2 Communication via lwxatisme User-Agent
Possible PS1Bot C2 Beacon With Drive Serial URI Pattern (via proxy)
Suspicious WarmCookie C2 Beacon With Fixed Firefox User-Agent
Suspicious npm Postinstall Node Execution From Fixtures Path (BeaverTail OtterCookie)
Suspicious Script Host Execution of Decoy-Named JavaScript Dropper (PS1Bot)
macOS Installer Scripts Spawning Suspicious Interpreter Child Processes
Pivot detection · T1071.001 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.