Latest alertCVE-2018-11776 in Apache Struts Confirmed Exploited in the WildRead
Search all news in the platform

Detection rule

Suspicious Windows Service Tampering

HighTest-data validatedSigmaHQ (community)T1489T1685

Overview

Detects the usage of binaries such as 'net', 'sc' or 'powershell' in order to stop, pause, disable or delete critical or important Windows services such as AV, Backup, etc. As seen being used in some ransomware scripts

Rule id
ce72ef99-22f1-43d4-8695-419dcb5d9330
ATT&CK techniques
T1489 Service Stop, T1685 Disable or Modify Tools
Severity
High
Confidence
Low
Origin
SigmaHQ (community)
SigmaHQ status
test
Used in defense packs
n0n, The Gentlemen, qilin, INC Ransom, Akira, safepay, Play, everest, braincipher, majinahanashi

Validation

  1. ExperimentalSyntax checked only. Not yet tested on events.
  2. Test-data validatedMatched positive test events and ignored near-miss events. Not yet run in a production SIEM.
  3. SIEM-validatedRun in a real SIEM, with a recorded result.

1 of 1 positive test events matched; 1 of 1 near-miss events were correctly ignored. Community rule reused unmodified from SigmaHQ. OffSet7 converted it and tested it on synthetic events.

Detection logic and queries

Queries are shown exactly as generated. Test them in your environment before you deploy them.

Sigma

Sigma (YAML) · ce72ef99-22f1-43d4-8695-419dcb5d9330

Download
title: Suspicious Windows Service Tampering
id: ce72ef99-22f1-43d4-8695-419dcb5d9330
related:
    - id: eb87818d-db5d-49cc-a987-d5da331fbd90
      type: obsolete
    - id: 6783aa9e-0dc3-49d4-a94a-8b39c5fd700b
      type: obsolete
    - id: 7fd4bb39-12d0-45ab-bb36-cebabc73dc7b
      type: obsolete
status: test
description: |
    Detects the usage of binaries such as 'net', 'sc' or 'powershell' in order to stop, pause, disable or delete critical or important Windows services such as AV, Backup, etc. As seen being used in some ransomware scripts
references:
    - https://www.trendmicro.com/content/dam/trendmicro/global/en/research/22/h/ransomware-actor-abuses-genshin-impact-anti-cheat-driver-to-kill-antivirus/Genshin%20Impact%20Figure%2010.jpg
    - https://www.trellix.com/en-sg/about/newsroom/stories/threat-labs/lockergoga-ransomware-family-used-in-targeted-attacks.html
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1562.001/T1562.001.md
    - https://www.nccgroup.com/research/back-in-black-unlocking-a-lockbit-30-ransomware-attack/
    - https://www.virustotal.com/gui/file/38283b775552da8981452941ea74191aa0d203edd3f61fb2dee7b0aea3514955
    - https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/delete-method-in-class-win32-service
author: Nasreddine Bencherchali (Nextron Systems), frack113 , X__Junior (Nextron Systems)
date: 2022-09-01
modified: 2026-10-17
tags:
    - attack.impact
    - attack.defense-impairment
    - attack.t1489
    - attack.t1685
logsource:
    category: process_creation
    product: windows
detection:
    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' # wmic process call win32_service where name='servicename' delete
    selection_tools_cli:
        - CommandLine|contains:
              - ' delete '
              - '.delete()' # Get-WmiObject win32_service -Filter "name='$serviceName'" ).delete()
              - ' pause ' # Covers flags from: PsService and Sc.EXE
              - ' stop ' # Covers flags from: PsService.EXE, Net.EXE and Sc.EXE
              - 'Stop-Service '
              - 'Remove-Service '
        - CommandLine|contains|all:
              - 'config'
              - 'start=disabled'
    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'
    condition: all of selection_*
falsepositives:
    - Administrators or tools shutting down the services due to upgrade or removal purposes. If you experience some false positive, please consider adding filters to the parent process launching this command and not removing the entry
level: high

QRadar AQL

IBM QRadar AQL (hunting query)Hunting query

Hunting search for the Log Activity tab or the API. It is not a QRadar rule.

