Execution · Windows · LOLBAS
cmstp.exe
Connection Manager Profile Installer
Installs Connection Manager service profiles from an INF file. The INF can point to a command or scriptlet, which runs with a UAC auto-elevation path, so it is used to run code and bypass prompts.
Legitimate use
Installs VPN and dial-up connection profiles.
Switches
Installs with no user prompts.
MediumSilent install.
MediumInstalls without creating a desktop shortcut.
LowAuto-updates the profile.
LowCommand lines to worry about
- High
Silent profile install through cmstp
cmstp installs an INF profile with no prompts, from a local path or URL. A malicious INF runs a command. Check the INF content.
Detection regex
cmstp(\.exe)?\s+.*\/(ni|s)\b.*(https?:\/\/|\.inf)
Where it is recorded
- Security4688Process creation with the full command line, when command-line auditing is enabled.
- Sysmon1Process creation with command line, hashes and parent process.
Community detections
6 SigmaHQ rules for cmstp.exe. The explainer checks every pasted command line against all of them.
- HighBypass UAC via CMSTP
Detect commandline usage of Microsoft Connection Manager Profile Installer (cmstp.exe) to install specially formatted local .INF files
T1548.002T1218.003by E.M. Anhaus (originally from Atomic Blue Detections, Endgame), oscd.community
- HighPotential Defense Evasion Via Rename Of Highly Relevant Binaries
Detects the execution of a renamed binary often used by attackers or malware leveraging new Sysmon OriginalFileName datapoint.
T1036.003by Matthew Green - @mgreen27, Florian Roth (Nextron Systems), frack113
- HighSuspicious Microsoft Office Child Process
Detects a suspicious process spawning from one of the Microsoft Office suite products (Word, Excel, PowerPoint, Publisher, Visio, etc.)
T1047T1204.002T1218.010by Florian Roth (Nextron Systems), Markus Neis, FPT.EagleEye Team, Vadim Khrykov, Cyb3rEng, Michael Haag, Christopher Peacock @securepeacock, @scythe_io
- HighSuspicious Microsoft OneNote Child Process
Detects suspicious child processes of the Microsoft OneNote application. This may indicate an attempt to execute malicious embedded objects from a .one file.
T1566T1566.001by Tim Rauch (Nextron Systems), Nasreddine Bencherchali (Nextron Systems), Elastic (idea)
- HighSystem File Execution Location Anomaly
Detects the execution of a Windows system binary that is usually located in the system folder from an uncommon location.
T1036by Florian Roth (Nextron Systems), Patrick Bareiss, Anton Kutepov, oscd.community, Nasreddine Bencherchali (Nextron Systems)
- MediumLOLBIN Execution From Abnormal Drive
Detects LOLBINs executing from an abnormal or uncommon drive such as a mounted ISO.
by Christopher Peacock '@securepeacock', SCYTHE '@scythe_io', Angelo Violetti - SEC Consult '@angelo_violetti', Aaron Herman
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.