Detectionlowtest
PowerShell Script With File Upload Capabilities
Detects PowerShell scripts leveraging the "Invoke-WebRequest" cmdlet to send data via either "PUT" or "POST" method.
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script
Definition
bade5735-5ab0-4aa7-a642-a11be0e40872
Detection Logic
Detection Logic2 selectors
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
Unknown
False positive likelihood has not been assessed. Additional context may be needed during triage.
MITRE ATT&CK
Tactics
Techniques
Rule Metadata
Rule ID
d2e3f2f6-7e09-4bf2-bc5d-90186809e7fb
Status
test
Level
low
Type
Detection
Created
Fri Jan 07
Modified
Fri Jul 18
Author
Path
rules/windows/powershell/powershell_script/posh_ps_script_with_upload_capabilities.yml
Raw Tags
attack.exfiltrationattack.t1020