Detectionhightest
Cscript/Wscript Uncommon Script Extension Execution
Detects Wscript/Cscript executing a file with an uncommon (i.e. non-script) extension
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Nasreddine Bencherchali (Nextron Systems)Created Mon May 15Updated Mon Jun 1999b7460d-c9f1-40d7-a316-1f36f61d52eewindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic2 selectors
detection:
selection_img:
- OriginalFileName:
- 'wscript.exe'
- 'cscript.exe'
- Image|endswith:
- '\wscript.exe'
- '\cscript.exe'
selection_extension:
CommandLine|contains:
# Note: add additional potential suspicious extension
# We could specify the "//E:" flag to avoid typos by admin. But since that's prone to blind spots via the creation of assoc it's better not to include it
- '.csv'
- '.dat'
- '.doc'
- '.gif'
- '.jpeg'
- '.jpg'
- '.png'
- '.ppt'
- '.txt'
- '.xls'
- '.xml'
condition: all of selection_*False Positives
Unknown
False positive likelihood has not been assessed. Additional context may be needed during triage.
References
1
Resolving title…
Internal ResearchMITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
99b7460d-c9f1-40d7-a316-1f36f61d52ee
Status
test
Level
high
Type
Detection
Created
Mon May 15
Modified
Mon Jun 19
Path
rules/windows/process_creation/proc_creation_win_wscript_cscript_uncommon_extension_exec.yml
Raw Tags
attack.executionattack.t1059.005attack.t1059.007