Detects command line parameters used by Bloodhound and Sharphound hack tools
title: HackTool - Bloodhound/Sharphound Execution
id: f376c8a7-a2d0-4ddc-aa0c-16c17236d962
status: test
description: Detects command line parameters used by Bloodhound and Sharphound hack tools
references:
- https://github.com/BloodHoundAD/BloodHound
- https://github.com/BloodHoundAD/SharpHound
author: Florian Roth (Nextron Systems)
date: 2019-12-20
modified: 2023-02-04
tags:
- attack.discovery
- attack.t1087.001
- attack.t1087.002
- attack.t1482
- attack.t1069.001
- attack.t1069.002
- attack.execution
- attack.t1059.001
logsource:
category: process_creation
product: windows
detection:
selection_img:
- Product|contains: 'SharpHound'
- Description|contains: 'SharpHound'
- Company|contains:
- 'SpecterOps'
- 'evil corp'
- Image|contains:
- '\Bloodhound.exe'
- '\SharpHound.exe'
selection_cli_1:
CommandLine|contains:
- ' -CollectionMethod All '
- ' --CollectionMethods Session '
- ' --Loop --Loopduration '
- ' --PortScanTimeout '
- '.exe -c All -d '
- 'Invoke-Bloodhound'
- 'Get-BloodHoundData'
selection_cli_2:
CommandLine|contains|all:
- ' -JsonFolder '
- ' -ZipFileName '
selection_cli_3:
CommandLine|contains|all:
- ' DCOnly '
- ' --NoSaveCache '
condition: 1 of selection_*
falsepositives:
- Other programs that use these command line option and accepts an 'All' parameter
level: high
imProcessCreate
| where (TargetProcessFileProduct contains "SharpHound" or TargetProcessFileDescription contains "SharpHound" or (TargetProcessFileCompany contains "SpecterOps" or TargetProcessFileCompany contains "evil corp") or (TargetProcessName contains "\\Bloodhound.exe" or TargetProcessName contains "\\SharpHound.exe")) or (TargetProcessCommandLine contains " -CollectionMethod All " or TargetProcessCommandLine contains " --CollectionMethods Session " or TargetProcessCommandLine contains " --Loop --Loopduration " or TargetProcessCommandLine contains " --PortScanTimeout " or TargetProcessCommandLine contains ".exe -c All -d " or TargetProcessCommandLine contains "Invoke-Bloodhound" or TargetProcessCommandLine contains "Get-BloodHoundData") or (TargetProcessCommandLine contains " -JsonFolder " and TargetProcessCommandLine contains " -ZipFileName ") or (TargetProcessCommandLine contains " DCOnly " and TargetProcessCommandLine contains " --NoSaveCache ")
| Sentinel Table | Notes |
|---|---|
imProcessCreate | Ensure this data connector is enabled |