Sigma high test sigma

Potential Data Exfiltration Activity Via CommandLine Tools

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

View Source

Detection Logic

{
  "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",
      " -me",
      " -b",
      " POST "
    ]
  },
  "selection_curl": {
    "Image
| endswith": "\\curl.exe",
    "CommandLine
| contains": "--ur"
  },
  "selection_curl_data": {
    "CommandLine
| contains": [
      " -d ",
      " --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

  • ⚠ Unlikely

Field Validations

Loading…

Comments (0)

Loading comments...