Potential DLL Sideloading Using Coregen.exe
Detect usage of the "coregen.exe" (Microsoft CoreCLR Native Image Generator) binary to sideload arbitrary DLLs.
Sigma rule (View on GitHub)
 1title: Potential DLL Sideloading Using Coregen.exe
 2id: 0fa66f66-e3f6-4a9c-93f8-4f2610b00171
 3status: test
 4description: Detect usage of the "coregen.exe" (Microsoft CoreCLR Native Image Generator) binary to sideload arbitrary DLLs.
 5references:
 6    - https://lolbas-project.github.io/lolbas/OtherMSBinaries/Coregen/
 7author: frack113
 8date: 2022-12-31
 9tags:
10    - attack.privilege-escalation
11    - attack.defense-evasion
12    - attack.t1218
13    - attack.t1055
14logsource:
15    category: image_load
16    product: windows
17detection:
18    selection:
19        Image|endswith: '\coregen.exe'
20    filter_main_legit_paths:
21        ImageLoaded|startswith:
22            - 'C:\Program Files (x86)\Microsoft Silverlight\'
23            - 'C:\Program Files\Microsoft Silverlight\'
24            - 'C:\Windows\System32\'
25            - 'C:\Windows\SysWOW64\'
26    condition: selection and not 1 of filter_main_*
27falsepositives:
28    - Unknown
29level: medium
References
Related rules
- Created Files by Microsoft Sync Center
- Microsoft Sync Center Suspicious Network Connections
- Antivirus PrinterNightmare CVE-2021-34527 Exploit Detection
- Atbroker Registry Change
- Dllhost.EXE Execution Anomaly
