Suspicious osascript Spawning Shell Interpreter on macOS

PremiumReviewedSigma · Medium · v1
Product
macos
Category
process_creation
Author
HuntRule
Published
2026-10-09
Updated
2026-10-09

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 detects osascript spawning a shell such as zsh or bash with an inline command, a chain used by the BlueNoroff GhostCall and GhostHire campaigns to bridge AppleScript into shell execution. Attackers use osascript to run AppleScript that then invokes /bin/zsh -c to execute follow-on commands and download stages. This AppleScript-to-shell handoff is a common macOS execution technique for staging payloads.

Related detections9 linkedT1059.002 — drag to rearrange
Suspicious osascript Executing JavaScript Payload from Office Container
Malicious Shell or osascript Spawned by Microsoft Office on macOS
Malicious Credential Phishing Dialog via osascript
Malicious Data Exfiltration via curl with Stealer Specific BuildID Header
Suspicious osascript Password Prompt via AppleScript Display Dialog (via process_creation)
Malicious Sapphire Sleet curl to osascript Chain With mac-cur User-Agent (via process_creation)
Suspicious AMOS Stealer Fake Password Prompt via osascript (via process_creation)
Suspicious osascript Spawning Shell curl to External Host on macOS (via process_creation)
Malicious Fake Zoom AppleScript Execution via Osascript
Suspicious osascript Spawning Shell Interpreter on macOS
Pivot detection · T1059.002 · 9 related

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