# OffSet7: HackTool - Mimikatz 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 Mimikatz Execution:selection_tools_name (match)
All test lines must match (AND).
- when **Command** contains: `DumpCreds`, `mimikatz`

### BB:OffSet7:HackTool Mimikatz Execution:selection_function_names (match)
All test lines must match (AND).
- when **Command** contains: `::aadcookie`, `::detours`, `::memssp`, `::mflt`, `::ncroutemon`, `::ngcsign`, `::printnightmare`, `::skeleton`, `::preshutdown`, `::mstsc`, `::multirdp`

### BB:OffSet7:HackTool Mimikatz Execution:selection_module_names (match)
All test lines must match (AND).
- when **Command** contains: `rpc::`, `token::`, `crypto::`, `dpapi::`, `sekurlsa::`, `kerberos::`, `lsadump::`, `privilege::`, `process::`, `vault::`

## 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 Mimikatz Execution:selection_tools_name, BB:OffSet7:HackTool Mimikatz Execution:selection_function_names, BB:OffSet7:HackTool Mimikatz Execution:selection_module_names])`

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

1. when the event matches this AQL filter query: `devicetype=12 AND ((LOWER(Command) LIKE '%dumpcreds%' OR LOWER(Command) LIKE '%mimikatz%') OR (LOWER(Command) LIKE '%::aadcookie%' OR LOWER(Command) LIKE '%::detours%' OR LOWER(Command) LIKE '%::memssp%' OR LOWER(Command) LIKE '%::mflt%' OR LOWER(Command) LIKE '%::ncroutemon%' OR LOWER(Command) LIKE '%::ngcsign%' OR LOWER(Command) LIKE '%::printnightmare%' OR LOWER(Command) LIKE '%::skeleton%' OR LOWER(Command) LIKE '%::preshutdown%' OR LOWER(Command) LIKE '%::mstsc%' OR LOWER(Command) LIKE '%::multirdp%') OR (LOWER(Command) LIKE '%rpc::%' OR LOWER(Command) LIKE '%token::%' OR LOWER(Command) LIKE '%crypto::%' OR LOWER(Command) LIKE '%dpapi::%' OR LOWER(Command) LIKE '%sekurlsa::%' OR LOWER(Command) LIKE '%kerberos::%' OR LOWER(Command) LIKE '%lsadump::%' OR LOWER(Command) LIKE '%privilege::%' OR LOWER(Command) LIKE '%process::%' OR LOWER(Command) LIKE '%vault::%'))`

## 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 - Mimikatz Execution (a642964e-bead-4bed-8910-1bb4d63e3b4d). Author: Teymur Kheirkhabarov, oscd.community, David ANDRE (additional keywords), Tim Shelton. Licence: DRL-1.1.
