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 linkedT1059.002 — drag to rearrange
Obfuscated Paste-and-Run Execution From the Windows Run Dialog (via process_creation)
AppleScript do-shell-script Abuse via Osascript (via process_creation)
ClickFix Paste-Jacking Execution of mshta Retrieving Remote Payload (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)
Malicious Remote Script Piped to a Shell on macOS (via process_creation)
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.