Sigma rule: Remote Code Execute via Winrm.vbs

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-e96a70aa64a0, updated 2023-03-03T00:00:00.000Z.

Rule

Title
Remote Code Execute via Winrm.vbs
Status
test
Level
medium
Author
Julia Fomina, oscd.community
Date
2020-10-07
Modified
2023-03-03
File
rules/windows/process_creation/proc_creation_win_winrm_execution_via_scripting_api_winrm_vbs.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects an attempt to execute code or create service on remote host via winrm.vbs.

Log source

product
windows
category
process_creation

Detection

selection_img:
    # Note: winrm.vbs can only be run by a process named cscript (see "IsCScriptEnv" function)
    - Image|endswith: '\cscript.exe'
    - OriginalFileName: 'cscript.exe'
selection_cli:
    CommandLine|contains|all:
        - 'winrm'
        - 'invoke Create wmicimv2/Win32_'
        - '-r:http'
condition: all of selection*

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.stealth
  • attack.t1216

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_winrm_execution_via_scripting_api_winrm_vbs.yml

Sources and licences

  • SigmaHQ

    "Remote Code Execute via Winrm.vbs" by Julia Fomina, oscd.community (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_winrm_execution_via_scripting_api_winrm_vbs.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Remote Code Execute via Winrm.vbs",
entity page, dataset version ref-e96a70aa64a0, updated 2023-03-03T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/9df0dd3a-1a5c-47e3-a2bc-30ed177646a0 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 9df0dd3a-1a5c-47e3-a2bc-30ed177646a0, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.