Windows: WinRM Service Process Spawning Command-Line and Scripting Utilities

Flags suspicious child shells and admin utilities spawned by the WinRM host process (wsmprovhost.exe) on Windows.

FreeReviewedSigma · High · v1
Product
windows
Category
process_creation
Author
Andreas Hunkeler (@Karneades), Markus Neis (SigmaHQ), DRL 1.1
Published
2021-05-20
Updated
2026-07-30

ATT&CK techniques

Initial Access
  1. Recon

  2. Resource Dev

  3. Execution

  4. Persistence

  5. Priv Esc

  6. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule identifies process creation events where the parent process is wsmprovhost.exe and the child process command image ends with common command-line, shell, scripting, and utility executables (such as cmd.exe, PowerShell variants, bash/sh, wsl, schtasks, certutil, whoami, and bitsadmin). Attackers can leverage WinRM to execute commands remotely, often via intermediate shell or administrative utilities to establish execution, persistence, or privilege escalation. The detection relies on Windows process creation telemetry including parent and image paths.

Related detections9 linkedT1190 — drag to rearrange
Possible SharePoint ToolShell ToolPane Exploitation Attempt (via webserver)
Possible Apache ActiveMQ Exploitation via Java Spawning Command Shell (via process_creation)
Malicious Veeam CVE-2023-27532 Exploitation Enabling xp_cmdshell via VeeamHax (via process_creation)
Suspicious PraisonAI Unauthenticated Config Endpoint Access via Webserver
Malicious Langflow Build Public Temp RCE Access via Webserver
Suspicious PraisonAI Vulnerability Scanner User Agent via Webserver
Malicious LiteLLM Authentication SQL Injection via Web Request (via webserver)
Possible Marimo Unauthenticated Terminal WebSocket Access via Web Request (via webserver)
Possible React2Shell Next.js Prototype Pollution Exploitation via Web Request (via webserver)
Windows: WinRM Service Process Spawning Command-Line and Scripting Utilities
Pivot detection · T1190 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.