# OffSet7: Potential Tampering With Security Products Via WMIC

> Design for the QRadar Rule Wizard. Not an importable rule and not tested in QRadar.

- Rule type: Event rule (Local), create disabled
- 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).
- when **Command** contains: `wmic`, `product`, `uninstall`
- when **Command** contains: `/nointeractive`

### BB:OffSet7:Potential Tampering With Security Products Via W:selection_cli_2 (match)
All test lines must match (AND).
- when **Command** contains: `wmic`, `caption like`
- when **Command** contains: `call delete`, `call terminate`

### BB:OffSet7:Potential Tampering With Security Products Via W:selection_cli_3 (match)
All test lines must match (AND).
- when **Command** contains: `process`, `where`, `delete`

### BB:OffSet7:Potential Tampering With Security Products Via W:selection_product (match)
All test lines must match (AND).
- when **Command** 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`

## 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: `(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)

1. 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.

Source rule: Potential Tampering With Security Products Via WMIC (847d5ff3-8a31-4737-a970-aeae8fe21765). Author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems). Licence: DRL-1.1.
