Sigma rule: Dynamic .NET Compilation Via Csc.EXE - Hunting
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-0e7d8d4041ae, updated 2023-08-02T00:00:00.000Z.
Rule
- Title
- Dynamic .NET Compilation Via Csc.EXE - Hunting
- Status
- test
- Level
- medium
- Author
- Nasreddine Bencherchali (Nextron Systems)
- Date
- 2023-08-02
- File
- rules-threat-hunting/windows/process_creation/proc_creation_win_csc_compilation.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
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.
Log source
- product
- windows
- category
- process_creation
Detection
selection:
Image|endswith: '\csc.exe'
CommandLine|contains: '/noconfig /fullpaths @'
condition: selectionFalse positives (as the rule lists them)
- Many legitimate applications make use of dynamic compilation. Use this rule to hunt for anomalies
Tags
- attack.stealth
- attack.t1027.004
- detection.threat-hunting
MITRE ATT&CK ids this rule names
Related rules
References
- https://securityboulevard.com/2019/08/agent-tesla-evading-edr-by-removing-api-hooks/
- https://www.clearskysec.com/wp-content/uploads/2018/11/MuddyWater-Operations-in-Lebanon-and-Oman.pdf
- https://app.any.run/tasks/c6993447-d1d8-414e-b856-675325e5aa09/
- https://twitter.com/gN3mes1s/status/1206874118282448897
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/process_creation/proc_creation_win_csc_compilation.yml
Sources and licences
SigmaHQ
"Dynamic .NET Compilation Via Csc.EXE - Hunting" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/process_creation/proc_creation_win_csc_compilation.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Dynamic .NET Compilation Via Csc.EXE - Hunting",
entity page, dataset version ref-0e7d8d4041ae, updated 2023-08-02T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/acf2807c-805b-4042-aab9-f86b6ba9cb2b (accessed 2026-11-03).
Underlying source: SigmaHQ rule acf2807c-805b-4042-aab9-f86b6ba9cb2b, 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.