AQL search for the Log Activity tab or the API. It is NOT a deployable QRadar rule: real-time detection in QRadar is a CRE (Custom Rule Engine) rule, for which this build only writes a design specification (qradar_cre).

SELECT * FROM events WHERE devicetype=12 AND ((Filename IN('net.exe', 'net1.exe', 'PowerShell_ISE.EXE', 'PowerShell.EXE', 'psservice.exe', 'pwsh.dll', 'sc.exe', 'wmic.exe')) OR ((LOWER("Process Path") LIKE '%\net.exe' OR LOWER("Process Path") LIKE '%\net1.exe' OR LOWER("Process Path") LIKE '%\powershell_ise.exe' OR LOWER("Process Path") LIKE '%\powershell.exe' OR LOWER("Process Path") LIKE '%\psservice.exe' OR LOWER("Process Path") LIKE '%\psservice64.exe' OR LOWER("Process Path") LIKE '%\pwsh.exe' OR LOWER("Process Path") LIKE '%\sc.exe' OR LOWER("Process Path") LIKE '%\wmic.exe') OR (LOWER("Process Name") LIKE '%\net.exe' OR LOWER("Process Name") LIKE '%\net1.exe' OR LOWER("Process Name") LIKE '%\powershell_ise.exe' OR LOWER("Process Name") LIKE '%\powershell.exe' OR LOWER("Process Name") LIKE '%\psservice.exe' OR LOWER("Process Name") LIKE '%\psservice64.exe' OR LOWER("Process Name") LIKE '%\pwsh.exe' OR LOWER("Process Name") LIKE '%\sc.exe' OR LOWER("Process Name") LIKE '%\wmic.exe'))) AND ((LOWER(Command) LIKE '% delete %' OR LOWER(Command) LIKE '%.delete()%' OR LOWER(Command) LIKE '% pause %' OR LOWER(Command) LIKE '% stop %' OR LOWER(Command) LIKE '%stop-service %' OR LOWER(Command) LIKE '%remove-service %') OR (LOWER(Command) LIKE '%config%' AND LOWER(Command) LIKE '%start=disabled%')) AND (LOWER(Command) LIKE '%143svc%' OR LOWER(Command) LIKE '%aakore%' OR LOWER(Command) LIKE '%acronis vss provider%' OR LOWER(Command) LIKE '%acronisactiveprotectionservice%' OR LOWER(Command) LIKE '%acronisagent%' OR LOWER(Command) LIKE '%acroniscyberprotectionservice%' OR LOWER(Command) LIKE '%acrsch2svc%' OR LOWER(Command) LIKE '%adobearmservice%' OR LOWER(Command) LIKE '%ahs service%' OR LOWER(Command) LIKE '%antivirus%' OR LOWER(Command) LIKE '%apache4%' OR LOWER(Command) LIKE '%arsm%' OR LOWER(Command) LIKE '%aswbcc%' OR LOWER(Command) LIKE '%ateraagent%' OR LOWER(Command) LIKE '%avast business console client antivirus service%' OR LOWER(Command) LIKE '%avast! antivirus%' OR LOWER(Command) LIKE '%avg antivirus%' OR LOWER(Command) LIKE '%avgadminclient%' OR LOWER(Command) LIKE '%avgadminserver%' OR LOWER(Command) LIKE '%avp1%' OR LOWER(Command) LIKE '%backupexec%' OR LOWER(Command) LIKE '%bedbg%' OR LOWER(Command) LIKE '%bits%' OR LOWER(Command) LIKE '%brokerinfrastructure%' OR LOWER(Command) LIKE '%caslicenceserver%' OR LOWER(Command) LIKE '%caswebserver%' OR LOWER(Command) LIKE '%client agent 7.60%' OR LOWER(Command) LIKE '%core browsing protection%' OR LOWER(Command) LIKE '%core mail protection%' OR LOWER(Command) LIKE '%core scanning server%' OR LOWER(Command) LIKE '%dcagent%' OR LOWER(Command) LIKE '%dwmrcs%' OR LOWER(Command) LIKE '%ehttpsr%' OR LOWER(Command) LIKE '%ekrn%' OR LOWER(Command) LIKE '%enterprise client service%' OR LOWER(Command) LIKE '%epag%' OR LOWER(Command) LIKE '%epintegrationservice%' OR LOWER(Command) LIKE '%epprotectedservice%' OR LOWER(Command) LIKE '%epredline%' OR LOWER(Command) LIKE '%epsecurityservice%' OR LOWER(Command) LIKE '%epupdateservice%' OR LOWER(Command) LIKE '%erasersvc11710%' OR LOWER(Command) LIKE '%esgshkernel%' OR LOWER(Command) LIKE '%eshasrv%' OR LOWER(Command) LIKE '%fa_scheduler%' OR LOWER(Command) LIKE '%firebirdguardiandefaultinstance%' OR LOWER(Command) LIKE '%firebirdserverdefaultinstance%' OR LOWER(Command) LIKE '%fontcache3.0.0.0%' OR LOWER(Command) LIKE '%healthtlservice%' OR LOWER(Command) LIKE '%hmpalertsvc%' OR LOWER(Command) LIKE '%hms%' OR LOWER(Command) LIKE '%hostcontrollerservice%' OR LOWER(Command) LIKE '%hvdsvc%' OR LOWER(Command) LIKE '%iastordatamgrsvc%' OR LOWER(Command) LIKE '%ibmhps%' OR LOWER(Command) LIKE '%ibmspsvc%' OR LOWER(Command) LIKE '%iisadmin%' OR LOWER(Command) LIKE '%imansvc%' OR LOWER(Command) LIKE '%imap4svc%' OR LOWER(Command) LIKE '%instance2%' OR LOWER(Command) LIKE '%kavfs%' OR LOWER(Command) LIKE '%kavfsgt%' OR LOWER(Command) LIKE '%kavfsslp%' OR LOWER(Command) LIKE '%keyiso%' OR LOWER(Command) LIKE '%klbackupdisk%' OR LOWER(Command) LIKE '%klbackupflt%' OR LOWER(Command) LIKE '%klflt%' OR LOWER(Command) LIKE '%klhk%' OR LOWER(Command) LIKE '%klif%' OR LOWER(Command) LIKE '%klim6%' OR LOWER(Command) LIKE '%klkbdflt%' OR LOWER(Command) LIKE '%klmouflt%' OR LOWER(Command) LIKE '%klnagent%' OR LOWER(Command) LIKE '%klpd%' OR LOWER(Command) LIKE '%kltap%' OR LOWER(Command) LIKE '%ksde1.0.0%' OR LOWER(Command) LIKE '%logprocessorservice%' OR LOWER(Command) LIKE '%m8endpointagent%' OR LOWER(Command) LIKE '%macmnsvc%' OR LOWER(Command) LIKE '%masvc%' OR LOWER(Command) LIKE '%mbamservice%' OR LOWER(Command) LIKE '%mbcloudea%' OR LOWER(Command) LIKE '%mbendpointagent%' OR LOWER(Command) LIKE '%mcafeedlpagentservice%' OR LOWER(Command) LIKE '%mcafeeengineservice%' OR LOWER(Command) LIKE '%mcafeeeventparsersrv%' OR LOWER(Command) LIKE '%mcafeeframework%' OR LOWER(Command) LIKE '%mcafeetomcatsrv530%' OR LOWER(Command) LIKE '%mcshield%' OR LOWER(Command) LIKE '%mctaskmanager%' OR LOWER(Command) LIKE '%mfefire%' OR LOWER(Command) LIKE '%mfemms%' OR LOWER(Command) LIKE '%mfevto%' OR LOWER(Command) LIKE '%mfevtp%' OR LOWER(Command) LIKE '%mfewc%' OR LOWER(Command) LIKE '%mms%' OR LOWER(Command) LIKE '%mozyprobackup%' OR LOWER(Command) LIKE '%mpssvc%' OR LOWER(Command) LIKE '%mscomplianceaudit%' OR LOWER(Command) LIKE '%msdtc%' OR LOWER(Command) LIKE '%msdtsserver%' OR LOWER(Command) LIKE '%msexchange%' OR LOWER(Command) LIKE '%msftesq1sproo%' OR LOWER(Command) LIKE '%msftesql$prod%' OR LOWER(Command) LIKE '%msftesql$sqlexpress%' OR LOWER(Command) LIKE '%msolap$sql_2008%' OR LOWER(Command) LIKE '%msolap$system_bgc%' OR LOWER(Command) LIKE '%msolap$tps%' OR LOWER(Command) LIKE '%msolap$tpsama%' OR LOWER(Command) LIKE '%msolapstps%' OR LOWER(Command) LIKE '%msolapstpsama%' OR LOWER(Command) LIKE '%mssecflt%' OR LOWER(Command) LIKE '%mssq!i.sprofxengagemeht%' OR LOWER(Command) LIKE '%mssq0sharepoint%' OR LOWER(Command) LIKE '%mssq0sophos%' OR LOWER(Command) LIKE '%mssql%' OR LOWER(Command) LIKE '%mssqlfdlauncher$%' OR LOWER(Command) LIKE '%mysql%' OR LOWER(Command) LIKE '%nanoservicemain%' OR LOWER(Command) LIKE '%netmsmqactivator%' OR LOWER(Command) LIKE '%netpipeactivator%' OR LOWER(Command) LIKE '%netprofm%' OR LOWER(Command) LIKE '%nettcpactivator%' OR LOWER(Command) LIKE '%nettcpportsharing%' OR LOWER(Command) LIKE '%ntrtscan%' OR LOWER(Command) LIKE '%nvspwmi%' OR LOWER(Command) LIKE '%ofcservice%' OR LOWER(Command) LIKE '%online protection system%' OR LOWER(Command) LIKE '%oracleclientcache80%' OR LOWER(Command) LIKE '%oracledbconsole%' OR LOWER(Command) LIKE '%oraclemtsrecoveryservice%' OR LOWER(Command) LIKE '%oracleoradb11g_home1%' OR LOWER(Command) LIKE '%oracleservice%' OR LOWER(Command) LIKE '%oraclevsswriter%' OR LOWER(Command) LIKE '%osppsvc%' OR LOWER(Command) LIKE '%pandaaetheragent%' OR LOWER(Command) LIKE '%pccntupd%' OR LOWER(Command) LIKE '%pdvfsservice%' OR LOWER(Command) LIKE '%pop3svc%' OR LOWER(Command) LIKE '%postgresql-x64-9.4%' OR LOWER(Command) LIKE '%povfsservice%' OR LOWER(Command) LIKE '%psuaservice%' OR LOWER(Command) LIKE '%quick update service%' OR LOWER(Command) LIKE '%repairservice%' OR LOWER(Command) LIKE '%reportserver%' OR LOWER(Command) LIKE '%reportserver$%' OR LOWER(Command) LIKE '%resvc%' OR LOWER(Command) LIKE '%rpceptmapper%' OR LOWER(Command) LIKE '%sacsvr%' OR LOWER(Command) LIKE '%samss%' OR LOWER(Command) LIKE '%savadminservice%' OR LOWER(Command) LIKE '%savservice%' OR LOWER(Command) LIKE '%scsecsvc%' OR LOWER(Command) LIKE '%sdrsvc%' OR LOWER(Command) LIKE '%searchexchangetracing%' OR LOWER(Command) LIKE '%sense%' OR LOWER(Command) LIKE '%sentinelagent%' OR LOWER(Command) LIKE '%sentinelhelperservice%' OR LOWER(Command) LIKE '%sepmasterservice%' OR LOWER(Command) LIKE '%shmonitor%' OR LOWER(Command) LIKE '%smcinst%' OR LOWER(Command) LIKE '%smcservice%' OR LOWER(Command) LIKE '%smtpsvc%' OR LOWER(Command) LIKE '%snac%' OR LOWER(Command) LIKE '%sntpservice%' OR LOWER(Command) LIKE '%sophos%' OR LOWER(Command) LIKE '%sq1safeolrservice%' OR LOWER(Command) LIKE '%sql backups%' OR LOWER(Command) LIKE '%sql server%' OR LOWER(Command) LIKE '%sqlagent%' OR LOWER(Command) LIKE '%sqlanys_sage_fas_fixed_assets%' OR LOWER(Command) LIKE '%sqlbrowser%' OR LOWER(Command) LIKE '%sqlsafe%' OR LOWER(Command) LIKE '%sqlserveragent%' OR LOWER(Command) LIKE '%sqltelemetry%' OR LOWER(Command) LIKE '%sqlwriter%' OR LOWER(Command) LIKE '%ssistelemetry130%' OR LOWER(Command) LIKE '%sstpsvc%' OR LOWER(Command) LIKE '%storflt%' OR LOWER(Command) LIKE '%svcgenerichost%' OR LOWER(Command) LIKE '%swc_service%' OR LOWER(Command) LIKE '%swi_filter%' OR LOWER(Command) LIKE '%swi_service%' OR LOWER(Command) LIKE '%swi_update%' OR LOWER(Command) LIKE '%symantec%' OR LOWER(Command) LIKE '%sysmon%' OR LOWER(Command) LIKE '%teamviewer%' OR LOWER(Command) LIKE '%telemetryserver%' OR LOWER(Command) LIKE '%threatlockerservice%' OR LOWER(Command) LIKE '%tmbmserver%' OR LOWER(Command) LIKE '%tmccsf%' OR LOWER(Command) LIKE '%tmfilter%' OR LOWER(Command) LIKE '%tmicrcscanservice%' OR LOWER(Command) LIKE '%tmlisten%' OR LOWER(Command) LIKE '%tmlwcsservice%' OR LOWER(Command) LIKE '%tmpfw%' OR LOWER(Command) LIKE '%tmprefilter%' OR LOWER(Command) LIKE '%tmproxy%' OR LOWER(Command) LIKE '%tmsmartrelayservice%' OR LOWER(Command) LIKE '%tmusa%' OR LOWER(Command) LIKE '%tomcat%' OR LOWER(Command) LIKE '%trend micro deep security manager%' OR LOWER(Command) LIKE '%truekey%' OR LOWER(Command) LIKE '%ufnet%' OR LOWER(Command) LIKE '%ui0detect%' OR LOWER(Command) LIKE '%unifi%' OR LOWER(Command) LIKE '%utodetect%' OR LOWER(Command) LIKE '%vds%' OR LOWER(Command) LIKE '%veeam%' OR LOWER(Command) LIKE '%veeamdeploysvc%' OR LOWER(Command) LIKE '%veritas system recovery%' OR LOWER(Command) LIKE '%vmic%' OR LOWER(Command) LIKE '%vmtools%' OR LOWER(Command) LIKE '%vmvss%' OR LOWER(Command) LIKE '%vsapint%' OR LOWER(Command) LIKE '%vss%' OR LOWER(Command) LIKE '%w3svc%' OR LOWER(Command) LIKE '%wbengine%' OR LOWER(Command) LIKE '%wdnissvc%' OR LOWER(Command) LIKE '%weancloudsve%' OR LOWER(Command) LIKE '%weems jy%' OR LOWER(Command) LIKE '%windefend%' OR LOWER(Command) LIKE '%wmms%' OR LOWER(Command) LIKE '%wozyprobackup%' OR LOWER(Command) LIKE '%wpffontcache_v0400%' OR LOWER(Command) LIKE '%wrsvc%' OR LOWER(Command) LIKE '%wsbexchange%' OR LOWER(Command) LIKE '%wsearch%' OR LOWER(Command) LIKE '%wscsvc%' OR LOWER(Command) LIKE '%zoolz 2 service%')

