This repository contains some useful resources regarding BloodHound CE:
These queries are used in BloodHound CE to analyze your collected data.
You can directly copy the BloodHound CE Custom Queries from your browser into your BloodHound CE instance.
Install PowerShell on Kali:
sudo apt -y install powershell
Clone the BloodHoundOperator repository:
git clone https://github.com/SadProcessor/BloodHoundOperator.git
Create a new API Key in BloodHound via Settings → My Profile → API Key Management → Create Token.
Load the BloodHound Operator module, authenticate using the created API tokens and create a new session:
Import-Module /opt/BloodHoundOperator/BloodHoundOperator.ps1
$BHTokenKey = "WW91ciBCbG9vZEhvdW5kIEFQSSBLZXkgY29tZXMgaGVyZSA6KQ=="
$BHTokenID = "596F7572-2054-6F6B-656E-204944203A29"
$BHServer = "127.0.0.1"
$BHPort = "8080"
New-BHSession -Server $BHServer -Port $BHPort -TokenID $BHTokenID -Token (ConvertTo-SecureString -AsPlainText -Force $BHTokenKey)
Get-BHSession
For your convinience, so that you don't have to type the commands above every time, you can copy the Create-BloodHoundOperatorSession.ps1 script, modify it so it matches the values of your installation and import it:
Import-Module /opt/Create-BloodHoundOperatorSession.ps1
After creating the session, execute the import script to import the queries:
cd scripts
.\Import-BloodHoundCECustomQueries.ps1
The imported queries are then shown in BloodHound:
These queries are used in a BloodHound Operator session, to modify your collected data.
- Authenticate to the BloodHound API as explained above.
- Directly copy the BloodHound Operator Custom Queries from your browser into your PowerShell console.
- BloodHound Documentation: https://support.bloodhoundenterprise.io/hc/en-us
- BloodHound Documentation: https://support.bloodhoundenterprise.io/hc/en-us/sections/16600947632923-Nodes
- BloodHound GitHub: https://github.com/SpecterOps/BloodHound
- SharpHound GitHub: https://github.com/SpecterOps/SharpHound
- Neo4J: Cypher Manual: https://neo4j.com/docs/cypher-manual
- Neo4J: Cypher Cheat Sheet: https://neo4j.com/docs/cypher-cheat-sheet/
- Cypher Queries in BloodHound Enterprise: https://posts.specterops.io/cypher-queries-in-bloodhound-enterprise-c7221a0d4bb3
- BloodHound: Searching with Cypher: https://support.bloodhoundenterprise.io/hc/en-us/articles/16721164740251-Searching-with-Cypher