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
Malicious Next.js Node Process Spawning Shell Downloader after RSC Deserialization RCE (via process_creation)
Suspicious Shell Script Download and Execution via curl Piped to Bash on Linux (via process_creation)
Obfuscated VShell Bash Payload Execution via Base64-Decoded Filename (via process_creation)
Possible OMIGOD Unauthenticated OMI WSMan Command Execution via Web Request (via webserver)
Malicious Curl to Shell Pipe Dropper Execution (via process_creation)
Malicious Shai-Hulud npm Worm Staging Script Execution on Linux
Suspicious Java Process Spawning Download or Shell Utility (Exposed JDWP Abuse)
Suspicious PostgreSQL Spawning Command Shell via COPY FROM PROGRAM (Soco404)
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.