# OffSet7: PUA - Process Hacker Driver Load

> 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: Sysmon EID 6 (driver loaded)

## Building blocks

### BB:OffSet7:PUA Process Hacker Driver Load:selection (match)
Any of the groups matches (OR): build one BB per group and a parent BB "when an event matches any of" them.
- when **CONCAT('file directory', '/', filename)** ends with: `\kprocesshacker.sys`
- when **CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')** contains: `IMPHASH=821D74031D3F625BCBD0DF08B70F1E77`, `IMPHASH=F86759BB4DE4320918615DC06E998A39`, `IMPHASH=0A64EEB85419257D0CE32BD5D55C3A18`, `IMPHASH=6E7B34DFC017700B1517B230DF6FF0D0`

## 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: Sysmon EID 6 (driver loaded)`
2. when an event matches the condition built from these building blocks: `BB:OffSet7:PUA Process Hacker Driver Load:selection`

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

1. when the event matches this AQL filter query: `devicetype=12 AND (LOWER(CONCAT('file directory', '/', filename)) LIKE '%\kprocesshacker.sys' OR (LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=821d74031d3f625bcbd0df08b70f1e77%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=f86759bb4de4320918615dc06e998a39%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=0a64eeb85419257d0ce32bd5d55c3a18%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=6e7b34dfc017700b1517b230df6ff0d0%'))`

## 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: PUA - Process Hacker Driver Load (67add051-9ee7-4ad3-93ba-42935615ae8d). Author: Florian Roth (Nextron Systems). Licence: DRL-1.1.
