Sigma rule: PowerShell Script With File Upload Capabilities

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-cd029d5efa0c, updated 2025-07-18T00:00:00.000Z.

Rule

Title
PowerShell Script With File Upload Capabilities
Status
test
Level
low
Author
frack113
Date
2022-01-07
Modified
2025-07-18
File
rules/windows/powershell/powershell_script/posh_ps_script_with_upload_capabilities.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects PowerShell scripts leveraging the "Invoke-WebRequest" cmdlet to send data via either "PUT" or "POST" method.

Log source

product
windows
category
ps_script
definition
bade5735-5ab0-4aa7-a642-a11be0e40872

Detection

selection_cmdlet:
    ScriptBlockText|contains:
        - 'Invoke-RestMethod'
        - 'Invoke-WebRequest'
        - 'irm '
        - 'iwr '
selection_flag:
    ScriptBlockText|contains:
        - '-Method "POST"'
        - '-Method "PUT"'
        - '-Method POST'
        - '-Method PUT'
        - "-Method 'POST'"
        - "-Method 'PUT'"
condition: all of selection_*

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.exfiltration
  • attack.t1020

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/powershell/powershell_script/posh_ps_script_with_upload_capabilities.yml

Sources and licences

  • SigmaHQ

    "PowerShell Script With File Upload Capabilities" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_script_with_upload_capabilities.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: PowerShell Script With File Upload Capabilities",
entity page, dataset version ref-cd029d5efa0c, updated 2025-07-18T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/d2e3f2f6-7e09-4bf2-bc5d-90186809e7fb (accessed 2026-11-03).
Underlying source: SigmaHQ rule d2e3f2f6-7e09-4bf2-bc5d-90186809e7fb, 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.