CmdID

CmdID / Rules / Windows

Suspicious Windows Service Tampering

A Sigma rule for process creation on Windows, by Nasreddine Bencherchali (Nextron Systems), frack113 , X__Junior (Nextron Systems).

high 2 ATT&CK techniques 11 programs it names 2 everyday examples trip it

What it looks for

its detection, as SigmaHQ writes it
detection:
  selection_services:
    CommandLine|contains:
      - '143Svc'
      - 'aakore'
      - 'Acronis VSS Provider'
      - 'AcronisActiveProtectionService'
      - 'AcronisAgent'
      - 'AcronisCyberProtectionService'
      - 'AcrSch2Svc'
      - 'AdobeARMservice'
      - 'AHS Service'
      - 'Antivirus'
      - 'Apache4'
      - 'ARSM'
      - 'aswBcc'
      - 'AteraAgent'
      - 'Avast Business Console Client Antivirus Service'
      - 'avast! Antivirus'
      - 'AVG Antivirus'
      - 'avgAdminClient'
      - 'AvgAdminServer'
      - 'AVP1'
      - 'BackupExec'
      - 'bedbg'
      - 'BITS'
      - 'BrokerInfrastructure'
      - 'CASLicenceServer'
      - 'CASWebServer'
      - 'Client Agent 7.60'
      - 'Core Browsing Protection'
      - 'Core Mail Protection'
      - 'Core Scanning Server'
      - 'DCAgent'
      - 'dwmrcs'
      - 'EhttpSr'
      - 'ekrn'
      - 'Enterprise Client Service'
      - 'epag'
      - 'EPIntegrationService'
      - 'EPProtectedService'
      - 'EPRedline'
      - 'EPSecurityService'
      - 'EPUpdateService'
      - 'EraserSvc11710'
      - 'EsgShKernel'
      - 'ESHASRV'
      - 'FA_Scheduler'
      - 'FirebirdGuardianDefaultInstance'
      - 'FirebirdServerDefaultInstance'
      - 'FontCache3.0.0.0'
      - 'HealthTLService'
      - 'hmpalertsvc'
      - 'HMS'
      - 'HostControllerService'
      - 'hvdsvc'
      - 'IAStorDataMgrSvc'
      - 'IBMHPS'
      - 'ibmspsvc'
      - 'IISAdmin'
      - 'IMANSVC'
      - 'IMAP4Svc'
      - 'instance2'
      - 'KAVFS'
      - 'KAVFSGT'
      - 'kavfsslp'
      - 'KeyIso'
      - 'klbackupdisk'
      - 'klbackupflt'
      - 'klflt'
      - 'klhk'
      - 'KLIF'
      - 'klim6'
      - 'klkbdflt'
      - 'klmouflt'
      - 'klnagent'
      - 'klpd'
      - 'kltap'
      - 'KSDE1.0.0'
      - 'LogProcessorService'
      - 'M8EndpointAgent'
      - 'macmnsvc'
      - 'masvc'
      - 'MBAMService'
      - 'MBCloudEA'
      - 'MBEndpointAgent'
      - 'McAfeeDLPAgentService'
      - 'McAfeeEngineService'
      - 'MCAFEEEVENTPARSERSRV'
      - 'McAfeeFramework'
      - 'MCAFEETOMCATSRV530'
      - 'McShield'
      - 'McTaskManager'
      - 'mfefire'
      - 'mfemms'
      - 'mfevto'
      - 'mfevtp'
      - 'mfewc'
      - 'MMS'
      - 'mozyprobackup'
      - 'mpssvc'
      - 'MSComplianceAudit'
      - 'MSDTC'
      - 'MsDtsServer'
      - 'MSExchange'
      - 'msftesq1SPROO'
      - 'msftesql$PROD'
      - 'msftesql$SQLEXPRESS'
      - 'MSOLAP$SQL_2008'
      - 'MSOLAP$SYSTEM_BGC'
      - 'MSOLAP$TPS'
      - 'MSOLAP$TPSAMA'
      - 'MSOLAPSTPS'
      - 'MSOLAPSTPSAMA'
      - 'mssecflt'
      - 'MSSQ!I.SPROFXENGAGEMEHT'
      - 'MSSQ0SHAREPOINT'
      - 'MSSQ0SOPHOS'
      - 'MSSQL'
      - 'MSSQLFDLauncher$'
      - 'MySQL'
      - 'NanoServiceMain'
      - 'NetMsmqActivator'
      - 'NetPipeActivator'
      - 'netprofm'
      - 'NetTcpActivator'
      - 'NetTcpPortSharing'
      - 'ntrtscan'
      - 'nvspwmi'
      - 'ofcservice'
      - 'Online Protection System'
      - 'OracleClientCache80'
      - 'OracleDBConsole'
      - 'OracleMTSRecoveryService'
      - 'OracleOraDb11g_home1'
      - 'OracleService'
      - 'OracleVssWriter'
      - 'osppsvc'
      - 'PandaAetherAgent'
      - 'PccNTUpd'
      - 'PDVFSService'
      - 'POP3Svc'
      - 'postgresql-x64-9.4'
      - 'POVFSService'
      - 'PSUAService'
      - 'Quick Update Service'
      - 'RepairService'
      - 'ReportServer'
      - 'ReportServer$'
      - 'RESvc'
      - 'RpcEptMapper'
      - 'sacsvr'
      - 'SamSs'
      - 'SAVAdminService'
      - 'SAVService'
      - 'ScSecSvc'
      - 'SDRSVC'
      - 'SearchExchangeTracing'
      - 'sense'
      - 'SentinelAgent'
      - 'SentinelHelperService'
      - 'SepMasterService'
      - 'ShMonitor'
      - 'Smcinst'
      - 'SmcService'
      - 'SMTPSvc'
      - 'SNAC'
      - 'SntpService'
      - 'Sophos'
      - 'SQ1SafeOLRService'
      - 'SQL Backups'
      - 'SQL Server'
      - 'SQLAgent'
      - 'SQLANYs_Sage_FAS_Fixed_Assets'
      - 'SQLBrowser'
      - 'SQLsafe'
      - 'SQLSERVERAGENT'
      - 'SQLTELEMETRY'
      - 'SQLWriter'
      - 'SSISTELEMETRY130'
      - 'SstpSvc'
      - 'storflt'
      - 'svcGenericHost'
      - 'swc_service'
      - 'swi_filter'
      - 'swi_service'
      - 'swi_update'
      - 'Symantec'
      - 'sysmon'
      - 'TeamViewer'
      - 'Telemetryserver'
      - 'ThreatLockerService'
      - 'TMBMServer'
      - 'TmCCSF'
      - 'TmFilter'
      - 'TMiCRCScanService'
      - 'tmlisten'
      - 'TMLWCSService'
      - 'TmPfw'
      - 'TmPreFilter'
      - 'TmProxy'
      - 'TMSmartRelayService'
      - 'tmusa'
      - 'Tomcat'
      - 'Trend Micro Deep Security Manager'
      - 'TrueKey'
      - 'UFNet'
      - 'UI0Detect'
      - 'UniFi'
      - 'UTODetect'
      - 'vds'
      - 'Veeam'
      - 'VeeamDeploySvc'
      - 'Veritas System Recovery'
      - 'vmic'
      - 'VMTools'
      - 'vmvss'
      - 'VSApiNt'
      - 'VSS'
      - 'W3Svc'
      - 'wbengine'
      - 'WdNisSvc'
      - 'WeanClOudSve'
      - 'Weems JY'
      - 'WinDefend'
      - 'wmms'
      - 'wozyprobackup'
      - 'WPFFontCache_v0400'
      - 'WRSVC'
      - 'wsbexchange'
      - 'WSearch'
      - 'wscsvc'
      - 'Zoolz 2 Service'
  selection_tools_cli:
    - CommandLine|contains:
        - ' delete '
        - '.delete()'
        - ' pause '
        - ' stop '
        - 'Stop-Service '
        - 'Remove-Service '
    - CommandLine|contains|all:
        - 'config'
        - 'start=disabled'
  selection_tools_img:
    - OriginalFileName:
        - 'net.exe'
        - 'net1.exe'
        - 'PowerShell_ISE.EXE'
        - 'PowerShell.EXE'
        - 'psservice.exe'
        - 'pwsh.dll'
        - 'sc.exe'
        - 'wmic.exe'
    - Image|endswith:
        - '\net.exe'
        - '\net1.exe'
        - '\PowerShell_ISE.EXE'
        - '\powershell.exe'
        - '\PsService.exe'
        - '\PsService64.exe'
        - '\pwsh.exe'
        - '\sc.exe'
        - '\wmic.exe'
  condition: all of selection_*

The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by Nasreddine Bencherchali (Nextron Systems), frack113 , X__Junior (Nextron Systems), under the Detection Rule License 1.1. CmdID evaluates it on a command line alone: a test on what a command line cannot show, such as the parent process or the user, is not met.

Command lines that trip it

everyday examples from tldr-pages, CC BY 4.0, each read by CmdID

Stop a service on the local computer on the page for Stop-Service

Stop-Service -Name "sysmonlog"Identify

Stop a service that has dependent services on the page for Stop-Service

Get-Service -Name "iisadmin" | Format-List -Property Name, DependentServices Stop-Service -Name "iisadmin" -Force -ConfirmIdentify

Programs and files it names

their pages here

ATT&CK

the techniques it is tagged with
T1489Service Stop
T1685Disable or Modify Tools