Suspicious File Download to tmp and Quarantine Removal via curl and xattr

PremiumReviewedSigma · High · v1
Product
macos
Category
process_creation
Author
HuntRule
Published
2026-06-07
Updated
2026-08-28

ATT&CK techniques

Execution → C2
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Priv Esc

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. Exfiltration

  11. Impact

What it detects

This rule detects a shell command that downloads a file into the tmp directory with curl, strips the macOS quarantine attribute with xattr, marks it executable and runs it. This chain is the macOS infection path from fake Claude Code advertisements delivering an AMOS style stealer.

Related detections9 linkedT1059.004 — drag to rearrange
Malicious Remote Script Piped Directly to a Shell (via process_creation)
HamsaUpdate Linux Payload Download via Wget Piped to Bash (via process_creation)
Malicious Curl to Shell Dropper from Paste Site via Command Line
Suspicious Interpreter Spawned by launchd from Application Bundle
Malicious kagent RAT Delivery via HuggingFace Space Download (via process_creation)
Suspicious Remote Script Execution via curl Piped to bash with nohup on macOS (via process_creation)
Suspicious Botnet Payload Drop to Hidden Xdiag Temp Path
Malicious Remote Payload Piped to Shell via wget on PAN-OS
Suspicious Remote Script Downloaded via curl and Piped to Shell (via process_creation)
Suspicious File Download to tmp and Quarantine Removal via curl and xattr
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.