# OffSet7: HackTool - Bloodhound/Sharphound 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 Bloodhound Sharphound Execution:selection_img (match)
Any of the groups matches (OR): build one BB per group and a parent BB "when an event matches any of" them.
- when **custom property for Product** contains: `SharpHound` — No QRadar property mapped for "Product": create a custom event property (regex or JSON) on the DSM first.
- when **custom property for Description** contains: `SharpHound` — No QRadar property mapped for "Description": create a custom event property (regex or JSON) on the DSM first.
- when **custom property for Company** contains: `SpecterOps`, `evil corp` — No QRadar property mapped for "Company": create a custom event property (regex or JSON) on the DSM first.
- when **Process Path / Process Name** contains: `\Bloodhound.exe`, `\SharpHound.exe`

### BB:OffSet7:HackTool Bloodhound Sharphound Execution:selection_cli_1 (match)
All test lines must match (AND).
- when **Command** contains: ` -CollectionMethod All`, ` --CollectionMethods Session`, ` --Loop --Loopduration`, ` --PortScanTimeout`, `.exe -c All -d`, `Invoke-Bloodhound`, `Get-BloodHoundData`

### BB:OffSet7:HackTool Bloodhound Sharphound Execution:selection_cli_2 (match)
All test lines must match (AND).
- when **Command** contains: ` -JsonFolder`, ` -ZipFileName`

### BB:OffSet7:HackTool Bloodhound Sharphound Execution:selection_cli_3 (match)
All test lines must match (AND).
- when **Command** contains: ` DCOnly`, ` --NoSaveCache`

## 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 Bloodhound Sharphound Execution:selection_img, BB:OffSet7:HackTool Bloodhound Sharphound Execution:selection_cli_1, BB:OffSet7:HackTool Bloodhound Sharphound Execution:selection_cli_2, BB:OffSet7:HackTool Bloodhound Sharphound Execution:selection_cli_3])`

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

Not available: the AQL conversion failed for this rule.

## 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

- AQL conversion failed (field 'Product' is not supported); only the building-block design is available.
- 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 - Bloodhound/Sharphound Execution (f376c8a7-a2d0-4ddc-aa0c-16c17236d962). Author: Florian Roth (Nextron Systems). Licence: DRL-1.1.
