Malicious Remote Script Piped to a Shell on macOS (via process_creation)

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

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 a macOS command line that downloads remote content with curl and pipes it straight into a shell or osascript, the paste-and-run delivery behavior behind macOS stealers such as Atomic and Odyssey that trick users into running a one-liner in Terminal. macOS paste-and-run stealer campaigns are called out in the Red Canary Threat Detection Report. Detecting the download-and-execute pipe surfaces infostealer installation at the execution stage.

Related detections9 linkedT1204.004 — drag to rearrange
Malicious Data Exfiltration via curl with Stealer Specific BuildID Header
Suspicious osascript Password Prompt via AppleScript Display Dialog (via process_creation)
Suspicious ClickFix RunMRU Entry Recording LOLBIN Command from Run Dialog
Suspicious RunMRU Entry Launching LOLBIN via ClickFix Run Dialog
Malicious Sapphire Sleet curl to osascript Chain With mac-cur User-Agent (via process_creation)
Suspicious macOS ClickFix Execution Piping curl to zsh via UNC1069
Suspicious msdt Execution of Audio Diagnostic via UNC1069 ClickFix
Suspicious ClickFix Clipboard PowerShell Execution from Run Dialog
Suspicious osascript Spawning Shell Interpreter on macOS
Malicious Remote Script Piped to a Shell on macOS (via process_creation)
Pivot detection · T1204.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.