macOS: Process execution of osacompile by applet/osascript child processes

Flags macOS applet or osascript processes launching command lines that contain osacompile.

FreeReviewedSigma · Medium · v2
Product
macos
Category
process_creation
Author
Sohan G (D4rkCiph3r), Red Canary (Idea) (SigmaHQ), DRL 1.1
Published
2023-04-03
Updated
2026-07-31

ATT&CK techniques

Execution
  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. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags macOS process executions where a child process with a parent image ending in /applet or /osascript contains “osacompile” in its command line. Executing osacompile can indicate compilation or deployment of AppleScript-based components from script or applet contexts, which attackers may use to establish or modify functionality. It relies on process creation telemetry, specifically parent process image paths and the spawned process command line.

Related detections9 linkedT1059.002 — drag to rearrange
Suspicious Osascript Requesting Administrator Privileges (via process_creation)
Malicious Remote Script Piped to a Shell on macOS (via process_creation)
AppleScript do-shell-script Abuse via Osascript (via process_creation)
Suspicious AppleScript Payload Execution via osascript (macOS)
Suspicious AppleScript Execution Spawning a Shell via Osascript
Suspicious osascript Execution of Encoded AppleScript on macOS (via process_creation)
Suspicious Credential Prompt Phishing via osascript (via process_creation)
Malicious ClickFix Stager Piping curl Output to osascript
Suspicious Shell Execution Referencing Mounted DMG Volume via Terminal (macOS)
macOS: Process execution of osacompile by applet/osascript child processes
Pivot detection · T1059.002 · 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.