Detection rules › Sigma
Windows Shell/Scripting Application File Write to Suspicious Folder
Detects Windows shells and scripting applications that write files to suspicious folders
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Execution | T1059 Command and Scripting Interpreter |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 11 | FileCreate |
Stages and Predicates
Stage 1: 1 of selection_1
or:
Image|endswith: '\bash.exe'
Image|endswith: '\cmd.exe'
Image|endswith: '\cscript.exe'
Image|endswith: '\msbuild.exe'
Image|endswith: '\powershell.exe'
Image|endswith: '\pwsh.exe'
Image|endswith: '\sh.exe'
Image|endswith: '\wscript.exe'
or:
TargetFilename|startswith: 'C:\PerfLogs\'
TargetFilename|startswith: 'C:\Users\Public\'
Stage 2: 1 of selection_2
or:
Image|endswith: '\certutil.exe'
Image|endswith: '\forfiles.exe'
Image|endswith: '\mshta.exe'
Image|endswith: '\schtasks.exe'
Image|endswith: '\scriptrunner.exe'
Image|endswith: '\wmic.exe'
or:
TargetFilename|contains: 'C:\PerfLogs\'
TargetFilename|contains: 'C:\Users\Public\'
TargetFilename|contains: 'C:\Windows\Temp\'
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 |
|---|---|---|
Image | ends_with |
|
TargetFilename | match |
|
TargetFilename | starts_with |
|