Detection rules › Sigma
Suspicious WindowsTerminal Child Processes
Detects suspicious children spawned via the Windows Terminal application which could be a sign of persistence via WindowsTerminal (see references section)
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 1 | Process creation |
| Security-Auditing | 4688 | A new process has been created. |
Stages and Predicates
Stage 1: all of selection_parent
or:
ParentImage|endswith: '\WindowsTerminal.exe'
ParentImage|endswith: '\wt.exe'
Stage 2: all of selection_susp
or:
CommandLine|contains: ' /c '
CommandLine|contains: ' /k '
CommandLine|contains: ' /r '
CommandLine|contains: ' icm'
CommandLine|contains: ' iex '
CommandLine|contains: 'DownloadString('
CommandLine|contains: 'Import-Module '
CommandLine|contains: Invoke-
CommandLine|contains: 'ipmo '
Image|endswith: '\certutil.exe'
Image|endswith: '\csc.exe'
Image|endswith: '\cscript.exe'
Image|endswith: '\regsvr32.exe'
Image|endswith: '\rundll32.exe'
Image|endswith: '\wscript.exe'
Image|contains: 'C:\Users\Public\'
Image|contains: '\AppData\Local\Temp\'
Image|contains: '\Desktop\'
Image|contains: '\Downloads\'
Image|contains: '\Windows\TEMP\'
Stage 3: not 1 of filter_*
or:
CommandLine|contains: 'C:\Program Files\Microsoft Visual Studio\'
CommandLine|contains: '\Common7\Tools\VsDevCmd.bat'
CommandLine|contains: Enter-VsDevShell
CommandLine|contains: Import-Module
CommandLine|contains: 'Microsoft.VisualStudio.DevShell.dll'
CommandLine|contains: '\AppData\Local\Packages\Microsoft.WindowsTerminal_'
CommandLine|contains: '\LocalState\settings.json'
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 |
|
Image | match |
|
ParentImage | ends_with |
|