Linux: Suspicious curl upload via form or data flags

Alerts on Linux curl executions that include file upload or form submission flags in their command line, excluding localhost targets.

FreeReviewedSigma · Medium · v2
Product
linux
Category
process_creation
Author
Nasreddine Bencherchali (Nextron Systems), Cedric MAURUGEON (Update) (SigmaHQ), DRL 1.1
Published
2022-09-15
Updated
2026-07-31

ATT&CK techniques

C2 → Exfiltration
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. Impact

What it detects

This rule identifies Linux processes where an executable path ending in '/curl' is started with command-line arguments consistent with uploading file content using curl form or data options (e.g., --form, --upload-file, --data*). Such behavior matters because attackers can use native curl to exfiltrate files or stage communications by embedding file data in HTTP requests. The detection relies on process creation telemetry, specifically the image path suffix and the presence of targeted command-line flags while excluding requests to localhost/127.0.0.1.

Related detections9 linkedT1105 — drag to rearrange
Windows Suspicious Non-Browser Network Traffic to api.telegram.org
Windows: Detect curl.exe upload/data flags indicative of possible exfiltration
Malicious EtherRAT C2 Exfiltration Endpoints via HTTP (via proxy)
Malicious JADEPUFFER Lockd Ransomware Payload Download
Malicious Second-Stage Loader Fetch of SLT Payload via Curl or Wget
Possible Remote Payload Download And Execution via Shell (via process_creation)
Suspicious EtherRAT Node.js Implant Background Execution via Shell (via process_creation)
Suspicious Certutil Download and Certificate Installation via Living-off-the-Land
Suspicious PowerShell Remote Script Execution via IEX DownloadString
Linux: Suspicious curl upload via form or data flags
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.