Sigma rule: C# IL Code Compilation Via Ilasm.EXE
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-d8b622a1c897, updated 2022-05-16T00:00:00.000Z.
Rule
- Title
- C# IL Code Compilation Via Ilasm.EXE
- Status
- test
- Level
- medium
- Author
- frack113, Nasreddine Bencherchali (Nextron Systems)
- Date
- 2022-05-07
- Modified
- 2022-05-16
- File
- rules/windows/process_creation/proc_creation_win_ilasm_il_code_compilation.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the use of "Ilasm.EXE" in order to compile C# intermediate (IL) code to EXE or DLL.
Log source
- product
- windows
- category
- process_creation
Detection
selection_img:
- Image|endswith: '\ilasm.exe'
- OriginalFileName: 'ilasm.exe'
selection_cli:
CommandLine|contains:
- ' /dll'
- ' /exe'
condition: all of selection_*False positives (as the rule lists them)
- Unknown
Tags
- attack.execution
- attack.stealth
- attack.t1127
MITRE ATT&CK ids this rule names
References
- https://lolbas-project.github.io/lolbas/Binaries/Ilasm/
- https://www.echotrail.io/insights/search/ilasm.exe
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_ilasm_il_code_compilation.yml
Sources and licences
SigmaHQ
"C# IL Code Compilation Via Ilasm.EXE" by frack113, Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_ilasm_il_code_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: C# IL Code Compilation Via Ilasm.EXE",
entity page, dataset version ref-d8b622a1c897, updated 2022-05-16T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/850d55f9-6eeb-4492-ad69-a72338f65ba4 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 850d55f9-6eeb-4492-ad69-a72338f65ba4, 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.