Threat Huntmediumtest
Dynamic .NET Compilation Via Csc.EXE - Hunting
Detects execution of "csc.exe" to compile .NET code. Attackers often leverage this to compile code on the fly and use it in other stages.
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Nasreddine Bencherchali (Nextron Systems)Created Wed Aug 02acf2807c-805b-4042-aab9-f86b6ba9cb2bwindows
Hunting Hypothesis
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: '\csc.exe'
CommandLine|contains: '/noconfig /fullpaths @'
condition: selectionFalse Positives
Many legitimate applications make use of dynamic compilation. Use this rule to hunt for anomalies
MITRE ATT&CK
Tactics
Sub-techniques
Other
detection.threat-hunting
Rule Metadata
Rule ID
acf2807c-805b-4042-aab9-f86b6ba9cb2b
Status
test
Level
medium
Type
Threat Hunt
Created
Wed Aug 02
Path
rules-threat-hunting/windows/process_creation/proc_creation_win_csc_compilation.yml
Raw Tags
attack.defense-evasionattack.t1027.004detection.threat-hunting