Malicious AppleScript Execution of curl-Fetched Shell Payload via osascript (via process_creation)

PremiumReviewedSigma · High · v1
Product
macos
Category
process_creation
Author
HuntRule
Published
2026-09-26
Updated
2026-09-26

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 the RustyAttr execution chain where a shell payload fetched with curl is run through osascript do shell script, a macOS technique used by Lazarus per Group-IB to launch remotely retrieved commands. Adversaries combine command substitution with AppleScript to execute downloaded scripts in memory, so this pattern surfaces hands-on payload execution.

Related detections9 linkedT1059.004 — drag to rearrange
macOS: Detect Axios malicious npm execution chain using osascript, curl download, and cleanup
Suspicious Bash Dev-TCP Reverse Shell Execution
Suspicious Remote Script Download Piped to Shell via Wget or Curl on Linux
Suspicious AI Agent Compromise via Web Worker Spawning Shell or Network Tool
Malicious wp2shell WordPress RCE via Web Server Spawning Shell Recon
Suspicious Remote Script Piped Directly to Interpreter in CI Pipeline
Suspicious osascript Spawning Shell Executing Hidden macOS Payload via Axios Compromise
Malicious Node Runtime Spawning Shell to Download Python Payload via Axios Compromise
Malicious Remote Script Piped to Shell via Curl (via process_creation)
Malicious AppleScript Execution of curl-Fetched Shell Payload via osascript (via process_creation)
Pivot detection · T1059.004 · 9 related

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