QRadar CRE

Design for the QRadar Rule Wizard. It is not importable and has not been tested in QRadar.

Rule name
OffSet7: Suspicious Windows Service Tampering
Rule type
Event rule (Local)
Log source types
Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1

Building blocks

  • BB:OffSet7:Suspicious Windows Service Tampering:selection_tools_img (match)
    Any of the groups matches (OR): build one BB per group and a parent BB "when an event matches any of" them.
    • Filename is equal to (case-insensitive): net.exe, net1.exe, PowerShell_ISE.EXE, PowerShell.EXE, psservice.exe, pwsh.dll, sc.exe, wmic.exe
    • Process Path / Process Name ends with: \net.exe, \net1.exe, \PowerShell_ISE.EXE, \powershell.exe, \PsService.exe, \PsService64.exe, \pwsh.exe, \sc.exe, \wmic.exe
  • BB:OffSet7:Suspicious Windows Service Tampering:selection_tools_cli (match)
    Any of the groups matches (OR): build one BB per group and a parent BB "when an event matches any of" them.
    • Command contains: delete, .delete(), pause, stop, Stop-Service, Remove-Service
    • Command contains: config, start=disabled
  • BB:OffSet7:Suspicious Windows Service Tampering:selection_services (match)
    All test lines must match (AND).
    • Command 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

