Sigma rule: Suspicious Use of CSharp Interactive Console

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-49ec27fb1a47, updated 2022-07-14T00:00:00.000Z.

Rule

Title
Suspicious Use of CSharp Interactive Console
Status
test
Level
high
Author
Michael R. (@nahamike01)
Date
2020-03-08
Modified
2022-07-14
File
rules/windows/process_creation/proc_creation_win_csi_use_of_csharp_console.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the execution of CSharp interactive console by PowerShell

Log source

product
windows
category
process_creation

Detection

selection:
    Image|endswith: '\csi.exe'
    ParentImage|endswith:
        - '\powershell.exe'
        - '\pwsh.exe'
        - '\powershell_ise.exe'
    OriginalFileName: 'csi.exe'
condition: selection

False positives (as the rule lists them)

  • Possible depending on environment. Pair with other factors such as net connections, command-line args, etc.

Tags

  • attack.execution
  • attack.stealth
  • attack.t1127

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_csi_use_of_csharp_console.yml

Sources and licences

  • SigmaHQ

    "Suspicious Use of CSharp Interactive Console" by Michael R. (@nahamike01) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_csi_use_of_csharp_console.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Suspicious Use of CSharp Interactive Console",
entity page, dataset version ref-49ec27fb1a47, updated 2022-07-14T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/a9e416a8-e613-4f8b-88b8-a7d1d1af2f61 (accessed 2026-11-03).
Underlying source: SigmaHQ rule a9e416a8-e613-4f8b-88b8-a7d1d1af2f61, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.