Detection rules › Sigma
Potentially Suspicious Child Process Of VsCode
Detects uncommon or suspicious child processes spawning from a VsCode "code.exe" process. This could indicate an attempt of persistence via VsCode tasks or terminal profiles.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Defense Evasion | T1202 Indirect Command Execution, T1218 System Binary Proxy Execution |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 1 | Process creation |
| Security-Auditing | 4688 | A new process has been created. |
Stages and Predicates
Stage 1: selection_parent
ParentImage|endswith: '\code.exe'
Stage 2: 1 of selection_children_images
or:
Image|endswith: '\calc.exe'
Image|endswith: '\cscript.exe'
Image|endswith: '\regsvr32.exe'
Image|endswith: '\rundll32.exe'
Image|endswith: '\wscript.exe'
Stage 3: 1 of selection_children_cli
or:
CommandLine|contains: DownloadString
CommandLine|contains: ICM
CommandLine|contains: IEX
CommandLine|contains: Invoke-Command
CommandLine|contains: Invoke-Expressions
CommandLine|contains: cscript
CommandLine|contains: regsvr32
CommandLine|contains: rundll32
CommandLine|contains: wscript
or:
Image|endswith: '\cmd.exe'
Image|endswith: '\powershell.exe'
Image|endswith: '\pwsh.exe'
Stage 4: 1 of selection_children_paths
or:
Image|contains: ':\Temp\'
Image|contains: ':\Users\Public\'
Image|contains: ':\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 |
|---|---|---|
CommandLine | match |
|
Image | ends_with |
|
Image | match |
|
ParentImage | ends_with |
|