# OffSet7: HackTool - GMER Rootkit Detector and Remover Execution

> 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:HackTool GMER Rootkit Detector and Remover Execu:selection_img (match)
All test lines must match (AND).
- when **Process Path / Process Name** ends with: `\gmer.exe`

### BB:OffSet7:HackTool GMER Rootkit Detector and Remover Execu:selection_sysmon_hash (match)
All test lines must match (AND).
- when **CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')** contains: `MD5=E9DC058440D321AA17D0600B3CA0AB04`, `SHA1=539C228B6B332F5AA523E5CE358C16647D8BBE57`, `SHA256=E8A3E804A96C716A3E9B69195DB6FFB0D33E2433AF871E4D4E1EAB3097237173`

## 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:HackTool GMER Rootkit Detector AND Remover Execu:selection_img, BB:OffSet7:HackTool GMER Rootkit Detector AND Remover Execu:selection_sysmon_hash])`

## Main rule — option B (AQL filter test)

1. when the event matches this AQL filter query: `devicetype=12 AND ((LOWER("Process Path") LIKE '%\gmer.exe' OR LOWER("Process Name") LIKE '%\gmer.exe') OR (LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%md5=e9dc058440d321aa17d0600b3ca0ab04%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%sha1=539c228b6b332f5aa523e5ce358c16647d8bbe57%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%sha256=e8a3e804a96c716a3e9b69195db6ffb0d33e2433af871e4d4e1eab3097237173%'))`

## 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: HackTool - GMER Rootkit Detector and Remover Execution (9082ff1f-88ab-4678-a3cc-5bcff99fc74d). Author: Nasreddine Bencherchali (Nextron Systems). Licence: DRL-1.1.
