Detection rule
Potential Tampering With Security Products Via WMIC
Overview
Detects uninstallation or termination of security products using the WMIC utility
- Rule id
847d5ff3-8a31-4737-a970-aeae8fe21765- ATT&CK techniques
- 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, braincipher, majinahanashi
Validation
- ExperimentalSyntax checked only. Not yet tested on events.
- Test-data validatedMatched positive test events and ignored near-miss events. Not yet run in a production SIEM.
- 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) · 847d5ff3-8a31-4737-a970-aeae8fe21765
title: Potential Tampering With Security Products Via WMIC
id: 847d5ff3-8a31-4737-a970-aeae8fe21765
related:
- id: b53317a0-8acf-4fd1-8de8-a5401e776b96 # Generic Uninstall
type: derived
status: test
description: Detects uninstallation or termination of security products using the WMIC utility
references:
- https://twitter.com/cglyer/status/1355171195654709249
- https://thedfirreport.com/2021/10/18/icedid-to-xinglocker-ransomware-in-24-hours/
- https://www.mandiant.com/resources/unc2165-shifts-to-evade-sanctions
- https://www.nccgroup.com/research/back-in-black-unlocking-a-lockbit-30-ransomware-attack/
- https://www.trendmicro.com/en_us/research/23/a/vice-society-ransomware-group-targets-manufacturing-companies.html
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2021-01-30
modified: 2025-12-15
tags:
- attack.defense-impairment
- attack.t1685
logsource:
category: process_creation
product: windows
detection:
selection_cli_1:
CommandLine|contains|all:
- 'wmic'
- 'product '
- 'uninstall'
CommandLine|contains|windash: '/nointeractive'
selection_cli_2:
CommandLine|contains|all:
- 'wmic'
- 'caption like '
CommandLine|contains:
- 'call delete'
- 'call terminate'
selection_cli_3:
CommandLine|contains|all:
- 'process '
- 'where '
- 'delete'
selection_product:
CommandLine|contains:
- '%carbon%'
- '%cylance%'
- '%endpoint%'
- '%eset%'
- '%malware%'
- '%Sophos%'
- '%symantec%'
- 'Antivirus'
- 'AVG '
- 'Carbon Black'
- 'CarbonBlack'
- 'Cb Defense Sensor 64-bit'
- 'Crowdstrike Sensor'
- 'Cylance '
- 'Dell Threat Defense'
- 'DLP Endpoint'
- 'Endpoint Detection'
- 'Endpoint Protection'
- 'Endpoint Security'
- 'Endpoint Sensor'
- 'ESET File Security'
- 'LogRhythm System Monitor Service'
- 'Malwarebytes'
- 'McAfee Agent'
- 'Microsoft Security Client'
- 'Sophos Anti-Virus'
- 'Sophos AutoUpdate'
- 'Sophos Credential Store'
- 'Sophos Management Console'
- 'Sophos Management Database'
- 'Sophos Management Server'
- 'Sophos Remote Management System'
- 'Sophos Update Manager'
- 'Threat Protection'
- 'VirusScan'
- 'Webroot SecureAnywhere'
- 'Windows Defender'
condition: 1 of selection_cli_* and selection_product
falsepositives:
- Legitimate administration
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_wmic_uninstall_security_products/info.ymlQRadar 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 (((LOWER(Command) LIKE '%wmic%' AND LOWER(Command) LIKE '%product %' AND LOWER(Command) LIKE '%uninstall%') AND (LOWER(Command) LIKE '%-nointeractive%' OR LOWER(Command) LIKE '%/nointeractive%' OR LOWER(Command) LIKE '%–nointeractive%' OR LOWER(Command) LIKE '%—nointeractive%' OR LOWER(Command) LIKE '%―nointeractive%')) OR ((LOWER(Command) LIKE '%wmic%' AND LOWER(Command) LIKE '%caption like %') AND (LOWER(Command) LIKE '%call delete%' OR LOWER(Command) LIKE '%call terminate%')) OR (LOWER(Command) LIKE '%process %' AND LOWER(Command) LIKE '%where %' AND LOWER(Command) LIKE '%delete%')) AND (LOWER(Command) LIKE '%%carbon%%' OR LOWER(Command) LIKE '%%cylance%%' OR LOWER(Command) LIKE '%%endpoint%%' OR LOWER(Command) LIKE '%%eset%%' OR LOWER(Command) LIKE '%%malware%%' OR LOWER(Command) LIKE '%%sophos%%' OR LOWER(Command) LIKE '%%symantec%%' OR LOWER(Command) LIKE '%antivirus%' OR LOWER(Command) LIKE '%avg %' OR LOWER(Command) LIKE '%carbon black%' OR LOWER(Command) LIKE '%carbonblack%' OR LOWER(Command) LIKE '%cb defense sensor 64-bit%' OR LOWER(Command) LIKE '%crowdstrike sensor%' OR LOWER(Command) LIKE '%cylance %' OR LOWER(Command) LIKE '%dell threat defense%' OR LOWER(Command) LIKE '%dlp endpoint%' OR LOWER(Command) LIKE '%endpoint detection%' OR LOWER(Command) LIKE '%endpoint protection%' OR LOWER(Command) LIKE '%endpoint security%' OR LOWER(Command) LIKE '%endpoint sensor%' OR LOWER(Command) LIKE '%eset file security%' OR LOWER(Command) LIKE '%logrhythm system monitor service%' OR LOWER(Command) LIKE '%malwarebytes%' OR LOWER(Command) LIKE '%mcafee agent%' OR LOWER(Command) LIKE '%microsoft security client%' OR LOWER(Command) LIKE '%sophos anti-virus%' OR LOWER(Command) LIKE '%sophos autoupdate%' OR LOWER(Command) LIKE '%sophos credential store%' OR LOWER(Command) LIKE '%sophos management console%' OR LOWER(Command) LIKE '%sophos management database%' OR LOWER(Command) LIKE '%sophos management server%' OR LOWER(Command) LIKE '%sophos remote management system%' OR LOWER(Command) LIKE '%sophos update manager%' OR LOWER(Command) LIKE '%threat protection%' OR LOWER(Command) LIKE '%virusscan%' OR LOWER(Command) LIKE '%webroot secureanywhere%' OR LOWER(Command) LIKE '%windows defender%')QRadar CRE
Design for the QRadar Rule Wizard. It is not importable and has not been tested in QRadar.
- Rule name
OffSet7: Potential Tampering With Security Products Via WMIC- 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:Potential Tampering With Security Products Via W:selection_cli_1(match)All test lines must match (AND).Commandcontains:wmic,product,uninstallCommandcontains:/nointeractive
BB:OffSet7:Potential Tampering With Security Products Via W:selection_cli_2(match)All test lines must match (AND).Commandcontains:wmic,caption likeCommandcontains:call delete,call terminate
BB:OffSet7:Potential Tampering With Security Products Via W:selection_cli_3(match)All test lines must match (AND).Commandcontains:process,where,delete
BB:OffSet7:Potential Tampering With Security Products Via W:selection_product(match)All test lines must match (AND).Commandcontains:%carbon%,%cylance%,%endpoint%,%eset%,%malware%,%Sophos%,%symantec%,Antivirus,AVG,Carbon Black,CarbonBlack,Cb Defense Sensor 64-bit,Crowdstrike Sensor,Cylance,Dell Threat Defense,DLP Endpoint,Endpoint Detection,Endpoint Protection,Endpoint Security,Endpoint Sensor,ESET File Security,LogRhythm System Monitor Service,Malwarebytes,McAfee Agent,Microsoft Security Client,Sophos Anti-Virus,Sophos AutoUpdate,Sophos Credential Store,Sophos Management Console,Sophos Management Database,Sophos Management Server,Sophos Remote Management System,Sophos Update Manager,Threat Protection,VirusScan,Webroot SecureAnywhere,Windows Defender
Main rule, option A (building blocks)
- 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 - when an event matches the condition built from these building blocks:
(ANY of [BB:OffSet7:Potential Tampering With Security Products Via W:selection_cli_1, BB:OffSet7:Potential Tampering With Security Products Via W:selection_cli_2, BB:OffSet7:Potential Tampering With Security Products Via W:selection_cli_3]) AND BB:OffSet7:Potential Tampering With Security Products Via W:selection_product
Main rule, option B (AQL filter test)
- when the event matches this AQL filter query:
devicetype=12 AND (((LOWER(Command) LIKE '%wmic%' AND LOWER(Command) LIKE '%product %' AND LOWER(Command) LIKE '%uninstall%') AND (LOWER(Command) LIKE '%-nointeractive%' OR LOWER(Command) LIKE '%/nointeractive%' OR LOWER(Command) LIKE '%–nointeractive%' OR LOWER(Command) LIKE '%—nointeractive%' OR LOWER(Command) LIKE '%―nointeractive%')) OR ((LOWER(Command) LIKE '%wmic%' AND LOWER(Command) LIKE '%caption like %') AND (LOWER(Command) LIKE '%call delete%' OR LOWER(Command) LIKE '%call terminate%')) OR (LOWER(Command) LIKE '%process %' AND LOWER(Command) LIKE '%where %' AND LOWER(Command) LIKE '%delete%')) AND (LOWER(Command) LIKE '%%carbon%%' OR LOWER(Command) LIKE '%%cylance%%' OR LOWER(Command) LIKE '%%endpoint%%' OR LOWER(Command) LIKE '%%eset%%' OR LOWER(Command) LIKE '%%malware%%' OR LOWER(Command) LIKE '%%sophos%%' OR LOWER(Command) LIKE '%%symantec%%' OR LOWER(Command) LIKE '%antivirus%' OR LOWER(Command) LIKE '%avg %' OR LOWER(Command) LIKE '%carbon black%' OR LOWER(Command) LIKE '%carbonblack%' OR LOWER(Command) LIKE '%cb defense sensor 64-bit%' OR LOWER(Command) LIKE '%crowdstrike sensor%' OR LOWER(Command) LIKE '%cylance %' OR LOWER(Command) LIKE '%dell threat defense%' OR LOWER(Command) LIKE '%dlp endpoint%' OR LOWER(Command) LIKE '%endpoint detection%' OR LOWER(Command) LIKE '%endpoint protection%' OR LOWER(Command) LIKE '%endpoint security%' OR LOWER(Command) LIKE '%endpoint sensor%' OR LOWER(Command) LIKE '%eset file security%' OR LOWER(Command) LIKE '%logrhythm system monitor service%' OR LOWER(Command) LIKE '%malwarebytes%' OR LOWER(Command) LIKE '%mcafee agent%' OR LOWER(Command) LIKE '%microsoft security client%' OR LOWER(Command) LIKE '%sophos anti-virus%' OR LOWER(Command) LIKE '%sophos autoupdate%' OR LOWER(Command) LIKE '%sophos credential store%' OR LOWER(Command) LIKE '%sophos management console%' OR LOWER(Command) LIKE '%sophos management database%' OR LOWER(Command) LIKE '%sophos management server%' OR LOWER(Command) LIKE '%sophos remote management system%' OR LOWER(Command) LIKE '%sophos update manager%' OR LOWER(Command) LIKE '%threat protection%' OR LOWER(Command) LIKE '%virusscan%' OR LOWER(Command) LIKE '%webroot secureanywhere%' OR LOWER(Command) LIKE '%windows defender%')
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.
((CommandLine="*wmic*" CommandLine="*product *" CommandLine="*uninstall*" (CommandLine="*-nointeractive*" OR CommandLine="*/nointeractive*" OR CommandLine="*–nointeractive*" OR CommandLine="*—nointeractive*" OR CommandLine="*―nointeractive*")) OR (CommandLine="*wmic*" CommandLine="*caption like *" (CommandLine IN ("*call delete*", "*call terminate*"))) OR (CommandLine="*process *" CommandLine="*where *" CommandLine="*delete*")) (CommandLine IN ("*%carbon%*", "*%cylance%*", "*%endpoint%*", "*%eset%*", "*%malware%*", "*%Sophos%*", "*%symantec%*", "*Antivirus*", "*AVG *", "*Carbon Black*", "*CarbonBlack*", "*Cb Defense Sensor 64-bit*", "*Crowdstrike Sensor*", "*Cylance *", "*Dell Threat Defense*", "*DLP Endpoint*", "*Endpoint Detection*", "*Endpoint Protection*", "*Endpoint Security*", "*Endpoint Sensor*", "*ESET File Security*", "*LogRhythm System Monitor Service*", "*Malwarebytes*", "*McAfee Agent*", "*Microsoft Security Client*", "*Sophos Anti-Virus*", "*Sophos AutoUpdate*", "*Sophos Credential Store*", "*Sophos Management Console*", "*Sophos Management Database*", "*Sophos Management Server*", "*Sophos Remote Management System*", "*Sophos Update Manager*", "*Threat Protection*", "*VirusScan*", "*Webroot SecureAnywhere*", "*Windows Defender*"))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
[Potential Tampering With Security Products Via WMIC]
description = Detects uninstallation or termination of security products using the WMIC utility
search = ((CommandLine="*wmic*" CommandLine="*product *" CommandLine="*uninstall*" (CommandLine="*-nointeractive*" OR CommandLine="*/nointeractive*" OR CommandLine="*–nointeractive*" OR CommandLine="*—nointeractive*" OR CommandLine="*―nointeractive*")) OR (CommandLine="*wmic*" CommandLine="*caption like *" (CommandLine IN ("*call delete*", "*call terminate*"))) OR (CommandLine="*process *" CommandLine="*where *" CommandLine="*delete*")) (CommandLine IN ("*%carbon%*", "*%cylance%*", "*%endpoint%*", "*%eset%*", "*%malware%*", "*%Sophos%*", "*%symantec%*", "*Antivirus*", "*AVG *", "*Carbon Black*", "*CarbonBlack*", "*Cb Defense Sensor 64-bit*", "*Crowdstrike Sensor*", "*Cylance *", "*Dell Threat Defense*", "*DLP Endpoint*", "*Endpoint Detection*", "*Endpoint Protection*", "*Endpoint Security*", "*Endpoint Sensor*", "*ESET File Security*", "*LogRhythm System Monitor Service*", "*Malwarebytes*", "*McAfee Agent*", "*Microsoft Security Client*", "*Sophos Anti-Virus*", "*Sophos AutoUpdate*", "*Sophos Credential Store*", "*Sophos Management Console*", "*Sophos Management Database*", "*Sophos Management Server*", "*Sophos Remote Management System*", "*Sophos Update Manager*", "*Threat Protection*", "*VirusScan*", "*Webroot SecureAnywhere*", "*Windows Defender*"))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 (((TargetProcessCommandLine contains "wmic" and TargetProcessCommandLine contains "product " and TargetProcessCommandLine contains "uninstall") and (TargetProcessCommandLine contains "-nointeractive" or TargetProcessCommandLine contains "/nointeractive" or TargetProcessCommandLine contains "–nointeractive" or TargetProcessCommandLine contains "—nointeractive" or TargetProcessCommandLine contains "―nointeractive")) or ((TargetProcessCommandLine contains "wmic" and TargetProcessCommandLine contains "caption like ") and (TargetProcessCommandLine contains "call delete" or TargetProcessCommandLine contains "call terminate")) or (TargetProcessCommandLine contains "process " and TargetProcessCommandLine contains "where " and TargetProcessCommandLine contains "delete")) and (TargetProcessCommandLine contains "%carbon%" or TargetProcessCommandLine contains "%cylance%" or TargetProcessCommandLine contains "%endpoint%" or TargetProcessCommandLine contains "%eset%" or TargetProcessCommandLine contains "%malware%" or TargetProcessCommandLine contains "%Sophos%" or TargetProcessCommandLine contains "%symantec%" or TargetProcessCommandLine contains "Antivirus" or TargetProcessCommandLine contains "AVG " or TargetProcessCommandLine contains "Carbon Black" or TargetProcessCommandLine contains "CarbonBlack" or TargetProcessCommandLine contains "Cb Defense Sensor 64-bit" or TargetProcessCommandLine contains "Crowdstrike Sensor" or TargetProcessCommandLine contains "Cylance " or TargetProcessCommandLine contains "Dell Threat Defense" or TargetProcessCommandLine contains "DLP Endpoint" or TargetProcessCommandLine contains "Endpoint Detection" or TargetProcessCommandLine contains "Endpoint Protection" or TargetProcessCommandLine contains "Endpoint Security" or TargetProcessCommandLine contains "Endpoint Sensor" or TargetProcessCommandLine contains "ESET File Security" or TargetProcessCommandLine contains "LogRhythm System Monitor Service" or TargetProcessCommandLine contains "Malwarebytes" or TargetProcessCommandLine contains "McAfee Agent" or TargetProcessCommandLine contains "Microsoft Security Client" or TargetProcessCommandLine contains "Sophos Anti-Virus" or TargetProcessCommandLine contains "Sophos AutoUpdate" or TargetProcessCommandLine contains "Sophos Credential Store" or TargetProcessCommandLine contains "Sophos Management Console" or TargetProcessCommandLine contains "Sophos Management Database" or TargetProcessCommandLine contains "Sophos Management Server" or TargetProcessCommandLine contains "Sophos Remote Management System" or TargetProcessCommandLine contains "Sophos Update Manager" or TargetProcessCommandLine contains "Threat Protection" or TargetProcessCommandLine contains "VirusScan" or TargetProcessCommandLine contains "Webroot SecureAnywhere" or TargetProcessCommandLine contains "Windows Defender")Defender XDR
Microsoft Defender XDR KQLHunting query
Advanced hunting query. A custom detection rule also needs a frequency, impacted entities and actions.
DeviceProcessEvents
| where (((ProcessCommandLine contains "wmic" and ProcessCommandLine contains "product " and ProcessCommandLine contains "uninstall") and (ProcessCommandLine contains "-nointeractive" or ProcessCommandLine contains "/nointeractive" or ProcessCommandLine contains "–nointeractive" or ProcessCommandLine contains "—nointeractive" or ProcessCommandLine contains "―nointeractive")) or ((ProcessCommandLine contains "wmic" and ProcessCommandLine contains "caption like ") and (ProcessCommandLine contains "call delete" or ProcessCommandLine contains "call terminate")) or (ProcessCommandLine contains "process " and ProcessCommandLine contains "where " and ProcessCommandLine contains "delete")) and (ProcessCommandLine contains "%carbon%" or ProcessCommandLine contains "%cylance%" or ProcessCommandLine contains "%endpoint%" or ProcessCommandLine contains "%eset%" or ProcessCommandLine contains "%malware%" or ProcessCommandLine contains "%Sophos%" or ProcessCommandLine contains "%symantec%" or ProcessCommandLine contains "Antivirus" or ProcessCommandLine contains "AVG " or ProcessCommandLine contains "Carbon Black" or ProcessCommandLine contains "CarbonBlack" or ProcessCommandLine contains "Cb Defense Sensor 64-bit" or ProcessCommandLine contains "Crowdstrike Sensor" or ProcessCommandLine contains "Cylance " or ProcessCommandLine contains "Dell Threat Defense" or ProcessCommandLine contains "DLP Endpoint" or ProcessCommandLine contains "Endpoint Detection" or ProcessCommandLine contains "Endpoint Protection" or ProcessCommandLine contains "Endpoint Security" or ProcessCommandLine contains "Endpoint Sensor" or ProcessCommandLine contains "ESET File Security" or ProcessCommandLine contains "LogRhythm System Monitor Service" or ProcessCommandLine contains "Malwarebytes" or ProcessCommandLine contains "McAfee Agent" or ProcessCommandLine contains "Microsoft Security Client" or ProcessCommandLine contains "Sophos Anti-Virus" or ProcessCommandLine contains "Sophos AutoUpdate" or ProcessCommandLine contains "Sophos Credential Store" or ProcessCommandLine contains "Sophos Management Console" or ProcessCommandLine contains "Sophos Management Database" or ProcessCommandLine contains "Sophos Management Server" or ProcessCommandLine contains "Sophos Remote Management System" or ProcessCommandLine contains "Sophos Update Manager" or ProcessCommandLine contains "Threat Protection" or ProcessCommandLine contains "VirusScan" or ProcessCommandLine contains "Webroot SecureAnywhere" or ProcessCommandLine contains "Windows Defender")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.command_line:*wmic* AND process.command_line:*product\ * AND process.command_line:*uninstall*) AND process.command_line:(*\-nointeractive* OR *\/nointeractive* OR *–nointeractive* OR *—nointeractive* OR *―nointeractive*)) OR ((process.command_line:*wmic* AND process.command_line:*caption\ like\ *) AND (process.command_line:(*call\ delete* OR *call\ terminate*))) OR (process.command_line:*process\ * AND process.command_line:*where\ * AND process.command_line:*delete*)) AND (process.command_line:(*%carbon%* OR *%cylance%* OR *%endpoint%* OR *%eset%* OR *%malware%* OR *%Sophos%* OR *%symantec%* OR *Antivirus* OR *AVG\ * OR *Carbon\ Black* OR *CarbonBlack* OR *Cb\ Defense\ Sensor\ 64\-bit* OR *Crowdstrike\ Sensor* OR *Cylance\ * OR *Dell\ Threat\ Defense* OR *DLP\ Endpoint* OR *Endpoint\ Detection* OR *Endpoint\ Protection* OR *Endpoint\ Security* OR *Endpoint\ Sensor* OR *ESET\ File\ Security* OR *LogRhythm\ System\ Monitor\ Service* OR *Malwarebytes* OR *McAfee\ Agent* OR *Microsoft\ Security\ Client* OR *Sophos\ Anti\-Virus* OR *Sophos\ AutoUpdate* OR *Sophos\ Credential\ Store* OR *Sophos\ Management\ Console* OR *Sophos\ Management\ Database* OR *Sophos\ Management\ Server* OR *Sophos\ Remote\ Management\ System* OR *Sophos\ Update\ Manager* OR *Threat\ Protection* OR *VirusScan* OR *Webroot\ SecureAnywhere* OR *Windows\ Defender*))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.command_line:"*wmic*" and process.command_line:"*product *" and process.command_line:"*uninstall*") and process.command_line like~ ("*-nointeractive*", "*/nointeractive*", "*–nointeractive*", "*—nointeractive*", "*―nointeractive*")) or ((process.command_line:"*wmic*" and process.command_line:"*caption like *") and (process.command_line like~ ("*call delete*", "*call terminate*"))) or (process.command_line:"*process *" and process.command_line:"*where *" and process.command_line:"*delete*")) and (process.command_line like~ ("*%carbon%*", "*%cylance%*", "*%endpoint%*", "*%eset%*", "*%malware%*", "*%Sophos%*", "*%symantec%*", "*Antivirus*", "*AVG *", "*Carbon Black*", "*CarbonBlack*", "*Cb Defense Sensor 64-bit*", "*Crowdstrike Sensor*", "*Cylance *", "*Dell Threat Defense*", "*DLP Endpoint*", "*Endpoint Detection*", "*Endpoint Protection*", "*Endpoint Security*", "*Endpoint Sensor*", "*ESET File Security*", "*LogRhythm System Monitor Service*", "*Malwarebytes*", "*McAfee Agent*", "*Microsoft Security Client*", "*Sophos Anti-Virus*", "*Sophos AutoUpdate*", "*Sophos Credential Store*", "*Sophos Management Console*", "*Sophos Management Database*", "*Sophos Management Server*", "*Sophos Remote Management System*", "*Sophos Update Manager*", "*Threat Protection*", "*VirusScan*", "*Webroot SecureAnywhere*", "*Windows Defender*"))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.command_line like "*wmic*" and process.command_line like "*product *" and process.command_line like "*uninstall*" and (process.command_line like "*-nointeractive*" or process.command_line like "*/nointeractive*" or process.command_line like "*–nointeractive*" or process.command_line like "*—nointeractive*" or process.command_line like "*―nointeractive*") or process.command_line like "*wmic*" and process.command_line like "*caption like *" and (process.command_line like "*call delete*" or process.command_line like "*call terminate*") or process.command_line like "*process *" and process.command_line like "*where *" and process.command_line like "*delete*") and (process.command_line like "*%carbon%*" or process.command_line like "*%cylance%*" or process.command_line like "*%endpoint%*" or process.command_line like "*%eset%*" or process.command_line like "*%malware%*" or process.command_line like "*%Sophos%*" or process.command_line like "*%symantec%*" or process.command_line like "*Antivirus*" or process.command_line like "*AVG *" or process.command_line like "*Carbon Black*" or process.command_line like "*CarbonBlack*" or process.command_line like "*Cb Defense Sensor 64-bit*" or process.command_line like "*Crowdstrike Sensor*" or process.command_line like "*Cylance *" or process.command_line like "*Dell Threat Defense*" or process.command_line like "*DLP Endpoint*" or process.command_line like "*Endpoint Detection*" or process.command_line like "*Endpoint Protection*" or process.command_line like "*Endpoint Security*" or process.command_line like "*Endpoint Sensor*" or process.command_line like "*ESET File Security*" or process.command_line like "*LogRhythm System Monitor Service*" or process.command_line like "*Malwarebytes*" or process.command_line like "*McAfee Agent*" or process.command_line like "*Microsoft Security Client*" or process.command_line like "*Sophos Anti-Virus*" or process.command_line like "*Sophos AutoUpdate*" or process.command_line like "*Sophos Credential Store*" or process.command_line like "*Sophos Management Console*" or process.command_line like "*Sophos Management Database*" or process.command_line like "*Sophos Management Server*" or process.command_line like "*Sophos Remote Management System*" or process.command_line like "*Sophos Update Manager*" or process.command_line like "*Threat Protection*" or process.command_line like "*VirusScan*" or process.command_line like "*Webroot SecureAnywhere*" or process.command_line like "*Windows Defender*")Required telemetry
- Log source
product: windows · category: process_creation- Fields used
CommandLine
False positives
- Legitimate administration
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
- https://twitter.com/cglyer/status/1355171195654709249
- https://thedfirreport.com/2021/10/18/icedid-to-xinglocker-ransomware-in-24-hours/
- https://www.mandiant.com/resources/unc2165-shifts-to-evade-sanctions
- https://www.nccgroup.com/research/back-in-black-unlocking-a-lockbit-30-ransomware-attack/
- https://www.trendmicro.com/en_us/research/23/a/vice-society-ransomware-group-targets-manufacturing-companies.html
Author and attribution
- Author
- Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
- Source
- SigmaHQ ·
rules/windows/process_creation/proc_creation_win_wmic_uninstall_security_products.yml - Upstream commit
9688134317a2- Licence
- Detection Rule License (DRL) 1.1
Version history
- Version 1Imported from SigmaHQ
- OffSet7 build · SigmaHQ
9688134317a2