Detectionhightest
Suspicious Use of CSharp Interactive Console
Detects the execution of CSharp interactive console by PowerShell
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic1 selector
detection:
selection:
Image|endswith: '\csi.exe'
ParentImage|endswith:
- '\powershell.exe'
- '\pwsh.exe'
- '\powershell_ise.exe'
OriginalFileName: 'csi.exe'
condition: selectionFalse Positives
Possible depending on environment. Pair with other factors such as net connections, command-line args, etc.
References
MITRE ATT&CK
Rule Metadata
Rule ID
a9e416a8-e613-4f8b-88b8-a7d1d1af2f61
Status
test
Level
high
Type
Detection
Created
2020-03-08
Modified
2022-07-14
Author
Path
rules/windows/process_creation/proc_creation_win_csi_use_of_csharp_console.yml
Raw Tags
attack.executionattack.stealthattack.t1127