Main rule, option A (building blocks)

  1. when the event(s) were detected by one or more of these log source types: Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1
  2. when an event matches the condition built from these building blocks: (ALL of [BB:OffSet7:Suspicious Windows Service Tampering:selection_tools_img, BB:OffSet7:Suspicious Windows Service Tampering:selection_tools_cli, BB:OffSet7:Suspicious Windows Service Tampering:selection_services])

Main rule, option B (AQL filter test)

  1. when the event matches this AQL filter query: devicetype=12 AND ((Filename IN('net.exe', 'net1.exe', 'PowerShell_ISE.EXE', 'PowerShell.EXE', 'psservice.exe', 'pwsh.dll', 'sc.exe', 'wmic.exe')) OR ((LOWER("Process Path") LIKE '%\net.exe' OR LOWER("Process Path") LIKE '%\net1.exe' OR LOWER("Process Path") LIKE '%\powershell_ise.exe' OR LOWER("Process Path") LIKE '%\powershell.exe' OR LOWER("Process Path") LIKE '%\psservice.exe' OR LOWER("Process Path") LIKE '%\psservice64.exe' OR LOWER("Process Path") LIKE '%\pwsh.exe' OR LOWER("Process Path") LIKE '%\sc.exe' OR LOWER("Process Path") LIKE '%\wmic.exe') OR (LOWER("Process Name") LIKE '%\net.exe' OR LOWER("Process Name") LIKE '%\net1.exe' OR LOWER("Process Name") LIKE '%\powershell_ise.exe' OR LOWER("Process Name") LIKE '%\powershell.exe' OR LOWER("Process Name") LIKE '%\psservice.exe' OR LOWER("Process Name") LIKE '%\psservice64.exe' OR LOWER("Process Name") LIKE '%\pwsh.exe' OR LOWER("Process Name") LIKE '%\sc.exe' OR LOWER("Process Name") LIKE '%\wmic.exe'))) AND ((LOWER(Command) LIKE '% delete %' OR LOWER(Command) LIKE '%.delete()%' OR LOWER(Command) LIKE '% pause %' OR LOWER(Command) LIKE '% stop %' OR LOWER(Command) LIKE '%stop-service %' OR LOWER(Command) LIKE '%remove-service %') OR (LOWER(Command) LIKE '%config%' AND LOWER(Command) LIKE '%start=disabled%')) AND (LOWER(Command) LIKE '%143svc%' OR LOWER(Command) LIKE '%aakore%' OR LOWER(Command) LIKE '%acronis vss provider%' OR LOWER(Command) LIKE '%acronisactiveprotectionservice%' OR LOWER(Command) LIKE '%acronisagent%' OR LOWER(Command) LIKE '%acroniscyberprotectionservice%' OR LOWER(Command) LIKE '%acrsch2svc%' OR LOWER(Command) LIKE '%adobearmservice%' OR LOWER(Command) LIKE '%ahs service%' OR LOWER(Command) LIKE '%antivirus%' OR LOWER(Command) LIKE '%apache4%' OR LOWER(Command) LIKE '%arsm%' OR LOWER(Command) LIKE '%aswbcc%' OR LOWER(Command) LIKE '%ateraagent%' OR LOWER(Command) LIKE '%avast business console client antivirus service%' OR LOWER(Command) LIKE '%avast! antivirus%' OR LOWER(Command) LIKE '%avg antivirus%' OR LOWER(Command) LIKE '%avgadminclient%' OR LOWER(Command) LIKE '%avgadminserver%' OR LOWER(Command) LIKE '%avp1%' OR LOWER(Command) LIKE '%backupexec%' OR LOWER(Command) LIKE '%bedbg%' OR LOWER(Command) LIKE '%bits%' OR LOWER(Command) LIKE '%brokerinfrastructure%' OR LOWER(Command) LIKE '%caslicenceserver%' OR LOWER(Command) LIKE '%caswebserver%' OR LOWER(Command) LIKE '%client agent 7.60%' OR LOWER(Command) LIKE '%core browsing protection%' OR LOWER(Command) LIKE '%core mail protection%' OR LOWER(Command) LIKE '%core scanning server%' OR LOWER(Command) LIKE '%dcagent%' OR LOWER(Command) LIKE '%dwmrcs%' OR LOWER(Command) LIKE '%ehttpsr%' OR LOWER(Command) LIKE '%ekrn%' OR LOWER(Command) LIKE '%enterprise client service%' OR LOWER(Command) LIKE '%epag%' OR LOWER(Command) LIKE '%epintegrationservice%' OR LOWER(Command) LIKE '%epprotectedservice%' OR LOWER(Command) LIKE '%epredline%' OR LOWER(Command) LIKE '%epsecurityservice%' OR LOWER(Command) LIKE '%epupdateservice%' OR LOWER(Command) LIKE '%erasersvc11710%' OR LOWER(Command) LIKE '%esgshkernel%' OR LOWER(Command) LIKE '%eshasrv%' OR LOWER(Command) LIKE '%fa_scheduler%' OR LOWER(Command) LIKE '%firebirdguardiandefaultinstance%' OR LOWER(Command) LIKE '%firebirdserverdefaultinstance%' OR LOWER(Command) LIKE '%fontcache3.0.0.0%' OR LOWER(Command) LIKE '%healthtlservice%' OR LOWER(Command) LIKE '%hmpalertsvc%' OR LOWER(Command) LIKE '%hms%' OR LOWER(Command) LIKE '%hostcontrollerservice%' OR LOWER(Command) LIKE '%hvdsvc%' OR LOWER(Command) LIKE '%iastordatamgrsvc%' OR LOWER(Command) LIKE '%ibmhps%' OR LOWER(Command) LIKE '%ibmspsvc%' OR LOWER(Command) LIKE '%iisadmin%' OR LOWER(Command) LIKE '%imansvc%' OR LOWER(Command) LIKE '%imap4svc%' OR LOWER(Command) LIKE '%instance2%' OR LOWER(Command) LIKE '%kavfs%' OR LOWER(Command) LIKE '%kavfsgt%' OR LOWER(Command) LIKE '%kavfsslp%' OR LOWER(Command) LIKE '%keyiso%' OR LOWER(Command) LIKE '%klbackupdisk%' OR LOWER(Command) LIKE '%klbackupflt%' OR LOWER(Com

Rule response

  • Severity 7, credibility 6, relevance 7
  • Ensure the detected event is part of an offense; index offense on Log Source (host) and annotate with the rule title and OffSet7 rule id
  • Respond no more than once per 30 minutes per Log Source (tune per environment)

Limitations

  • QRadar AQL LIKE / CRE string tests are case-sensitive unless the property is lower-cased; the AQL option uses LOWER() where the backend applied it.

Splunk

Splunk SPLSearch

Search for Splunk with Windows/Sysmon field names. A scheduled search or ES correlation search also needs a schedule, time range, throttling and an adaptive response, set in your environment.

(OriginalFileName IN ("net.exe", "net1.exe", "PowerShell_ISE.EXE", "PowerShell.EXE", "psservice.exe", "pwsh.dll", "sc.exe", "wmic.exe") OR Image IN ("*\\net.exe", "*\\net1.exe", "*\\PowerShell_ISE.EXE", "*\\powershell.exe", "*\\PsService.exe", "*\\PsService64.exe", "*\\pwsh.exe", "*\\sc.exe", "*\\wmic.exe")) (CommandLine IN ("* delete *", "*.delete()*", "* pause *", "* stop *", "*Stop-Service *", "*Remove-Service *") OR (CommandLine="*config*" CommandLine="*start=disabled*")) (CommandLine IN ("*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*"))

Splunk savedsearches.conf stanzaScheduled search template

Template stanza. Review schedule, alert actions and index/sourcetype for your environment before enabling.

[default]
dispatch.earliest_time = -30d
dispatch.latest_time = now

[Suspicious Windows Service Tampering]
description = Detects the usage of binaries such as 'net', 'sc' or 'powershell' in order to stop, pause, disable or delete critical or important Windows services such as AV, Backup, etc. As seen being used in some ransomware scripts
search = (OriginalFileName IN ("net.exe", "net1.exe", "PowerShell_ISE.EXE", "PowerShell.EXE", "psservice.exe", "pwsh.dll", "sc.exe", "wmic.exe") OR Image IN ("*\\net.exe", "*\\net1.exe", "*\\PowerShell_ISE.EXE", "*\\powershell.exe", "*\\PsService.exe", "*\\PsService64.exe", "*\\pwsh.exe", "*\\sc.exe", "*\\wmic.exe")) (CommandLine IN ("* delete *", "*.delete()*", "* pause *", "* stop *", "*Stop-Service *", "*Remove-Service *") OR (CommandLine="*config*" CommandLine="*start=disabled*")) (CommandLine IN ("*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*"))

Microsoft Sentinel

Microsoft Sentinel KQL (ASIM)Hunting query

Hunting query over ASIM-normalized tables. An analytics rule also needs a schedule, entity mapping and alert grouping.

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

Defender XDR

Microsoft Defender XDR KQLHunting query

Advanced hunting query. A custom detection rule also needs a frequency, impacted entities and actions.

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

Elastic

Elastic Lucene (ECS)Hunting query

Lucene query over ECS fields (Winlogbeat/Elastic Agent Windows mappings). A detection rule also needs an index pattern, schedule and actions.

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

Elastic EQL (ECS)Hunting query

EQL query over ECS fields. Usable in an Elastic Security EQL rule after review; index pattern and schedule are set per environment.

any where ((process.pe.original_file_name like~ ("net.exe", "net1.exe", "PowerShell_ISE.EXE", "PowerShell.EXE", "psservice.exe", "pwsh.dll", "sc.exe", "wmic.exe")) or (process.executable like~ ("*\\net.exe", "*\\net1.exe", "*\\PowerShell_ISE.EXE", "*\\powershell.exe", "*\\PsService.exe", "*\\PsService64.exe", "*\\pwsh.exe", "*\\sc.exe", "*\\wmic.exe"))) and ((process.command_line like~ ("* delete *", "*.delete()*", "* pause *", "* stop *", "*Stop-Service *", "*Remove-Service *")) or (process.command_line:"*config*" and process.command_line:"*start=disabled*")) and (process.command_line like~ ("*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*"))

Elastic ES|QL (ECS)Hunting query

ES|QL query over ECS fields; the FROM clause uses * and must be narrowed to your indices.

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

Required telemetry

Log source
product: windows · category: process_creation
Fields used
CommandLine Image OriginalFileName

False positives

  • Administrators or tools shutting down the services due to upgrade or removal purposes. If you experience some false positive, please consider adding filters to the parent process launching this command and not removing the entry

Investigation and response

No OffSet7 investigation guidance has been written for this rule yet. Start from the false positives above and the ATT&CK technique pages.

References

Author and attribution

Author
Nasreddine Bencherchali (Nextron Systems), frack113 , X__Junior (Nextron Systems)
Source
SigmaHQ · rules/windows/process_creation/proc_creation_win_susp_service_tamper.yml
Upstream commit
9688134317a2
Licence
Detection Rule License (DRL) 1.1

Version history

  1. Version 1Imported from SigmaHQ
  2. OffSet7 build · SigmaHQ 9688134317a2

Related rules