
Collection Is Only Half the Job
Azurehound gathers the data, but BloodHound turns it into insight. Until the JSON file is ingested, it is just a very large list of objects. Once imported, those objects become nodes and edges in a graph that you can search, traverse and query for the shortest route from any principal to any target.
This guide covers getting Azurehound data into BloodHound Community Edition (CE) reliably, confirming the import worked and making sense of what you see.
Step 1: Have BloodHound CE Running
BloodHound CE is deployed as containers, typically using Docker Compose, with a web application backed by a graph database and a relational database. Follow the official quick-start for your platform. When it is running, open the web interface in your browser and sign in with the administrator credentials created during setup.
A few practical tips:
- Allocate enough memory. Large tenants produce large graphs, and 16 GB of RAM on the host is a comfortable starting point for serious work.
- Keep the interface bound to localhost unless colleagues need access, in which case place it behind proper authentication and TLS.
- Note the BloodHound version. Compatibility with Azurehound output depends on it.
Step 2: Check Version Compatibility
BloodHound and Azurehound evolve together. A new Azurehound release may add object types that only newer BloodHound versions understand, while an older collector may lack fields a newer BloodHound expects. Before importing:
- Note your Azurehound version (
azurehound --version). - Note your BloodHound CE version from the interface.
- If either is significantly older than the other, upgrade so they are aligned.
This single check prevents most ingestion failures.
Step 3: Upload the File
In the BloodHound CE interface, open the file upload area. Depending on your version, it is labelled File Ingest, Upload Files or Quick Upload, typically available from the administration menu or the main navigation. Then:
- Select or drag the Azurehound JSON file into the upload dialog.
- Confirm the upload.
- Watch the ingest job status. Large files take time to process.
You can upload Active Directory data from SharpHound or other collectors into the same instance. BloodHound will connect them where relationships exist, such as synchronised hybrid identities.
If your file is very large, compressing it as a ZIP may speed up the upload, as BloodHound CE accepts ZIP archives containing collection files.
Step 4: Confirm Ingestion Succeeded
When the job completes, verify the data:
- Check the ingest job list for errors.
- Search for a known user principal name from the tenant. It should return an AZUser node.
- Search for your tenant name. The AZTenant node anchors the Azure portion of the graph.
- Review database statistics, if your version shows them, for counts of Azure objects.
If counts look low, compare with the collection logs. Missing Azure resources usually mean the collecting identity lacked RBAC Reader rights; missing directory objects may indicate a partial collection interrupted by throttling or token expiry.
Step 5: Understand Azure Nodes
Azure data appears with the AZ prefix. Common node types include:
| Node | Represents |
|---|---|
| AZTenant | The Entra ID tenant |
| AZUser | User accounts |
| AZGroup | Security and Microsoft 365 groups |
| AZApp | Application registrations |
| AZServicePrincipal | Enterprise application identities and managed identities |
| AZDevice | Registered and joined devices |
| AZRole | Directory roles such as Global Administrator |
| AZManagementGroup | Management groups |
| AZSubscription | Azure subscriptions |
| AZResourceGroup | Resource groups |
| AZVM | Virtual machines |
| AZKeyVault | Key vaults |
Step 6: Understand Azure Edges
Edges describe what one object can do to another. A few important examples:
- AZMemberOf: a principal is a member of a group.
- AZHasRole: a principal holds a directory role.
- AZOwns: a principal owns an object such as an application or group.
- AZGlobalAdmin and AZPrivRoleAdmin: highly privileged directory control.
- AZResetPassword: a principal can reset another user's password.
- AZAddSecret: a principal can add credentials to an application or service principal.
- AZMGGrantAppRoles: a service principal can grant application roles through Microsoft Graph, a powerful escalation primitive.
- AZExecuteCommand: a principal can run commands on a virtual machine.
- AZContributor and AZUserAccessAdministrator: Azure RBAC control over resources and access.
- AZManagedIdentity: a resource runs as a managed identity, linking compute to identity.
Each edge has documentation in BloodHound explaining how it could be abused and how to remediate it. Reading those notes is one of the best ways to learn Azure security.
Step 7: Run First Queries
Start with questions that matter most:
Paths to Global Administrator. Search for the Global Administrator role and use pathfinding or the pre-built queries to show inbound paths. Every principal on those paths is effectively tier zero.
Privileged service principals. Look for service principals with dangerous Graph application permissions. Applications often have owners who are ordinary users, creating indirect routes to high privilege.
Subscription control. Inspect inbound edges to AZSubscription nodes. Owners and User Access Administrators can grant themselves anything within that scope.
Managed identities on virtual machines. Paths through AZExecuteCommand and AZManagedIdentity show how control of a VM can translate into cloud privileges.
BloodHound CE includes pre-built Azure queries. Running them is a fast way to explore before writing your own Cypher.
Step 8: Write Custom Cypher
As confidence grows, custom Cypher queries let you answer specific questions. For example, to list users who hold any directory role:
MATCH p=(u:AZUser)-[:AZHasRole]->(r:AZRole)
RETURN p
LIMIT 100
Exact labels and properties can vary between versions, so check the schema in your BloodHound instance before relying on a query in reports.
Step 9: Turn Findings Into Fixes
Graphs are valuable only if they lead to change. For each high-impact path, identify the single edge that is cheapest to remove: an unnecessary application owner, a stale role assignment, an overly broad RBAC grant. Removing one well-chosen edge often eliminates many paths at once. Re-run Azurehound after remediation and import the new data to confirm the paths are gone.
Managing Data Over Time
BloodHound CE lets you clear the database between engagements. For ongoing internal programmes, decide whether to keep only the latest collection or maintain separate instances for comparisons. Either way, protect the BloodHound host as carefully as the raw JSON files; it contains the same sensitive information in a more convenient form.
Sharing BloodHound Results Safely With Your Team
Once Azurehound data is in BloodHound, colleagues will want access. Sharing is valuable, but the BloodHound instance now holds a comprehensive map of your Azure privileges, so plan access carefully.
Create individual BloodHound accounts rather than sharing the administrator login, and assign roles that match each person's needs. Read-only access suits most analysts and stakeholders. Place the instance behind TLS and, where possible, restrict network access to a management subnet or VPN. Enable whatever audit logging your deployment supports so you can see who viewed or uploaded data.
For stakeholders who only need specific findings, export screenshots or path summaries rather than granting full access. A single image of a path to Global Administrator, with a short explanation and recommended fix, is often more effective than a login to the whole graph.
Keeping the database tidy
Over time, repeated uploads can leave a mixture of old and new data, especially if objects have been deleted from the tenant. When starting a new reporting period, consider clearing the database and importing a fresh collection so the graph reflects current reality. Keep the original JSON files archived securely if you need to reproduce earlier views.
Combining with saved queries
BloodHound CE allows custom queries to be saved and reused. Build a small library covering your standard questions, such as paths to tier zero, risky service principals and subscription owners, and run it after every import. This turns each Azurehound collection into a consistent, comparable review.
Key Takeaways
- Align Azurehound and BloodHound versions before importing to avoid most ingestion errors.
- Upload files through the File Ingest or Upload Files area and verify counts afterwards.
- Learn the main AZ node and edge types to interpret the graph confidently.
- Start with paths to Global Administrator and inbound control of subscriptions.
- Share access through individual, role-appropriate accounts and protect the instance with TLS.
FAQs
Conclusion
Importing Azurehound data into BloodHound CE is straightforward once versions are aligned: upload, verify, explore. The real value comes afterwards, when you learn the Azure node and edge types, ask focused questions about Global Administrator and subscription control, and turn the paths you discover into targeted fixes. Repeat the cycle regularly, and your Azure attack surface will shrink in measurable steps.


