Detection rules › Sigma

WScript or CScript Dropper - File

Severity
high
Author
Tim Shelton
Source
upstream

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

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1059.005 Command and Scripting Interpreter: Visual Basic, T1059.007 Command and Scripting Interpreter: JavaScript

Event coverage

ProviderEvent IDTitle
Sysmon11FileCreate

Stages and Predicates

Stage 1: selection

or:
Image|endswith: '\cscript.exe'
Image|endswith: '\wscript.exe'
or:
TargetFilename|endswith: .js
TargetFilename|endswith: .jse
TargetFilename|endswith: .vba
TargetFilename|endswith: .vbe
TargetFilename|endswith: .vbs
or:
TargetFilename|startswith: 'C:\ProgramData'
TargetFilename|startswith: 'C:\Users\'

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 64 (sigma 64)
  • \wscript.exe corpus 64 (sigma 64)
TargetFilenameends_with
  • .js corpus 8 (sigma 8)
  • .jse corpus 2 (sigma 2)
  • .vba corpus 3 (sigma 3)
  • .vbe corpus 13 (sigma 13)
  • .vbs corpus 16 (sigma 16)
TargetFilenamestarts_with
  • C:\ProgramData
  • C:\Users\ corpus 12 (sigma 12)