Sigma rule: WSF/JSE/JS/VBA/VBE File Execution Via Cscript/Wscript

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-4ef941ca8f52, updated 2026-02-17T00:00:00.000Z.

Rule

Title
WSF/JSE/JS/VBA/VBE File Execution Via Cscript/Wscript
Status
test
Level
medium
Author
Michael Haag
Date
2019-01-16
Modified
2026-02-17
File
rules-threat-hunting/windows/process_creation/proc_creation_win_wscript_cscript_script_exec.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects script file execution (.js, .jse, .vba, .vbe, .vbs, .wsf, .wsh) by Wscript/Cscript.

Log source

product
windows
category
process_creation

Detection

selection_img:
    - OriginalFileName:
          - 'wscript.exe'
          - 'cscript.exe'
    - Image|endswith:
          - '\wscript.exe'
          - '\cscript.exe'
selection_cli:
    CommandLine|contains:
        - '.js'
        - '.jse'
        - '.vba'
        - '.vbe'
        - '.vbs'
        - '.wsf'
        - '.wsh'
condition: all of selection_*

False positives (as the rule lists them)

  • Some additional tuning is required. It is recommended to add the user profile path in CommandLine if it is getting too noisy.

Tags

  • attack.execution
  • attack.t1059.005
  • attack.t1059.007
  • detection.threat-hunting

MITRE ATT&CK ids this rule names

Related rules

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-threat-hunting/windows/process_creation/proc_creation_win_wscript_cscript_script_exec.yml

Sources and licences

  • SigmaHQ

    "WSF/JSE/JS/VBA/VBE File Execution Via Cscript/Wscript" by Michael Haag (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/process_creation/proc_creation_win_wscript_cscript_script_exec.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: WSF/JSE/JS/VBA/VBE File Execution Via Cscript/Wscript",
entity page, dataset version ref-4ef941ca8f52, updated 2026-02-17T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/1e33157c-53b1-41ad-bbcc-780b80b58288 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 1e33157c-53b1-41ad-bbcc-780b80b58288, 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.