Sigma 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

View Source

Detection Logic

{
  "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": "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...