Detection rules › Sigma
Script Interpreter Execution From Suspicious Folder
Detects a suspicious script execution in temporary folders or folders accessible by environment variables
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Execution | T1059 Command and Scripting Interpreter |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 1 | Process creation |
Stages and Predicates
Stage 1: 1 of selection_proc_image
or:
Image|endswith: '\cscript.exe'
Image|endswith: '\mshta.exe'
Image|endswith: '\wscript.exe'
Stage 2: 1 of selection_proc_flags
or:
CommandLine|contains: ' -ExecutionPolicy bypass '
CommandLine|contains: ' -ep bypass '
CommandLine|contains: ' -w hidden '
CommandLine|contains: '/e:Jscript '
CommandLine|contains: '/e:javascript '
CommandLine|contains: '/e:vbscript '
Stage 3: 1 of selection_proc_original
OriginalFileName: [cscript.exe, mshta.exe, wscript.exe]
Stage 4: 1 of selection_folders_1
or:
CommandLine|contains: ':\Perflogs\'
CommandLine|contains: ':\Users\Public\'
CommandLine|contains: '\AppData\Local\Temp'
CommandLine|contains: '\AppData\Roaming\Temp'
CommandLine|contains: '\Temporary Internet'
CommandLine|contains: '\Windows\Temp'
Stage 5: 1 of selection_folders_2
or:
CommandLine|contains: ':\Users\'
CommandLine|contains: '\Contacts\'
CommandLine|contains: ':\Users\'
CommandLine|contains: '\Favorites\'
CommandLine|contains: ':\Users\'
CommandLine|contains: '\Favourites\'
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.
| Field | Kind | Values |
|---|---|---|
CommandLine | match |
|
Image | ends_with |
|
OriginalFileName | eq |
|