macOS: In-Memory Download and Compile via curl and osacompile in a Single Command

Alerts when macOS processes include both curl and osacompile, consistent with downloading and compiling payloads.

FreeReviewedSigma · Medium · v2
Product
macos
Category
process_creation
Author
Sohan G (D4rkCiph3r), Red Canary (idea) (SigmaHQ), DRL 1.1
Published
2023-08-22
Updated
2026-07-31

ATT&CK techniques

Execution → C2
  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. Exfiltration

  12. Impact

What it detects

This rule flags process creation on macOS where the command line contains both curl and osacompile, indicating a potential in-memory workflow that downloads and compiles payloads. Attackers may use this pattern to quickly assemble and execute malicious code without writing obvious artifacts to disk. The detection relies on process creation telemetry with command-line fields capturing both utilities in the same invocation.

Related detections9 linkedT1105 — drag to rearrange
Suspicious Inline node.exe Command Executing Network and Process Spawning Code
Suspicious Deno Runtime Execution of Remote JavaScript Payload (via process_creation)
Windows: Deno writes files from remote HTTPS content into AppData
Suspicious Remote Script Transfer via Bitsadmin (via process_creation)
Suspicious PowerShell Download Cradle via ClickFix Fake CAPTCHA (via process_creation)
Malicious Curl MSI Download to ProgramData via Process Creation
Suspicious CloudZ RAT Payload Download via curl to ProgramData
Suspicious npm Postinstall Node Execution From Fixtures Path (BeaverTail OtterCookie)
Suspicious Velociraptor Agent Deployment via msiexec From Cloud Storage
macOS: In-Memory Download and Compile via curl and osacompile in a Single Command
Pivot detection · T1105 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

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