C# IL Code Compilation Via Ilasm.EXE

Detects the use of "Ilasm.EXE" in order to compile C# intermediate (IL) code to EXE or DLL.

Sigma rule (View on GitHub)

 1title: C# IL Code Compilation Via Ilasm.EXE
 2id: 850d55f9-6eeb-4492-ad69-a72338f65ba4
 3status: test
 4description: Detects the use of "Ilasm.EXE" in order to compile C# intermediate (IL) code to EXE or DLL.
 5references:
 6    - https://lolbas-project.github.io/lolbas/Binaries/Ilasm/
 7    - https://www.echotrail.io/insights/search/ilasm.exe
 8author: frack113, Nasreddine Bencherchali (Nextron Systems)
 9date: 2022-05-07
10modified: 2022-05-16
11tags:
12    - attack.execution
13    - attack.stealth
14    - attack.t1127
15logsource:
16    product: windows
17    category: process_creation
18detection:
19    selection_img:
20        - Image|endswith: '\ilasm.exe'
21        - OriginalFileName: 'ilasm.exe'
22    selection_cli:
23        CommandLine|contains:
24            - ' /dll'
25            - ' /exe'
26    condition: all of selection_*
27falsepositives:
28    - Unknown
29level: medium

References

Related rules

to-top