Detection rules › Sigma

WScript or CScript Dropper - File

Status
test
Severity
high
Log source
product windows, category file_event
Author
Tim Shelton
Source
github.com/SigmaHQ/sigma

Detects a file ending in jse, vbe, js, vba, vbs, wsf, wsh written by cscript.exe or wscript.exe

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 11FileCreate

Rule body yaml

title: WScript or CScript Dropper - File
id: 002bdb95-0cf1-46a6-9e08-d38c128a6127
related:
    - id: cea72823-df4d-4567-950c-0b579eaf0846
      type: derived
status: test
description: Detects a file ending in jse, vbe, js, vba, vbs, wsf, wsh written by cscript.exe or wscript.exe
references:
    - WScript or CScript Dropper (cea72823-df4d-4567-950c-0b579eaf0846)
author: Tim Shelton
date: 2022-01-10
modified: 2026-02-17
tags:
    - attack.execution
    - attack.t1059.005
    - attack.t1059.007
logsource:
    category: file_event
    product: windows
detection:
    selection:
        Image|endswith:
            - '\wscript.exe'
            - '\cscript.exe'
        TargetFilename|contains:
            - ':\Perflogs\'
            - ':\ProgramData\'
            - ':\Temp\'
            - ':\Tmp\'
            - ':\Users\'
            - ':\Windows\Temp\'
            - '\AppData\Local\Temp'
            - '\AppData\Roaming\Temp'
            - '\Start Menu\Programs\Startup\'
            - '\Temporary Internet'
        TargetFilename|endswith:
            - '.js'
            - '.jse'
            - '.vba'
            - '.vbe'
            - '.vbs'
            - '.wsf'
            - '.wsh'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith:
        - '\wscript.exe'
        - '\cscript.exe'
    TargetFilename|contains:
        - ':\Perflogs\'
        - ':\ProgramData\'
        - ':\Temp\'
        - ':\Tmp\'
        - ':\Users\'
        - ':\Windows\Temp\'
        - '\AppData\Local\Temp'
        - '\AppData\Roaming\Temp'
        - '\Start Menu\Programs\Startup\'
        - '\Temporary Internet'
    TargetFilename|endswith:
        - '.js'
        - '.jse'
        - '.vba'
        - '.vbe'
        - '.vbs'
        - '.wsf'
        - '.wsh'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
Imageends_with
  • \cscript.exe corpus 73 (sigma 73)
  • \wscript.exe corpus 75 (sigma 75)
TargetFilenameends_with
  • .js corpus 9 (sigma 9)
  • .jse corpus 2 (sigma 2)
  • .vba corpus 3 (sigma 3)
  • .vbe corpus 15 (sigma 15)
  • .vbs corpus 18 (sigma 18)
  • .wsf corpus 7 (sigma 7)
  • .wsh corpus 3 (sigma 3)
TargetFilenamematch
  • :\Perflogs\
  • :\ProgramData\ corpus 4 (sigma 4)
  • :\Temp\ corpus 5 (sigma 5)
  • :\Tmp\
  • :\Users\ corpus 4 (sigma 4)
  • :\Windows\Temp\ corpus 2 (sigma 2)
  • \AppData\Local\Temp
  • \AppData\Roaming\Temp
  • \Start Menu\Programs\Startup\ corpus 5 (sigma 5)
  • \Temporary Internet