Suspicious Remote Script Downloaded via curl and Piped to Shell (via process_creation)

PremiumReviewedSigma · Medium · 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. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. Exfiltration

  12. Impact

What it detects

This rule detects a curl download piped directly into a shell in a single command line, the download-and-execute pattern used by the updated XCSSET malware to retrieve and run stage payloads from attacker infrastructure. Adversaries chain curl into sh to fetch and execute code without writing a script to disk, so this one-liner is a strong indicator of remote payload execution on macOS.

Related detections9 linkedT1059.004 — drag to rearrange
Possible Mirai IoT Payload Staging via chmod on Linux (via process_creation)
Suspicious GeoServer Java Process Spawning Download Utility
Malicious Linux Payload Download and Execution Chain via Wget and Chmod (via process_creation)
Suspicious tmp Download and Execute Chain on Embedded Linux
Suspicious Bash Dev-TCP Reverse Shell Execution
Malicious Remote Script Piped to Shell via Curl (via process_creation)
Suspicious Downloaded Shell Stager Made Executable Via Chmod 777
Malicious Remote Script Piped Directly to a Shell (via process_creation)
HamsaUpdate Linux Payload Download via Wget Piped to Bash (via process_creation)
Suspicious Remote Script Downloaded via curl and Piped to Shell (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.