Windows: Remote code execution via winrm.vbs using cscript and wmicimv2/Win32_ Create

Alerts on cscript.exe executions referencing winrm and wmicimv2/Win32_ Create with -r:http, consistent with remote code execution via winrm.vbs.

FreeReviewedSigma · Medium · v1
Product
windows
Category
process_creation
Author
Julia Fomina, oscd.community (SigmaHQ), DRL 1.1
Published
2020-10-07
Updated
2026-07-30

ATT&CK techniques

Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags process executions of cscript.exe where the command line includes winrm-related activity to invoke a Create operation through wmicimv2/Win32_. It indicates an attempt to run winrm.vbs functionality for remote code execution or service creation on another host. The detection relies on Windows process creation telemetry, matching the image name, original file name, and required command-line substrings.

Related detections9 linkedT1216 — drag to rearrange
Suspicious PowerShell Execution via SyncAppvPublishingServer LOLBIN
PowerShell Proxy Execution via SyncAppvPublishingServer (via process_creation)
Malicious Command Injection via SyncAppvPublishingServer VBS LOLBin (via process_creation)
Suspicious winrm.vbs LOLBAS Script Execution for Code Proxying
Windows: Code execution via Pester.bat invoked by PowerShell (Invoke-Pester/Get-Help)
Windows: Uncommon Child Processes Spawned by sigverif.exe
Windows: Suspicious CustomShellHost.exe execution spawned by non-Explorer parent
PowerShell: Signed UtilityFunctions.ps1 Loading Managed DLL via Proxy Execution
Windows PowerShell Script Proxy Execution via CL_mutexverifiers.ps1
Windows: Remote code execution via winrm.vbs using cscript and wmicimv2/Win32_ Create
Pivot detection · T1216 · 9 related

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