Sigma rule: Suspicious Curl File Upload - Linux

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-2e6add6542e0, updated 2023-05-02T00:00:00.000Z.

Rule

Title
Suspicious Curl File Upload - Linux
Status
test
Level
medium
Author
Nasreddine Bencherchali (Nextron Systems), Cedric MAURUGEON (Update)
Date
2022-09-15
Modified
2023-05-02
File
rules/linux/process_creation/proc_creation_lnx_susp_curl_fileupload.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects a suspicious curl process start the adds a file to a web request

Log source

product
linux
category
process_creation

Detection

selection_img:
    Image|endswith: '/curl'
selection_cli:
    - CommandLine|contains:
          - ' --form' # Also covers the "--form-string"
          - ' --upload-file '
          - ' --data '
          - ' --data-' # For flags like: "--data-ascii", "--data-binary", "--data-raw", "--data-urlencode"
    - CommandLine|re: '\s-[FTd]\s' # We use regex to ensure a case sensitive argument detection
filter_optional_localhost:
    CommandLine|contains:
        - '://localhost'
        - '://127.0.0.1'
condition: all of selection_* and not 1 of filter_optional_*

False positives (as the rule lists them)

  • Scripts created by developers and admins

Tags

  • attack.exfiltration
  • attack.command-and-control
  • attack.t1567
  • attack.t1105

MITRE ATT&CK ids this rule names

Related rules

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_susp_curl_fileupload.yml

Sources and licences

  • SigmaHQ

    "Suspicious Curl File Upload - Linux" by Nasreddine Bencherchali (Nextron Systems), Cedric MAURUGEON (Update) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_susp_curl_fileupload.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Suspicious Curl File Upload - Linux",
entity page, dataset version ref-2e6add6542e0, updated 2023-05-02T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/00b90cc1-17ec-402c-96ad-3a8117d7a582 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 00b90cc1-17ec-402c-96ad-3a8117d7a582, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.