01 / TRADECRAFT
3 examplesCommand reference
Execute2
EXAMPLE 01T1055
Loads the target .DLL in arbitrary path specified with /L.
COMMAND
coregen.exe /L {PATH_ABSOLUTE:.dll} dummy_assembly_nameEXAMPLE 02T1055
Loads the coreclr.dll in the corgen.exe directory (e.g. C:\Program Files\Microsoft Silverlight\5.1.50918.0).
COMMAND
coregen.exe dummy_assembly_nameAWL Bypass1
EXAMPLE 01T1218
Loads the target .DLL in arbitrary path specified with /L. Since binary is signed it can also be used to bypass application whitelisting solutions.
COMMAND
coregen.exe /L {PATH_ABSOLUTE:.dll} dummy_assembly_name02 / ON DISK
Known paths
C:\Program Files\Microsoft Silverlight\5.1.50918.0\coregen.exeC:\Program Files (x86)\Microsoft Silverlight\5.1.50918.0\coregen.exe03 / DEFENSIVE INTELLIGENCE
1 resourcesDetection & indicators
Indicators & detection notes
- IOC
coregen.exe loading .dll file not in "C:\Program Files (x86)\Microsoft Silverlight\5.1.50918.0\"
- IOC
coregen.exe loading .dll file not named coreclr.dll
- IOC
coregen.exe command line containing -L or -l
- IOC
coregen.exe command line containing unexpected/invald assembly name
- IOC
coregen.exe application crash by invalid assembly name
FURTHER READING
Research & resources
COMMUNITY RESEARCH
Acknowledgements
Nicky Tyrer
Evan Pena
Casey Erikson