Hayabusa medium test sigma
Usage Of Web Request Commands And Cmdlets - ScriptBlock
Detects the use of various web request commands with commandline tools and Windows PowerShell cmdlets (including aliases) via PowerShell scriptblock logs
Detection Logic
{
"ps_script": {
"EventID": 4104,
"Channel": [
"Microsoft-Windows-PowerShell/Operational",
"PowerShellCore/Operational"
]
},
"selection": {
"ScriptBlockText
| contains": [
"[System.Net.WebRequest]::create",
"curl ",
"Invoke-RestMethod",
"Invoke-WebRequest",
" irm ",
"iwr ",
"Resume-BitsTransfer",
"Start-BitsTransfer",
"wget ",
"WinHttp.WinHttpRequest"
]
},
"filter": {
"Path
| startswith": "C:\\Packages\\Plugins\\Microsoft.GuestConfiguration.ConfigurationforWindows\\"
},
"condition": "ps_script and (selection and not filter)"
} False Positives
- ⚠ Use of Get-Command and Get-Help modules to reference Invoke-WebRequest and Start-BitsTransfer.
Field Validations
Loading…
Comments (0)
Loading comments...