Sigma rule: Potential Data Exfiltration Activity Via CommandLine Tools

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-0d25ecc501a6, updated 2025-10-19T00:00:00.000Z.

Rule

Title
Potential Data Exfiltration Activity Via CommandLine Tools
Status
test
Level
high
Author
Nasreddine Bencherchali (Nextron Systems)
Date
2022-08-02
Modified
2025-10-19
File
rules/windows/process_creation/proc_creation_win_susp_data_exfiltration_via_cli.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the use of various CLI utilities exfiltrating data via web requests

Log source

product
windows
category
process_creation

Detection

selection_iwr:
    Image|endswith:
        - '\powershell_ise.exe'
        - '\powershell.exe'
        - '\pwsh.exe'
        - '\cmd.exe'
    CommandLine|contains:
        - 'curl '
        - 'Invoke-RestMethod'
        - 'Invoke-WebRequest'
        - 'irm '
        - 'iwr '
        - 'wget '
    CommandLine|contains|all:
        - ' -ur' # Shortest possible version of the -uri flag
        - ' -me' # Shortest possible version of the -method flag
        - ' -b'
        - ' POST '
selection_curl:
    Image|endswith: '\curl.exe'
    CommandLine|contains: '--ur' # Shortest possible version of the --uri flag
selection_curl_data:
    CommandLine|contains:
        - ' -d ' # Shortest possible version of the --data flag
        - ' --data '
selection_wget:
    Image|endswith: '\wget.exe'
    CommandLine|contains:
        - '--post-data'
        - '--post-file'
payloads:
    - CommandLine|re:
          - 'net\s+view'
          - 'sc\s+query'
    - CommandLine|contains:
          - 'Get-Content'
          - 'GetBytes'
          - 'hostname'
          - 'ifconfig'
          - 'ipconfig'
          - 'netstat'
          - 'nltest'
          - 'qprocess'
          - 'systeminfo'
          - 'tasklist'
          - 'ToBase64String'
          - 'whoami'
    - CommandLine|contains|all:
          - 'type '
          - ' > '
          - ' C:\'
condition: (selection_iwr or all of selection_curl* or selection_wget) and payloads

False positives (as the rule lists them)

  • Unlikely

Tags

  • attack.execution
  • attack.t1059.001

MITRE ATT&CK ids this rule names

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/windows/process_creation/proc_creation_win_susp_data_exfiltration_via_cli.yml

Sources and licences

  • SigmaHQ

    "Potential Data Exfiltration Activity Via CommandLine Tools" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_susp_data_exfiltration_via_cli.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: Potential Data Exfiltration Activity Via CommandLine Tools",
entity page, dataset version ref-0d25ecc501a6, updated 2025-10-19T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/7d1aaf3d-4304-425c-b7c3-162055e0b3ab (accessed 2026-11-03).
Underlying source: SigmaHQ rule 7d1aaf3d-4304-425c-b7c3-162055e0b3ab, 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.