Bypass UAC via CMSTP

 Original Source: [Sigma source]
Title: Bypass UAC via CMSTP
Status: test
Description:Detect commandline usage of Microsoft Connection Manager Profile Installer (cmstp.exe) to install specially formatted local .INF files
References:
  -https://eqllib.readthedocs.io/en/latest/analytics/e584f1a1-c303-4885-8a66-21360c90995b.html
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1218.003/T1218.003.md
  -https://lolbas-project.github.io/lolbas/Binaries/Cmstp/
Author: E.M. Anhaus (originally from Atomic Blue Detections, Endgame), oscd.community
Date: 2019-10-24
modified:2022-08-30
Tags:
  • -'attack.privilege-escalation'
  • -'attack.stealth'
  • -'attack.t1548.002'
  • -'attack.t1218.003'
Logsource:
  • category: process_creation
  • product: windows
Detection:
  selection_img:
Image|endswith:'\cmstp.exe' OriginalFileName:'CMSTP.EXE'   selection_cli:
    CommandLine|contains:
      -'/s'
      -'-s'
      -'/au'
      -'-au'
      -'/ni'
      -'-ni'

  condition:all of selection*
Falsepositives:
  -Legitimate use of cmstp.exe utility by legitimate user
Level: high