Detection rules › Sigma
Suspicious Mshta.EXE Execution Patterns
Detects suspicious mshta process execution patterns
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Execution | T1106 Native API |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 1 | Process creation |
Stages and Predicates
Stage 1: all of selection_img
or:
Image|endswith: '\mshta.exe'
OriginalFileName: MSHTA.EXE
Stage 2: all of selection_susp
or:
CommandLine|contains: 'C:\ProgramData\'
CommandLine|contains: 'C:\Users\Public\'
CommandLine|contains: 'C:\Windows\Temp\'
CommandLine|contains: '\AppData\Local\'
or:
ParentImage|endswith: '\cmd.exe'
ParentImage|endswith: '\cscript.exe'
ParentImage|endswith: '\powershell.exe'
ParentImage|endswith: '\pwsh.exe'
ParentImage|endswith: '\regsvr32.exe'
ParentImage|endswith: '\rundll32.exe'
ParentImage|endswith: '\wscript.exe'
Stage 3: selection_img
or:
Image|endswith: '\mshta.exe'
OriginalFileName: MSHTA.EXE
Stage 4: not filter_img
or:
CommandLine|endswith: mshta
CommandLine|endswith: mshta.exe
CommandLine|contains: .hta
CommandLine|contains: .htm
Image|startswith: 'C:\Windows\SysWOW64\'
Image|startswith: 'C:\Windows\System32\'
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 | ends_with |
|
CommandLine | match |
|
Image | ends_with |
|
Image | starts_with |
|
OriginalFileName | eq |
|
ParentImage | ends_with |
|