# SpecterOps > This file is very large and may be truncated. For an index of this content, please refer to https://bloodhound.specterops.io/llms.txt instead. # BloodHound Configuration Source: https://bloodhound.specterops.io/analyze-data/configuration ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) This article explains the multiple tenant-wide configurations supported by BloodHound Enterprise. The configurations can be changed by a BloodHound Administrator in ⚙️ > Administration > BloodHound Configuration. ## Reconciliation Configuration When enabled, BloodHound Enterprise will perform data reconciliation and retention. The configuration also allows for the changing of the default retention time. See [Data reconciliation and retention](/collect-data/enterprise-collection/data-retention). ## Citrix RDP Support When enabled, BloodHound Enterprise will prevent false-positive CanRDP findings for Citrix VDAs. This configuration adds to the [CanRDP edge conditions](/resources/edges/can-rdp) that a non-administrative principal must also be a member of the computer's local "Direct Access Users" group, which Citrix created to allow non-brokered access to VDAs. # Search with Cypher Source: https://bloodhound.specterops.io/analyze-data/explore/cypher-search Learn how to use Cypher queries to extend BloodHound's search capabilities and manage custom queries. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) ## Purpose This article describes how to use Cypher queries to extend the basic search functionality of BloodHound. BloodHound offers a variety of prebuilt queries to help you get started. You can search and filter queries by various criteria, create and manage custom queries, and import and export queries in JSON format. ## What is Cypher? Cypher is a query language for graph databases (similar to SQL for relational databases). It uses an ASCII-art style syntax to describe nodes and relationships. If you can describe the path you're looking for, you can write it in Cypher. > [!NOTE] > > This article provides an introduction to Cypher queries in BloodHound, including how to access prebuilt queries and manage saved queries. See [Write Custom Queries](/analyze-data/explore/cypher-search#write-custom-queries) for more advanced information. ## Quickstart A great way to start exploring Cypher queries is through the community-driven [BloodHound Query Library](https://queries.specterops.io/). This comprehensive collection includes both community-contributed queries and the prebuilt queries that are available in BloodHound. When you're ready to explore prebuilt queries inside BloodHound, follow these steps: **1. Open the Saved Queries section** Click **Explore** > **Cypher** > **Saved Queries**. BloodHound displays prebuilt queries by default when you expand the **Saved Queries** section. ![Default view of the Saved Queries section](https://mintcdn.com/specterops/GsatkcDq_60LJnvj/images/explore/saved-queries-default-view.png?fit=max\&auto=format\&n=GsatkcDq_60LJnvj\&q=85\&s=b62c18a90511ba59b675cc31fc03e751) **2. Select and run a query** Select a query from the list to display the Cypher syntax and automatically run the query. > [!TIP] > > Click the **Auto-run selected query** checkbox if you prefer to run queries manually. **3. Review the results** Review the results in the graph view. You can modify the Cypher syntax and re-run the query to explore different relationships. ## Features BloodHound provides several features to help you work with Cypher queries. These features enable you to search and manage your queries effectively. ### Search and Filter BloodHound offers several search and filtering options to help you find the right query quickly. ![Search and filter queries](https://mintcdn.com/specterops/GsatkcDq_60LJnvj/images/explore/saved-queries-search-filter.png?fit=max\&auto=format\&n=GsatkcDq_60LJnvj\&q=85\&s=7754fe293f98cbe7265a6c2707eb3226) * **Search saved queries by name**: Quickly locate specific queries using the search text box. * **Filter queries**: Narrow down the list of queries by selecting one of the following options: * **Platforms**: Displays queries based on the platform that they target, such as Active Directory or Azure. You can also filter to show only your saved queries. * **Categories**: Displays queries based on logical groups, such as shortest path and dangerous privileges. * **Source**: Displays queries based on their source, such as prebuilt, personal, and shared. ### Create and Manage Queries BloodHound provides several features to help you create and manage custom queries. For example, you can: * **Save a query**: Write a custom query and store it for future use. * **Save As**: Create a copy of an existing query with a new name, description, and updated parameters. * **Share a saved query**: Share your custom query with all users or specific users in your BloodHound environment. * **Edit a saved query**: Modify the Cypher syntax, metadata, and shared access of a custom query. * **Delete saved queries**: Remove custom queries that you no longer need. > [!NOTE] > > You can only edit, share, and delete queries that you have created. You cannot modify prebuilt queries directly, but you can use the **Save As** feature to create a copy that you can then edit. When you're ready to create and manage custom queries, follow these steps: **1. Open the query editor** In the left menu, click **Explore** > **Cypher**. **2. Create or copy a query** Choose one of the following options to create a custom query: > [tab] Create a new custom query > > In the query editor, [write a custom query](/analyze-data/explore/cypher-search#write-custom-queries) and run it to see the results. > [tab] Copy an existing query > > Select a prebuilt or saved query from the list. Click the drop-down arrow beside **Save As** to create a copy of the selected query. **3. Enter query details** In the *Save Query* dialog, enter a unique name and description for your query. ![Save query dialog](https://mintcdn.com/specterops/GsatkcDq_60LJnvj/images/explore/save-query-dialog.png?fit=max\&auto=format\&n=GsatkcDq_60LJnvj\&q=85\&s=34fc9a2628175a760d5d51ada1cec2b1) **4. Share your query (optional)** In the *Manage Shared Queries* dialog, select **Set to Public** to enable collaboration with all users in your BloodHound environment or select specific users. You can change these settings later if needed. **5. Save your query** Click **Save** to store your custom query. It will now appear in the list of saved queries. **6. Edit or delete your query** To edit or delete your query, click the vertical ellipsis (three dots) next to the query name and select **Edit/Share** or **Delete**. ![Edit and delete saved queries](https://mintcdn.com/specterops/izE6PVEcAfKbkoW5/images/explore/edit-saved-query.png?fit=max\&auto=format\&n=izE6PVEcAfKbkoW5\&q=85\&s=5ef16e54a0a04492f2c883e0e0e9e19b) ### Import and Export BloodHound allows you to import and export queries for easy sharing and backup. ![Import and export queries](https://mintcdn.com/specterops/GsatkcDq_60LJnvj/images/explore/saved-queries-import-export.png?fit=max\&auto=format\&n=GsatkcDq_60LJnvj\&q=85\&s=5c439199ba3cc4c8b96e98bb7f4ed88b) * **Import queries from JSON files**: Easily add new queries by dragging and dropping JSON files or compressed JSON files into the UI. BloodHound validates the files for correct syntax and notifies you of any errors. * **Export a saved query to a JSON file**: Share or back up your queries by exporting them in JSON format. Export is available for saved queries only. You cannot export prebuilt queries directly. ## Write Custom Queries BloodHound lets you run queries in its supported Cypher subset directly in the user interface. Cypher support expanded significantly in v9.10. The [syntax reference](/analyze-data/explore/cypher-supported) describes the supported syntax and PostgreSQL-specific limitations. BloodHound rejects procedure calls and user-supplied query parameters before database execution. Use Cypher when you need to inspect relationships, answer targeted questions, or build analyses that go beyond the prebuilt queries. Cypher supports everything from simple lookups to complex identity attack-path analysis. For example, you can answer questions such as: * Which users have not reset their passwords in 180 days? * Which low-privileged users can reach machines that host an unconstrained gMSA? * What are the shortest paths from low-privilege users to Domain Admins? * Which objects are in Tier Zero? For example, use the following query to return all Tier Zero objects: ```cql theme={null} MATCH (n:Tag_Tier_Zero) RETURN n ``` If you need to narrow the results to a specific object type, combine labels in the same pattern. For example, to return only Tier Zero users: ```cql theme={null} MATCH (n:User:Tag_Tier_Zero) RETURN n ``` > [!WARNING] > > Do not search for Tier Zero objects by inspecting `system_tags` properties with patterns such as `coalesce(n.system_tags, [])`. Support for this pattern is temporary and will be deprecated in a future release. > > BloodHound represents each zone with its own case-sensitive label based on the zone name. For example, the `PCI Enclave` zone has the `Tag_PCI_Enclave` label. Use the zone's label to query its members; for Tier Zero, use `Tag_Tier_Zero`. ### Query Zone nodes ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) [Zone](/resources/nodes/zone) nodes are synthetic nodes that represent Privilege Zones in the graph. Use Cypher in **Explore** to find a zone, inspect its members, or find paths to it. > [!NOTE] > > This feature is available through Early Access. Enable **Findings Prioritization** on the **Administration** > **Early Access Features** page to access it. After enabling **Findings Prioritization**, wait for analysis to finish. Analysis generates the `Zone` nodes and their [`MemberOfZone`](/resources/edges/member-of-zone) relationships. `MemberOfZone` is a non-traversable edge that denotes zone membership; it does not represent an attack path. #### Find a Zone node Match a zone by its `name` property. For example, to find Tier Zero: ```cql theme={null} MATCH (zone:Zone {name: 'Tier Zero'}) RETURN zone ``` Replace `Tier Zero` with the name of the zone you want to query. #### Find an object's zone `MemberOfZone` relationships point from a member node to its Zone node. For example, to return Azure Logic Apps and their zones: ```cql theme={null} MATCH (member:AZLogicApp)-[:MemberOfZone]->(zone:Zone) RETURN member, zone ``` Replace `AZLogicApp` with the node label you want to inspect. #### Find a path to a zone Use the Zone node as the destination in a pathfinding query. For example: ```cql theme={null} MATCH p=({name: "node name"})-[*]->(:Zone {name: "zone name"}) RETURN p LIMIT 1 ``` Replace `node name` and `zone name` with the starting object's name and destination zone. #### Find external objects connected to a zone Use the `neighbor` pattern to leverage the `MemberOfZone` edge and find external objects that have connections to members of a specific zone. For example: ```cql theme={null} MATCH p=(neighbor)-[*2]->(:Zone {name: 'Tier Zero'}) WHERE NOT (neighbor:Tag_Tier_Zero) RETURN p LIMIT 500 ``` For another zone, replace `Tier Zero` with its name and `Tag_Tier_Zero` with that zone's case-sensitive label. Zone labels follow the pattern described above; for example, `PCI Enclave` uses `Tag_PCI_Enclave`. > [!NOTE] > > Use a `LIMIT` clause to restrict the number of results returned when using the `neighbor` query to avoid performance issues with large result sets. ### Elements of the graph database Everything in the graph database is represented using common terms from graph theory, particularly [edges](/resources/edges/overview) and [nodes](/resources/nodes/overview). Nodes represent discrete objects in your environment. In BloodHound, a node can represent a user, group, device, repository, or another object collected from a built-in platform or an OpenGraph extension. Edges represent relationships between nodes and often describe how one object connects to (or can affect) another. In BloodHound, an edge can represent membership, administrative control, trust, or another relationship defined in the graph. Together, nodes and edges form the paths BloodHound uses to model how access, permissions, and control flow through your environment. ### Basic Cypher > [card] [Supported Cypher Syntax](/analyze-data/explore/cypher-supported) When building Cypher queries, it's important to note that you're generally trying to build a path using the relationships available to you. Let's look at an extremely basic query: ```cql theme={null} MATCH (B)-[A]->(R) RETURN B ``` Let's break down how this Cypher query is constructed. When querying the database, we start our queries with the MATCH keyword. The MATCH clause lets you specify a pattern in the database. * Variables use identifiers such as `B`, `A`, `R`, or `groups`. Use backticks for labels, relationship types, properties, variables, and aliases containing spaces, punctuation, or reserved words. A doubled backtick represents a literal backtick. * In Cypher queries, nodes are specified using parentheses, so B and R are nodes in the sample query above. * Relationships are specified using brackets, so in this example, A represents relationships. For example, use an alias to name a result column, and backticks to access a property containing punctuation: ```cypher theme={null} MATCH (n:User) RETURN n.objectid AS objectId, n.`external-id` AS `External ID` ``` Aliases preserve their requested case and spelling, including through `WITH` and `ORDER BY`. The dashes between the nodes and relationships can be used to specify direction. Relationships in BloodHound always go in the direction of compromise or further privilege, whether through group membership or user credentials from a session. In the above query, the **->** specifies that the query should return relationships that go from B to R. Removing the **>** will allow the query to search relationships in both directions. Finally, the RETURN statement instructs the database to return the item matched with the corresponding variable name B. Now, let's take our previous query and make it a bit more complex: ```cql theme={null} MATCH (n:User),(m:Group) MATCH p=(n)-[r:MemberOf*1..3]->(m) RETURN p ``` This query is a bit more refined than the previous one. By using labels on both nodes and edges, we can make our query a lot more specific. We also pre-assign the variables **n** and **m** and give them labels to make the query easier to read. In this particular case, we're asking BloodHound to find nodes with the labels User and Group, and then match those nodes using the *MemberOf* relationship. We added a length modifier as well to the relationship. Adding \***1..3** limits the search to relationships that are between one and three links. In simple terms, give me any users that are a member of a group up to three links away. Additionally, we're assigning the result of the pattern to the variable **p** and returning that variable. When we get **p** back, it will contain the result of each path it can find that matches our pattern we asked for. Now that we've looked at the basic building blocks of queries, let's look at a more complicated one. As an example, here's the query we use to calculate shortest paths to Domain Admins, one of the most important queries in the BloodHound interface: ```cql theme={null} MATCH p=shortestPath((n:User)-[*1..]->(m:Group)) WHERE m.name = "DOMAIN ADMINS@INTERNAL.LOCAL" RETURN p ``` > [!NOTE] > > String matching is case-sensitive. Active Directory names in these examples use uppercase values with a domain suffix, such as `DOMAIN ADMINS@INTERNAL.LOCAL`. Match the values stored in your environment. This query finds one minimum-length trail from each matching user to the specified group. A trail does not repeat a relationship. With no relationship type specified, the search can use any relationship type. If multiple shortest trails tie, `shortestPath` does not promise which one is selected. Use `allShortestPaths` to return every relationship-distinct minimum trail; doing so can consume more resources. On PostgreSQL, searches with no upper bound are subject to execution budgets and cancellation. If a budget is exhausted, the query returns an error rather than partial results. Use an explicit bound, such as `*1..3`, when you intend to limit search depth. See [Recursive expansion](/analyze-data/explore/cypher-supported#recursive-expansion) for details. Bind shortest paths with `MATCH p = shortestPath(...)`, then use functions such as `length(p)` in `RETURN`. PostgreSQL does not support generic undirected shortest searches or shortest-path minimum bounds greater than one. See the [current shortest-path limitations](/analyze-data/explore/cypher-supported#known-defects) before combining shortest paths with mutations. Use `=~` for regex matching. For example, this query finds names containing a search term without regard to case: ```cql theme={null} MATCH (n) WHERE n.name =~ "(?i).*searchterm.*" RETURN n LIMIT 10 ``` `(?i)` enables case-insensitive matching. On PostgreSQL, regex uses PostgreSQL syntax and matches substrings; add `^` and `$` for whole-string matching. Do not assume complete Java/Neo4j regex compatibility. For literal searches, use `STARTS WITH`, `CONTAINS`, or `ENDS WITH`; these are case-sensitive and do not treat `%`, `_`, or backslashes as wildcards. ### Advanced Concepts Use `WITH` to pass selected bindings between parts of one query. Only projected bindings remain in scope. `WITH` supports aliases, `DISTINCT`, aggregation, filtering, sorting, and pagination. For example, count the distinct computers with sessions from users who are effective members of a group: ```cql theme={null} MATCH (m:User)-[:MemberOf*1..]->(n:Group) WHERE n.name = 'DOMAIN ADMINS@INTERNAL.LOCAL' WITH DISTINCT m MATCH (m)<-[:HasSession]-(o:Computer) RETURN count(DISTINCT o) AS computers ``` The first part finds users through direct or nested membership. `WITH DISTINCT m` carries each user once into the session lookup. The final projection counts each matching computer once. To limit users before matching their relationships, apply sorting and pagination at the `WITH` boundary: ```cypher theme={null} MATCH (u:User) WITH u ORDER BY u.name LIMIT 5 MATCH p = (u)-[:MemberOf]->(:Group) RETURN p ``` `WITH` applies its `ORDER BY`, `SKIP`, and `LIMIT` before its `WHERE` filters the output. Later projections have their own modifiers. PostgreSQL requires literal `SKIP` and `LIMIT` counts; calculated or parameterized counts are unsupported. ## Outcome Use the [supported syntax reference](/analyze-data/explore/cypher-supported) to build queries and check compatibility limits, then save useful queries for reuse. # Supported Cypher Syntax Source: https://bloodhound.specterops.io/analyze-data/explore/cypher-supported Reference for BloodHound's supported Cypher clauses, operators, functions, and any known limitations. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) ## Purpose Use this reference to write queries in the Cypher subset supported by BloodHound Enterprise and BloodHound Community Edition. For an introduction and saved-query workflows, see [Search with Cypher](/analyze-data/explore/cypher-search). This reference applies to BloodHound v9.10 and later. PostgreSQL uses CySQL to translate Cypher into SQL; PostgreSQL-specific behavior and limitations are identified below. BloodHound parses queries before execution. A construct accepted by Cypher grammar or available directly in Neo4j is not necessarily supported in BloodHound. Procedure calls and user-supplied query parameters are rejected by the application, regardless of the database backend. ## Identifiers and aliases Use backticks to quote labels, relationship types, properties, variables, or aliases containing spaces, punctuation, or reserved words. A doubled backtick represents a literal backtick. Empty escaped property names are rejected. ```cypher theme={null} MATCH (n:User) RETURN n.objectid AS objectId, n.`external-id` AS `External ID` ``` Result aliases preserve their requested case and decoded spelling, including through `WITH` and `ORDER BY`. Raw result consumers must use the requested column key, such as `objectId`. ## Pattern matching ### Node matching Match all nodes, restrict labels, or use an inline property map: ```cypher theme={null} MATCH (n:User {name: 'ALICE@EXAMPLE.COM'}) RETURN n ``` ```cypher theme={null} MATCH (n) WHERE n.name = 'ALICE@EXAMPLE.COM' RETURN n ``` Combine labels with `:`, as in `(n:User:Tag_Tier_Zero)`. > [!NOTE] > > BloodHound represents Tier Zero membership with the `Tag_Tier_Zero` label. See [Write Custom Queries](/analyze-data/explore/cypher-search#write-custom-queries) for examples. ### Relationship matching Use `->` for outgoing, `<-` for incoming, and `-` without an arrowhead for undirected matching. Use `|` to match alternative relationship types: ```cypher theme={null} MATCH (:User)-[r:MemberOf|GenericWrite]->() RETURN r ``` Unknown labels and relationship types produce no matches. A list of alternative relationship types can still match its known alternatives. A relationship cannot repeat within one ordinary `MATCH`, including across comma-separated patterns and consecutive expansions. Separate `MATCH` clauses have separate uniqueness scopes. Reusing a bound node or fixed relationship variable matches that entity by identity. ### Recursive expansion Variable-length patterns follow multiple relationships. Bounds are inclusive: | Syntax | Relationship count | | - | - | | `*` or `*..` | One or more, with no upper bound | | `*k` | Exactly `k`, equivalent to `*k..k` | | `*k..` | At least `k`, with no upper bound | | `*..k` | One through `k` | | `*m..n` | `m` through `n` | | `*0..0` | Zero; the start and end are the same node | ```cypher theme={null} MATCH p = (:User)-[r:MemberOf*1..3]->(:Group) RETURN p, r ``` A variable-length relationship binding such as `r` is a list of relationships. A path binding such as `p` includes the ordered nodes and relationships. Without an upper bound, a search can continue until it exhausts matching paths or reaches an execution budget or cancellation. If a budget is exhausted, the query returns an error rather than partial results. Use an explicit bound, such as `*1..3`, if you intend to limit search depth. This also limits which entities a mutation can reach. ### Pattern projections and bound endpoints Bind a path to return it or use path functions: ```cypher theme={null} MATCH p = (:Computer)-[:HasSession]->(:User) RETURN p ``` Multiple reading clauses can reuse a bound endpoint on either side of a pattern: ```cypher theme={null} MATCH (e:User) MATCH p = ()-[]->(e) RETURN p LIMIT 1 ``` ### Optional match `OPTIONAL MATCH` preserves an incoming row when its pattern does not match, setting newly introduced bindings to null. Repeated input rows retain their multiplicity. ```cypher theme={null} MATCH (u:User) OPTIONAL MATCH (u)-[:MemberOf]->(g:Group) RETURN u.name, g.name ``` A `WHERE` attached to the optional match restricts that match while retaining unmatched incoming rows. Filtering later with `WITH ... WHERE` can remove those rows: ```cypher theme={null} MATCH (u:User) OPTIONAL MATCH (u)-[:MemberOf]->(g:Group) WHERE g.name = 'DOMAIN ADMINS@EXAMPLE.COM' WITH u, g WHERE g IS NOT NULL RETURN u, g ``` A leading `OPTIONAL MATCH` starts with one implicit row. If nothing matches, it can return one row with null bindings. ### Shortest paths `shortestPath` returns one minimum-length trail per endpoint pair. A trail does not repeat a relationship. When multiple trails tie, the selected trail is unspecified. ```cypher theme={null} MATCH p = shortestPath((u:User)-[*1..]->(:Domain)) WHERE u.objectid = 'UUID-1234-567890' RETURN p, length(p) ``` ### All shortest paths `allShortestPaths` returns all relationship-distinct minimum-length trails per endpoint pair. Returning every tied trail can require substantially more resources. ```cypher theme={null} MATCH p = allShortestPaths((u:User)-[*1..]->(:Domain)) WHERE u.objectid = 'UUID-1234-567890' RETURN p ``` Bind shortest paths in `MATCH` before using them. Expression forms such as `RETURN length(shortestPath(...))` are unsupported. See [Known limitations](#known-defects) for PostgreSQL direction, bound, and mutation restrictions. ## Build multi-part queries `WITH` passes only its projected bindings to the next query part. It supports aliases, `DISTINCT`, aggregation, filtering, sorting, and pagination. Constant projections preserve the incoming row count. ```cypher theme={null} MATCH (u:User) WITH u ORDER BY u.name LIMIT 5 MATCH p = (u)-[:MemberOf]->(g:Group) RETURN p ``` `ORDER BY`, `SKIP`, and `LIMIT` on `WITH` apply at that boundary, before its `WHERE` filters the output. Later `WITH` and `RETURN` projections have their own modifiers. ## Result ordering and pagination ### `ORDER BY` Sort by projection aliases or supported expressions. Ascending order is the default; append `DESC` for descending order. ```cypher theme={null} MATCH (u:User) RETURN u.name AS userName ORDER BY userName DESC LIMIT 10 ``` ### `SKIP` and `LIMIT` Use these clauses with `RETURN` or `WITH` to skip or limit rows after sorting. PostgreSQL requires literal counts; calculated and parameterized counts are unsupported. ```cypher theme={null} MATCH (n:User) RETURN n ORDER BY n.name SKIP 10 LIMIT 100 ``` ## Entity creation[](#entity-creation) > [!NOTE] > > To use CREATE, enable Cypher mutations with `enable_cypher_mutations: true` in your BloodHound [configuration file](/manage-bloodhound/bh-config#enable_cypher_mutations). Your account also needs the `GraphDBMutate` permission. These requirements apply to `CREATE`, `SET`, `REMOVE`, `DELETE`, and `DETACH DELETE`. Create nodes and relationships with property maps. Property values retain their types; null-valued properties are omitted. ```cypher theme={null} CREATE (u:User {name: 'ALICE@EXAMPLE.COM', enabled: true}) -[r:MemberOf]->(g:Group {name: 'ADMINS@EXAMPLE.COM'}) RETURN u, r, g ``` Supported mutations preserve incoming rows. Multipart writes execute transactionally, and later query parts can observe earlier writes. ## Entity updates[](#entity-updates) > [!NOTE] > > To use SET and REMOVE, enable Cypher mutations with `enable_cypher_mutations: true` in your BloodHound [configuration file](/manage-bloodhound/bh-config#enable_cypher_mutations). Your account also needs the `GraphDBMutate` permission. These requirements apply to `CREATE`, `SET`, `REMOVE`, `DELETE`, and `DETACH DELETE`. Set properties and add labels with `SET`; remove them with `REMOVE`: ```cypher theme={null} MATCH (n:User) SET n.reviewed = true REMOVE n.old_property RETURN n ``` ```cypher theme={null} MATCH (n:Base) WHERE n.obviously_is_user SET n:User REMOVE n:OldLabel RETURN n ``` ```cypher theme={null} MATCH ()-[r:HasSession]->(:User) SET r.reviewed = true REMOVE r.old_property RETURN r ``` PostgreSQL preserves the order of `SET` and `REMOVE` intents, but an assignment expression in the same query part can still read an earlier property value. Insert a `WITH` boundary before an assignment that depends on a preceding update: ```cypher theme={null} MATCH (n:User) SET n.x = 1 REMOVE n.x WITH n SET n.y = coalesce(n.x, -1) RETURN n.y ``` ## Entity deletion[](#entity-deletion) > [!NOTE] > > To use DELETE and DETACH DELETE, enable Cypher mutations with `enable_cypher_mutations: true` in your BloodHound [configuration file](/manage-bloodhound/bh-config#enable_cypher_mutations). Your account also needs the `GraphDBMutate` permission. These requirements apply to `CREATE`, `SET`, `REMOVE`, `DELETE`, and `DETACH DELETE`. `DELETE` removes relationships or disconnected nodes. Deleting a connected node with plain `DELETE` fails and rolls back. `DETACH DELETE` also removes the node's incident relationships. ```cypher theme={null} MATCH ()-[r:MemberOf]->() DELETE r ``` Capture values before deleting their entity. Deletion can be followed by scalar or count projections: ```cypher theme={null} MATCH (n:User) WHERE n.objectid = 'UUID-1234-567890' WITH n, n.name AS deletedName DETACH DELETE n RETURN deletedName ``` ## Unwind a list into rows `UNWIND` expands one list level into rows. It accepts literal lists, property arrays, and collected lists, preserving element types. Duplicate elements produce duplicate rows. The target variable must not shadow an existing binding. ```cypher theme={null} UNWIND ['ALICE@EXAMPLE.COM', 'BOB@EXAMPLE.COM'] AS userName MATCH (u:User) WHERE u.name = userName RETURN u ``` You can follow `UNWIND` with matching, aggregation, sorting, or mutation clauses. Empty, null, and missing dynamic inputs produce no rows; a non-list property value produces one row. ```cypher theme={null} MATCH (u:User) WHERE u.name CONTAINS 'A' WITH collect(u.name) AS names UNWIND names AS userName RETURN userName LIMIT 100 ``` This second example returns scalar values; `UNWIND` does not itself restrict queries to scalar results. ## Supported query filters ### Comparison expressions Supported comparisons are `=`, `<>`, `<`, `>`, `<=`, and `>=`. For PostgreSQL property typing rules, see [Backend differences](#cysql-differences). ### Null, membership, and label predicates Use `IS NULL` or `IS NOT NULL` to test absence. Missing properties, stored null properties, and unmatched optional bindings satisfy `IS NULL`. Do not use `= null` to check absence. ```cypher theme={null} MATCH (n:User) WHERE n.description IS NULL RETURN n ``` ```cypher theme={null} RETURN null IS NULL AS value ``` Use `IN` for list membership, and `n:User` to test a node label: ```cypher theme={null} MATCH (n) WHERE n:User AND n.name IN ['ALICE@EXAMPLE.COM', 'BOB@EXAMPLE.COM'] RETURN n ``` Collected nodes and relationships support identity-based membership: ```cypher theme={null} MATCH (n:User) WHERE NOT n.enabled WITH collect(n) AS disabled MATCH p = (:Computer)-[:HasSession]->(u:User) WHERE NOT (u IN disabled) RETURN p LIMIT 1 ``` Nodes, relationships, and numeric IDs remain distinct types even when their IDs have the same numeric value. This membership support does not imply arbitrary comparisons between entity-list expressions. Empty property-list equality and empty lists carried through `WITH` or `UNWIND` are supported: ```cypher theme={null} MATCH (n:User) WHERE n.auth_modes = [] RETURN n ``` ### Boolean expressions Use `AND`, `OR`, `XOR`, and `NOT`. For non-null Boolean operands, `XOR` is true when exactly one operand is true. Null operands can produce null results. ```cypher theme={null} MATCH (n:User) WHERE (n.enabled XOR n.hasspn) AND NOT n.lockedout RETURN n ``` Parentheses preserve grouping. Repeated `NOT` preserves parity: two negations cancel, and three act as one. Boolean expressions also work as values in `RETURN`, `WITH`, function arguments, and `SET`; they filter rows only when used in `WHERE`. ### String searching `STARTS WITH`, `CONTAINS`, and `ENDS WITH` are case-sensitive, literal string tests. `%`, `_`, and backslashes are not wildcard characters, including after supported functions and aliases. ```cypher theme={null} MATCH (n:User) WHERE n.name STARTS WITH 'ALICE' OR n.name ENDS WITH '@EXAMPLE.COM' RETURN n ``` ```cypher theme={null} MATCH (n:User) WHERE n.description CONTAINS 'service account' RETURN n ``` PostgreSQL string predicates require strings. Non-string property operands yield null rather than matching an automatic text conversion. Use `toString` when you intend a textual comparison. ### Regular expressions Use `=~` for regex matching: ```cypher theme={null} MATCH (n:User) WHERE n.name =~ '^ALICE.*@EXAMPLE[.]COM$' RETURN n ``` On PostgreSQL, `=~` uses PostgreSQL regex syntax and searches for a matching substring. Add `^` and `$` when you intend to match the whole string. Do not assume complete compatibility with Neo4j's Java regex syntax. ### Pattern predicates Use fixed-length patterns in filters, for example to find users without sessions: ```cypher theme={null} MATCH (n:User) WHERE NOT ((n)<-[:HasSession]-(:Computer)) RETURN n ``` Recursive expansion inside pattern predicates is unsupported. The PostgreSQL aggregate traversal-count optimization also has a specific [pattern-predicate limitation](#known-defects). ## Quantifier expressions Use quantifiers in `WHERE` to test a predicate for list elements: | Quantifier | True when | | - | - | | `any` | At least one element satisfies the predicate | | `single` | Exactly one element satisfies the predicate | | `none` | No element satisfies the predicate | | `all` | Every element satisfies the predicate | ```cypher theme={null} MATCH (n:User) WHERE any(spn IN n.serviceprincipalnames WHERE toUpper(spn) CONTAINS 'HTTP') RETURN n ``` Replace `any` with `single`, `none`, or `all` to apply the other tests. PostgreSQL does not support scalar quantifier projections such as `RETURN all(x IN [1] WHERE x = 1)` or corresponding `WITH` projections; they return translation errors. ## Arithmetic expressions Numeric arithmetic supports `+`, `-`, `*`, `/`, `%`, and `^`. Addition also supports string concatenation and list addition. ```cypher theme={null} MATCH (n:User) RETURN n.logoncount + n.badpwdcount AS combinedCount ``` ```cypher theme={null} MATCH (n:User) WITH n.logoncount AS logons, n.badpwdcount AS failures RETURN logons + failures AS combinedCount ``` PostgreSQL arithmetic on dynamic properties uses their stored types. Integer division truncates toward zero. Missing or null operands yield null; incompatible operands and integer overflow produce query errors. See [Known limitations](#known-defects) for remaining property-alias expression restrictions. ## Aggregate functions Aggregate functions summarize rows in `RETURN` or `WITH`. Non-aggregate projected expressions define groups: ```cypher theme={null} MATCH (u:User) RETURN u.enabled, count(*) AS users ``` | Function | Behavior | | - | - | | `count(*)` | Counts rows | | `count(expr)` | Counts non-null values; supports `count(DISTINCT expr)` | | `collect(expr)` | Builds a list of non-null values, preserving their types; supports `collect(DISTINCT expr)` | | `sum(expr)` | Sums numeric values; supports `sum(DISTINCT expr)` | | `avg(expr)` | Computes an average using floating-point conversion | | `min(expr)`, `max(expr)` | Select minimum and maximum values | `collect` excludes missing/null values and returns an empty list for empty or all-null input. `sum` ignores nulls, returns integer zero for empty or all-null input, and preserves signed 64-bit integer precision for integer sums. Floating-point or mixed numeric inputs use floating-point arithmetic. Nonnumeric input and integer overflow produce errors. `avg` returns null for empty input. Empty grouped input produces no groups. ```cypher theme={null} MATCH (u:User) RETURN min(u.logoncount), max(u.logoncount), min(u.name), max(u.name) ``` These are functions, not support for `COLLECT { ... }` or `COUNT { ... }` subqueries. ## Supported Cypher functions[](#supported-cypher-functions) ### Temporal functions | Function | No-argument result | Text construction example | | - | - | - | | `date()` | Current date, without a time zone | `date('2020-01-01')` | | `datetime()` | Current timestamp with time zone | `datetime('2020-01-01T00:00:00Z')` | | `localdatetime()` | Current timestamp without time zone | `localdatetime('2020-01-01T00:00:00')` | | `localtime()` | Current time without time zone | `localtime('12:00:00')` | `duration` requires a string literal. Use durations in temporal arithmetic: ```cypher theme={null} MATCH (n) WHERE n.created_at < date() - duration('P1D') RETURN n ``` Current-instant `.epochseconds` and `.epochmillis` access are supported. For example, for a password timestamp stored in epoch seconds: ```cypher theme={null} MATCH (u:User) WHERE u.pwdlastset < datetime().epochseconds - (180 * 86400) RETURN u ``` General calendar components such as `.year` are unsupported. Components on explicitly constructed values, such as `date('2020-01-01').year` and `datetime('2020-01-01').epochmillis`, return translation errors. Temporal map constructors are outside the supported subset. ### `id` function Returns a node or relationship identifier: ```cypher theme={null} MATCH (n:User) WHERE id(n) IN [1, 2, 3, 4] RETURN n ``` ### `labels` function Returns a node's label names as a list of strings: ```cypher theme={null} MATCH (n) RETURN labels(n) ``` Prefer label patterns such as `MATCH (n:User)` for ordinary label filtering. ### `type` Returns a relationship's type as text. Prefer a typed pattern for ordinary filtering: ```cypher theme={null} MATCH ()-[r:MemberOf]->() RETURN type(r) ``` ### String and conversion functions | Function | Behavior | | - | - | | `split(value, delimiter)` | Splits a string into a list of strings | | `toLower(value)` | Returns a lowercase string | | `toUpper(value)` | Returns an uppercase string | | `toString(value)` | Converts a supported value to text | | `toInteger(value)` | Converts a supported value to an integer | String functions require string inputs; unsupported conversions can raise errors. PostgreSQL also accepts the legacy spelling `toint` for `toInteger`. `toInteger` truncates numeric inputs toward zero: `1.9` becomes `1`, and `-1.5` becomes `-1`. Integer inputs preserve signed 64-bit precision. Invalid strings and out-of-range conversions remain compatibility limits; do not rely on Neo4j's failure behavior. ```cypher theme={null} MATCH (u:User) RETURN split(u.name, '@'), toLower(u.name), toInteger(u.logoncount) ``` ### `coalesce` Returns the first non-null value: ```cypher theme={null} MATCH (n:User) WITH coalesce(n.description, '') AS description RETURN description ``` PostgreSQL preserves the selected dynamic property's type through `WITH`, including when a fallback has a different type. Statically typed argument combinations can still have compatibility restrictions. ### `size` Counts list elements or Unicode characters in a string. Direct properties and values carried through `WITH` are supported; null input remains null. ```cypher theme={null} MATCH (u:User) WITH u.name AS userName, u.serviceprincipalnames AS spns RETURN size(userName), size(spns) ``` ### `length` Returns the relationship count of a bound path: ```cypher theme={null} MATCH p = (a)-[:MemberOf*1..3]->(b) RETURN length(p) ``` ### `nodes` Returns the ordered node list of a matched path: ```cypher theme={null} MATCH p = ()-[]->() RETURN nodes(p) ``` ### `relationships` Returns the ordered relationship list of a matched path: ```cypher theme={null} MATCH p = ()-[]->() RETURN relationships(p) ``` ### `startNode` Returns a relationship's start node: ```cypher theme={null} MATCH p = (a)-[*1..3]->(b) WHERE none(r IN relationships(p) WHERE startNode(r).name = 'BLOCKED') RETURN p ``` ### `endNode` Returns a relationship's end node: ```cypher theme={null} MATCH ()-[r]->() RETURN endNode(r) ``` ### `head` Returns the first list element: ```cypher theme={null} MATCH p = ()-[]->() RETURN head(nodes(p)) ``` ### `tail` Returns all list elements except the first: ```cypher theme={null} MATCH p = ()-[]->() RETURN tail(nodes(p)) ``` ## Known limitations The following PostgreSQL restrictions remain: * Generic undirected shortest-path searches and shortest-path minimum bounds greater than one are unsupported. * Bounded `allShortestPaths` with equal endpoints and a minimum of zero can return no row instead of a zero-hop path. * `shortestPath` followed by `SET ... RETURN p` can lose the path representation. * Scalar quantifier projections in `RETURN` or `WITH` return translation errors. * Pattern predicates in the optimized aggregate traversal-count shape (`MATCH ... WITH s, count(t) AS c RETURN ... ORDER BY ... LIMIT ...`) fail with `unsupported aggregate traversal count predicate: pattern predicates in MATCH WHERE are not supported`. This does not prohibit all aggregates combined with pattern predicates. * Unary negation of a carried property in sorting, such as `RETURN n.logoncount AS x ORDER BY -x`, can fail with PostgreSQL's unsupported `- jsonb` operation. * Some property-arithmetic alias filters remain unsupported; support for arithmetic projections does not establish support for every later alias filter. * Same-part assignment expressions can read earlier property values. Use the [update boundary example](#entity-updates) for dependent assignments. * Literal-only `SKIP`/`LIMIT`, temporal components, invalid conversions, and list typing retain the restrictions described above. Mixed-type literal lists are not generally supported. ### Open traversal execution budgets PostgreSQL open traversal defaults to 100,000 candidate states and 64 MiB of cumulative estimated trail state. Exhaustion raises SQLSTATE `54000`. These are execution accounting limits, not a depth cutoff or a measured process-memory cap. For DAWGS operators, positive `dawgs.traversal_state_limit` and `dawgs.traversal_byte_limit` session or transaction settings control these budgets. They are not BloodHound configuration-file options. Deploying the upgraded compiler requires the matching DAWGS schema helpers. ## Unsupported constructs[](#unsupported-constructs) The following constructs are outside BloodHound's supported subset and return parse or translation errors: * `CASE` expressions * List and pattern comprehensions * Existential subqueries and `COLLECT { ... }` / `COUNT { ... }` subqueries * `MERGE` * Recursive expansion inside pattern predicates * List indexing, including negative, parameterized, or chained indexes; use `head` or `tail` where sufficient * List slicing, including omitted or negative bounds * `UNION` and `UNION ALL` * Standalone and in-query `CALL`, including procedure arguments and `YIELD` * `LOAD CSV` and `CREATE UNIQUE` * Shortest paths in expression positions; bind the path in `MATCH` instead * `FOREACH`, `REDUCE`, legacy `START`, `EXPLAIN`, `PROFILE`, and periodic/bulk-import clauses ## Backend differences ### Property types and numeric results PostgreSQL scalar equality uses stored property types rather than assuming that a string compared to a number must be parsed as an integer. Numeric-looking strings remain strings. For ordered dynamic-property comparisons, numbers compare numerically, strings by Unicode order, Booleans with false before true, and lists lexicographically. Incompatible types and null operands yield null. Values carried through `WITH` preserve their stored types. Native casts and functions still have specific type restrictions; this is not complete Neo4j type compatibility. Raw PostgreSQL results preserve signed 64-bit integers and floating-point values. Stored JSON can erase the distinction between an integral float and an integer; queries cannot recover type information already lost during storage. ### Index utilization PostgreSQL property indexes do not require a label specifier. If `name` is indexed, both queries can use that index: ```cypher theme={null} MATCH (n:User) WHERE n.name = 'ALICE@EXAMPLE.COM' RETURN n ``` ```cypher theme={null} MATCH (n) WHERE n.name = 'ALICE@EXAMPLE.COM' RETURN n ``` ### Null behavior `WHERE` retains only rows whose predicate evaluates to true. Projecting a missing or null property through `WITH` keeps it null; equality does not become true, so a later filter removes the row: ```cypher theme={null} MATCH (n:User) WITH n.name AS userName WHERE userName = 'ALICE@EXAMPLE.COM' RETURN userName ``` Use `IS NULL` to check absence and `coalesce` to select a fallback explicitly: ```cypher theme={null} MATCH (n:User) WHERE coalesce(n.description, '') CONTAINS 'service account' RETURN n ``` # Graph controls Source: https://bloodhound.specterops.io/analyze-data/explore/graph-controls Adjust, search, and export graph results on the Explore page. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) Use the graph controls at the bottom of the **Explore** page to adjust the graph's appearance, export graph data, and search the current results. > [!NOTE] > > Some options are available only in BloodHound Enterprise or for specific layouts, as noted below. Layout behavior depends on whether you explicitly choose a layout: | Scenario | No layout selected | Layout explicitly selected | | - | - | - | | Default results | Uses edition default (Enterprise: Stacked, Community: Sequential) | Keeps your selected layout for future results and sessions. Click the selected layout again to clear it and return to default. | | Multi-node Cypher results (no edges) | Uses **Table** layout | Keeps your selected layout; does not use **Table** | | After closing **Table** | Uses edition default (Enterprise: Stacked, Community: Sequential) | Returns to your previously selected layout | ## Reset Graph Restore the graph view to its default layout and zoom level. ## Hide Labels Toggle the visibility of labels on nodes and edges to reduce clutter and focus on the structure of the graph. Hide labels before sharing graph images that may contain sensitive information. ## Layout Choose from the following layout options to organize the graph visually: > [tab] Organic > > ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) > > Uses a force-directed layout algorithm to position objects based on their relationships, creating a natural and intuitive view of the graph. > > ![A view showing the Organic graph layout option on the Explore page](https://mintcdn.com/specterops/90NbJPHJFNX8EvQt/images/explore/graph-layout-organic.png?fit=max\&auto=format\&n=90NbJPHJFNX8EvQt\&q=85\&s=978acc56aaaebe6f8c97d29a4d1cdfb0) > [tab] Stacked > > ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) > > The default layout for BloodHound Enterprise. > > Combines hierarchical layering with grid arrangement, organizing objects left to right in ranked layers while arranging multiple nodes within each layer in a structured grid pattern. > > ![A view showing the Stacked graph layout option on the Explore page](https://mintcdn.com/specterops/90NbJPHJFNX8EvQt/images/explore/graph-layout-stacked.png?fit=max\&auto=format\&n=90NbJPHJFNX8EvQt\&q=85\&s=4994f37279c729c06406bbdeb56bd617) > [tab] Sequential > > The default layout for BloodHound Community. > > Uses a hierarchical layout algorithm that organizes objects from left to right in ranked layers based on their relationships, ideal for visualizing directional paths and dependencies. > > ![A view showing the Sequential graph layout option on the Explore page](https://mintcdn.com/specterops/90NbJPHJFNX8EvQt/images/explore/graph-layout-sequential.png?fit=max\&auto=format\&n=90NbJPHJFNX8EvQt\&q=85\&s=d7fbbba6abad4a2e08e24056711f7c1f) > [tab] Standard > > Uses a balanced force-directed algorithm that pulls connected nodes together while maintaining spacing between unconnected nodes, creating an evenly distributed layout. > > ![A view showing the Standard graph layout option on the Explore page](https://mintcdn.com/specterops/90NbJPHJFNX8EvQt/images/explore/graph-layout-standard.png?fit=max\&auto=format\&n=90NbJPHJFNX8EvQt\&q=85\&s=65c290a76fd8317bdf46dc03546b88b0) > [tab] Table > > Displays objects in a tabular format, showing properties in rows and columns for easy comparison. > > The **Table** layout is available for Cypher searches only and is useful for filtering, sorting, and comparing large sets of nodes. When no layout is selected, BloodHound automatically opens this layout for Cypher results that return multiple nodes and no edges. > > ![A view showing the Table graph layout option on the Explore page](https://mintcdn.com/specterops/90NbJPHJFNX8EvQt/images/explore/graph-layout-table.png?fit=max\&auto=format\&n=90NbJPHJFNX8EvQt\&q=85\&s=8e06dacfe42fe69b66172d6c292ca4f1) > > The table includes the following columns by default: > > | Column | Description | > | - | - | > | **Node Type** | The type of the object (node label) | > | **Name** | The name of the object | > | **Object ID** | The unique identifier of the object | > | **Tier Zero** | Indicates if the object is part of the Tier Zero privilege zone | > > > [!TIP] > > > > * Click the (ellipsis) icon in each row to access the [context menu](/analyze-data/explore/search#context-menu) for that object. > > * Resize columns to view more or less information as needed by clicking and dragging the edges of the column dividers (or double-clicking the column dividers to auto-size). > > The table layout provides the following options: > > * **Search**—Filter table rows by node name or object ID > > * **Export**—Select **All Columns** or **Selected Columns** to download the nodes as a CSV file for further analysis or sharing > > * **Expand**—Maximize the graph view to fill the screen for better visibility > > * **Columns**—Search, add/remove, sort, reorder, reset column size, reset defaults, and pin columns in the table layout ## Graph direction ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Change the direction in which the graph flows by selecting **Down**, **Left**, **Right**, or **Up**. The default direction is **Right**. This control is available only for the **Stacked** and **Sequential** layouts in BloodHound Enterprise. ## Horizontal spacing ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Use the slider to adjust the horizontal distance between nodes. The slider ranges from `0` (Compact) to `10` (Spacious), with a default value of `5`. This control is available only for the **Stacked** and **Sequential** layouts in BloodHound Enterprise. ## Vertical spacing ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Use the slider to adjust the vertical distance between nodes. The slider ranges from `0` (Compact) to `10` (Spacious), with a default value of `5`. This control is available only for the **Stacked** and **Sequential** layouts in BloodHound Enterprise. ## Export Use the **Export** menu to download graph data as JSON or, in BloodHound Enterprise, save the visible view or full graph as a PNG, JPG, or SVG image. ### JSON Select **JSON** to download the current graph data. JSON export is available in both editions for all search methods and layouts when graph data is available. ### Image ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) In BloodHound Enterprise, the image actions appear before **JSON** in two groups: | Group | Options | Result | | - | - | - | | **Current View** | **PNG**, **JPG**, **SVG** | Downloads the visible graph view. | | **Full Graph** | **PNG**, **JPG**, **SVG** | Downloads the entire graph, including content outside the visible area. | > [!NOTE] > > Image export actions are disabled when no graph is displayed or when Explore is in **Table** mode. If an export fails, BloodHound displays an error notification; select the export action again to retry. Image exports preserve the graph's layout, direction, spacing, selection, labels, and styling. Image files use the `bh-graph-` filename format with a `.png`, `.jpg`, or `.svg` extension. For example, `bh-graph-2026-11-17_13-17-45.jpg`. ## Search Search the current graph results by node name or object ID. Enter a search term, then select a result to focus the graph on that node. This control searches the current results; it does not run a new search from the **Search**, **Pathfinding**, or **Cypher** tabs. When the **Table** layout is open, use the table's **Search** field to filter its rows instead. # Search and pathfinding Source: https://bloodhound.specterops.io/analyze-data/explore/search Search for objects and visualize relationships between them in the graph. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) After [uploading data](/get-started/quickstart/community-edition-quickstart#get-data-into-bloodhound) to BloodHound, use the **Explore** page to search for objects and visualize their relationships. The graph displays nodes (Part of the graph construct and refers to an entity in the network, such as a user, computer, group, or domain. Two nodes can be connected by an edge.) and edges (Part of the graph construct and refers to a relationship between two nodes, such as group membership or session information.), helping you understand your environment and identify potential attack paths. > [!NOTE] > > If your account uses [Environment Targeted Access Control (ETAC)](/manage-bloodhound/auth/environment-targeted-access-control), search results and graph data are limited to the environments you can access. BloodHound supports multiple data sources, including Active Directory, Azure (Entra ID), and other identity services through [OpenGraph](/opengraph/overview). The **Explore** page provides the following methods for searching for objects and visualizing their relationships: > [!NOTE] > > BloodHound supports all search methods for [structured](/opengraph/extensions/manage#structured-graphs) graphs. If you're exploring [generic](/opengraph/extensions/manage#generic-graphs) graphs, you can use the **Search** and **Cypher** methods only. > [card] [Search](/analyze-data/explore-objects#search) > > Find specific objects by name or node type > [card] [Pathfinding](/analyze-data/explore-objects#pathfinding) > > Discover relationships between objects > [card] [Cypher](/analyze-data/explore-objects#cypher) > > Perform complex search with Cypher queries Which method you choose depends on your specific use case and what you're trying to accomplish. This page describes each of the search methods in more detail and provides guidance on when to use each one. > [!TIP] > > You can interact with objects in the [graph](/analyze-data/explore/search#graph-view) and customize the view to explore the data more effectively, regardless of which search method you use. ## Search The **Search** tab allows you to quickly find specific nodes in the graph by name or object ID. As you type in the search text box, BloodHound automatically suggests nodes that match your search query. You can click on any of the suggestions to select and display that node in the graph. > [!WARNING] > > OpenGraph node [IDs](/opengraph/developer/nodes#param-id) that contain a colon (`:`) are not supported. **Search** interprets all text *before* a colon as a [node-type filter](/analyze-data/explore/search#filter-by-node-type). > > Any ID that contains a colon will have part of the ID dropped, resulting in an unrecognized ID. This can clear the input or interfere with returning the expected results. Use cases for the search method include: * **Object discovery:** Quickly locate a known object by name or type to inspect its properties * **Investigation prep:** Find starting points for deeper exploration using Pathfinding or Cypher queries * **Data validation:** Verify specific objects are present in your environment after data ingestion ### Search by name or object ID For example, if you want to find a user named "bob", type "bob" in the search box and click the appropriate node from the suggestions. > [!TIP] > > The suggestions display the node type next to each match, making it easy to identify the correct object when multiple objects share similar or identical names. OpenGraph data also displays custom icons configured for node types in this dropdown, which can further help you identify the intended object. ![An animated view showing how to search for a user named bob in the Explore page](https://mintcdn.com/specterops/dImdqZkBHR9kvzSD/images/explore/search-bob.gif?s=055eee6d69c314ee3779d52b704bc268) ### Filter by node type You can also constrain your search to particular node types by prepending your search with the appropriate node label. > [!TIP] > > This works for both built-in node types (AD/AZ) and OpenGraph node types. For example, use the following search query to find group nodes that contain the word "admin": ```text theme={null} group:admin ``` > [!NOTE] > > Note that all suggestions for the `group:admin` search query include the group node type icon: > > ![A view showing how to search for group nodes containing the word admin in the Explore page](https://mintcdn.com/specterops/dImdqZkBHR9kvzSD/images/explore/search-group.png?fit=max\&auto=format\&n=dImdqZkBHR9kvzSD\&q=85\&s=bdff7520d1e466bce7de90e12e001555) ## Pathfinding The **Pathfinding** tab allows you to discover relationships between two nodes. You can add up to two additional destination nodes to narrow the results, which helps you focus on a particular part of the graph. > [!NOTE] > > When [ETAC](/manage-bloodhound/auth/environment-targeted-access-control) applies to your user account, pathfinding returns data from the environments you can access only. BloodHound currently supports the **Search** and **Cypher** search methods for OpenGraph data. Pathfinding is available for [structured](/opengraph/extensions/manage#structured-graphs) graphs only. > [!WARNING] > > OpenGraph node [IDs](/opengraph/developer/nodes#param-id) that contain a colon (`:`) are not supported. **Pathfinding** interprets all text *before* a colon as a [node-type filter](/analyze-data/explore/search#filter-by-node-type). > > Any ID that contains a colon will have part of the ID dropped, resulting in an unrecognized ID. This can clear the input or interfere with returning the expected results. Use cases for the pathfinding search method include: * **Attack path analysis:** Identify potential compromise chains through two nodes * **Focused path analysis:** Require paths to include one or two additional destination nodes to focus on a specific part of the graph * **Relationship mapping:** Understand how objects are connected within your environment * **Filtered exploration:** Focus on relevant relationships by excluding edge types or reversing path direction For example, you can find all paths from a user named "bob" to a group containing the name "domain admins" using the previously described [search](/analyze-data/explore/search#search) method for the start and destination nodes: > [!TIP] > > Like the search method, you can use partial matches and node labels to find your start and destination nodes. ![An animated view showing how to search for paths from a user named bob to groups containing the word domain admins in the Explore page](https://mintcdn.com/specterops/dImdqZkBHR9kvzSD/images/explore/search-pathfinding.gif?s=dde5a2d0d163c3594f7c740e353f4e64) To build a path through multiple nodes, select a start node and one or more destination nodes. You can rearrange the destination nodes to set the order in which BloodHound traverses them. BloodHound finds the shortest path between each consecutive pair and combines the results into one graph. Pathfinding also includes options to customize your search: * **Add destination**—Add up to three destination nodes to the search. BloodHound adds each destination to the end of the route. * **Reorder nodes**—Drag a node row to change its position in the route. You can also focus the reorder handle and use the arrow keys. The first node is the start node, and the remaining nodes are destinations. BloodHound reruns the pathfinding search after you reorder the nodes. * **Remove destination**—Remove a destination node from a multi-destination search. * **Reverse path**—Swap your start and destination nodes in a two-node search to explore paths in the opposite direction without re-entering your search queries. This is useful for finding how high-value targets connect back to entry points. * **Filter edges**—Select which edge types to include in each path. By default, all edge types are selected; deselect any you don't want included in the results to focus on relevant relationships. ## Cypher The **Cypher** tab allows you to perform complex searches using Cypher (A query language for graph databases (similar to SQL for relational databases). It uses an ASCII-art style syntax to describe nodes and relationships. If you can describe the path you're looking for, you can write it in Cypher.) queries. Cypher is a powerful query language for graph databases. It enables you to manipulate and examine BloodHound data in custom ways to help you further understand your network or identify interesting relationships. > [!NOTE] > > See [Search with Cypher](/analyze-data/explore/cypher-search) for more information. ## Graph view The graph on the **Explore** page provides a visual representation of the objects in your data based on your search criteria. You can interact with the graph by clicking on nodes and edges to view detailed information about them in the **Entity** panel, and by using the [graph controls](/analyze-data/explore/graph-controls) to adjust the graph's appearance, export graph data, and search the current results. > [!TIP] > > Solid lines represent [traversable edges](/resources/edges/traversable-edges#traversable-edges), and dashed lines represent non-traversable edges. This visual distinction helps you identify which relationships BloodHound can use for pathfinding. The following example shows a graph based on the example in the [Pathfinding](/analyze-data/explore/search#pathfinding) section above, which finds paths from a user named "bob" to a group named "domain admins". ![An example graph view on the Explore page](https://mintcdn.com/specterops/dImdqZkBHR9kvzSD/images/explore/graph-example.png?fit=max\&auto=format\&n=dImdqZkBHR9kvzSD\&q=85\&s=a3ba37430e220f155763a3bae8c37c05) The graph displays the nodes and edges that connect user `BOB@PHANTOM.CORP` to group `DOMAIN ADMINS@PHANTOM.CORP`, allowing you to visually explore the relationships between objects. ### Object interaction You can interact with nodes and edges in the graph to view detailed information about them in the [Entity panel](/analyze-data/explore/search#entity-panel). For nodes, you can right-click to perform more actions using the [context menu](/analyze-data/explore/search#context-menu). To keep dense graphs readable, BloodHound clips long node labels by default. Click a node to view its full label. When you click a node, BloodHound dims unrelated nodes and edges and highlights every path that traverses the selected node. This includes inbound and outbound object control paths, making it easier to isolate how the selected node participates in the current graph. For example, clicking `USERS@PHANTOM.CORP` in the previous graph highlights the path through that node to `DOMAIN ADMINS@PHANTOM.CORP` and dims the other paths that do not traverse it. ![An example graph view showing full path highlighting in the Explore page](https://mintcdn.com/specterops/zYx4VMIUlQ-nw_Qj/images/explore/graph-example-highlight.png?fit=max\&auto=format\&n=zYx4VMIUlQ-nw_Qj\&q=85\&s=57a64adbe45485937193dd88b59a2c30) #### Context menu Right-click on any node in the graph to access the context menu. Options in the context menu include: * **Set as starting node**—Set the node as the starting point in the **Pathfinding** tab. * If a pathfinding search is already in progress, BloodHound redraws the graph using the current destination nodes. * Otherwise, BloodHound displays only the selected node so you can continue building the pathfinding search. * **Set as ending node**—Set the node as the destination in the **Pathfinding** tab. * If a pathfinding search is already in progress, BloodHound redraws the graph from the current starting node through the selected destination and any remaining destination nodes. * Otherwise, BloodHound displays only the selected node so you can continue building the pathfinding search. * **Add to/Remove from Tier Zero**—Mark or unmark the node as a member of the Tier Zero privilege zone. Adding automatically triggers analysis to tag the object; removing requires [manually editing](/analyze-data/privilege-zones/rules#edit-or-delete-a-rule) the zone rule to remove the object. * **Add to/Remove from Owned**—Mark or unmark the node as compromised in the Privilege Zones page. Adding automatically triggers analysis to tag the object; removing requires [manually editing](/analyze-data/privilege-zones/rules#edit-or-delete-a-rule) the label rule to remove the object. * **Copy**—Copy the node's name, object ID, or a Cypher query to your clipboard for use in other searches or documentation. #### Entity panel The **Entity** panel on the **Explore** page displays detailed object properties and relationships. The information is displayed in an accordion format based on the selected node or edge, which can vary depending on your data source. > [!NOTE] > > For built-in node and edge types (AD/AZ), BloodHound displays structured data organized into the accordions described below. For OpenGraph data, BloodHound displays all values from the [`properties`](/opengraph/developer/nodes) object as a flat list, without the structured accordions. For nodes, expanding each accordion reveals more detail and dynamically updates the graph. For example, expanding the **Sessions** accordion shows all computers where the node has active sessions and updates the graph. BloodHound displays the following information in the **Entity** panel when you click on a node (if the information is available in your data): | Accordion | Description | | - | - | | **Object Information** | Displays the collected properties and attributes of a selected object, including its associated Zone Builder [labels](/analyze-data/privilege-zones/labels) when available See [node reference](/resources/nodes/overview) for details about each node type | | **Sessions** | List of objects where the selected node has active sessions | | **Members** | List of objects that are members of the selected node | | **Member Of** | List of objects where the selected node is a member | | **Local Admin Privileges** | List of objects where the selected node has local administrator privileges | | **Execution Privileges** | List of objects where the selected node has execution privileges | | **Inbound Object Control** | List of objects that can control the selected node | | **Outbound Object Control** | List of objects that the selected node can control | BloodHound displays the following information in the **Entity** panel when you click on an edge (if the information is available in your data): | Accordion | Description | | - | - | | **Relationship Information** | Details about the selected relationship, including the source node, target node, ACL status, and the last time BloodHound observed it | | **General** | A detailed description of the relationship between the two nodes connected by a selected edge | | **Abuse** | Step-by-step guidance, tools, and techniques for abusing the relationship represented by an edge to compromise or gain control over a target principal | | **OPSEC** | Operational security implications and detection risks associated with abusing a particular edge | | **References** | Links to publicly available resources used to create the above information | > [!TIP] > > This information is also available for each edge in the [reference](/resources/edges/overview) documentation. # Analysis Process Source: https://bloodhound.specterops.io/analyze-data/findings/analysis Understand how the BloodHound Enterprise analysis process works to surface findings and prioritize risk. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) BloodHound Enterprise's analysis process includes several key steps that work together to surface findings and prioritize risk. Use this reference to understand when the BloodHound data pipeline runs graph analysis and which conditions cause it to skip an analysis pass. > [!TIP] > > For details about tenant status, job status, and the broader datapipe lifecycle, see [Monitor Data Collection](/collect-data/enterprise-collection/monitor). ## When analysis runs The data pipeline runs on a repeating loop. On each loop iteration, the pipeline performs the following stages **in order**: * **Purge**: Process any pending “delete collected graph data” requests. * **Ingest**: Process uploaded/collected data files. * **Analyze**: Enhance the graph and run [post-processing](/analyze-data/findings/analysis#post-processing). * **Optimize**: Perform database-specific optimization tasks. When the pipeline reaches the Analyze stage, it uses the decision tree below to determine whether analysis runs and which steps it performs. ```mermaid theme={null} flowchart TD A([Datapipe reaches
the Analyze stage]) --> B{Scheduled analysis enabled
and schedule time reached?} B -- Yes --> C[Run full analysis] B -- No --> D[Start with no analysis steps] D --> E{Pending analysis request?} E -- Yes --> F[Add requested steps] E -- No --> G F --> G{Any jobs waiting
for analysis?} G -- Yes --> H[Add full analysis steps] G -- No --> I H --> I{Any steps to run?} I -- No --> J([Skip analysis]) I -- Yes --> K[Run analysis with
the collected steps] C --> L[Run analysis operations] K --> L L --> M{Outcome?} M -- Success --> N([Mark jobs complete
record completion time
reset caches]) M -- Partial failure --> O([Mark jobs partially complete
report error]) M -- Failure --> P([Mark jobs failed
report error]) ``` ## What triggers analysis BloodHound evaluates the following triggers from top to bottom to determine whether analysis runs: | Trigger | Result | | - | - | | **Scheduled analysis** | If recurring scheduled analysis is enabled and its next run time has passed, BloodHound runs a full analysis (All analysis steps are performed.). | | **Requested analysis** | If a user or system action explicitly requests analysis, BloodHound runs the requested steps (A specific subset of steps attached to an explicit analysis request; may be merged with full steps if jobs are also waiting.). BloodHound also requests analysis after collected graph data is deleted. | | **Jobs waiting for analysis** | If newly ingested data from ingest jobs or client collection jobs is waiting for analysis, BloodHound runs a full analysis. | If none of these apply, the pipeline skips analysis for that iteration and moves on. > [!NOTE] > > Scheduled analysis is a SpecterOps-managed feature. ### Trigger behavior * **Scheduling takes priority:** When scheduled analysis is due, BloodHound runs a full analysis and does not evaluate pending requests or waiting jobs during that Analyze phase. * **Data deletion requests analysis:** When collected graph data is purged, BloodHound automatically requests a full analysis so the graph is reconciled during the next Analyze phase. * **Waiting jobs require full analysis:** When ingest or client collection jobs are waiting for analysis, BloodHound runs the full analysis pipeline and updates the associated jobs after analysis completes. * **Invalid schedules do not run:** If scheduled analysis is enabled but its recurrence rule is empty or invalid, scheduled analysis does not run until the schedule is corrected. ## Full analysis stages When a trigger requires full analysis, BloodHound runs the analysis-specific stages in the following order: 1. Active Directory post-processing 2. Azure post-processing 3. Tagging 4. Analysis BloodHound uses the full analysis pipeline for standard, scheduled, and job-driven analysis runs. Requested analysis can run a subset of analysis steps. [Variable Analysis Mode](/analyze-data/findings/analysis#variable-analysis-mode) enables BloodHound Enterprise to skip post-processing for some analysis runs to speed up the process (for example, when updating Privilege Zones). ## Choke point analysis BloodHound Enterprise generates one choke point (An aggregate view of the graph for a selected environment and privilege zone. It simplifies large volumes of nodes and edges into a compact visualization optimized for readability.) view per environment, such as an Active Directory domain or Azure tenant. The choke point view organizes findings by category and shows the number of exposed principals in each, helping you quickly understand where risk concentrates. > [!NOTE] > > [Exposure and impact](/analyze-data/findings/graph-view#exposure-and-impact) metrics are calculated from this analysis and surfaced with findings. ## Relationships and zone boundaries Attack Path analysis includes both relationship-driven path analysis and principal-level risky configuration findings. BloodHound evaluates how abusable relationships connect principals across privilege boundaries and flags principals with configurations that increase risk. This includes boundaries between Tier Zero and user-defined [Privilege Zones](/analyze-data/privilege-zones/overview). A path that crosses zones can represent a stepping stone into higher-privilege assets, which is why zone-specific findings can differ in severity and priority. ## Post-processing BloodHound does not rely only on directly collected relationships. During **post-processing**, it derives additional relationships that are relevant to Attack Path analysis. One result is a **composite edge**. A composite edge is a derived relationship between two nodes that represents a group of underlying relationships condensed into a single, meaningful connection. BloodHound uses composite edges to simplify understanding of that complexity and surface Attack Paths that are not visible from any single relationship alone. Some attack techniques require a combination of permissions before they can be abused, so BloodHound models those combined conditions as one simplified relationship. For example, the [DCSync](/resources/edges/dc-sync) edge requires a combination of permissions to create an abusable path. BloodHound models this as a composite edge, which allows it to surface Attack Paths that would otherwise be invisible if analysis relied only on directly collected relationships. > [accordion] Show post-processed edges > > BloodHound creates the following edges during post-processing: > > * [`ADCSESC1`](/resources/edges/adcs-esc1) > * [`ADCSESC3`](/resources/edges/adcs-esc3) > * [`ADCSESC4`](/resources/edges/adcs-esc4) > * [`ADCSESC6a`](/resources/edges/adcs-esc6a) > * [`ADCSESC6b`](/resources/edges/adcs-esc6b) > * [`ADCSESC9a`](/resources/edges/adcs-esc9a) > * [`ADCSESC9b`](/resources/edges/adcs-esc9b) > * [`ADCSESC10a`](/resources/edges/adcs-esc10a) > * [`ADCSESC10b`](/resources/edges/adcs-esc10b) > * [`ADCSESC13`](/resources/edges/adcs-esc13) > * [`ADCSESC16`](/resources/edges/adcs-esc16) > * [`AddMember`](/resources/edges/add-member) > * [`AdminTo`](/resources/edges/admin-to) > * [`AZAddOwner`](/resources/edges/az-add-owner) > * [`AZRoleApprover`](/resources/edges/az-role-approver) > * [`CanPSRemote`](/resources/edges/can-ps-remote) > * [`CanRDP`](/resources/edges/can-rdp) > * [`CoerceAndRelayNTLMToADCS`](/resources/edges/coerce-and-relay-ntlm-to-adcs) > * [`CoerceAndRelayNTLMToADCSRPC`](/resources/edges/coerce-and-relay-ntlm-to-adcs-rpc) > * [`CoerceAndRelayNTLMToLDAP`](/resources/edges/coerce-and-relay-ntlm-to-ldap) > * [`CoerceAndRelayNTLMToLDAPS`](/resources/edges/coerce-and-relay-ntlm-to-ldaps) > * [`CoerceAndRelayNTLMToSMB`](/resources/edges/coerce-and-relay-ntlm-to-smb) > * [`DCSync`](/resources/edges/dc-sync) > * [`EnrollOnBehalfOf`](/resources/edges/enroll-on-behalf-of) > * [`EnterpriseCAFor`](/resources/edges/enterprise-ca-for) > * [`ExecuteDCOM`](/resources/edges/execute-dcom) > * [`ExtendedByPolicy`](/resources/edges/extended-by-policy) > * [`GoldenCert`](/resources/edges/golden-cert) > * [`HasTrustKeys`](/resources/edges/has-trust-keys) > * [`IssuedSignedBy`](/resources/edges/issued-signed-by) > * [`OwnsLimitedRights`](/resources/edges/owns-limited-rights) > * [`ProtectAdminGroups`](/resources/edges/protect-admin-groups) > * [`SyncLAPSPassword`](/resources/edges/sync-laps-password) > * [`SyncedToADUser`](/resources/edges/synced-to-ad-user) > * [`SyncedToEntraUser`](/resources/edges/synced-to-entra-user) > * [`TrustedForNTAuth`](/resources/edges/trusted-for-nt-auth) > * [`WriteOwnerLimitedRights`](/resources/edges/write-owner-limited-rights) ## Variable Analysis Mode When updating Privilege Zones, you likely want to see updated object membership and related findings as quickly as possible. **Variable Analysis Mode** can speed up this process. This feature is available under early access and is enabled by default. **Variable Analysis Mode** skips the post-processing stages of analysis. BloodHound still updates normal analysis completion tracking after these runs, including timestamps and related status information. > [!NOTE] > > This option applies to Privilege Zone-triggered analysis only. Other actions that trigger analysis still run the full pipeline. ## Remediation After reviewing findings on the **Attack Paths** page, you can: * **Remediate** to sever the edges that create the risk and improve your environment's security posture. * **Accept** when risk is known and temporarily tolerated. For acceptance workflow steps, see [Risk Acceptance](/analyze-data/findings/risk-acceptance). To track remediation progress over time, see [Posture](/analyze-data/findings/posture). # Overview Source: https://bloodhound.specterops.io/analyze-data/findings/attack-paths Learn about Attack Path findings in BloodHound Enterprise, including how to view, filter, and prioritize them for remediation. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) The **Attack Paths** page in BloodHound Enterprise gives you a high-level overview of where identity risk exists, how much of your environment is exposed, and which areas need attention first. These risks are represented as findings. Findings include exposure and impact metrics that quantify risk, so you can assess overall risk in one place and then use those metrics to prioritize remediation as you drill into specific finding types. The **Attack Paths** page has two views: > [card] [Graph view (default)](/analyze-data/findings/graph-view) > > Understand how risk concentrates in a selected environment and zone, view exposure and impact metrics, and expand finding details for remediation guidance. > [card] [Table view](/analyze-data/findings/table-view) > > Triage many findings at once, compare findings across environments and zones, and preserve filter and sort context in the page URL. ## Findings An **Attack Path** is a chain of abusable privileges and user behaviors that creates direct or indirect connections between principals. A **finding** is a specific instance of an Attack Path that BloodHound Enterprise has identified as a high-value remediation point. Findings can be relationship-based (abusable paths between principals) or principal-based (risky configurations on a principal). > [!NOTE] > > Findings are organized by the environment of the target nodes, not the environment where the finding is defined. > > For example, an OpenGraph extension can define a finding that targets Active Directory nodes. That finding appears under the relevant Active Directory domain, not the OpenGraph environment. ## Finding types BloodHound Enterprise groups findings into types to help you separate structural access risks from principal-level configuration risks. ### Relationship-based finding A relationship-based finding identifies a directional path from a lower-privileged source principal to a privileged target asset. The path represents one or more abusable connections (potentially through intermediate principals or objects) through which the source principal can take control of the target. A single finding may include multiple Attack Paths when different intermediate nodes all enable the same type of access from source to target. Relationship-based findings can have an exposure metric and an impact metric. ### List-based finding A list-based finding identifies a vulnerability in a specific principal where the risk originates from the principal itself (like a misconfiguration). Because the vulnerability is inherent to the principal and not based on its connection to other principals, there is no exposure to measure. List-based findings do not have an exposure metric, but they will have an impact metric. ## Choose a view Use the view that matches your investigation goal. | Goal | Recommended view | | - | - | | Understand where risk concentrates in one environment and zone | **Graph view** | | Review risk metrics and remediation guidance for a specific finding type | **Graph view** | | Triage many findings across environments, platforms, zones, and statuses | **Table view** | | Share a filtered and sorted findings list with a URL | **Table view** | # Graph View Source: https://bloodhound.specterops.io/analyze-data/findings/graph-view Review the exposure and impact of Attack Path findings in BloodHound Enterprise and access remediation guidance. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) The **Graph** view is the default view on the **Attack Paths** page. It combines the **Choke Point** graph with expandable finding details. > [!NOTE] > > If [Environment Targeted Access Control (ETAC)](/manage-bloodhound/auth/environment-targeted-access-control) is enabled on your tenant, it can limit which findings and environments appear for your account. The left-side of the page displays a **Choke Point** visualization, which is an aggregate view of the graph for a selected environment and privilege zone. It simplifies large volumes of nodes and edges into a compact visualization optimized for readability. It also shows the number of exposed principals in each finding category, giving you a quick summary of where risk concentrates in an environment. The right-side of the page displays **Attack Paths details**, which is an expandable list of all detected Attack Path types. It shows finding descriptions, severity, principals involved, exposure and impact, and remediation guidance for each finding. ![A view of the Attack Paths page that shows the graph view](https://mintcdn.com/specterops/TBiQMOU_rj3mJFPR/images/attack-paths/graph-view.png?fit=max\&auto=format\&n=TBiQMOU_rj3mJFPR\&q=85\&s=a4f03d593abc4c83b8a346727c7567d1) ## Use cases Use the **Graph** view when you need to understand risk concentration and move from a high-level visualization to finding-level remediation details: * **Identify where risk concentrates:** Review the **Choke Point** graph to see which finding categories expose the most principals in a selected environment and zone. * **Prioritize remediation:** Use severity, exposure, and impact together to focus on findings that represent the greatest risk to privileged assets. * **Investigate a finding type:** Expand **Attack Paths details** to review finding descriptions, the principals involved, exposure and impact metrics, and remediation guidance. * **Review zone-specific risk:** Filter by environment and zone to understand how Attack Path findings differ across Tier Zero, user-defined privilege zones, and Hygiene. * **Move from summary to action:** Use the graph to identify the area of concern, then use the finding details to plan remediation or accept a known risk. ## Filter findings The **Attack Paths** page includes filters that help you focus on specific environments, platforms, zones, and severity levels. These filters apply to findings shown in the current view. | Filter | Description | | - | - | | **Environment** | Filter findings by specific platforms, such as an Active Directory domain, Azure tenant, or OpenGraph environment. | | **Zone** | Filter findings by specific privilege zones. By default, Tier Zero is selected, but you can choose to view findings for other zones. You can also use the zone filter to focus on findings by the Hygiene (A zone-agnostic, list-based finding that identifies issues not tied to a specific privilege zone.) category. | | **Risk** | Filter findings by severity level to focus on the highest-priority Attack Paths. | > [!TIP] > > The alternate [Table view](/analyze-data/findings/table-view) includes additional filters for the status of findings. ## Exposure and impact Each finding includes exposure and impact metrics. Use these metrics together when prioritizing remediation efforts. Findings with high exposure and high impact are typically the highest-priority remediation targets. ### Exposure A risk measurement that quantifies the extent to which principals can reach a privileged asset through one or more Attack Paths. It encompasses all principals upstream of a finding's source, including any principals that can reach the source through intermediaries. Exposure is measured in two ways: * **Exposure count**—The number of principals that can reach a privileged asset through one or more Attack Paths. * **Exposure percentage**—The percentage of principals in an environment that have at least one Attack Path to a privileged asset. > [!NOTE] > > Exposure calculation only includes principals *outside* the selected zone (and higher zones) that can reach a privileged asset through an Attack Path. ### Impact A risk measurement that quantifies potential blast radius if a finding is abused. Impact is measured in two ways: * **Impact count**—The number of principals that could be compromised through an Attack Path. * **Impact percentage**—The percentage of the environment that could be impacted by a specific identity vulnerability. > [!NOTE] > > Together, these metrics help organizations prioritize remediation by understanding which Attack Paths pose the greatest risk. # Posture Source: https://bloodhound.specterops.io/analyze-data/findings/posture Learn how to use the Posture page to track your organization's risk posture over time and measure the impact of your remediation efforts. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) While the [Attack Paths](/analyze-data/findings/attack-paths) page helps you investigate and remediate specific findings related to Attack Paths, the **Posture** page provides a high-level view of your organization's security posture over time. It aggregates Attack Path data to provide insights about where the biggest risks originate and how your remediation efforts are reducing risk. ![A view of the Posture page filter options](https://mintcdn.com/specterops/t0M0eU-tpVAoRrvi/images/posture_page/page-filter.png?fit=max\&auto=format\&n=t0M0eU-tpVAoRrvi\&q=85\&s=6ec1e3455f9bf490a38257e29f4479c6) ## Filters The **Posture** page includes filters to help you focus on specific environments and zones. You can use these filters to view and track trends over time. ### Environment The environment filter allows you to view posture trends for a specific platform, such as an Active Directory domain or Azure tenant. This can help you understand how posture is changing within that environment and identify areas that may require additional attention. You can also filter on severity levels to focus on trends in high-risk Attack Paths. For example, you can filter to show only **CRITICAL** Attack Paths to see how the most severe risks are changing over time. ### Zone The zone filter allows you to view posture trends for a specific privilege zone. By default, Tier Zero is selected, but you can choose to view findings for other zones. > [!NOTE] > > You can also use the zone filter to focus on findings by the Hygiene (A zone-agnostic, list-based finding that identifies issues not tied to a specific privilege zone.) category. ### Date range The date range filter allows you to compare posture trends between analysis runs. For example, you can compare the current state of your environment to a previous point in time to see how your risk posture has changed. Choose from preset ranges or set a custom range to compare specific analysis runs. Custom date ranges include a time picker, so you can set exact start and end times. > [!TIP] > > For meaningful trend comparisons, use the same filter scope and similar date ranges across reviews. Custom date ranges include a time picker, so you can set exact start and end times. ### Chart scale The chart scale filter allows you to adjust the scale of the posture graphs to better visualize trends. For example, if you have a large number of findings, you may want to use a logarithmic scale to better see changes over time. The linear scale shows consistent ranges clearly, while the logarithmic scale highlights outliers and wide variations in the data. ## Interpreting Posture The **Posture** page tracks how your risk posture changes between analysis runs. It includes several sections that show trends in attack path severity, findings, exposure, and protection over time. When reviewing posture trends, consider the following: * Attack Paths (A chain of abusable privileges and user behaviors that creates direct or indirect connections between principals.)—Each attack path is made up of one or more relationships. * Findings (A specific instance of an Attack Path that BloodHound Enterprise has identified as a high-value remediation point.)—Each finding can be composed of one or more attack paths, so finding counts and Attack Path counts can differ. ## Attack Paths The **Attack Paths** table shows attack paths with active findings in the selected date range. This list can also include attack paths that were fully resolved (by your remediation efforts) or deprecated (by SpecterOps) during the same range. This table is designed for trend tracking and reporting. For per-finding details such as description, impacted principals, exposure/impact metrics, and remediation guidance, use the [Attack Paths](/analyze-data/findings/attack-paths) page. | Column | Description | | - | - | | **Severity** | The severity level of the Attack Path at the end date of the selected range. | | **Name** | The name of the Attack Path. | | **Category** | The category of the Attack Path. | | **Count** | The number of findings that existed on the end date of the selected range. | | **Change** | The calculated difference in the number of findings between the beginning and end date of the selected time range. | > [!NOTE] > > Count is calculated on a per-day basis. Depending on the selected date and time range, displayed counts may differ if analysis runs span day boundaries. ![A view of the Attack Paths table on the Posture page](https://mintcdn.com/specterops/R5AhUhQLtikSSH-k/images/posture_page/attack-paths.png?fit=max\&auto=format\&n=R5AhUhQLtikSSH-k\&q=85\&s=8129ebc081dda32f50e5f4e201c6d6fa) BloodHound Enterprise calculates severity from the percentage of users and computers that can abuse the Attack Path. For example, a **CRITICAL** Attack Path is abusable by 95% to 100% of all users and computers in the environment. The severity levels map to the following exposure percentages: * **CRITICAL**: 95%-100% * **HIGH**: 80%-94% * **MODERATE**: 40%-79% * **LOW**: 0%-39% These are expressed with colors in the Severity column. ![A view of the Attack Path severity scale](https://mintcdn.com/specterops/R5AhUhQLtikSSH-k/images/posture_page/severity-scale.png?fit=max\&auto=format\&n=R5AhUhQLtikSSH-k\&q=85\&s=d0154f137aaebc6a31f70455d69af8fe) ## Attack Path Exposure Summary This section provides a summary of risk within the applied filter on the selected end date, including the change in Attack Paths and findings within the selected time frame. > [!NOTE] > > When you select a Privilege Zone, it also includes the Protection Score. The score does not appear when you select the Hygiene category from the Zone filter. ![A view of the Attack Path Exposure Summary panel on the Posture page](https://mintcdn.com/specterops/t0M0eU-tpVAoRrvi/images/posture_page/attack-path-summary.png?fit=max\&auto=format\&n=t0M0eU-tpVAoRrvi\&q=85\&s=ace3e237dfada5105fb2701ced678983) ### Protection Score The **Protection Score** shows the percentage of objects in the selected Privilege Zone that do not have Attack Path findings. It helps you measure how much of the zone is free from identified Attack Path risk as you remediate findings. > [!NOTE] > > A Protection Score is available only for Privilege Zones where Attack Path analysis has run. If the card shows no score, BloodHound Enterprise has not analyzed the selected zone yet. BloodHound Enterprise calculates the score by dividing the number of objects without findings by the total number of objects in the selected zone. The score reflects the selected environment and date range. > [!TIP] > > Hover over the information icon next to the Protection Score to see the raw count of objects in the selected zone. ## Posture Over Time Graphs This series of visualizations shows posture over time based on the selected filter parameters. They provide insights about trends in exposure levels, findings, attack paths, and privilege zone objects. * **Attack Path Exposure** - This graph represents the trend (by percentage) of principals within the environment (and trusted or connected environments) that can compromise the selected zone. ![A view of the Total Tier Zero Attack Path Exposure graph on the Posture page](https://mintcdn.com/specterops/R5AhUhQLtikSSH-k/images/posture_page/total-exposure-graph.png?fit=max\&auto=format\&n=R5AhUhQLtikSSH-k\&q=85\&s=e82215c36a2d427e77760adcf909d799) * **Historical Findings** - This graph represents the trend (by count) in the total number of findings within the selected filter parameters. As you remediate findings (or newly created misconfigurations generate new ones), this chart helps you track the changes in the number of identified findings over time. ![A view of the Historical Findings graph on the Posture page](https://mintcdn.com/specterops/R5AhUhQLtikSSH-k/images/posture_page/historical-findings-graph.png?fit=max\&auto=format\&n=R5AhUhQLtikSSH-k\&q=85\&s=0ec96470edc3bd78ee14edf06d9efd43) * **Total Attack Paths** - This graph represents the trend (by count) in the total number of active Attack Paths within the selected filter parameters. As you remediate findings that contribute to Attack Paths (or newly created misconfigurations generate new ones), this chart helps you track the changes in the total number of identified Attack Paths over time. ![A view of the Total Attack Paths graph on the Posture page](https://mintcdn.com/specterops/R5AhUhQLtikSSH-k/images/posture_page/attack-paths-graph.png?fit=max\&auto=format\&n=R5AhUhQLtikSSH-k\&q=85\&s=3438825f03f64358084cd5b78182e046) * **Objects** - This graph represents the trend in the total number of objects in the selected zone. As you add or remove objects from the selected zone, this chart helps you track the changes in the number of objects over time. ![A view of the Objects graph on the Posture page](https://mintcdn.com/specterops/R5AhUhQLtikSSH-k/images/posture_page/tier-zero-graph.png?fit=max\&auto=format\&n=R5AhUhQLtikSSH-k\&q=85\&s=2bb988cd9dbc3e7444b2bc9b5f3f42f5) ## Completeness Graphs For Active Directory environments, the **Group Completeness** and **Session Completeness** graphs represent how much visibility BloodHound Enterprise has into session and local group data across active computers in your environment. BloodHound Enterprise calculates completeness as the percentage of all computers that it successfully scanned for sessions and groups. It includes only enabled computers with at least one login in the past 14 days. ![A view of the Group Completeness and Session Completeness graphs on the Posture page](https://mintcdn.com/specterops/R5AhUhQLtikSSH-k/images/posture_page/group-session-completeness.png?fit=max\&auto=format\&n=R5AhUhQLtikSSH-k\&q=85\&s=cc9f6da227eeaab9a854b77a18c3549a) The total collection completeness significantly impacts the accuracy of the graph available for analysis within BloodHound Enterprise. See [Why perform privileged collection in SharpHound](/collect-data/enterprise-collection/privileged-collection) for more details. # Risk Acceptance Source: https://bloodhound.specterops.io/analyze-data/findings/risk-acceptance Learn how to accept findings as known risks in BloodHound Enterprise, and understand the difference between acceptance and remediation. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) The **Attack Paths** page in BloodHound Enterprise surfaces findings (A specific instance of an Attack Path that BloodHound Enterprise has identified as a high-value remediation point.). Each finding includes prioritization data such as exposure and impact metrics to help you focus remediation efforts where they matter most. Not every finding requires immediate remediation. Risk acceptance lets you acknowledge a finding as a known risk that your organization has reviewed and chosen to retain for a certain amount of time. Use **acceptance** when: * You have reviewed the risk and agreed to tolerate it for a defined period. * You are waiting for a change to complete, such as a retention window. > [!NOTE] > > Accepting a finding records that the risk is known and temporarily tolerated. Acceptance is not a fix. To reduce risk, you must remediate the underlying condition. Use **remediation** when: * You are ready to remove the risky condition. * You want posture trends to reflect actual risk reduction. ## Accept a finding Before accepting a finding, you must sign in to BloodHound Enterprise with a [role](/manage-bloodhound/auth/users-and-roles#user-role-definitions) that can accept attack path impacted principals. When you accept a finding principal: * It is still included in posture calculations. * It is hidden from the default principal table view for that finding. * The principal and related edges still appear in other analysis views, including **Explore** and **Posture**. **1. Open the Attack Paths page** In the left navigation menu, click **Attack Paths**. **2. Locate the finding** Expand the finding, open the menu to the left of the principal name (three vertical dots) and click **Accept**. ![A view of an expanded finding that shows the accept option](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image1-19.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=fc622bd14b227b829fdd31af121f08de) **3. Set acceptance duration** In the **Accept Attack Path** window, set the number of days for acceptance and click **Accept**. > [!TIP] > > If you are accepting a finding while you wait for [data retention](/collect-data/enterprise-collection/data-retention#data-retention) settings to delete the associated data, set the duration based on that scenario. For example, for **Logons from Tier Zero Users**, set the duration to 7 days. ![A view of the accept attack path window that shows the duration setting](https://mintcdn.com/specterops/t-Kb-qOfqpgsWjX4/assets/image1-20.png?fit=max\&auto=format\&n=t-Kb-qOfqpgsWjX4\&q=85\&s=cce2db1517f6b77530738ebbb8b5cacb) ## Remove acceptance To remove acceptance for a principal: **1. Open the Attack Paths page** In the left navigation menu, click **Attack Paths**. **2. Locate the accepted principal** Expand the finding and enable the **Accepted** toggle. ![A view of the attack paths page that shows the accepted toggle](https://mintcdn.com/specterops/t-Kb-qOfqpgsWjX4/assets/image1-21.png?fit=max\&auto=format\&n=t-Kb-qOfqpgsWjX4\&q=85\&s=e0da52cb5634a5fdc874fce777e71ccc) **3. Remove acceptance** Open the menu to the left of the accepted principal (three vertical dots), and click **Remove Acceptance**. ![A view of the menu that appears when clicking the three vertical dots next to an accepted principal](https://mintcdn.com/specterops/t-Kb-qOfqpgsWjX4/assets/image1-22.png?fit=max\&auto=format\&n=t-Kb-qOfqpgsWjX4\&q=85\&s=866d26ade30367836f471c8d00e9329a) **4. Confirm removal** In the **Remove Attack Path Acceptance** window, select **Remove Acceptance**. ![A view of the remove attack path acceptance window](https://mintcdn.com/specterops/t-Kb-qOfqpgsWjX4/assets/image1-23.png?fit=max\&auto=format\&n=t-Kb-qOfqpgsWjX4\&q=85\&s=81e4950156bf08bac13437778fdb7006) ## Outcome After acceptance, the principal is hidden from the default principal table for that finding until you enable the **Accepted** toggle. The principal and related edges remain visible in the **Explore** and **Posture** pages. ![A view of a finding that shows the accepted toggle](https://mintcdn.com/specterops/t-Kb-qOfqpgsWjX4/assets/image1-21.png?fit=max\&auto=format\&n=t-Kb-qOfqpgsWjX4\&q=85\&s=e0da52cb5634a5fdc874fce777e71ccc) # Table View Source: https://bloodhound.specterops.io/analyze-data/findings/table-view Review, filter, and sort Attack Path findings at scale in BloodHound Enterprise. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) The **Findings Table** is an alternate view on the [Attack Paths](/analyze-data/findings/attack-paths) page. Use it to review many findings (A specific instance of an Attack Path that BloodHound Enterprise has identified as a high-value remediation point.) at once, compare finding state across environments and zones, and triage high-volume result sets faster. ![A view of the Attack Paths page that shows the table view](https://mintcdn.com/specterops/bYe945TwMcMjYXwT/images/attack-paths/table-view.png?fit=max\&auto=format\&n=bYe945TwMcMjYXwT\&q=85\&s=e429bb78b34bf77dffb1368913e59ca5) Each row in the table represents a single finding. The table displays the following columns: | Column | Description | | - | - | | **Risk** | When [Findings Prioritization](#prioritize-findings) is enabled on the **Early Access Features** page, displays the finding's rank. Rank **1** is the highest priority. The column replaces **Severity** in the table and uses severity-specific colors. | | **Severity** | When Findings Prioritization is disabled, displays the severity of the finding: Severity remains available as a filter when Findings Prioritization is enabled. | | **Attack Path** | The name of the finding type that identifies the risk condition under review: an abusable relationship between principals for relationship-based findings, or a vulnerable configuration on a principal for list-based findings. | | **Platform** | The platform associated with the finding, such as Active Directory, Azure, or OpenGraph extension-defined platform. | | **Environment** | The environment associated with the finding, such as an Active Directory domain, Azure tenant, or OpenGraph extension-defined environment. | | **Zone** | The privilege zone associated with the finding for relationship-based findings (or Hygiene for list-based findings) | | **Source Principal** | The principal where the Attack Path originates. | | **Target Principal** | The principal where the Attack Path ends. | | **First Seen** | When BloodHound Enterprise first created the finding. | | **Last Seen** | When BloodHound Enterprise last updated the finding. | | **Status** | The current status of the finding: See [Finding status lifecycle](#finding-status-lifecycle) for definitions and the actions that move a finding between statuses. | > [!NOTE] > > Some findings, typically called [list-based findings](/analyze-data/findings/attack-paths#list-based-finding), do not have a source principal. ## Use cases Use the **Findings Table** to focus an investigation on a set of findings: * **Triage findings at scale:** Review a dense list of Attack Path findings and sort by Risk, date, status, or contextual columns. When Findings Prioritization is disabled, sort by severity instead. * **Focus an investigation:** Filter by Attack Path, object, severity, platform, environment, zone, and status to move from a broad result set to a smaller set that matches your investigation goal. * **Compare scope across environments or zones:** Select multiple environments or zones and review the matching findings together. * **Review finding state and recency:** Use **Status**, **First Seen**, and **Last Seen** to understand whether findings are open, accepted, remediated, deprecated, or orphaned, and when BloodHound Enterprise last updated them. * **Investigate or remediate a finding:** Select a finding to open it in **Explore** or review its remediation plan. * **Preserve table context:** Use the page URL to return to or share the same view, filters, and sort order. ## Prerequisites Before you can use the **Findings Table**, you must have the following: * BloodHound Enterprise with the **Findings Table** Early Access feature enabled on the **Early Access Features** page. * Access to the environments you want to analyze. > [!NOTE] > > This feature is available through Early Access. Enable **Findings Table** on the **Administration** > **Early Access Features** page to access it. > [!NOTE] > > If [Environment Targeted Access Control (ETAC)](/manage-bloodhound/auth/environment-targeted-access-control) is enabled on your tenant, it can limit which findings and environments appear for your account. Two users can see different rows for the same filters depending on their access. ## Identify new findings To quickly identify new findings, look for a purple New badge in the **First Seen** column of the **Findings Table**. The table displays the badge when a finding's **First Seen** timestamp is within the past 24 hours. ![The New badge in the Findings Table](https://mintcdn.com/specterops/bXOOx0a6QsSOYIiB/images/attack-paths/whats-new-badge.png?fit=max\&auto=format\&n=bXOOx0a6QsSOYIiB\&q=85\&s=a6717334966668ef9151bb8a6f0e79b9) The badge replaces the timestamp for the duration of that window. After 24 hours, the table displays the formatted **First Seen** date again. > [!NOTE] > > The **New** state is calculated from the **First Seen** timestamp and is not provided by the API. A finding recreated after it was archived can display both **New** and **Regression**. ## Take action on a finding Select a finding to open an action menu and continue your investigation or remediation workflow. **1. Select a finding** Click a row to highlight it and display the action menu at the bottom of the table. ![The Attack Paths table view with the action menu open](https://mintcdn.com/specterops/THSfGdmoVlHP6lc_/images/attack-paths/table-view-action-menu.png?fit=max\&auto=format\&n=THSfGdmoVlHP6lc_\&q=85\&s=2d270706d3885c8dc982d7a93d607d4f) > [!TIP] > > To clear the selection, click the same row again or click outside the table. **2. Choose an action** Select one of the following actions: * **Remediation Plan:** Opens the **Remediation** page filtered to the selected finding, environment, and privilege zone. * **Explore:** Opens the finding in **Explore**. * Relationship-based findings open in **Pathfinding** with the path between the source and target principals. * List-based findings open in **Search**. * **Copy:** Opens a submenu with **Copy Source** and **Copy Target** options to copy a principal's name to your clipboard. ## Filter findings Use filters to narrow the result set: | Filter | What it does | | - | - | | **Severity** | Select one or more severity levels: **Critical**, **High**, **Moderate**, and **Low**. | | **Platform** | Search for and select one or more platforms to focus on findings from specific sources. | | **Attack Paths** | Search for and select one or more Attack Path finding types. | | **Environment** | Select one or more environments, such as an Active Directory domain, Azure tenant, or OpenGraph environment. | | **Zone** | Select one or more privilege zones to focus on findings within those zones. | | **Status** | Select one or more finding statuses: **Open**, **Accepted**, **Remediated**, **Deprecated**, and **Orphaned**. By default, the table shows **Open** and **Accepted** findings. | | **Objects** | Search for and select one or more objects. The table shows findings where a selected object is the source or target principal. | The filters support multi-select. For **Objects**, search by an object's name or identifier, then select it from the results. Selecting **All Objects** removes the object filter. > [!TIP] > > Your filter and view selections are captured in the page URL. You can bookmark or share a link to return to the same table view. ## Sort findings You can sort by each visible table column and resize column width. Sorting reorders the full result set for the current filters. For example: * When Findings Prioritization is enabled, the table sorts by **Risk** by default, with the highest-priority findings first. The table uses zone and first-seen time as secondary sort fields. * Sort by **First Seen** to distinguish newer findings from findings that have persisted across analysis runs. * Sort by **Last Seen** to review the most recently updated findings for the current filters. ## Export findings Export the findings that match the current filters and sort order to a CSV file. > [!TIP] > > The export includes all matching findings, not only the rows currently loaded in the table. **1. Configure the table** Apply filters and sorting to define the findings you want to export. **2. Download the findings** Select the download icon next to the findings count. BloodHound saves the file as `findings_YYYY-MM-DD.csv`. > [!NOTE] > > When [Findings Prioritization](/analyze-data/findings/table-view#prioritize-findings) is enabled, the file also includes the prioritization score and rank. The export supports a maximum of **200,000 findings**. If the current result set exceeds this limit, refine the results with filters before downloading. The download icon is unavailable when no findings match, while the result count is loading, or when the table cannot load its results. ## Prioritize findings **Findings Prioritization** helps you decide where to start when many findings compete for attention. It supplements severity with additional risk signals and provides a ranked starting queue for investigation and remediation. > [!NOTE] > > This feature is available through Early Access. Enable **Findings Prioritization** on the **Administration** > **Early Access Features** page to access it. When enabled, a **Risk** column replaces the **Severity** column in the table and uses severity-specific colors. A lower rank indicates a higher-priority finding. Use **Findings Prioritization** as guidance for triage and remediation. It does not replace severity or your organization's knowledge of business context, compensating controls, and remediation effort. Once enabled, BloodHound Enterprise calculates a prioritization score for each finding during the next analysis run. > [!NOTE] > > BloodHound Enterprise requests an analysis run when you enable the feature. Wait for analysis to complete before you use the new ranks. ### How prioritization works BloodHound Enterprise calculates a prioritization score during analysis, then converts that score into a ranked order using *competition ranking*. Findings with the same score receive the same rank, and the next rank skips the positions occupied by the tie. For example, if two findings tie for second place, the ranks are 1, 2, 2, 4; not 1, 2, 2, 3. A higher-ranked finding represents a stronger combination of the following factors present in the enterprise's graph data: | Factor | Definition | | - | - | | **Exposure** | A risk measurement that quantifies the extent to which principals can reach a privileged asset through one or more Attack Paths. It encompasses all principals upstream of a finding's source, including any principals that can reach the source through intermediaries. | | **Impact** | A risk measurement that quantifies potential blast radius if a finding is abused. | | **Starting objects** | The number of graph objects represented by the finding's target principal. A group, for example, can represent more starting objects than a single user or computer. | | **Proximity to Tier Zero** | The shortest traversable path from the target principal to Tier Zero. Findings targeting objects in or near Tier Zero receive a stronger priority signal than findings targeting objects farther away. Findings without a path to Tier Zero, or with a path beyond the maximum traversal depth, use a maximum-hop fallback and are deprioritized. | BloodHound calculates proximity during analysis when **Findings Prioritization** is enabled. It uses an analysis-generated [Zone](/resources/nodes/zone) node for Tier Zero to calculate this distance. The table displays the resulting rank. A target already in Tier Zero receives the strongest proximity signal. ### Rank and operational context A finding can rank above another finding with the same—or even higher—severity when its combined exposure, impact, starting-object breadth, and proximity to Tier Zero indicate a larger remediation opportunity. Use the rank to create a starting queue, then apply operational context before you act, such as: * Business importance of affected assets * Existing compensating controls * Ownership and change windows * Remediation effort and potential disruption * Current investigations or accepted risk > [!NOTE] > > The color of the rank in the **Risk** column indicates the finding's severity. **Findings Prioritization** supplements severity; it does not redefine it. ### When rank changes BloodHound recalculates prioritization during analysis. The rank does not update dynamically between analysis runs. A finding's rank can change after analysis when graph data, exposure, impact, starting objects, proximity to Tier Zero, or the set of open and accepted findings changes. Review the latest analysis before using a rank to plan remediation. > [!NOTE] > > If BloodHound has not calculated a rank for a finding, the **Risk** column displays `-`. For example, archived findings do not have a rank. ## Finding status lifecycle A finding moves through a lifecycle as BloodHound Enterprise detects it, as you act on it, and as your environment changes. The **Status** column reflects where a finding is in that lifecycle. The diagram separates active findings from system-archived outcomes. ```mermaid theme={null} flowchart LR detected["BloodHound detects
the finding"] --> open subgraph active["Active findings"] direction TB open["Open
No active acceptance"] accepted["Accepted
Risk acceptance is active"] open -->|"Accept risk"| accepted accepted -->|"Remove or expire
acceptance"| open end open --> systemChange accepted --> systemChange subgraph archived["System-archived outcomes"] direction TB systemChange{"System change"} remediated["Remediated
Analysis no longer detects the finding"] orphaned["Orphaned
Environment or OpenGraph extension
archived or removed"] deprecated["Deprecated
Finding type removed from the schema"] systemChange --> remediated systemChange --> orphaned systemChange --> deprecated end ``` ### Status definitions The following table describes the stored value and meaning of each finding status, and whether the status marks a finding as archived. > [!TIP] > > Open findings use normal emphasis, while accepted and archived findings are dimmed so you can focus on findings that need attention without checking the **Status** column for every row. | Status | Stored value | Meaning | Archived | | - | - | - | - | | **Open** | `active` | BloodHound currently detects the finding and no acceptance applies. This is the default state for a newly detected finding, and it needs attention. | No | | **Accepted** | `accepted` | You accepted the finding as a known risk and the acceptance has not expired. Accepted findings remain in posture calculations. | No | | **Remediated** | `remediated` | A later analysis run no longer detects the Attack Path, so BloodHound archived the finding. This reflects actual risk reduction. | Yes | | **Orphaned** | `orphaned` | The environment or OpenGraph extension associated with the finding was archived or removed and is no longer collected, so BloodHound archived the finding. | Yes | | **Deprecated** | `deprecated` | The finding type is no longer defined in the current schema, so BloodHound archived existing findings of that type. | Yes | ### User-driven transitions You control the transition between **Open** and **Accepted**: * **Open to Accepted:** Accept the finding and set an acceptance duration. BloodHound records an acceptance expiration for the finding. For steps, see [Risk Acceptance](/analyze-data/findings/risk-acceptance). * **Accepted to Open:** Remove the acceptance manually, or wait for the acceptance period to expire. In both cases, the finding returns to **Open**. ### System-driven transitions BloodHound sets the archived statuses automatically during analysis. You cannot set these statuses manually: * **Remediated:** A subsequent analysis run no longer detects the Attack Path or vulnerable principal. Use this status to confirm that a risk was actually removed. * **Orphaned:** The environment associated with the finding (such as an Active Directory domain or Azure tenant) is archived or removed and is no longer collected. * **Deprecated:** The finding type is removed from (or deprecated in) the current schema, for example when an OpenGraph extension no longer defines it. > [!NOTE] > > **Remediated**, **Orphaned**, and **Deprecated** are terminal, archived states. When BloodHound archives a finding, it records an archive time and updates the finding's last-updated time. > > **First Seen** reflects when the finding was first created, and **Last Seen** reflects the most recent update, including a status change. **Open** and **Accepted** findings are not archived and continue to count toward your posture. # The BloodHound Dashboard Source: https://bloodhound.specterops.io/analyze-data/overview Learn how to use the BloodHound dashboard to analyze your data and identify attack paths. ## Findings and Remediation > [card] [Analysis Process](/analyze-data/findings/analysis) > > Understand how the analysis process works to surface findings and prioritize risk. > [card] [Attack Paths](/analyze-data/findings/attack-paths) > > Investigate findings and prioritize remediation efforts based on risk exposure and impact. > [card] [Risk Acceptance](/analyze-data/findings/risk-acceptance) > > Temporarily accept findings as known risks while you work on remediation or wait for data retention to remove the underlying data. > [card] [Posture](/analyze-data/findings/posture) > > Track trends over time across Attack Paths, findings, and overall exposure to understand the impact of your remediation efforts. ## Explore > [card] [Search and Pathfinding](/analyze-data/explore/search) > > Find objects, analyze relationships, and visualize attack paths in a graph view. > [card] [Search with Cypher](/analyze-data/explore/cypher-search) > > Use prebuilt or custom Cypher queries to uncover relationships and insights. > [card] [Supported Cypher Syntax](/analyze-data/explore/cypher-supported) > > See supported Cypher components and examples of how to use them. ## Privilege Zones > [card] [Privilege Zones Overview](/analyze-data/privilege-zones/overview) > > Learn how Privilege Zones segment your environment by sensitivity and access boundaries. > [card] [Use Cases](/analyze-data/privilege-zones/use-cases/attack-path-management-journey) > > Explore how Privilege Zones help you manage attack paths and reduce risk exposure. > [card] [Zones](/analyze-data/privilege-zones/zones) > > Create and manage zones that define privileged boundaries in your environment. > [card] [Labels](/analyze-data/privilege-zones/labels) > > Apply labels to classify objects and supplement zone assignment logic. > [card] [Rules](/analyze-data/privilege-zones/rules) > > Build rules that automatically place objects into the right zones. > [card] [Default Rules](/analyze-data/privilege-zones/default-rules) > > Review built-in rules used to seed and maintain Privilege Zone structure. > [card] [Certification](/analyze-data/privilege-zones/certification) > > Certify zone membership and validate that privileged boundaries remain accurate. > [card] [History](/analyze-data/privilege-zones/history) > > Audit Privilege Zone changes over time to understand what changed and when. # Certification Source: https://bloodhound.specterops.io/analyze-data/privilege-zones/certification Understand the certification process for Privilege Zones and how to manage member approvals. ![Applies to BloodHound Enterprise ](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Certification is an optional process to interrupt automatic inclusion of additional objects in a zone based on [rule](/analyze-data/privilege-zones/rules) expansion behavior by requiring manual certification of the additional objects. It allows administrators or power users to manually review and approve objects before they appear in privilege zones. This process gives you control over zone membership and helps prevent unexpected additions from triggering false findings. ![A view of the Zone Builder certification tab](https://mintcdn.com/specterops/jq53of6QZwi2e41u/images/privzones/certification.png?fit=max\&auto=format\&n=jq53of6QZwi2e41u\&q=85\&s=fa6b49b327d99018516fe172fd53ff34) ## Why use certification? Without certification, BloodHound automatically includes objects in zones as soon as they match a rule's expansion criteria. This can create unexpected findings when objects are inadvertently added to privileged groups. For example, if a new user is added to the Domain Admins group, BloodHound immediately tags them to the **Tier Zero** zone and generates attack path findings for that user. In the preceding example, certification solves this problem by requiring manual approval before objects are fully recognized within a zone. During the certification process, BloodHound still identifies the object's relationship to the zone but generates a "Non-Certified Principal with Tier Zero Privileges" finding instead of standard attack path findings. This gives you time to review whether the object should remain in the zone or if its group membership was a mistake. > [!NOTE] > > BloodHound supports certification for zones only. ## How certification works When you enable certification for a zone: 1. Objects that match the zone's rules enter a pending state 2. BloodHound generates findings indicating the objects require certification 3. Administrators or power users review objects in the **Certifications** tab 4. Once certified, objects are fully recognized in the zone and BloodHound generates standard findings 5. Alternatively, you can remove objects from privileged groups to prevent zone membership > [!TIP] > > You can configure certification requirements at the zone level (to affect all rules) or at the individual [rule](/analyze-data/privilege-zones/rules) level, giving you flexibility in managing object approvals. ## Manage certifications The **Certifications** tab on the **Zone Builder** page allows administrators and power users to review certification status and take action on objects in zones where certification has been configured. When you open the **Certifications** tab, BloodHound selects **All Statuses** by default. This view helps you confirm whether a specific object is already present in a zone without running separate searches for each certification status. The table title shows **All Statuses** and the total number of objects currently listed across these statuses: **Pending**, **User Certified**, **Automatic**, and **Rejected**. The certification table includes the following columns: | Column | Description | | - | - | | **Type** | The object type | | **Status** | The certification status for the object | | **Object Name** | The display name of the object | | **Environment** | The environment where the object exists | | **Zone** | The zone that BloodHound Enterprise associates with the object based on the configured zone hierarchy | | **First Seen** | The date and time the object was first seen in the zone | > [!NOTE] > > * You can certify or reject certification only for objects in zones where certification is enabled. > * Objects appear in the certification queue only when their [rules](/analyze-data/privilege-zones/rules) have **Automatic Certification** turned off. To manage certifications: **1. Open the Certifications tab** Navigate to the **Privilege Zones** > **Certifications** tab. **2. Filter certifications** Use the status filter, environment filter, and search box to refine the results. > [tab] By Status > > Click the status dropdown menu and choose **All Statuses**, **Pending**, **User Certified**, **Automatic**, or **Rejected**. > > **All Statuses** is selected by default and lists objects across all statuses. The table title updates to match your selection and shows the total number of matching objects. > > > [!NOTE] > > > > Actions are only available for certifications that require manual approval. You cannot certify or reject objects with the **Automatic** status. > > ![An animated view of the Zone Builder certification status filter](https://mintcdn.com/specterops/QBKub5OIH0dvrrum/images/privzones/certification-status.gif?s=62e84d8d29feb8965779c444d93fc63f) > [tab] By Environment > > Click the environment dropdown menu and select the desired environment to view its certifications. > > ![An animated view of the Zone Builder certification environment filter](https://mintcdn.com/specterops/jq53of6QZwi2e41u/images/privzones/certification-environment.gif?s=2e36b814ed79abb78c0b16e7308d9303) > [tab] By Search > > Use the search box and additional filters to find specific objects in the current table view. > > > [!TIP] > > > > With **All Statuses** selected, you can search across all objects in **Pending**, **User Certified**, **Automatic**, and **Rejected** at the same time. > > If no object matches your search, BloodHound displays `No results.` > > ![A view of the Zone Builder certification search and filter options](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/certifications-search-filter.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=d64fcfe0e3147cc0a46189e0d3534989) **3. Complete the certification action** 1. Use the checkboxes to select one or more objects. 2. Click **Certify** or **Reject** as needed. 3. *(Optional)* Add a note to document the reason for your action. * Click **Skip Note** to complete the certification action without a note * Click **Cancel** to exit without completing the certification action ![A view of the certification note dialog in the Zone Builder certification tab](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/certification-note.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=9863b3a71aed6bfbd9914a78045d1812) > [!TIP] > > Notes are visible to all BloodHound users in the [History Log](/analyze-data/privilege-zones/history).![A view of a certification note in the Zone Builder history log](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/certification-note-history.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=2b62b71ad03b0ea808baef6ab97f9798) # Default Rules Source: https://bloodhound.specterops.io/analyze-data/privilege-zones/default-rules Explore and understand the default rules in Privilege Zones. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) BloodHound provides a set of rules by default that place known critical objects into the default Tier Zero zone according to SpecterOps best practices. > [!NOTE] > > You can disable some of these rules, but not all of them. | Rule | Disable-able | Type | Reason | | - | - | - | - | | Account Operators | TRUE | DC group | The Account Operators group has GenericAll in the default security descriptor on the AD object classes: User, Group, and Computer. That means all objects of these types will be under full control of Account Operators unless they are AdminSDHolder Protected. Not all Tier Zero objects will be AdminSDHolder Protected typically, as not all Tier Zero objects will be included in Protected Objects. This means Account Operators members have a path to compromise Tier Zero most often. It is possible to delete all GenericAll ACEs for Account Operators on Tier Zero objects. To protect future Tier Zero objects, one would have to either remove the Account Operators ACE from the default security descriptors or implement a process of removing the ACEs as Tier Zero objects are being created. However, we recommend not using the group and classifying it as Tier Zero instead. | | Administrator | FALSE | AD user | The built-in Administrator account has admin access to DCs by default and is therefore Tier Zero. | | Administrators | FALSE | DC group | The Administrators group has full control over most of AD's essential objects and are inarguably part of Tier Zero. | | AdminSDHolder | FALSE | AD container | The permissions configured on the AdminSDHolder container are a template that will be applied on Protected Objects by the ProtectAdminGroups background task at a default interval of every hour. Control over AdminSDHolder means you have control over the Protected Objects, which include Tier Zero groups such as Domain Admins and their transitive members. The AdminSDHolder container is therefore a Tier Zero object. | | AIA CA (AD object) | TRUE | AD object | The AIA CA objects may represent offline enterprise CAs or cross CAs. In such cases, deleting the AIA CA object would cause certificates, potentially of Tier Zero principals, to lose trust. We therefore recommend to treat AIACAs as Tier Zero. | | Application Administrator | TRUE | Entra ID role | The Application Administrator role can control tenant-resident apps. This includes creating new credentials for apps, which can be used to authenticate the tenant as the app's service principal and abuse the service principal privileges. The role is therefore considered Tier Zero if the tenant contains any Tier Zero service principals. | | Azure tenant object | FALSE | Entra ID role | An attacker with control of the Tenant Root Object has control of all identities, applications, roles, and devices that reside in that tenant. Further, control of the Tenant Root Object enables an attacker to gain control of all Azure Resource Manager subscriptions that trust the tenant. This object is therefore considered Tier Zero. | | AZUREADSSOACC object | TRUE | Entra ID role | Microsoft automatically creates the AZUREADSSOACC account when enabling Seamless SSO. When configured for Seamless SSO, this object can modify any synced object within an Azure environment, granting significant control over the organization. | | Backup Operators | FALSE | DC group | The Backup Operators group has the SeBackupPrivilege and SeRestorePrivilege rights on the domain controllers by default. These privileges allow members to access all files on the domain controllers, regardless of their permission, through backup and restore operations. Additionally, Backup Operators have full remote access to the registry of domain controllers. To compromise the domain, members of Backup Operators can dump the registry hives of a domain controller remotely, extract the domain controller account credentials, and perform a DCSync attack. Alternative ways to compromise the domain exist as well. The group is considered Tier Zero because of these known abuse techniques. | | Cert Publishers | TRUE | AD group | The Cert Publishers group has full control permissions on root CA and AIA CA objects. This enables an attacker to add or remove certificates for these objects, which are trusted throughout the AD forest. As certificate authentication requires the certificate to chain up to a trusted root CA, an attacker could prevent successful authentication for AD accounts and disrupt Tier Zero operations. The group is therefore Tier Zero. In some environments, the group also has full control over the NTAuth store. In that scenario, the group can take over the forest by adding a forged root certificate, making it trusted for NTAuth. | | Certificate template | TRUE | AD object | Control over a certificate template enables the ADCS ESC4 attack and Tier Zero takeover if the template is published to a CA trusted in the NTAuth store and that chains up to a trusted root CA. There are default templates that meet this requirement; others remain unpublished. A template cannot be used if it is not published, making control over an unpublished object less concerning. However, if it is ever published, it becomes a risk. We, therefore, recommend treating all certificate templates as Tier Zero objects, whether published or not. | | Cryptographic Operators | TRUE | DC group | The Cryptographic Operators group has the local privilege on domain controllers to perform cryptographic operations but no privilege to log in. There are no known ways to abuse the membership of the group to compromise Tier Zero. The local privilege the group has on the domain controllers is considered security dependencies, and the group is therefore considered Tier Zero. | | Distributed COM Users | TRUE | DC group | The Distributed COM Users group has local privileges on domain controllers to launch, activate, and use Distributed COM objects but no privilege to log in. There are no known ways to abuse the membership of the group to compromise Tier Zero. The local privileges the group has on the DCs are considered security dependency, and the group is therefore considered Tier Zero. | | DNS Admins | TRUE | AD group | DnsAdmins controls DNS which enables an attacker to trick a privileged victim to authenticate against an attacker-controlled host as it was another host. This enables a Kerberos relay attack. Also, control over DNS enables disruption of Tier Zero since Kerberos depends on DNS by default. The group could previously use a feature in the Microsoft DNS management protocol to make the DNS service load any DLL and thereby obtain a session as SYSTEM on the DNS server. This vulnerability was patched in Dec 2021. | | Domain Admins | FALSE | AD group | The Domain Admins group has full control over most of AD's essential objects and are inarguably part of Tier Zero. | | Domain Controllers | FALSE | AD group | The Domain Controllers group has the GetChangesAll privilege on the domain. This is not enough to perform DCSync, where the GetChanges privilege is also required. There are no known ways to abuse membership in this group to compromise Tier Zero. However, the GetChangesAll privilege is considered a security dependency that should only be held by Tier Zero principals. Additionally, control over the group allows one to impact the operability of Tier Zero by removing domain controllers from the group, which breaks AD replication. The group is therefore considered Tier Zero. | | Domain Controller Site Servers | TRUE | AD object | An Active Directory Site Server object represents a computer associated with an Active Directory Site. When the referenced computer is a Domain Controller, a malicious Group Policy Object linked to the Site could compromise the Domain Controller and, consequently, its domain. Therefore, Site Server objects that reference Domain Controllers are classified as Tier Zero. | | Domain root object | FALSE | AD object | An attacker with control over the domain root object can compromise the domain in multiple ways, for example by a DCSync attack (see reference). The domain root object is therefore Tier Zero. | | Enterprise Admins | FALSE | AD group | The Enterprise Admins group has full control over most of AD's essential objects and are inarguably part of Tier Zero. | | Enterprise CA (AD object) | TRUE | AD object | Control over an enterprise CA object enables an attacker to publish certificate templates. If any templates that allow ADCS domain escalation exist but are unpublished, then control over the enterprise CA object could enable a takeover of Tier Zero. An attacker could potentially also disrupt or takeover Tier Zero by deleting the certificate of the enterprise CA or changing the DNShostName of the enterprise CA to an attacker-controlled host. Enterprise CA objects are therefore Tier Zero. If the enterprise CA certificate is removed from the NTAuth store, certificates from this CA cannot be used for domain authentication, thus preventing a Tier Zero takeover. | | Enterprise CA Computers | TRUE | AD computer | Enterprise CAs can by default issue certificates that enable authentication as anyone, thereby allowing takeover of Tier Zero. An attacker with admin rights on an enterprise CA can obtain a certificate as any user in different ways. One option is to dump the private key of the CA and craft a 'golden certificate' as a target user. This attack can be prevented by protecting the private key with hardware. Alternatively, the attacker can publish any template, modify pending certificate requests, and issue denied requests, which typically also enable a takeover of Tier Zero. Enterprise CA computer objects are therefore Tier Zero. If the enterprise CA certificate is removed from the NTAuth store, then certificates from this CA cannot be used for domain authentication, thus preventing a Tier Zero takeover. | | Enterprise Domain Controllers | FALSE | DC object | There are no known ways to abuse membership in this group to compromise Tier Zero. However, the GetChangesAll privilege is considered a security dependency that should only be held by Tier Zero principals. Additionally, control over the group allows one to impact the operability of Tier Zero by removing domain controllers from the group, which breaks AD replication. The group is therefore considered Tier Zero. | | Enterprise Key Admins | FALSE | AD group | The Enterprise Key Admins group has write access to the msds-KeyCredentialLink attribute on all users (not AdminSDHolder Protected when the PDCe runs an OS earlier than Server 2019) and on all computers in the AD forest. This enables the group to compromise all these principals through Shadow Credentials attacks. The group is therefore considered Tier Zero. | | Exchange Trusted Subsystem | TRUE | AD group | The Exchange Trusted Subsystem group has takeover permissions on all users with the default ACL inheritance enabled from the domain, regardless of the permission model Exchange is configured to. The compromising permission is write access to the AltSecurityIdentities attribute, which allows an attacker to add an explicit mapping for the user for domain authentication. Typically, some Tier Zero users inherit permissions from the domain. The group is therefore Tier Zero. The group can only be treated as non-Tier Zero if all Tier Zero users are protected from this compromising permission. | | Exchange Windows Permissions | TRUE | AD group | The Exchange Windows Permissions group has takeover permissions on all users (WriteDACL and reset password) and all groups (edit membership) with the default ACL inheritance enabled from the domain, if Exchange is configured with the default shared permission model or the RBAC split model. Typically, some Tier Zero users and groups inherit permissions from the domain. The group is therefore Tier Zero. If Exchange is configured in the AD split model, then this group has no compromising permissions and can be treated as non-Tier Zero. | | Global Administrator | FALSE | Entra ID role | The Global Administrator role is the highest privilege role in Entra ID and inarguably part of Tier Zero. It can do almost anything, and grant permission to do the things it cannot do. | | Intune Administrator | TRUE | Entra ID role | The Intune Administrator role has permission to execute scripts locally on Entra-managed devices. The role has therefore a potential attack path to Tier Zero through Entra-managed devices used by Tier Zero principals. Furthermore, the Intune Administrator role can manage Conditional Access, which can be abused to lower the security of Tier Zero or prevent the operability of Tier Zero. The role is therefore considered Tier Zero. | | Key Admins | FALSE | AD group | The Key Admins group has write access to the msds-KeyCredentialLink attribute on all users (not AdminSDHolder Protected when the PDCe runs an OS earlier than Server 2019 or unless the ProtectAdminGroups task is manually forced) and on all computers in the AD domain. This enables the group to compromise all these principals through Shadow Credentials attacks. The group is therefore considered Tier Zero. | | Knowledge Administrator | TRUE | Entra ID role | The Knowledge Administrator role can control non-role-assignable groups. If any non-role-assignable group has compromising permissions over a Tier Zero asset (e.g. Contributor on a domain controller Azure VM), then the Knowledge Administrator role can add arbitrary principals to the given group and compromise Tier Zero. If no non-role-assignable group has compromising permissions over a Tier Zero asset, then there is no attack path to Tier Zero from the Knowledge Administrator role. It therefore depends on the usage of non-role-assignable groups whether the role should be considered Tier Zero. | | KRBTGT objects | TRUE | AD user | The krbtgt's credentials allow one to create golden ticket and compromise the domain. Therefore, if you obtain the credentials of this account, then you can authenticate as any Tier Zero user. However, there is currently no known privilege on the object to obtain the Kerberos keys or to compromise the account in any other way. When you reset the password of krbtgt, AD will ignore your password input and use a random string instead. So, the reset password privilege does not work for a compromise. An attacker could use the reset password privilege to harm Tier Zero, as a double password reset causes all Kerberos TGTs in the domain to become invalid. So, since control over the account can harm Tier Zero, and there is no reason for delegating control to non-Tier Zero, the krbtgt is Tier Zero. | | NTAuth store | TRUE | AD object | The NTAuth store is a security dependency for Tier Zero. A certificate that impersonates any user in AD must chain up to a trusted root CA and be issued by a CA trusted by the NTAuth store. With control over a root CA and the NTAuth store, an attacker can make an attacker-controlled root CA certificate meet these requirements and issue certificates as anyone, taking over Tier Zero. Control over the NTAuth store alone may be sufficient to disrupt Tier Zero operations, as the attacker can delete CA certificates that Tier Zero principals or systems rely on for authentication. The NTAuth store is therefore Tier Zero. | | Partner Tier2 Support | FALSE | Entra ID role | The Partner Tier2 Support role can reset the password for any principal, including principals with the Global Administrator role. The role is therefore considered Tier Zero. | | Performance Log Users | TRUE | DC group | The Performance Log Users group has local privileges on domain controllers to launch, activate, and use Distributed COM objects but no privilege to log in. There are no known ways to abuse the membership of the group to compromise Tier Zero. The local privileges the group has on the DCs are considered security dependency, and the group is therefore considered Tier Zero. | | Print Operators | TRUE | DC group | The Print Operators group has the local privilege on the domain controllers to load device drivers and can log on locally on domain controllers by default. It is feasible to remove the logon privilege from the group on the domain controllers, such that the group has no known abusable path to Tier Zero. However, the local privilege to load device drivers is considered a security dependency for the domain controllers, and the group is therefore considered Tier Zero. | | Privileged Authentication Administrator | FALSE | Entra ID role | The Privileged Authentication Administrator role can set or reset any authentication method (including passwords) for any principal, including principals with the Global Administrator role. The role is therefore considered Tier Zero. | | Privileged Role Administrator | FALSE | Entra ID role | The Privileged Role Administrator role can grant any other admin role to any principal at the tenant level. The role is therefore considered Tier Zero. | | Read-Only Domain Controllers | TRUE | AD computer | An attacker with control over a RODC computer object can compromise Tier Zero principals. The attacker can modify the msDS-RevealOnDemandGroup and msDS-NeverRevealGroup attributes of the RODC computer object such that the RODC can retrieve the credentials of a targeted Tier Zero principal. The attacker can obtain admin access to the OS of the RODC through the managedBy attribute, from where they can obtain the credentials of the RODC krbtgt account. With that, the attacker can create a RODC golden ticket for the target principal. This ticket can be converted to a real golden ticket as the target has been added to the msDS-RevealOnDemandGroup attribute and is not protected by the msDS-NeverRevealGroup attribute. Therefore, the RODC computer object is Tier Zero. | | Root CA object | TRUE | AD object | A root CA is a security dependency for Tier Zero. A certificate that impersonates any user in AD must chain up to a trusted root CA and be issued by a CA trusted by the NTAuth store. With control over a root CA and the NTAuth store, an attacker can make an attacker-controlled root CA certificate meet these requirements and issue certificates as anyone, taking over Tier Zero. Control over a root CA alone may be sufficient to disrupt Tier Zero operations, as the attacker can delete root CA certificates that Tier Zero principals or systems rely on for authentication. Root CA objects are therefore Tier Zero. | | Schema Admins | FALSE | AD group | The Schema Admins group has full control over the AD schema. This allows the group members to create or modify ACEs for future AD objects. An attacker could grant full control to a compromised principal on any object type and wait for the next Tier Zero asset to be created, to then have a path to Tier Zero. This attack could be remediated by removing any unwanted ACEs on objects before they are promoted to Tier Zero, but we recommend considering the group as Tier Zero instead. | | Security Administrator | TRUE | Entra ID role | The Security Administrator role has access to Live Response API (if not disabled) with permission to execute scripts locally on Entra-managed devices. The role has therefore a potential attack path to Tier Zero through Entra-managed devices used by Tier Zero principals. Furthermore, the Security Administrator role can manage Conditional Access, which can be abused to lower the security of Tier Zero or prevent the operability of Tier Zero. The role is therefore considered Tier Zero. | | Server Operators | TRUE | DC group | The Server Operators group has local privileges on the domain controllers and perform administrative operations as creating backups of all files. The group can log on locally on domain controllers by default. It is feasible to remove the logon privilege from the group on the domain controllers, such that the group has no known abusable path to Tier Zero. However, the local privileges are considered security dependencies for the domain controllers, and the groups are therefore considered Tier Zero. | | Sites | TRUE | AD object | Control over an Active Directory site may allow a user to compromise all assets associated with that site through the application of Group Policy Objects. Because every AD site contains at least one Domain Controller as a Site Server, compromising a site could lead to the compromise of at least one domain in the forest. Therefore, Active Directory Site objects are classified as Tier Zero. | # History Source: https://bloodhound.specterops.io/analyze-data/privilege-zones/history Review the audit log of changes made to Privilege Zones over time. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) The **History Log** provides a record of changes to your Zones and Labels, including the type of change that occurred, who made it, and when it happened. Use the log to audit and track changes to your Zones and Labels over time. > [!NOTE] > > BloodHound retains 90 days of history from the last successful analysis operation. ![Zone Builder history log](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/history-log.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=5554f306506219ccadda4fce1f32bbb0) ### Search and filter The **History Log** provides a search box and filters to help you identify specific changes quickly. ![Zone Builder history log filter](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/history-log-filter.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=71f63472926dd5bd02f3da7514db310f) # Labels Source: https://bloodhound.specterops.io/analyze-data/privilege-zones/labels Learn how to use labels to categorize and manage objects within Privilege Zones for better organization. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) Labels let you tag groups of objects for easier searching and filtering. For example, you can label compromised assets with the default **Owned** label to quickly identify attack paths from non-compromised to compromised assets in your environment. The **Owned** label represents objects that have been compromised in your environment. You can tag objects with the **Owned** label using rules or manually in the graph. > [!NOTE] > > Unlike zones, BloodHound does not use labels in risk analysis—they're designed to help you organize and query your data. The **Labels** tab provides different views depending on which edition of BloodHound you're using. The **Summary View** is available in BloodHound Enterprise only, while the **Details View** is available in both BloodHound Enterprise and BloodHound Community Edition. > [tab] Summary View > > The **Summary View** shows label names, rule counts, and object counts. > > ![A view of the Zone Builder labels summary view](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/labels-summary-view.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=571addd3fba49c160c9ae61afef03d09) > [tab] Details View > > The **Details View** displays all rules configured for the selected label and the objects that they pull into the label (organized by node type). Use the dropdown menus to filter the view by specific zones, identity providers, and services in your network environment. > > Select a rule or object to display more details in the right panel, including: > > * Rule definition and Cypher query > > * Object properties and relationships > > > [!NOTE] > > > > BloodHound displays objects for enabled rules only. To view objects related to a disabled rule, you must re-enable it. > > ![A view of the Zone Builder labels detail view](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/labels-detail-view.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=cfe6b2ad074b0f238e6d819c04fcc0e9) ### Create a label ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) You can create custom labels to categorize objects based on any criteria relevant to your environment, such as business function, sensitivity level, or compliance requirements. For example, you might create a label for PCI-scoped systems to quickly identify attack paths from non-PCI to PCI environments. Creating a label involves configuring the label details and defining a rule. **1. Open the Zone Builder page** In the left menu, click **Privilege Zones** > **Labels** > **Create Label**. **2. Configure initial label details** Enter all relevant information about the label: | Field | Required? | Description | | - | :-: | - | | Name | Yes | A unique name for the label (e.g., PCI) | | Description | No | A brief description of the label's purpose and scope (e.g., PCI assets) | ![A view of the Zone Builder create label page](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/create-label.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=a6cde9362c57193ba749da0dc78f30ee) **3. Define a rule** Click **Define Rule** to save your new label and continue on to define the objects to include in the label. > [!WARNING] > > See [Rules](/analyze-data/privilege-zones/rules) for more detailed information about defining rules. The content in this section provides a high-level overview only. When defining a rule during the label creation process, provide the following information: | Field | Required? | Description | | - | :-: | - | | Name | Yes | A unique name for the rule (e.g., PCI) | | Description | No | A brief description of the rule's purpose and scope (e.g., PCI assets) | | Rule Type | Yes | The type of rule to use (e.g., Object ID or Cypher) | ![A view of the Zone Builder define label rule page](https://mintcdn.com/specterops/jq53of6QZwi2e41u/images/privzones/define-label-rule.png?fit=max\&auto=format\&n=jq53of6QZwi2e41u\&q=85\&s=ec3d518604f2e9810100fd0e747aeb4c) **4. Complete label creation** Click **Save** to finish creating the label. ### Edit a label To edit a label, follow these steps: **1. Select a label** 1. In the left menu, click **Privilege Zones**. 2. Click the **Labels** tab 3. By default, the **Owned** label is pre-selected. To edit a different label, select the label you want to edit. If you're using BloodHound Enterprise, you can select a label from the **Summary View**. ![A view of the Zone Builder edit label page in BloodHound Enterprise with the Summary View](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/edit-label-summary-view.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=d5d2ba6150e9a8bb4375d9b51412fbed) Alternatively, BloodHound Enterprise and BloodHound Community Edition users can select a label using the dropdown menu on the **Details View**. ![A view of the Zone Builder edit label page in BloodHound with the Detail View](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/edit-label-details-view.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=e4f7a35dd8ea82e4d6a3eca9a974c58c) 4. Click **Edit Label**. **2. Edit the label** To edit the label: 1. Modify the label's name or description. 2. Click **Save Edits** to apply your changes. > [!TIP] > > To manage how objects are included in the label, see [Rules](/analyze-data/privilege-zones/rules). ### Delete a label ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) You cannot delete the default **Owned** label, but you can edit its description and rules. > [!WARNING] > > Deleting a label is irreversible. To delete an existing label, follow these steps: **1. Select a label** Navigate to the **Labels** tab, select the label you want to delete, and click **Edit Label**. **2. Delete the label** To delete the label: 1. Click **Delete Label** at the top of the page. 2. Confirm your action in the dialog. ![A view of the Zone Builder confirm label delete dialog](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/confirm-label-delete.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=5bded601ed049df99e5d735275fab9ec) 3. Click **Confirm** to delete the label. # Overview Source: https://bloodhound.specterops.io/analyze-data/privilege-zones/overview Define protected boundaries in BloodHound and analyze attack paths that violate your security model. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) Privilege Zones help you define the boundaries that matter most in your environment so you can understand who can reach them, how they can be reached, and where that access violates your security model. For many teams, **Tier Zero** is the starting point because it contains the identities, systems, and permissions that can control the broader environment. BloodHound includes a default Tier Zero zone so you can begin reducing attack paths to those assets. Most organizations do not stop at Tier Zero. Some teams extend a traditional tiering model. Others protect a critical application, regulated environment, business unit boundary, source code system, or endpoint management platform. Privilege Zones give teams a flexible way to model those priorities inside BloodHound and analyze attack paths into them. ## Use cases Use Privilege Zones to turn security priorities into visible attack path boundaries. Some zones become a durable part of your operating model. Others support a specific remediation campaign, audit response, or focused investigation. Start with the use case that matches your goal: > [card] [Plan Attack Path Management](/analyze-data/privilege-zones/use-cases/attack-path-management-journey) > > Expand beyond Tier Zero by choosing the next protected boundary. > [card] [Extend a Traditional Tiering Model](/analyze-data/privilege-zones/use-cases/extend-traditional-tiering-model) > > Test whether administrative tier boundaries hold up against real attack paths. > [card] [Protect Critical Applications and Environments](/analyze-data/privilege-zones/use-cases/protect-critical-app-or-regulated-environment) > > Model critical applications and regulated environments as protected boundaries. > [card] [Run Remediation Campaigns](/analyze-data/privilege-zones/use-cases/run-remediation-campaigns) > > Create bounded remediation work with clear scope, ownership, and progress tracking. > [card] [Protect GitHub Repositories](/analyze-data/privilege-zones/use-cases/protect-critical-github-repos) > > Treat high-impact repositories, workflows, and deployment paths as protected boundaries. > [card] [Protect Jamf Administration](/analyze-data/privilege-zones/use-cases/protect-jamf-administration) > > Analyze endpoint administration paths into sensitive managed Mac environments. > [!NOTE] > > BloodHound Community Edition includes the default **Tier Zero** zone. Custom zones for these use cases are available in BloodHound Enterprise. ## Key concepts The **Zone Builder** page provides tools for configuring and managing your Privilege Zones. Review the following key concepts to understand how Privilege Zones work and how to use them effectively: | Concept | Description | | - | - | | **Zone** | A group of objects that represents a hierarchy of control across identity providers and services, based on access level. An object can belong to only one zone at a time (the highest-priority zone that matches). | | **Label** | A flexible way to categorize objects for searching and filtering. An object can belong to multiple labels simultaneously. | | **Certification** | An optional review step in BloodHound Enterprise only that pauses automatic inclusion of newly matched objects in a zone until you certify them. | | **History** | An audit log of changes made to zones, labels, and related rules. | Zones organize objects into a strict hierarchy. BloodHound analyzes how object privileges are assigned and where they can be escalated across your environment. By default, BloodHound includes a **Tier Zero** zone that represents a set of objects with full control over an environment *and* any objects with control over those objects. See [Tier Zero: Members and Modification](/get-started/security-boundaries/tier-zero-members) to learn more. > [!NOTE] > > BloodHound Enterprise customers can [create](/analyze-data/privilege-zones/zones) additional zones to match their organization's security model. However, analyzing them requires the **Privilege Zone Analysis** feature (available for purchase). For more information, contact your sales representative. If BloodHound Enterprise detects an object in a lower-privileged zone controlling an object in a higher-privileged zone, it identifies it as a finding in the **Attack Paths** and **[Posture](/analyze-data/findings/posture)** pages. For example, if a Tier One user can control a Tier Zero server, BloodHound flags it as a violation of the privilege model. This analysis helps you identify and remediate privilege escalation paths and misconfigurations that violate your security model. ## Object membership Before working with Privilege Zones, it's important to understand how BloodHound assigns objects to zones and labels through the analysis process. * **Object membership requires rule matching**: Objects are only assigned to a zone or label if they match at least one of the zone's or label's rules * **Zone membership is exclusive to the highest-priority zone**: If multiple zone rules match an object, BloodHound assigns it to the highest-priority zone only * **Objects can have multiple labels**: Unlike zones, an object can match multiple label rules simultaneously Most changes to Privilege Zones affect object membership and require analysis to run before you can validate the results. Understanding when you can expect to see results helps you maintain your configuration and validate remediation efforts. For Cypher-based rules, validation happens in two stages. First, rerun the query in the rule editor after you change it so BloodHound can validate the updated rule definition. After you save the rule, BloodHound runs analysis before updated zone or label membership appears elsewhere in the product. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) BloodHound Enterprise can complete analysis for Privilege Zone changes faster with [Variable Analysis Mode](/analyze-data/findings/analysis#variable-analysis-mode) because it starts at the **Tagging** stage instead of running the full analysis pipeline. *Scheduled analysis (a SpecterOps-managed feature) always runs a full analysis.* ## Workflow The following steps represent the general workflow for making changes and validating the results: **1. Configure settings** Make any necessary changes to your zones, labels, and rules on the **Zone Builder** page. **2. Save changes** Save your configuration changes to automatically trigger analysis for any settings that affect object membership. All changes that affect object membership require analysis to run before you can validate the results. Actions that require analysis include: * Creating a new zone or label with a rule definition * Creating, editing, or deleting a rule definition for an existing zone or label * Editing the details of a zone or label that has a rule definition * Deleting a zone or label that has a rule definition **3. Wait for analysis to complete** Check your [tenant status](/collect-data/enterprise-collection/monitor#tenant-status) to monitor analysis progress. During analysis, BloodHound re-evaluates object membership against the updated configuration. > [!NOTE] > > Analysis may take several minutes to complete depending on the size of your environment. BloodHound Enterprise customers can enable [Variable Analysis Mode](/analyze-data/findings/analysis#variable-analysis-mode) to potentially speed up analysis for Privilege Zone changes. > > Until analysis finishes, the Zone Builder **Details View** and related metrics will not reflect your latest changes. **4. Validate the results** Validate that your configuration changes have the expected results: 1. Navigate to the **Zone Builder** page and verify that the expected objects are now included in (or excluded from) the relevant zones and labels. 2. Review the **Attack Paths** and **Posture** pages for new findings or changes in existing findings related to the updated zones and labels. ## Common issues **I created a new zone rule but don't see any objects in the zone.** * Analysis may still be running. Wait for it to complete before checking zone membership. * The rule may not match any objects. Review the rule definition and test with known objects. * Multiple zone rules may match the same objects. Check if another zone with higher priority is taking precedence for those objects. **I updated a zone rule but don't see any changes.** Analysis is required for rule updates to take effect. Check the analysis status and wait for completion. **I deleted a zone rule and objects are still showing in the zone.** * Other rules in the same zone may still match those objects. To see which rules are tagging a specific object, use the [object-based](/analyze-data/privilege-zones/rules#method-2%3A-search-by-object-name-or-id) search method. * Analysis may still be running. Wait for completion to see the final result. # Rules Source: https://bloodhound.specterops.io/analyze-data/privilege-zones/rules Learn how to create, manage, and optimize rules in Privilege Zones to enhance BloodHound's analysis. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) Rules are instructions that associate objects with zones and labels based on object ID, object relationships (expansion), and Cypher queries. BloodHound applies any rule changes during the next analysis operation. **Zone** rules provide a logical method of ensuring objects appear in the appropriate zone using either a Cypher query or by searching for an object ID. If an object has been added to multiple zones, the most critical zone in your defined hierarchy takes precedence. **Label** rules provide a flexible method of tagging objects in an environment. Objects can have multiple labels and you can use those labels to search and filter using Cypher in the **Explore** page. > [!NOTE] > > If your rules don't show expected objects, see [Troubleshoot missing objects](/analyze-data/privilege-zones/rules#troubleshoot-missing-objects). ### Types Rules are instructions that automatically tag objects into zones or labels. Think of them as the "how" behind the tagging process. * **Object rules** target specific objects and their related objects through "expansion" * **Cypher rules** tag objects based on custom query results * [**Default rules**](/analyze-data/privilege-zones/default-rules) are system-managed and tag critical objects automatically ## Rule expansion Rules automatically include related objects based on the type of object that you select, expanding through relationships to tag additional objects ([*some exceptions apply*](#control-of-tagged-object-expansion)). This "expansion" saves you time by tagging entire groups or organizational units at once. The following sections describe how different object types expand during the tagging process. > [!TIP] > > You can interrupt automatic inclusion of additional objects into Privilege Zones by requiring manual certification of the additional objects. See [Certification](/analyze-data/privilege-zones/certification) to learn more. ### Group-like expansion Objects that behave like groups in Active Directory include all contained members within the zone/label. These include the following type (edge) relationships: * Group ([`MemberOf`](/resources/edges/member-of)) * AZRole ([`AZHasRole`](/resources/edges/az-has-role), `AZRoleElligible`) * AZGroup ([`AZMemberOf`](/resources/edges/az-member-of)) ### Structured expansion Objects that provide structural organization include all contained objects within the zone/label. These include the following type (edge) relationships: * Domain ([`Contains`](/resources/edges/contains)) > [!NOTE] > > For non-default rules only. * OU ([`Contains`](/resources/edges/contains)) * AZSubscription ([`AZContains`](/resources/edges/az-contains)) * AZManagementGroup ([`AZContains`](/resources/edges/az-contains)) * AZAdministrativeUnit ([`AZContains`](/resources/edges/az-contains)) ### Control of tagged object expansion During the tagging process for zones, the final step involves tagging all objects that contain (or provide external control of) the selected objects. For example, in Active Directory this means that all OUs, Containers, and GPOs that apply to any Tier Zero object are *also* tagged to the Tier Zero zone. If any OUs or Containers are tagged in the last step of the tagging process only (not because you explicitly selected them), the process won't expand to tag other contained objects. ## Define a rule The process and screens for creating and editing rules is nearly the same for zones and labels. The primary difference is that [certification](/analyze-data/privilege-zones/certification) is a BloodHound Enterprise feature available for zones only. Unless you're defining a rule as part of the zone or label creation process, be sure to select a specific zone or label on the **Zone Builder** page first. **1. Open the Zone Builder page** > [!TIP] > > If you're defining a rule as part of the [zone or label](/analyze-data/privilege-zones/zones) creation process, skip to **Configure rule details** below. 1. In the left menu, click **Privilege Zones**. 2. Click the **Zones** or **Labels** tab and select a specific zone or label. If you don't select a zone or label first, the new rule will be associated with the default zone or label selection when you open the page (top position in the **Zones** or **Labels** summary and detail view). **2. Configure rule details** 1. Click **Create Rule**. 2. Enter all relevant information for the rule: > [!WARNING] > > Review [rule expansion](/analyze-data/privilege-zones/rules#rule-expansion) for more information about rule behavior. | Field | Required? | Description | | - | :-: | - | | Name | Yes | A unique name for the rule (e.g., PCI Assets) | | Description | No | A brief description of the rule's purpose and scope (e.g., PCI assets) | | Automatic Certification | No | An option in Enterprise Edition to choose how new objects are [certified](/analyze-data/privilege-zones/certification) (available for zones only) | | Rule Type | Yes | The type of rule to use (e.g., Object ID or Cypher) | **Automatic Certification options** > [!NOTE] > > See [Certification](/analyze-data/privilege-zones/certification) to learn more. * **Direct Objects**: Only the objects directly matched by the rule are certified automatically (excludes objects added through [expansion](/analyze-data/privilege-zones/rules#rule-expansion), such as OUs and GPOs). These objects are shown separately in the **Sample Results** panel. * **All Objects**: Every object (including those tied to direct objects through expansion) is certified automatically * **Off**: All certification is manual ![A view of the Zone Builder define rule page](https://mintcdn.com/specterops/jq53of6QZwi2e41u/images/privzones/define-zone-rule.png?fit=max\&auto=format\&n=jq53of6QZwi2e41u\&q=85\&s=a605fa9708498b11afca88a113f7d3d9) **Rule type configuration details** When you switch between **Object ID** and **Cypher** while working on rules, BloodHound preserves the current state for each rule type until you save the rule or leave the page. If you navigate away before saving, BloodHound clears that temporary state. > [tab] Object ID > > 1. In the **Object Rule** panel, type to search for an object by name or ID. > > 2. Click the object to add it to the list of targeted objects. You must select at least one object to create the rule. > > The **Sample Results** panel displays up to 200 sample results, separating directly selected objects from objects selected through [expansion](/analyze-data/privilege-zones/rules#rule-expansion). This helps you understand why your results may include more objects than initially expected. > > > [!NOTE] > > > > If objects appear in the **Sample Results** panel during rule creation but don't show in the zone after saving, see [Zone precedence conflicts](/analyze-data/privilege-zones/rules#zone-precedence-conflicts) in the troubleshooting section below—a higher-priority zone may be claiming those objects. > > ![A view of the Zone Builder Object ID rule configuration](https://mintcdn.com/specterops/jq53of6QZwi2e41u/images/privzones/objectid-rule-config.png?fit=max\&auto=format\&n=jq53of6QZwi2e41u\&q=85\&s=9c4eb3c5adc9b3b39f6963738891c708) > [tab] Cypher > > 1. Enter a Cypher query into the **Cypher Search** box. > > > [!NOTE] > > > > If you need to reference existing Tier Zero membership in a Cypher rule, match on the `Tag_Tier_Zero` label rather than inspecting `system_tags` properties with patterns such as `coalesce(n.system_tags, [])`. > > > > For example, to return Tier Zero users, use `MATCH (n:User:Tag_Tier_Zero) RETURN n`. > > 2. Click **Run** below the Cypher query box. You must run the query before you can create the rule. > > If you change the query after running it, click **Run** again before you save the rule. > > The **Sample Results** panel displays up to 200 sample results, separating directly selected objects from objects selected through [expansion](/analyze-data/privilege-zones/rules#rule-expansion). This helps you understand why your results may include more objects than initially expected. > > > [!NOTE] > > > > If objects appear in the **Sample Results** panel during rule creation but don't show in the zone after saving, see [Zone precedence conflicts](/analyze-data/privilege-zones/rules#zone-precedence-conflicts) in the troubleshooting section below—a higher-priority zone may be claiming those objects. > > ![A view of the Zone Builder Cypher rule configuration](https://mintcdn.com/specterops/jq53of6QZwi2e41u/images/privzones/cypher-rule-config.png?fit=max\&auto=format\&n=jq53of6QZwi2e41u\&q=85\&s=0e0aa6444a52dcc2d68160a5c90aa8b8) > > If the query returns no results, BloodHound asks you to confirm before saving the rule. This is useful when you expect a future data collection or environment change to produce matching objects. > > > [!TIP] > > > > *(Optional)* Click **View in Explore** to pivot to the **Explore** page and see results in the graph view. Adding the following object types automatically includes more objects according to the definition below. The **Sample Results** panel displays these expanded objects separately from the directly selected objects. * `OU/Container` → All objects contained in the OU/container * `Group` → All objects with membership in the Group * `AZResourceGroup`/`AZSubscription` → All objects contained in the RG/Sub * `AZGroup` → All objects with membership in the group * `AZRole` → All objects with role assignments (or eligibility) **3. Complete rule creation** Click **Create Rule** to finish creating the rule. ## Edit or delete a rule To edit or delete a rule, follow these steps: > [!NOTE] > > Only users with the appropriate [permissions](/manage-bloodhound/auth/users-and-roles) can make changes. You cannot delete [default rules](/analyze-data/privilege-zones/default-rules). **1. Locate a rule** 1. In the left menu, click **Privilege Zones**. 2. Click the **Zones** or **Labels** tab and open the **Detail View**. 3. Select the zone or label that contains the rule that you want to edit or delete and select it. 4. Use one of the following methods to locate the rule you want to edit or delete: > [tab] Method 1: Search by rule name > > 1. Enter the name of the rule in the search bar. > > 2. Select the rule from the search results. > > 3. Click **Edit Rule** to open the rule details. > [tab] Method 2: Search by object name or ID > > 1. Enter the object name or ID. > > 2. Select the object. > > 3. In the right panel, click the **Object** tab and expand the **Rule** accordion. > > 4. Click the ellipsis () beside the relevant rule and select **Edit**. **2. Edit or delete a rule** Choose one of the following options: > [tab] Edit a rule > > To edit a rule: > > > [!NOTE] > > > > Only users with the appropriate [permissions](/manage-bloodhound/auth/users-and-roles) can make changes. You cannot disable some [default rules](/analyze-data/privilege-zones/default-rules). > > 1. Make any necessary changes to the rule configuration. > > For example, you can modify the rule's name, description, rule type, and certification settings (available for zones only). > > You can also disable or enable a rule by toggling the **Enabled** switch. > > If you switch between **Object ID** and **Cypher** while editing the rule, BloodHound preserves the current state for each rule type until you save or leave the page. > > If you edit a Cypher query, click **Run** again before you click **Save Edits**. If the rerun query returns no results, BloodHound asks you to confirm the save. If you do not rerun the updated query, BloodHound prompts you to run it before saving. > > ![A view of the Zone Builder edit rule page](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/edit-rule.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=0a262d98813ccdd0fbb93293d488e13a) > > 2. Click **Save Edits** to apply your changes. > [tab] Delete a rule > > To delete a rule: > > 1. Click **Delete Rule** at the top of the page. > > 2. Confirm your action in the dialog. > > ![Confirm deletion of a custom rule](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/delete-rule-confirm.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=1e364ec4ca967afe890f890b5aa43ad1) > > 3. Click **Confirm** to delete the rule. ## Troubleshoot rules If a rule doesn't tag the objects you expect, or you run into issues creating or saving a rule, use the following sections to identify the cause and resolve the issue. ### Domain filter mismatch The **Domain** selector filters which objects are visible in the zone or label view. If the selected domain doesn't contain objects that match your rule criteria, the zone or label may appear empty or incomplete. **Solution**: Check the domain selector and ensure you've selected the correct domain(s) that contain the expected objects. ### Zone precedence conflicts When an object matches rules in multiple zones, only the highest-priority zone in your [**Zone Order**](/analyze-data/privilege-zones/zones) tags that object. Lower-priority zones won't tag the object, even if their rules match. This is why the **Sample Results** panel during [rule creation](/analyze-data/privilege-zones/rules#define-a-rule) may show objects that don't appear in your lower-priority zones—they're being tagged by a higher-priority zone instead. For example, if an object is tagged by both a Tier Zero rule and a Tier One rule, it will only appear in the Tier Zero zone. The **Sample Results** panel would show the object as a result of your Tier One rule, but the object would only appear in the higher-priority Tier Zero zone, not in Tier One. **Solution**: Review your **Zone Order** and check whether objects are being tagged by higher-priority zones. You can verify this by checking the higher-priority zones for the missing objects. ### Unsaved rule type changes disappeared BloodHound preserves temporary **Object ID** and **Cypher** rule state only while you remain on the current rule page. If you leave the page before saving, BloodHound clears that temporary state. **Solution**: Save the rule before navigating away if you want to keep your current changes. ### Cypher changes do not save If you change a Cypher query after running it, BloodHound requires you to click **Run** again before you can save the rule. This ensures BloodHound validates the updated query and refreshes the sample results for the current rule definition. If the query returns no results, BloodHound asks you to confirm the save. If you do not rerun the updated query, BloodHound prompts you to run it first. **Solution**: Rerun the updated query, review the direct and expanded sample results, and then save the rule. ### Object deleted from graph ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Objects are automatically deleted from the graph if they haven't been observed within the configured retention period. BloodHound stores a timestamp on every object that updates whenever a collection includes that object or references to it. This ensures your data remains fresh and accurate over time. By default, objects are retained for 7 days after they were last seen. For Active Directory environments with the AD recycle bin enabled, objects are retained in BloodHound until they've been permanently deleted from AD (after the tombstone lifetime, which defaults to 180 days) plus the configured retention period. If an object has been deleted due to retention, it won't appear in any zone or label, even if a rule targets it. **Solution**: Check when the object was last seen by viewing the "Last Seen by BloodHound" attribute in the object's entity panel on the **Explore** page. Review your [data retention](/collect-data/enterprise-collection/data-retention) settings to understand the configured retention period. If the object reappears in the graph during a future data collection, the rule will automatically capture it (assuming the rule is still enabled). # Plan Attack Path Management Source: https://bloodhound.specterops.io/analyze-data/privilege-zones/use-cases/attack-path-management-journey Expand Privilege Zones beyond Tier Zero by connecting Attack Path Management to business priorities. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Privilege Zones help organizations expand Identity Attack Path Management beyond the default Tier Zero view. Tier Zero is the natural starting point because it contains the identities, systems, and permissions that can control the broader environment. Once a team begins reducing paths to Tier Zero, the next question is usually straightforward: what should we protect next? That answer varies by organization. For one customer, the next priority may be Tier One administrative systems. For another, it may be a clinical application, a payment environment, a production deployment repository, an endpoint management platform, or a business-unit-owned infrastructure boundary. Privilege Zones give teams a way to define those priorities and analyze attack paths into them. A zone can represent: * A traditional administrative tier * A critical application * A regulated environment * A business unit * A platform team * A source code boundary * An endpoint management boundary * A technology control plane Some zones become durable parts of an organization's operating model. Others support a specific campaign, audit response, or focused investigation. Teams do not need a perfect model before starting. Many organizations begin with known groups, object IDs, OUs, naming conventions, asset metadata, or simple Cypher queries. They use the results to validate assumptions, find unexpected control paths, and refine the zone over time. > [!NOTE] > > Treat Privilege Zones as living documents. Revisit and refine them as your environment changes, ownership becomes clearer, and your Attack Path Management program matures. ## When to use this approach * Your organization has started reducing Tier Zero attack paths * Your team wants to expand Attack Path Management to additional critical systems * You need to organize remediation around business priorities, ownership boundaries, or regulatory scope * You want a repeatable model for deciding what to protect next * You are adding OpenGraph-connected technologies and need to define which assets deserve focused analysis ## Example progression 1. Start with Tier Zero and reduce the highest-impact attack paths. 2. Define a Tier One [zone](/analyze-data/privilege-zones/zones) around administrative systems or critical infrastructure. 3. Define a [zone](/analyze-data/privilege-zones/zones) around a specific business-critical application or regulated system. 4. Use [labels](/analyze-data/privilege-zones/labels) or [zones](/analyze-data/privilege-zones/zones) to map ownership across business units or platform teams. 5. Add [OpenGraph-connected technologies](/opengraph/extensions/manage), such as GitHub, Jamf, Okta, or cloud platforms. 6. Use zones to understand inherited risk across identity systems, endpoint management platforms, source code systems, and cloud environments. ## Practical starting questions * What system would create the most business impact if compromised? * What systems are subject to regulatory, audit, or compliance scrutiny? * What administrative boundary do we need to validate after Tier Zero? * Which application owners need visibility into inherited identity risk? * Which business unit or platform team owns remediation? * Which source code repositories, workflows, or endpoint management systems can influence production? * What existing structure can help us build a first version of the zone? ## Starter Cypher queries These example Cypher queries help you identify candidate objects for zones and labels during discovery, trials, and early implementation. > [!WARNING] > > Review and tune these queries before using them as production Privilege Zone rules. ### Broad discovery by naming pattern ```cypher theme={null} MATCH (n:Base) WHERE toUpper(COALESCE(n.name, '')) CONTAINS 'ADMIN' OR toUpper(COALESCE(n.name, '')) CONTAINS 'PRIV' OR toUpper(COALESCE(n.name, '')) CONTAINS 'TIER1' OR toUpper(COALESCE(n.name, '')) CONTAINS 'T1' RETURN n LIMIT 1000 ``` ### Critical application keyword search ```cypher theme={null} // Replace APPNAME / APPLICATION-ALIAS with your critical application. MATCH (n) WHERE toUpper(coalesce(n.name, '')) CONTAINS 'APPNAME' OR toUpper(coalesce(n.name, '')) CONTAINS 'APPLICATION-ALIAS' RETURN n LIMIT 1000 ``` ## Key takeaway Privilege Zones give teams a repeatable way to decide what to protect after Tier Zero and to keep expanding Attack Path Management as the environment matures. # Extend a Traditional Tiering Model Source: https://bloodhound.specterops.io/analyze-data/privilege-zones/use-cases/extend-traditional-tiering-model Use Privilege Zones to test whether administrative tier boundaries hold up against real attack paths. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Many organizations begin with a traditional administrative tiering model. Tier Zero contains the systems and identities that control the environment. Tier One may contain servers, applications, or administrative systems that support critical operations. Tier Two may contain workstations, users, or broader operational assets. Privilege Zones help teams test whether that model holds up in the environment. ## Scenario A security team has already started reducing attack paths to Tier Zero. The team now wants to understand whether lower-privileged users, groups, or systems can control Tier One assets. The team creates a simple Tier One zone using known administrative groups, server lists, OUs, and a small number of hand-selected objects. The first version is intentionally practical. It gives the team enough structure to start analysis and review findings. Once the zone is created, BloodHound Enterprise analyzes attack paths into that zone. The team can then identify where lower-tier principals have unexpected control over higher-tier systems. ## What this can reveal * Help desk users with control over Tier One systems * Lower-tier administrators with rights that cross tier boundaries * Service accounts that can influence higher-tier assets * Groups that appear operational but have privileged reach * Legacy permissions that violate the intended administrative model ## Why this works The value comes from testing the tiering model against attack paths. A policy document may say that lower-tier users should not control Tier One systems. BloodHound Enterprise can show whether those paths exist. The first version of the zone can be simple. Smaller organizations may start with list-based rules and known objects. More advanced organizations may use Cypher queries, naming conventions, OUs, or other structural indicators. ## Suggested workflow 1. Identify the next administrative tier to model after Tier Zero. 2. Build a first version of the [zone](/analyze-data/privilege-zones/zones) using known groups, servers, OUs, or object IDs. 3. Run [analysis](/analyze-data/findings/analysis) and review [findings](/analyze-data/findings/attack-paths). 4. Validate whether each finding is expected. 5. Refine the zone as ownership and scope become clearer. 6. Use [remediation progress](/analyze-data/findings/posture) to show movement in the Attack Path Management journey. ## Starter Cypher queries These example Cypher queries help you identify candidate objects for zones and labels during discovery, trials, and early implementation. > [!WARNING] > > Review and tune these queries before using them as production Privilege Zone rules. ### Candidate Tier One administrative objects ```cypher theme={null} MATCH (n) WHERE toUpper(coalesce(n.name, '')) CONTAINS 'TIER1' OR toUpper(coalesce(n.name, '')) CONTAINS 'T1' OR toUpper(coalesce(n.name, '')) CONTAINS 'SERVER ADMIN' OR toUpper(coalesce(n.name, '')) CONTAINS 'INFRA ADMIN' OR toUpper(coalesce(n.name, '')) CONTAINS 'PLATFORM ADMIN' RETURN n LIMIT 1000 ``` ### Candidate help desk or support groups ```cypher theme={null} MATCH (n) WHERE toUpper(coalesce(n.name, '')) CONTAINS 'HELPDESK' OR toUpper(coalesce(n.name, '')) CONTAINS 'HELP DESK' OR toUpper(coalesce(n.name, '')) CONTAINS 'DESKTOP SUPPORT' OR toUpper(coalesce(n.name, '')) CONTAINS 'WORKSTATION ADMIN' RETURN n LIMIT 1000 ``` ### Direct relationships from lower-tier candidates to Tier One ```cypher theme={null} // Replace Tag_Tier_One with your Tier One Privilege Zone's tag label. MATCH p=(s)-[r]->(t:Tag_Tier_One) WHERE NOT (s:Tag_Tier_One) RETURN p LIMIT 1000 ``` ### Multi-hop attack paths to Tier One ```cypher theme={null} // Replace Tag_Tier_One with your Tier One Privilege Zone's tag label. MATCH p=(s)-[:AD_ATTACK_PATHS*1..]->(t:Tag_Tier_One) WHERE NOT (s:Tag_Tier_One) RETURN p LIMIT 1000 ``` ## Guidance Teams can start before they have perfect tiering documentation. A useful first version of a zone can generate enough visibility to begin productive conversations with infrastructure, IAM, and security teams. ## Key takeaway A traditional tiering model becomes actionable when the team can compare the intended model against attack paths in the environment. # Protect Critical Applications and Environments Source: https://bloodhound.specterops.io/analyze-data/privilege-zones/use-cases/protect-critical-app-or-regulated-environment Model critical applications and regulated environments as Privilege Zones for focused attack path analysis. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Some important systems do not fit cleanly into a traditional Tier Zero, Tier One, or Tier Two model. Many applications and environments matter because of the data they process, the business function they support, or the regulatory exposure they create. Examples include: * Clinical systems * Payment systems * Customer data platforms * Production control planes * Trading or settlement systems * Identity infrastructure for a specific business unit * Systems in scope for PCI, HIPAA, SOX, or other regulatory programs Privilege Zones can draw a fence around those assets and analyze attack paths into them. ## Scenario A healthcare organization wants to understand attack paths into a set of critical clinical application servers. These systems may not be Tier Zero in the traditional sense, but compromise would create patient care, regulatory, financial, and reputational impact. The team creates a Privilege Zone containing the application servers and supporting infrastructure. The first version may use known server lists, application owner input, OUs, or naming conventions. Once the zone is analyzed, BloodHound Enterprise identifies the users, groups, systems, and relationships that can create paths into that environment. ## What this can reveal * Broad server groups with access to application servers * Administrative users outside the expected support model * Legacy permissions inherited from prior domain or application structures * Misaligned ownership between application teams and infrastructure teams * Paths from ordinary users or lower-tier systems into regulated environments ## Why this works Critical application zones make Attack Path Management easier to connect to business priorities. The team can ask a specific question: who can reach this application and should they be able to? This approach is useful in complex environments where full tiering may take time. A critical application zone gives the team a practical starting point with clear business relevance. ## Suggested workflow 1. Select one critical application or regulated environment. 2. Identify the systems, groups, service accounts, and administrative roles that support it. 3. Create a [zone](/analyze-data/privilege-zones/zones) using known objects, OUs, naming conventions, or Cypher. 4. Review [attack paths](/analyze-data/findings/attack-paths) into the zone. 5. Validate findings with the application owner and infrastructure owner. 6. Remediate unexpected paths. 7. Keep the zone for ongoing monitoring or use the process to define the next critical application zone. ## Starter Cypher queries These example Cypher queries help you identify candidate objects for zones and labels during discovery, trials, and early implementation. > [!WARNING] > > Review and tune these queries before using them as production Privilege Zone rules. ### Healthcare or clinical system discovery ```cypher theme={null} MATCH (n) WHERE toUpper(coalesce(n.name, '')) CONTAINS 'EPIC' OR toUpper(coalesce(n.name, '')) CONTAINS 'EHR' OR toUpper(coalesce(n.name, '')) CONTAINS 'EMR' OR toUpper(coalesce(n.name, '')) CONTAINS 'CLINICAL' OR toUpper(coalesce(n.name, '')) CONTAINS 'PATIENT' RETURN n LIMIT 1000 ``` ### PCI or payment system discovery ```cypher theme={null} MATCH (n) WHERE toUpper(coalesce(n.name, '')) CONTAINS 'PCI' OR toUpper(coalesce(n.name, '')) CONTAINS 'CARD' OR toUpper(coalesce(n.name, '')) CONTAINS 'PAYMENT' OR toUpper(coalesce(n.name, '')) CONTAINS 'POS' OR toUpper(coalesce(n.name, '')) CONTAINS 'CDE' RETURN n LIMIT 1000 ``` ### Production system discovery ```cypher theme={null} MATCH (n) WHERE toUpper(coalesce(n.name, '')) CONTAINS 'PROD' OR toUpper(coalesce(n.name, '')) CONTAINS 'PRODUCTION' OR toUpper(coalesce(n.name, '')) CONTAINS 'PRD' RETURN n LIMIT 1000 ``` ### Paths into a critical application zone ```cypher theme={null} // Replace Tag_Critical_App with your application zone's tag label. MATCH p=(s)-[:AD_ATTACK_PATHS*1..]->(t:Tag_Critical_App) WHERE NOT (s:Tag_Critical_App) RETURN p LIMIT 1000 ``` ## Guidance Start with a system that has a clear business owner and clear consequences if compromised. Broad keyword searches are useful for discovery, but production rules should be reviewed with application owners so the zone remains credible. ## Key takeaway Privilege Zones help organizations apply Attack Path Management to the applications and regulated environments that carry the highest business impact. # Protect Critical GitHub Repositories Source: https://bloodhound.specterops.io/analyze-data/privilege-zones/use-cases/protect-critical-github-repos Model high-impact GitHub repositories, workflows, and deployment paths as protected Privilege Zone boundaries. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) In source code platforms, a critical asset may be a repository, workflow, deployment environment, secret, app installation, personal access token, or role that can influence production systems. GitHub is a strong example. Some repositories are sensitive because they contain important code. Others are sensitive because a commit, pull request, workflow, app installation, or token can trigger follow-on actions that affect downstream infrastructure. Privilege Zones can help teams isolate and analyze attack paths into high-impact GitHub assets. ## Scenario A software company uses GitHub Actions to build and deploy code into a cloud environment. Several repositories contain workflows that can deploy infrastructure, publish production artifacts, or assume cloud roles through OIDC federation. The security team creates a Privilege Zone around the repositories and GitHub objects that can influence production deployment. The zone may include: * Production application repositories * Infrastructure-as-code repositories * Repositories with workflows that deploy to production * Repositories with privileged GitHub Actions workflows * Repositories that publish production containers or packages * Repositories with access to cloud deployment secrets * Organization or repository secrets * GitHub environments tied to production deployment * GitHub teams or roles with administrative access * GitHub environments tied to production * Personal access tokens with broad write scope * Workflows that can assume cloud roles or access deployment credentials * Organization owner roles * All-repository admin roles * App installations scoped to all repositories with write permissions * Personal access tokens scoped to all repositories with write permissions The objective is to answer a simple question: who or what can influence code or workflows that can affect production? ## What this can reveal * Users or teams with write, maintain, or admin access to critical repositories * Repository administrators with broader access than intended * Workflows that can access secrets or deployment environments * GitHub Apps with write access to all repositories * Personal access tokens scoped broadly across the organization * Paths from identity providers into GitHub roles * GitHub permissions that can lead to cloud access * Repositories that function as indirect control points for production ## Why this works In GitHub, privilege is often contextual. A repository may be critical because it stores sensitive code, but it may also be critical because it can trigger a workflow, deploy infrastructure, publish an artifact, or assume a role in a cloud environment. That makes GitHub a strong candidate for Privilege Zones. The zone can define the repositories, workflows, teams, apps, and secrets that matter most, then BloodHound Enterprise can help identify attack paths that lead to them. ## Suggested workflow 1. Identify repositories that can affect production or critical infrastructure. 2. Identify workflows that deploy, publish, or assume cloud roles. 3. Identify secrets, environments, teams, and roles connected to those repositories. 4. Create a [zone](/analyze-data/privilege-zones/zones) around those GitHub objects. 5. Analyze who or what can control the zone. 6. Validate [findings](/analyze-data/findings/attack-paths) with application, platform, DevOps, and cloud owners. 7. Reduce unnecessary access and monitor the zone over time. ## Starter Cypher queries These example Cypher queries help you identify candidate objects for zones and labels during discovery, trials, and early implementation. > [!WARNING] > > Review and tune these queries before using them as production Privilege Zone rules. For queries covering owner roles, all-repository admin access, app installations, personal access tokens, and external identity mappings, see the GitHub extension's [Privilege Zone Rules](/opengraph/extensions/github/privilege-zone-rules) page. ### Production repository discovery ```cypher theme={null} MATCH (n:GH_Repository) WHERE toUpper(COALESCE(n.name, '')) CONTAINS 'PROD' OR toUpper(COALESCE(n.name, '')) CONTAINS 'PRODUCTION' OR toUpper(COALESCE(n.name, '')) CONTAINS 'PRD' RETURN n LIMIT 1000 ``` ### Infrastructure-as-code repository discovery ```cypher theme={null} MATCH (n:GH_Repository) WHERE toUpper(coalesce(n.name, '')) CONTAINS 'TERRAFORM' OR toUpper(coalesce(n.name, '')) CONTAINS 'TF' OR toUpper(coalesce(n.name, '')) CONTAINS 'IAC' OR toUpper(coalesce(n.name, '')) CONTAINS 'INFRA' OR toUpper(coalesce(n.name, '')) CONTAINS 'CLOUD' RETURN n LIMIT 1000 ``` ## Guidance GitHub zones should be defined around impact. A repository named production may be important. A repository with a workflow that can deploy to production may be even more important. Work with platform engineering, DevOps, application owners, and cloud teams to understand which repositories create downstream control. ## Key takeaway In OpenGraph-connected environments, critical assets may be repositories, workflows, secrets, app installations, tokens, or deployment relationships. Privilege Zones help teams define those assets and understand the attack paths that can influence them. # Protect Jamf Administration Source: https://bloodhound.specterops.io/analyze-data/privilege-zones/use-cases/protect-jamf-administration Model Jamf administration and sensitive managed Mac boundaries as Privilege Zones for focused analysis. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Endpoint management platforms can create powerful control relationships. In Jamf Pro environments, users, groups, scripts, API integrations, sites, and computers may influence managed macOS endpoints. Some endpoints may also be more sensitive than others because of who uses them, what data they access, or what administrative roles they support. Privilege Zones can help teams organize Jamf-related risk around high-impact administrators, scripts, integrations, sites, or managed device groups. ## Scenario An organization uses Jamf Pro to manage macOS endpoints across executive users, engineers, administrators, and general employees. The security team wants to understand whether lower-privileged Jamf users, groups, scripts, or integrations can influence sensitive endpoints or administrative workflows. The team creates a Privilege Zone around the most important Jamf objects. Depending on the organization, that zone may include: * Jamf administrators * High-impact Jamf groups * Scripts with privileged execution * API integrations * Executive or administrator device groups * Sites or policies tied to sensitive endpoints * Managed devices used by privileged users The objective is to understand which Jamf identities and relationships can influence sensitive managed endpoints. ## What this can reveal * Jamf users or groups with broader administrative reach than expected * Scripts or policies that can influence sensitive devices * API integrations with powerful permissions * Delegated administration paths that cross intended boundaries * Exposure from endpoint management into identity or application administration ## Why this works As organizations add Jamf data to BloodHound Enterprise, endpoint management becomes part of the attack path picture. Privilege may exist in the ability to manage devices, run scripts, modify policies, or influence endpoints used by privileged users. Privilege Zones can help security, endpoint, and infrastructure teams define which Jamf objects deserve closer analysis and ongoing monitoring. ## Suggested workflow 1. Identify the Jamf users, groups, scripts, integrations, and sites that matter most. 2. Identify sensitive managed device groups, such as administrator, developer, or executive endpoints. 3. Create a [zone](/analyze-data/privilege-zones/zones) around the high-impact Jamf objects. 4. Review [attack path](/analyze-data/findings/attack-paths) into the zone. 5. Validate findings with endpoint management and security teams. 6. Reduce unnecessary administrative reach. 7. Use the zone to support ongoing endpoint management governance. ## Starter Cypher queries These example Cypher queries help you identify candidate objects for zones and labels during discovery, trials, and early implementation. > [!WARNING] > > Review and tune these queries before using them as production Privilege Zone rules. ### Jamf tenant ```cypher theme={null} MATCH (n:jamf_Tenant) RETURN n LIMIT 1000 ``` ### Jamf Tier Zero principals ```cypher theme={null} MATCH (n) WHERE n.tier = 0 AND n.primarykind STARTS WITH 'jamf' RETURN n LIMIT 1000 ``` ### All Jamf computers ```cypher theme={null} MATCH (n:jamf_Computer) RETURN n LIMIT 1000 ``` ### All Jamf groups ```cypher theme={null} MATCH (n:jamf_Group) RETURN n LIMIT 1000 ``` ### Jamf API client immediate edges ```cypher theme={null} MATCH p=(s:jamf_ApiClient)-[]->(t) RETURN p LIMIT 1000 ``` ### Jamf account paths ```cypher theme={null} MATCH p=(s:jamf_Account)-[*1..4]->(t) RETURN p LIMIT 1000 ``` ### Jamf account to tenant edges ```cypher theme={null} MATCH p=(s:jamf_Account)-[]->(t:jamf_Tenant) RETURN p LIMIT 1000 ``` ### Jamf group edges to accounts ```cypher theme={null} MATCH p=(s:jamf_Group)-[]->(t:jamf_Account) RETURN p LIMIT 1000 ``` ### Tier One to Tier Zero Jamf paths ```cypher theme={null} MATCH p=(s:jamf)-[r*1..5]->(t:jamf) WHERE s.tier = 1 AND t.tier = 0 AND s.primarykind <> 'jamf_Tenant' AND s.primarykind <> 'jamf_Site' RETURN p LIMIT 1000 ``` ### Direct Tier One to Tier Zero Jamf edges ```cypher theme={null} MATCH p=(s)-[]->(t) WHERE s.tier = 1 AND t.tier = 0 AND s.primarykind STARTS WITH 'jamf' AND t.primarykind STARTS WITH 'jamf' RETURN p LIMIT 1000 ``` ### Jamf sensitive endpoint discovery ```cypher theme={null} MATCH (n:jamf_Computer) WHERE toUpper(coalesce(n.name, '')) CONTAINS 'EXEC' OR toUpper(coalesce(n.name, '')) CONTAINS 'ADMIN' OR toUpper(coalesce(n.name, '')) CONTAINS 'ENG' OR toUpper(coalesce(n.name, '')) CONTAINS 'DEVELOPER' OR toUpper(coalesce(n.name, '')) CONTAINS 'SECURITY' RETURN n LIMIT 1000 ``` ## Guidance Jamf zones should be developed with the endpoint management team. The security team may understand the risk, but the endpoint team usually understands which scripts, policies, integrations, and sites are operationally sensitive. ## Key takeaway Privilege Zones can extend Attack Path Management into endpoint administration by helping teams define and monitor the Jamf objects that create control over sensitive devices. # Run Remediation Campaigns Source: https://bloodhound.specterops.io/analyze-data/privilege-zones/use-cases/run-remediation-campaigns Use Privilege Zones to create bounded remediation campaigns with clear scope, ownership, and progress tracking. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Privilege Zones can support time-boxed remediation campaigns. A campaign zone is useful when a team needs to focus on a specific risk area, audit concern, executive priority, or application environment. The zone can be used to create focus, drive remediation, and measure progress. After the campaign, the team can decide whether to keep the zone for ongoing monitoring or move to the next priority. ## Scenario A security team receives an audit finding related to privileged access into a sensitive application environment. The organization does not yet have a complete enterprise tiering model, but it needs to show progress quickly. The team creates a Privilege Zone around the systems in scope for the finding. The zone is used to identify unexpected control paths, prioritize remediation, and report progress during the campaign. ## What this can reveal * Unexpected administrative paths into the scoped environment * Overly broad groups that need to be reduced * Service accounts that create hidden control paths * Ownership gaps between application, IAM, endpoint, and infrastructure teams * Progress over time as attack paths are removed ## Why this works A campaign zone gives teams a bounded problem to solve. It reduces the pressure to model the entire enterprise before taking action. It also creates a practical way to communicate progress to leadership, audit teams, or application owners. ## Suggested workflow 1. Define the campaign objective. 2. Select the assets in scope. 3. Create a [zone](/analyze-data/privilege-zones/zones) around those assets. 4. Review [findings](/analyze-data/findings/attack-paths) and identify the highest-value remediation actions. 5. Assign remediation owners. 6. Track [reduction](/analyze-data/findings/posture) in attack paths over the campaign period. 7. Decide whether the zone should remain permanent or be replaced by the next campaign zone. ## Example campaign objectives * Reduce attack paths into a payment environment * Validate access into a clinical application * Clean up administrative access to production infrastructure * Prepare for an audit or remediate audit findings * Reduce exposure before a major application migration * Validate segmentation after a restructuring or acquisition ## Starter Cypher queries These example Cypher queries help you identify candidate objects for zones and labels during discovery, trials, and early implementation. > [!WARNING] > > Review and tune these queries before using them as production Privilege Zone rules. ### Migration or acquisition campaign discovery ```cypher theme={null} MATCH (n) WHERE toUpper(coalesce(n.name, '')) CONTAINS 'LEGACY' OR toUpper(coalesce(n.name, '')) CONTAINS 'MIGRATION' OR toUpper(coalesce(n.name, '')) CONTAINS 'ACQUIRED' OR toUpper(coalesce(n.name, '')) CONTAINS 'OLD' RETURN n LIMIT 1000 ``` ### Audit or compliance campaign discovery ```cypher theme={null} MATCH (n) WHERE toUpper(coalesce(n.name, '')) CONTAINS 'SOX' OR toUpper(coalesce(n.name, '')) CONTAINS 'PCI' OR toUpper(coalesce(n.name, '')) CONTAINS 'HIPAA' OR toUpper(coalesce(n.name, '')) CONTAINS 'AUDIT' OR toUpper(coalesce(n.name, '')) CONTAINS 'COMPLIANCE' RETURN n LIMIT 1000 ``` ### Review immediate inbound relationships to campaign assets ```cypher theme={null} // Replace Tag_Campaign with your campaign zone's tag label. MATCH p=(s)-[r]->(t:Tag_Campaign) WHERE NOT (s:Tag_Campaign) RETURN p LIMIT 1000 ``` ### Review multi-hop paths into campaign assets ```cypher theme={null} // Replace Tag_Campaign with your campaign zone's tag label. MATCH p=(s)-[:AD_ATTACK_PATHS*1..]->(t:Tag_Campaign) WHERE NOT (s:Tag_Campaign) RETURN p LIMIT 1000 ``` ## Guidance Campaign zones work best when paired with clear ownership and a defined time horizon. The zone creates visibility, but remediation still depends on the right teams taking action. ## Key takeaway Privilege Zones can turn broad identity risk into a focused remediation campaign with clear scope, ownership, and measurable progress. # Zones Source: https://bloodhound.specterops.io/analyze-data/privilege-zones/zones Organize and categorize objects in your environment using Privilege Zones. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) Zones define hierarchical privilege levels in your environment based on a tiered administration model. The most common tiering model is [Microsoft's Enterprise Access Model](https://learn.microsoft.com/en-us/security/privileged-access-workstations/privileged-access-access-model). BloodHound uses zones to measure risk and detect violations. Each zone has a specific tier level (**Tier Zero** is the default and highest). > [!NOTE] > > BloodHound Enterprise customers can [create](/analyze-data/privilege-zones/zones) additional zones to match their organization's security model. However, analyzing them requires the **Privilege Zone Analysis** feature (available for purchase). For more information, contact your sales representative. The **Zones** tab provides different views depending on which edition of BloodHound you're using. The **Summary View** is available in BloodHound Enterprise only, while the **Details View** is available in both BloodHound Enterprise and BloodHound Community Edition. > [tab] Summary View > > The **Summary View** shows zone names and their hierarchy relative to other zones (the top zone is most critical), rule counts, and object counts. > > ![A view of the Zone Builder summary view](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/zones-summary-view.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=2066f34d235d9f6adffa845b3d75eaeb) > [tab] Details View > > The **Details View** displays all rules configured for the selected zone and the objects that they pull into the zone (organized by node type). Use the dropdown menus to filter the view by specific zones, identity providers, and services in your network environment. > > Select a rule or object to display more details in the right panel, including: > > * Rule definition and Cypher query > > * Object properties and relationships > > > [!NOTE] > > > > BloodHound displays objects for enabled rules only. To view objects related to a disabled rule, you must re-enable it. > > ![A view of the Zone Builder detail view](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/zones-detail-view.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=a7409068649bb28ad8d635dbb4c66327) ### Create a zone ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Creating a zone involves configuring the zone details and defining a rule. > [!WARNING] > > See [Rules](/analyze-data/privilege-zones/rules) for more detailed information about defining rules. The content in this section provides a high-level overview only. **1. Open the Zone Builder page** In the left menu, click **Privilege Zones** > **Zones** > **Create Zone**. **2. Configure initial zone details** Enter all relevant information about the zone: | Field | Required? | Description | | - | :-: | - | | Name | Yes | A unique name for the zone (e.g., Server Tier) | | Description | No | A brief description of the zone's purpose and scope (e.g., PCI assets) | | Enable Certification | No | An option to mandate [certification](/analyze-data/privilege-zones/certification) for all objects within this zone | | Enable Analysis | No | An option to include this zone in risk analysis and Attack Path Findings | | Apply Custom Glyph | No | An option to apply a custom glyph to visually distinguish objects within this zone on the **Explore** page | ![A view of the Zone Builder create zone page](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/create-zone.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=da79bd0e95d1b43d1d1d20444cfe2e36) **3. Define a rule** Click **Define Rule** to save your new Privilege Zone and continue on to define the objects to include in the zone. > [!WARNING] > > See [Rules](/analyze-data/privilege-zones/rules) for more detailed information about defining rules. The content in this section provides a high-level overview only. When defining a rule during the zone creation process, provide the following information: | Field | Required? | Description | | - | :-: | - | | Name | Yes | A unique name for the rule (e.g., PCI Assets) | | Description | No | A brief description of the rule's purpose and scope (e.g., PCI assets) | | Rule Type | Yes | The type of rule to use (e.g., Object ID or Cypher) | | Automatic Certification | No | An option to choose how BloodHound Enterprise [certifies](/analyze-data/privilege-zones/certification) new objects | ![A view of the Zone Builder define zone rule page](https://mintcdn.com/specterops/jq53of6QZwi2e41u/images/privzones/define-zone-rule.png?fit=max\&auto=format\&n=jq53of6QZwi2e41u\&q=85\&s=a605fa9708498b11afca88a113f7d3d9) **4. Complete zone creation** Click **Save** to finish creating the zone. ### Edit a zone Editing options depend on which edition of BloodHound you're using. In BloodHound Enterprise, you can edit all zone properties. In BloodHound Community Edition, you can edit the default **Tier Zero** zone description. To edit a zone, follow these steps: **1. Select a zone** 1. In the left menu, click **Privilege Zones**. 2. By default, the **Tier Zero** zone is pre-selected. To edit a different zone in BloodHound Enterprise, select the zone you want to edit. > [!NOTE] > > **Tier Zero** is the only available zone for BloodHound Community Edition. ![A view of the Zone Builder edit zone page in BloodHound Community Edition](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/edit-zone.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=e1e7069cb884e12bd8425041f88e142f) 3. Click **Edit Zone**. **2. Edit the zone** Modify one of the available fields. For example, you can modify the zone's name, description, [certification](/analyze-data/privilege-zones/certification) and analysis settings, and custom glyph. > [!NOTE] > > In BloodHound Community Edition, you can edit the default **Tier Zero** zone description only. You can also change the zone's hierarchical position by using the (vertical grip control) in the **Zone Order** panel to reorder it. Zone order is defined by privilege level, with the highest-privileged zone at the top. ![A view of the Zone Builder zone reorder control](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/reorder-zone.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=19055bd4d3850aba75ec15139e0495ac) **3. Save your changes** Click **Save Edits** to apply your changes. ### Delete a zone ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) You cannot delete the default **Tier Zero** zone, but you can edit its properties. > [!WARNING] > > Deleting a zone is irreversible. To delete an existing zone, follow these steps: **1. Select a zone** Navigate to the **Zones** tab, select the zone you want to delete, and click **Edit Zone**. **2. Delete the zone** To delete the zone: 1. Click **Delete Zone** at the top of the page. 2. Confirm your action in the dialog. ![A view of the Zone Builder confirm zone delete dialog](https://mintcdn.com/specterops/P76QMmb9gkQIWH8z/images/privzones/confirm-zone-delete.png?fit=max\&auto=format\&n=P76QMmb9gkQIWH8z\&q=85\&s=3050c94f15ef41f576d7b302688ba89f) 3. Click **Confirm** to delete the zone. > [!NOTE] > > Zone deletion is not available in BloodHound Community Edition. # AzureHound Data Collection and Permissions Source: https://bloodhound.specterops.io/collect-data/azurehound-data-permissions Learn how AzureHound collects data and the permissions required. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) AzureHound CE and AzureHound Enterprise collect the same data by utilizing the [AzureHound CE](https://github.com/SpecterOps/AzureHound) collection code, maintained by the BloodHound Enterprise Engineering team. AzureHound collects two categories of data: * **Entra ID** — users, groups, applications, service principals, devices, and role assignments via the [Microsoft Graph API](https://learn.microsoft.com/en-us/graph/overview) * **Azure Resource Manager (ARM)** — subscriptions, management groups, resource groups, VMs, key vaults, and other Azure resources via the [ARM REST API](https://learn.microsoft.com/en-us/rest/api/azure/) This article details the least-privilege permissions required for each data type. > [!WARNING] > > The AzureHound service principal does not require the `Directory.Read.All` Microsoft Graph permission, the `Reader` Azure role on all subscriptions, and the `Directory Readers` Entra ID role. These built-in permissions and roles grant more access than AzureHound needs. You can follow the least-privilege guidance below instead. ## Entra ID Information about Entra ID objects and their relationships is necessary to identify attack paths within your Azure tenant. This information includes: * Tenant/organization information. * Users and their properties (account status, sign-in activity, on-premises sync status). * Groups, group memberships, and group owners. * Applications, application owners, and federated identity credentials. * Service principals, service principal owners, and app role assignments. * Devices and device registered owners. * Entra ID role definitions, active role assignments, and PIM-eligible role assignments. * Role management policy assignments. **Collection Method:** AzureHound collects this information via GET requests to the [Microsoft Graph API](https://learn.microsoft.com/en-us/graph/overview) (`https://graph.microsoft.com`), using both `v1.0` and `beta` endpoints. **Default Permissions:** A service principal with no explicit Microsoft Graph application permissions cannot read any Entra ID objects. Application permissions must be explicitly granted on the app registration and admin-consented before the service principal can access directory data. The default `User.Read` delegated permission granted to all new app registrations does not apply to AzureHound and can be removed. **Least-Privileged Option:** Grant the following granular Microsoft Graph **application** permissions: | Permission | Purpose | | - | - | | `User.Read.All` | Enumerate users and user properties | | `GroupMember.Read.All` | Enumerate groups, group owners, and group members | | `Application.Read.All` | Enumerate applications, app owners, federated identity credentials, service principals, service principal owners, and app role assignments | | `Device.Read.All` | Enumerate devices and device registered owners | | `Organization.Read.All` | Read tenant/organization information | | `RoleManagement.Read.Directory` | Enumerate Entra ID role definitions, role assignments, PIM eligible role assignments, and role management policy assignments | | `AdministrativeUnit.Read.All` | Populate Administrative Unit properties on AU-scoped role assignments. Collected by AzureHound, not processed by BloodHound yet. | | `AuditLog.Read.All` | (Optional) Collect `signInActivity` (last sign-in timestamps) on user objects. AzureHound gracefully degrades if this permission is missing. Requires a Microsoft Entra ID P1 or P2 license. | All permissions must be granted as **application** permissions (not delegated) and require admin consent. The `Directory Readers` Entra ID role is **not required** when using application-based authentication, as access is controlled entirely by Graph application permissions. Granting broad permissions (`Directory.Read.All`, `RoleManagement.Read.All`) instead of their granular equivalents can automatically cover any new permissions AzureHound requires in the future — for example, if AzureHound adds support for Defender role management, `RoleManagement.Read.All` will include that scope. The trade-off is between least-privilege and least-maintenance. The hierarchy below shows which granular permissions are covered by a broader one (✓ = least-privilege permission from the table above): * `Directory.Read.All` * `User.Read.All` ✓ * `Group.Read.All` * `GroupMember.Read.All` ✓ * `Application.Read.All` ✓ * `Device.Read.All` ✓ * `Organization.Read.All` ✓ * `AdministrativeUnit.Read.All` ✓ * `RoleManagement.Read.All` * `RoleManagement.Read.Directory` ✓ * `AuditLog.Read.All` ✓ ## Azure Resource Manager Information about Azure resources and their RBAC role assignments is necessary to identify attack paths that cross from Entra ID into Azure infrastructure. This information includes: * Subscriptions and tenants. * Management groups and their hierarchy (descendants). * Resource groups. * Virtual machines and VM scale sets. * Key vaults and key vault access policies. * Web apps and function apps. * Automation accounts. * Logic apps. * Container registries. * Managed clusters (AKS). * RBAC role assignments at every resource scope (management group, subscription, resource group, and individual resources). **Collection Method:** AzureHound collects this information via GET requests to the [ARM REST API](https://learn.microsoft.com/en-us/rest/api/azure/) (`https://management.azure.com`). **Default Permissions:** Azure RBAC is deny-by-default. A service principal with no explicit role assignments cannot read any Azure resources. All resource reads (resource groups, VMs, key vaults, role assignments, etc.) require an explicit RBAC role assignment. **Least-Privileged Option:** Create a custom Azure RBAC role with only the specific actions AzureHound requires, and assign it at the **Tenant Root Management Group** so that all actions propagate to every scope where AzureHound collects — management groups, subscriptions, resource groups, and individual resources. If assigned at a lower scope (e.g., a single subscription), AzureHound will not be able to read resources outside that scope and no error will be logged as the resources are invisible to the service principal. For step-by-step instructions on creating and assigning this as a custom role — either manually in the Azure portal or via script, see [Create and assign required access roles](/install-data-collector/install-azurehound/azure-configuration#create-and-assign-required-access-roles). Replace `` in the JSON definition with your [Tenant Root Management Group ID](https://learn.microsoft.com/en-us/azure/governance/management-groups/overview#root-management-group-for-each-directory) (this is your Entra ID tenant ID). Download [azurehound-reader-role.json](/assets/azurehound-reader-role.json) > [!NOTE] > > Key vault access policies are extracted from the vault properties returned by `Microsoft.KeyVault/vaults/read` — this is a management plane operation only. AzureHound does not access the Key Vault data plane and cannot read secrets, keys, or certificates. It only reads vault metadata to determine *who has access* to the vault, not the vault contents themselves. # AzureHound Community Edition Source: https://bloodhound.specterops.io/collect-data/ce-collection/azurehound ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) AzureHound Community Edition is a Go binary that collects data from Entra ID (formerly known as AzureAD) and AzureRM via the Microsoft Graph and Azure REST APIs. It does not use any external dependencies and will run on any operating system. AzureHound CE can be obtained in a few ways: * From the BloodHound CE interface as a pre-compiled binary * ⚙️ → **Download Collectors**, and click the button **Download AzureHound** * From the [AzureHound releases](https://github.com/SpecterOps/AzureHound/releases/latest) as precompiled binaries for your OS/arch * Build it from source with the code on the [AzureHound repository](https://github.com/SpecterOps/AzureHound) 1. Clone the repository and \`cd\` into the directory 2. Run `go build .` 3. When built, you will have a binary called \`azurehound\` in the directory ## Collecting Data with AzureHound AzureHound supports several authentication flows for collecting information from Azure. You can supply a username/password combo, a JWT, a refresh token, a service principal secret, or service principal certificate. You can combine these various authentication methods with several collection scoping options. For example, to authenticate with a username/password and list all groups in a tenant: ```bash theme={null} ./azurehound -u "MattNelson@contoso.onmicrosoft.com" -p "MyVeryStrongPassword" list groups --tenant "contoso.onmicrosoft.com" ``` AzureHound will authenticate as that user and print all groups in the “Contoso” tenant. Or, you may want to supply a JWT and collect all users from the tenant instead. You do not need to supply a username or password when supplying a JWT: ```bash theme={null} ./azurehound -j "ey..." list users --tenant "contoso.onmicrosoft.com" ``` When collecting data for import into BloodHound, you must use the -o switch to instruct AzureHound to output to a file. For example, to list all available data in both Entra ID and AzureRM, you can do this: ```bash theme={null} ./azurehound -u "MattNelson@contoso.onmicrosoft.com" -p "MyVeryStrongPassword" list --tenant "contoso.onmicrosoft.com" -o output.json ``` ## Dealing with Multi-Factor Auth and Conditional Access Policies If a user has MFA or CAP restrictions applied to them, you will not be able to authenticate with just a username and password with AzureHound. In this situation, you can acquire a refresh token for the user and supply the refresh token to AzureHound. The most straight-forward way to accomplish this is to use the device code flow. In this example I will show you how to perform this flow using PowerShell, but this example can be very easily ported to any language, as we are simply making calls to Azure APIs. Open a PowerShell window on any system and paste the following: ```powershell theme={null} $body = @{ "client_id" = "1950a258-227b-4e31-a9cf-717495945fc2" "resource" = "https://graph.microsoft.com" } $UserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" $Headers=@{} $Headers["User-Agent"] = $UserAgent $authResponse = Invoke-RestMethod ` -UseBasicParsing ` -Method Post ` -Uri "https://login.microsoftonline.com/common/oauth2/devicecode?api-version=1.0" ` -Headers $Headers ` -Body $body $authResponse ``` The output will contain a \`user_code\` and \`device_code\`. Now, open a browser where your Entra ID user either already logged on or can log on to Azure. In this browser, navigate to [https://microsoft.com/devicelogin](https://microsoft.com/devicelogin) Enter the code you generated from the above PowerShell script. Follow the steps in the browser to authenticate as the Entra ID user and approve the device code flow request. When done, the browser page should display a message similar to “You have signed in to the Microsoft Azure PowerShell application on your device. You may now close this window.” Now go back to your original PowerShell window and paste this: ```powershell theme={null} $body=@{ "client_id" = "1950a258-227b-4e31-a9cf-717495945fc2" "grant_type" = "urn:ietf:params:oauth:grant-type:device_code" "code" = $authResponse.device_code } $Tokens = Invoke-RestMethod ` -UseBasicParsing ` -Method Post ` -Uri "https://login.microsoftonline.com/Common/oauth2/token?api-version=1.0" ` -Headers $Headers ` -Body $body $Tokens ``` The output will include several tokens including a \`refresh_token\`. It will start with characters similar to “0.ARwA6Wg…”. Now you are ready to run AzureHound! Take the refresh token and supply it to AzureHound using the `-r` switch: ```bash theme={null} ./azurehound -r "0.ARwA6Wg..." list --tenant "contoso.onmicrosoft.com" -o output.json ``` This will attempt to list all possible data from that particular tenant, but you can ALSO use that same refresh token to target any other tenant your user has access to! # AzureHound Community Edition Flags Source: https://bloodhound.specterops.io/collect-data/ce-collection/azurehound-flags ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) AzureHound Community Edition has several optional flags that let you control scan scope, performance, output, and other behaviors. ## Enumeration Commands and Options The `list` command collects all supported Entra ID and Azure Resource Manager data. Add a collection option directly after `list` to limit the scope. For example, use `azurehound list az-ad` to collect all supported Entra ID data and `azurehound list apps` to collect only application registrations within Entra ID. Run `azurehound list -h` to see all available collection commands. The following tree logically groups every collection option by resource and abuse type. This grouping does not mean an aggregate command emits every option shown beneath it. All options are direct children of `list`; for example, run `azurehound list apps`, not `azurehound list az-ad apps`. ```text expandable theme={null} list # Collects both Entra ID and Azure Resource Manager data ├── az-ad # Collects all supported Entra ID data │ ├── apps # Collects application registrations │ │ ├── app-owners # Collects explicitly assigned owners of application registrations │ │ └── appfics # Collects federated identity credentials for application registrations │ ├── devices # Collects devices │ ├── groups # Collects security-enabled groups │ │ ├── group-members # Collects group memberships │ │ └── group-owners # Collects explicitly assigned owners of groups │ ├── roles # Collects Entra ID directory role definitions │ │ └── role-assignments # Collects Entra ID directory role assignments │ ├── service-principals # Collects service principals │ │ ├── app-role-assignments # Collects principals assigned application roles exposed by service principals │ │ └── service-principal-owners # Collects explicitly assigned owners of service principals │ ├── tenants # Collects the target tenant and other accessible tenants │ ├── unified-role-assignment-policies # Collects tenant-wide Entra PIM directory role policy assignments and activation requirements │ ├── unified-role-eligibility-schedule-instances # Collects Entra PIM directory role eligibility instances │ └── users # Collects users, including guest users in the target tenant └── az-rm # Runs the aggregate Azure Resource Manager collection ├── management-groups # Collects management groups │ ├── management-group-descendants # Collects descendant management groups and subscriptions │ └── management-group-role-assignments # Collects role assignments at management group scope │ ├── management-group-contributors # Collects principals with the Contributor role on management groups │ ├── management-group-owners # Collects principals with the Owner role on management groups │ └── management-group-user-access-admins # Collects principals with the User Access Administrator role on management groups └── subscriptions # Collects subscriptions ├── subscription-role-assignments # Collects role assignments at subscription scope │ ├── subscription-contributors # Collects principals with the Contributor role on subscriptions │ ├── subscription-owners # Collects principals with the Owner role on subscriptions │ └── subscription-user-access-admins # Collects principals with the User Access Administrator role on subscriptions ├── resource-groups # Collects resource groups │ └── resource-group-role-assignments # Collects role assignments that apply to resource groups │ ├── resource-group-contributors # Collects principals with the Contributor role on resource groups │ ├── resource-group-owners # Collects principals with the Owner role on resource groups │ └── resource-group-user-access-admins # Collects principals with the User Access Administrator role on resource groups ├── automation-accounts # Collects Automation accounts │ └── automation-account-role-assignments # Collects role assignments that apply to Automation accounts ├── container-registries # Collects container registries │ └── container-registry-role-assignments # Collects role assignments that apply to container registries ├── function-apps # Collects function apps │ └── function-app-role-assignments # Collects role assignments that apply to function apps ├── key-vaults # Collects key vaults │ ├── key-vault-access-policies # Collects legacy access policies for key vaults │ └── key-vault-role-assignments # Collects role assignments that apply to key vaults │ ├── key-vault-contributors # Collects principals with the Contributor role on key vaults │ ├── key-vault-kvcontributors # Collects principals with the Key Vault Contributor role on key vaults │ ├── key-vault-owners # Collects principals with the Owner role on key vaults │ └── key-vault-user-access-admins # Collects principals with the User Access Administrator role on key vaults ├── logic-apps # Collects logic apps │ └── logic-app-role-assignments # Collects role assignments that apply to logic apps ├── managed-clusters # Collects Azure Kubernetes Service managed clusters │ └── managed-cluster-role-assignments # Collects role assignments that apply to managed clusters ├── storage-accounts # Collects storage accounts │ ├── storage-account-role-assignments # Collects role assignments that apply to storage accounts │ └── storage-containers # Collects blob containers in storage accounts ├── virtual-machines # Collects virtual machines │ └── virtual-machine-role-assignments # Collects role assignments that apply to virtual machines │ ├── virtual-machine-admin-logins # Collects principals with the Virtual Machine Administrator Login role │ ├── virtual-machine-avere-contributors # Collects principals with the Avere Contributor role on virtual machines │ ├── virtual-machine-contributors # Collects principals with the Contributor role on virtual machines │ ├── virtual-machine-owners # Collects principals with the Owner role on virtual machines │ ├── virtual-machine-user-access-admins # Collects principals with the User Access Administrator role on virtual machines │ └── virtual-machine-vmcontributors # Collects principals with the Virtual Machine Contributor role ├── vm-scale-sets # Collects virtual machine scale sets │ └── vm-scale-set-role-assignments # Collects role assignments that apply to virtual machine scale sets └── web-apps # Collects web apps └── web-app-role-assignments # Collects role assignments that apply to web apps ``` ## Authentication Flags AzureHound supports several authentication options. You can control how AzureHound authenticates by using command-line flags or the configuration file. Some flags should always be used together and are presented here in the context of their authentication use cases. > [!NOTE] > > For authentication flags, AzureHound reads file contents only from paths passed to `--cert` and `--key`. Every other authentication flag takes a literal value and does not interpret that value as a file path. ### Authenticating with Username and Password * `-u` or `--username` — The Entra ID user's user principal name (UPN), in `username@domain.com` format. * `-p` or `--password` — The user's clear-text password value. * `-t` or `--tenant` — The directory tenant value, in GUID or friendly-name format. Example: ```bash theme={null} ./azurehound -u "MattNelson@contoso.onmicrosoft.com" -p "MyVerySecurePassword123" --tenant "contoso.onmicrosoft.com" list ``` You can omit the password from the command line, and AzureHound will interactively prompt you for it instead. ### Authenticating with Service Principal Secret * `-a` or `--app` — The application (client) ID value assigned when the app was registered. * `-s` or `--secret` — The client secret value generated for the app registration. * `-t` or `--tenant` — The directory tenant value, in GUID or friendly-name format. Example: ```bash theme={null} ./azurehound -a "6b5adee8-0d36-45b6-b393-8f29ae8a8cc8" -s "MyVerySecureClientSecret123" --tenant "contoso.onmicrosoft.com" list ``` ### Authenticating with Service Principal Certificate * `-a` or `--app` — The application (client) ID value assigned when the app was registered. * `--cert` — The path to the certificate uploaded for the app registration, in PEM format. AzureHound reads the certificate from this file. * `-k` or `--key` — The path to the certificate's private key file, in PEM format. AzureHound reads the private key from this file. * `--keypass` (optional) — The literal passphrase value to use if the private key is encrypted. * `-t` or `--tenant` — The directory tenant value, in GUID or friendly-name format. Example: ```bash theme={null} ./azurehound -a "6b5adee8-0d36-45b6-b393-8f29ae8a8cc8" --cert ./certificate.pem --key ./key.pem --tenant "contoso.onmicrosoft.com" list ``` ### Authenticating with Azure Managed Identity * `--managed-identity` — Use Azure Managed Identity to authenticate. Use this when running AzureHound on an Azure resource, such as a virtual machine or App Service, with a managed identity assigned. * `--managed-identity-client-id` (optional) — The client ID value of a user-assigned managed identity. If not provided, AzureHound uses the system-assigned identity. * `-t` or `--tenant` — The directory tenant value, in GUID or friendly-name format. Example (system-assigned): ```bash theme={null} ./azurehound --managed-identity --tenant "contoso.onmicrosoft.com" list ``` Example (user-assigned): ```bash theme={null} ./azurehound --managed-identity --managed-identity-client-id "6b5adee8-0d36-45b6-b393-8f29ae8a8cc8" --tenant "contoso.onmicrosoft.com" list ``` ### Authenticating with a JWT * `-j` or `--jwt` — The literal value of a Microsoft Graph or Azure Resource Manager scoped JWT. Example: ```bash theme={null} ./azurehound -j "ey..." list az-ad ``` ### Authenticating with a Refresh Token * `-r` or `--refresh-token` — The literal refresh token value. AzureHound exchanges it for an appropriately scoped JWT when accessing the Microsoft Graph and Azure Resource Manager APIs. * `-t` or `--tenant` — The directory tenant value, in GUID or friendly-name format. Example: ```bash theme={null} ./azurehound -r "0.ARwA6Wg..." --tenant "contoso.onmicrosoft.com" list ``` ## Additional Scoping and Output Flags * `-b` - Filter by one or more subscription IDs. AzureHound will automatically dedupe this list for you. * `-m` - Filter by one or more management group IDs. AzureHound will automatically dedupe all descendant management groups and subscriptions for you. * `-o` or `--output` - Instructs AzureHound to write its output to a specified file name. Accepts either a bare filename (`azurehound.json`, written to the current working directory) or an absolute path (`~/azurehound.json`). * `--log-file` - Write logs to the specified file. Accepts either a bare filename (`log.txt`, written to the current working directory) or an absolute path (`~/azurehound.log`). * `--json` - Emit logs as structured JSON instead of the default line-based format. Requires `--log-file` to be set. * `-v` or `--verbosity` - AzureHound verbosity level (defaults to 0), a higher value gives more verbosity \[Min: -1, Max: 2] * `--version` - Print the AzureHound version and exit. ## Custom User-Agent `-U` or `--user-agent` - Set a custom User-Agent header for all HTTP requests. This can be useful for evasion purposes or for debugging and identification. If not specified, AzureHound uses the default User-Agent value. Example: ```bash theme={null} ./azurehound list --tenant "contoso.onmicrosoft.com" -u "MattNelson@contoso.onmicrosoft.com" -p "MyVerySecurePassword123" --user-agent "MyCustomAgent/1.0" ``` # Create a gMSA for Use With SharpHound Community Edition Source: https://bloodhound.specterops.io/collect-data/ce-collection/create-gmsa-community-edition ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) This page describes how to configure and run the SharpHound Community Edition collection tool using an Active Directory gMSA. ## Overview of gMSAs Group Managed Service Accounts (gMSA) are managed domain accounts that provide automatic password management, simplified service principal name (SPN) management, and the ability to delegate the management to other objects. Detailed software requirements from Microsoft are available [here](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/hh831782\(v=ws.11\)#software-requirements). Microsoft gMSA documentation is available [here](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/hh831782\(v=ws.11\)). ## Create a gMSA account To create a gMSA account, start by preparing the domain. 1. Log into a domain controller within the domain you want to create a gMSA. 2. To validate whether the domain has a KDS Root Key configured, run: ``` Get-KdsRootKey ``` If there's no result returned, the KDS Root Key has not been configured in the domain. Continue on to step 3. If there is a result returned, the KDS Root Key has already been configured in the domain. Skip step 3 and move on to [Create the gMSA and password read group](#create-the-gmsa-and-password-read-group). ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-88.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=336e25c181b45885e07bbdb6bbbbbaf1) 3. Create the KDS Root Key. For a production environment, run: ``` Add-KdsRootKey -EffectiveImmediately ``` ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-89.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=f62b4eb3f4f7ef59238528ea0555bd50) For a test environment, make the key available for immediate use by running: ``` Add-KdsRootKey -EffectiveTime ((Get-Date).AddHours(-10)) ``` ## Create the gMSA and password read group Perform these steps from/against a writeable Domain Controller. 1. Create a gMSA password read group for computers that should have access to the gMSA password. Browse to the desired location in Users and Computers and create the group. Alternatively, use this template to create the group using PowerShell: ```json theme={null} $gmsaName = "t0_gMSA_SHS" # Name of the gMSA $pwdReadOUDN = "<DISGINGUISHED_NAME>" # Distinguished Name of OU to create the password read group in New-ADGroup ` -Name "$($gmsaName)_pwdRead" ` -GroupScope Global ` -GroupCategory Security ` -Path $pwdReadOUDN ` -Description "This group grants the rights to retrieve the password of the BloodHound data collector (SharpHound) gMSA '$gmsaName'." ` -PassThru ``` ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-90.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=bf723d27dd1d121147ef90d42e705cb0) 2. Add the SharpHound Community Edition server that performs the Sharphound collections as a member of the gMSA password read group. This allows it to access the password of the gMSA and run the service. Add the computer to the group in Users and Computers. Alternatively, use this template to add group membership using PowerShell: ```json theme={null} $gmsaName = "t0_gMSA_SHS" # Name of the gMSA $shServerDN = "<DISGINGUISHED_NAME>" # Distinguished Name of the SharpHound Enterprise server Add-ADGroupMember ` -Identity "$($gmsaName)_pwdRead" ` -Members $shServerDN ` -PassThru ``` ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-91.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=7d534c83d27dfbd4b4808c22acd2a851) When viewing the changes on a Windows server with the GUI enabled, you can see the OUs and the t0_gMSA_SHS_pwdRead group you created. 3. Create the gMSA and allow the password read group to retrieve its password. On a Domain Controller, use this template to create the gMSA and set the retrieve right using PowerShell: ```json theme={null} $gmsaName = "t0_gMSA_SHS" # Name of the gMSA $gmsaOUDN = "<DISGINGUISHED_NAME>" # Distinguished Name of OU to create the gMSA in New-ADServiceAccount -Name $gmsaName ` -Description "SharpHound service account for BloodHound" ` -DNSHostName "$($gmsaName).$((Get-ADDomain).DNSRoot)" ` -ManagedPasswordIntervalInDays 32 ` -PrincipalsAllowedToRetrieveManagedPassword "$($gmsaName)_pwdRead" ` -Enabled $True ` -AccountNotDelegated $True ` -KerberosEncryptionType AES128,AES256 ` -Path $gmsaOUDN ` -PassThru ``` > [!TIP] > > If you receive the error `"_New-ADServiceAccount : Key does not exist_"`, try again in 10 hours. This allows all Domain Controllers to converge AD replication of the KDS root key. ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-92.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=2b19562951385fa3074a378fbe6a0c97) ## Prepare the SharpHound Community Edition server 1. Restart the SharpHound Enterprise server so that the server's membership of the \`pwdRead\` group takes effect. 2. Grant the gMSA the "Log on as a service" User Rights Assignment on the SharpHound Community Edition server. This can be done through \`secpol.msc\` or policy deployment methods like a GPO. 3. (Optional) Test that the SharpHound Community Edition server can retrieve the gMSA password. See [Test the gMSA](#test-the-gmsa). ## Test the gMSA Optionally test the gMSA server to make sure that the gMSA is working. 1. Check the status of the RSAT PowerShell module. On the SharpHound Enterprise server, open a PowerShell as an Administrator and run: ```json theme={null} Get-WindowsCapability -Name RSAT* ``` ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-93.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=ee24689c085fb0f6ac1a68e892d78373) If the Install State shows "Installed", skip to step 2, otherwise run: ``` Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online ``` ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-94.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=de2a83b4a483e0c80d32cfe4c2c25004) 2. In the elevated PowerShell, test that the SharpHound server can retrieve the gMSA password by running: ```json theme={null} $gmsaName = "t0_gMSA_SHS" # Name of the gMSA Test-ADServiceAccount -Identity $gmsaName ``` ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-95.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=4ca5d7fe1413654e9d7a08b4f8f84ce0) The test is successful if the command responds with `True`. ## Configure User Rights As SharpHound is launched with a PowerShell script instead of running as a service, you need to grant the gMSA account the **Log on as a batch job** User Right instead of the **Log on as Service** User Right. Do this with the Local Security Policy or Group Policy. ### Configure user permissions The Active Directory details collected by SharpHound depend on the permissions that the user running SharpHound has within the Domain. A regular, non-privileged user can run SharpHound and collect a significant amount of information from Active Directory, but some local system data requires additional permissions on the in-scope computers. See [SharpHound Data and Permissions](/collect-data/sharphound-data-permissions) for an overview. Grant collection permissions directly to the SharpHound gMSA account. There are two recommended paths: * **Method 1**: Explicitly make the SharpHound gMSA account a member of the local `Administrators` group on in-scope computers. * **Method 2**: Grant the SharpHound gMSA account the least-privilege permission set described in [Least-Privileged Collection](/collect-data/enterprise-collection/least-privileged-collection). > [!WARNING] > > The SharpHound collection service account does not require `Domain Admin` membership. `Domain Admins` receives local administrator access on domain-joined computers by default, but that is implicit access and the `Domain Admins` membership gives many other unnecessary permissions. Use explicit local administrator assignment or least-privilege delegation instead. #### Implement gMSA account protections After granting collection permissions, consider additional protections for the gMSA account. We highly recommend membership in the `Protected Users` group. See [SharpHound Enterprise Service Hardening](/manage-bloodhound/securing-bloodhound-and-collectors/sharphound-hardening) to learn about protections you can implement to prevent the SharpHound gMSA account from being compromised and leveraged by an attacker. ## Create a SharpHound PowerShell script to run as a scheduled task Create a PowerShell script to run SharpHound with a scheduled task. ### Create a script To create the script on the server where the scheduled task should run: 1. Create these three directories: * `C:\Program Files\SharpHound` * `C:\Program Files\SharpHound\Results`, and grant the gMSA service account Modify permissions on files within. * `C:\Program Files\SharpHound\Logs`, and grant the gMSA service account Modify permissions on files within. Run the code block below, or create the directories and ACLs manually. The code block creates `C:\Program Files\SharpHound` implicitly as a parent of the children. ```powershell theme={null} $account = "$($env:USERDOMAIN)\t0_gMSA_SHS$" $paths = @( "C:\Program Files\SharpHound\Results", "C:\Program Files\SharpHound\Logs" ) foreach ($path in $paths) { New-Item $path -ItemType Directory -Force $acl = Get-Acl -Path $path $rule = New-Object System.Security.AccessControl.FileSystemAccessRule( $account, [System.Security.AccessControl.FileSystemRights]::Modify, [System.Security.AccessControl.InheritanceFlags]"ContainerInherit,ObjectInherit", [System.Security.AccessControl.PropagationFlags]::None, [System.Security.AccessControl.AccessControlType]::Allow ) $acl.AddAccessRule($rule) Set-Acl -Path $path -AclObject $acl } ``` 2. Copy the SharpHound CE executable to the `C:\Program Files\SharpHound` directory. > [!TIP] > > The SharpHound CE executable may need to be allowlisted or transferred as a password-protected zip file so that Microsoft Defender doesn't block it during the file transfer. 3. Create the PowerShell script `C:\Program Files\SharpHound\SharpHound_Collection.ps1` with the contents from the code block below. The PowerShell script contains: * The relative path to the SharpHound executable * The command line arguments that you want to pass to SharpHound * Redirection of the console output to a log file * Deletion of results that are older than 2 months ```powershell theme={null} $Results = ".\Results" $Logs = ".\Logs" $FileDateStamp = Get-Date -Format FileDateTime & ".\SharpHound.exe" --collectionmethods all --outputdirectory $Results *> "$Logs\$FileDateStamp.log" #Delete results older than 2 months Get-ChildItem $Results -Recurse -Force -ea 0 | ? {!$_.PsIsContainer -and $_.LastWriteTime -lt (Get-Date).AddDays(-60)} | ForEach-Object { $_ | Remove-Item -Force $_.FullName | Out-File "$Logs\$FileDateStamp-deletedlog.txt" } ``` The resulting directory structure should resemble: ![](https://mintcdn.com/specterops/6OAzJSjbqwHhehou/assets/sharphound-gmsa-directory-structure.png?fit=max\&auto=format\&n=6OAzJSjbqwHhehou\&q=85\&s=a75e1d90e6fba55e6719650a2c26de24) ### Create a scheduled task To create the scheduled task, choose the PowerShell method or the GUI method. The PowerShell method is the easiest way to create the scheduled task. To create the scheduled task with PowerShell: 1. Run these PowerShell commands, modifying files names and domain names as necessary: ```powershell theme={null} $arg = '-ExecutionPolicy ByPass -NoProfile -File ".\SharpHound_Collection.ps1"' $ta = New-ScheduledTaskAction -Execute C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Argument $arg -WorkingDirectory "C:\Program Files\SharpHound" $tt = New-ScheduledTaskTrigger -At 9:00 -Weekly -DaysOfWeek Monday $ap = New-ScheduledTaskPrincipal -UserID "$($env:USERDOMAIN)\t0_gMSA_SHS$" -LogonType Password -RunLevel Highest Register-ScheduledTask SharpHoundCollection -Action $ta -Trigger $tt -Principal $ap ``` 2. After refreshing the Scheduled Tasks MMC, you should see the newly created scheduled task that runs as the gMSA account. ![](https://mintcdn.com/specterops/t-Kb-qOfqpgsWjX4/assets/sharphound-gmsa-powershell-created-task.png?fit=max\&auto=format\&n=t-Kb-qOfqpgsWjX4\&q=85\&s=285258f1a57f41faedf7293f3452e869) To create the scheduled task with the GUI: 1. Open the Scheduled Tasks MSC on the SharpHound server and create a scheduled task. In the example shown below, the scheduled task name is SharpHound. ![](https://mintcdn.com/specterops/t-Kb-qOfqpgsWjX4/assets/sharphound-gmsa-gui-created-task.png?fit=max\&auto=format\&n=t-Kb-qOfqpgsWjX4\&q=85\&s=a144edfc2f6bea853068b664b0ddfe54) 2. Configure the scheduled task to run on the desired schedule. 3. Configure the scheduled task with this **Action**: * **Program / script**: `C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe` * **Arguments**: `-ExecutionPolicy ByPass -NoProfile -File ".\SharpHound_Collection.ps1"` * **Start in**: `C:\Program Files\SharpHound` 4. Click **OK** on the **Edit Action**. 5. Leave the default run-account selection for now — you'll change it to the gMSA in a later step. 6. Click **OK** on the scheduled task to complete the creation. 7. Provide the password for the standard user account when prompted and click **OK**. At this point you should see the scheduled task setup to run using the user account you previously configured. ![](https://mintcdn.com/specterops/t-Kb-qOfqpgsWjX4/assets/sharphound-gmsa-gui-task-setup.png?fit=max\&auto=format\&n=t-Kb-qOfqpgsWjX4\&q=85\&s=2fc51945951240bd7c62ef219c75a375) 8. Modify the scheduled task to run as the gMSA account with PowerShell: * Option A: `schtasks` ```powershell theme={null} schtasks /change /TN \SharpHound /RU "$($env:USERDOMAIN)\t0_gMSA_SHS$" /RP ``` * Option B: `New-ScheduledTaskPrincipal` ```powershell theme={null} $principal = New-ScheduledTaskPrincipal -UserID "$($env:USERDOMAIN)\t0_gMSA_SHS$" -LogonType Password -RunLevel Highest Set-ScheduledTask -TaskName SharpHound -Principal $principal ``` 9. You should see a message stating that command was successful. If you open the scheduled task you should see that the account it will run as is the gMSA account. ### Test the SharpHound scheduled task To test the scheduled task running as the gMSA account, right click on the scheduled task and click **Run**. When completed, a zip file should appear in `C:\Program Files\SharpHound\Results\`, and a log file in `C:\Program Files\SharpHound\Logs\`. *** > [!TIP] > > Thank you to [@robertstrom](https://github.com/robertstrom) for your contribution and permission in modifying your [original docs](https://github.com/robertstrom/SharphoundgMSA/tree/main) for inclusion in BloodHound's documentation for other users! # BloodHound CE Collection Source: https://bloodhound.specterops.io/collect-data/ce-collection/overview Learn about attack path data collection in BloodHound Community Edition. > [card] [SharpHound Community Edition](/collect-data/ce-collection/sharphound) > [card] [All SharpHound Community Edition Flags, Explained](/collect-data/ce-collection/sharphound-flags) > [card] [AzureHound Community Edition](/collect-data/ce-collection/azurehound) > [card] [All AzureHound Community Edition Flags, Explained](/collect-data/ce-collection/azurehound-flags) # SharpHound Community Edition Source: https://bloodhound.specterops.io/collect-data/ce-collection/sharphound SharpHound Community Edition (CE) is the official data collector for BloodHound CE. It is written in C# and uses native Windows API functions and LDAP namespace functions to collect data from domain controllers and domain-joined Windows systems. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) SharpHound CE can be obtained in a few ways: * From the BloodHound CE interface as a pre-compiled binary * ⚙️ → **Download Collectors**, and click the button **Download SharpHound** * From the [SharpHound releases](https://github.com/SpecterOps/SharpHound/releases/latest) as precompiled binaries * Build it from source with the code on the [SharpHound repository](https://github.com/SpecterOps/SharpHound) ## Basic Usage You can collect plenty of data with SharpHound CE by simply running the binary itself with no flags set: ``` C:\> SharpHound.exe ``` SharpHound CE will automatically determine what domain your current user belongs to, find a domain controller for that domain, and start the “default” collection method. The default collection method will collect the following pieces of information from the domain controller: * Security group memberships * Domain trusts * Abusable rights on Active Directory objects * Group Policy links * OU tree structure * Sites and their server and subnet mappings * Several properties from computer, group and user objects * SQL admin links Additionally, SharpHound CE will attempt to collect the following information from each domain-joined Windows computer: * The members of the local administrators, remote desktop, distributed COM, and remote management groups * Active sessions, which SharpHound CE will attempt to correlate to systems where users are interactively logged on When finished, SharpHound CE will create several JSON files and place them into a zip file. Drag and drop that zip file into the BloodHound GUI, and the interface will merge the data into the database. ## The Session Loop Collection Method BloodHound uses graph theory to find attack paths in Active Directory, and the more data you have, the more likely you are to find and execute attack paths successfully. Much of the data you initially collect with SharpHound CE will not likely change or require updating over the course of a typical red team assessment - security group memberships, Active Directory permissions, and Group Policy links change relatively rarely. That data can be collected one time, and not again. User sessions are a bit different because users, especially privileged users, log on and off different systems daily. How many systems does a typical help desk user or server admin log into on any given day? SharpHound CE’s Session Loop collection method makes this very easy: ``` C:\> SharpHound.exe --CollectionMethods Session --Loop ``` This will run SharpHound CE’s session collection method for 2 hours, generating a zip file after each loop ends. When done, collect all the zip files and drag and drop them into the BloodHound GUI. If you want to specify a different loop time, use the --Loopduration flag with the HH:MM:SS format to specify how long you want SharpHound CE to perform looped session collection. For example, if you want SharpHound CE to perform looped session collection for 3 hours, 9 minutes, and 41 seconds: ``` C:\> SharpHound.exe --CollectionMethods Session --Loop --Loopduration 03:09:41 ``` ## Running SharpHound CE from a Non Domain-Joined System While not an officially supported collection method, and not a collection method we recommend you do, it is possible to collect data for a domain from a system that is not joined to that domain. To do so, carefully follow these steps: 1. Configure your system DNS server to be the IP address of a domain controller in the target domain. 2. Spawn a CMD shell as a user in that domain using \`runas\` its `/netonly` flag. You will be prompted to enter a password. Enter the password and hit enter. ``` C:\> runas /netonly /user:CONTOSO\Jeff.Dimmock cmd.exe ``` 3. A new CMD window will appear. If you type \`whoami\`, you will not see the name of the user you’re impersonating. This is because of the `/netonly` flag: the instance of CMD will only authenticate as that user when you authenticate to other systems over the network, but you are still the same user you were before when authenticating locally. 4. Verify you’ve got valid domain authentiation by using the \`net\` binary. If you can see the SYSVOL and NETLOGON folders, you’re good. ``` C:\> net view \\\contoso\ ``` 5. Run SharpHound CE, using the `-d` flag to specify the AD domain you want to collect information from. You can also use any other flags you wish. ``` C:\> SharpHound.exe -d contoso.local ``` ## Building SharpHound CE from Source SharpHound CE is written using C# 9.0 features. To easily compile this project, use Visual Studio 2019. If you want to compile on previous versions of Visual Studio, you can install the Microsoft.Net.Compilers nuget package. Building the project will generate an executable and a PowerShell script that encapsulates the executable. All dependencies are rolled into the binary. ## SharpHound CE vs. Antivirus Many anti-virus engines have signatures for SharpHound CE. You may even find that Chrome or other browsers will warn you against downloading SharpHound CE, saying the binary is malicious. This isn’t completely unexpected, as BloodHound is primarily a tool used by penetration testers and red teamers to find attack paths in Active Directory. While BloodHound has plenty of defensive value, antivirus and browser vendors continue to flag SharpHound CE as malicious. If you are on the red team side, you can employ AV bypass strategies to avoid getting caught by AV. One of the best things you can do is stay completely off-disk when running SharpHound CE. Many command-and-control tools have in-memory .net assembly execution capabilities, such as Cobalt Strike’s **execute-assembly** and Covenant’s **assembly** commands. Using these commands will keep SharpHound CE totally off-disk when run on your target, which will go a very long way toward evading basic AV signatures. If you are on the blue team side, we recommend you use BloodHound Enterprise which is built for defenders and has a trusted and signed SharpHound Enterprise binary that does not get flagged by antivirus. You can also use the same AV bypass techniques used by the red team, or you can request an exception for the SharpHound CE binary itself or possibly a folder that you run SharpHound CE out of. Be aware, though, that AV-excluded folders and files can commonly be enumerated by low-privilege users running on the same system, so try to be as specific as possible with your allowlist exceptions. Finally, remember that SharpHound CE is free and *open source*. You can build SharpHound CE from the source and apply your own obfuscation techniques to the source code itself during that build process. Several resources are available to help get started here: * [https://docs.microsoft.com/en-us/visualstudio/ide/dotfuscator/?view=vs-2019](https://docs.microsoft.com/en-us/visualstudio/ide/dotfuscator/?view=vs-2019) * [https://github.com/TheWover/donut](https://github.com/TheWover/donut) * [https://blog.xpnsec.com/building-modifying-packing-devops/](https://blog.xpnsec.com/building-modifying-packing-devops/) # SharpHound Community Edition Flags Source: https://bloodhound.specterops.io/collect-data/ce-collection/sharphound-flags ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) SharpHound Community Edition has several optional flags that let you control scan scope, performance, output, and other behaviors. ## Enumeration Options ### CollectionMethods or 'c' This tells SharpHound what kind of data you want to collect. These are the most common options you’ll likely use: * **Default:** SharpHound will use the default collection method if you specify “Default” or don't use the CollectionMethods option. Default collection includes Active Directory security group membership, domain trusts, abusable permissions on AD objects (incl. ADCS objects), OU tree structure, Group Policy links, Site objects, the most relevant AD object properties, local groups from domain-joined Windows systems, and user sessions. * **All:** Performs all collection methods. * **DCOnly:** Collects data ONLY from the domain controller, will not touch other domain-joined Windows systems. Collects AD security group memberships, domain trusts, abusable permissions on AD objects (incl. ADCS objects), OU tree structure, Group Policy links, Site objects, the most relevant AD object properties, and will attempt to correlate Group Policy-enforced local groups to affected computers. * **ComputerOnly:** Collects user sessions (*Session*), local groups (*LocalGroup*), User Rights Assignment (*UserRights*), and Azure VM registry (*AzureRegistry*) data from domain-joined Windows systems. Additionally, CA registry (*CARegistry*) data and DC registry (*DCRegistry*) data is collected. Will NOT collect the data collected with the DCOnly collection method. * **Session:** Just does user session collection. You will likely couple this with the `--Loop` option. See SharpHound examples below for more info on that. * **LoggedOn:** Does session collection using the privileged collection method. Use this if you are running as a user with local admin rights on lots of systems for the best user session data. Here are the less common CollectionMethods and what they do: * **Group:** Just collect security group memberships from Active Directory * **ACL:** Just collect abusable permissions on objects in Active Directory * **GPOLocalGroup:** Just attempt GPO to computer correlation to determine members of the relevant local groups on each computer in the domain. Doesn’t actually touch domain-joined systems, just gets info from domain controllers * **Trusts:** Just collect domain trusts * **Container:** Just collect the OU tree structure and Group Policy links * **Site:** Collect Active Directory Site, SiteServer, and SiteSubnet objects from the configuration partition; their site-to-server and site-to-subnet mappings; site GPO links; and ACLs on Site objects * **LocalGroup:** Just collect the members of all interesting local groups on each domain-joined computer. Equivalent for *LocalAdmin* + *RDP* + *DCOM* + *PSRemote* * **LocalAdmin:** Just collect the members of the local Administrators group on each domain-joined computer * **RDP:** Just collect the members of the Remote Desktop Users group on each domain-joined computer * **DCOM:** Just collect the members of the Distributed COM Users group on each domain-joined computer * **PSRemote:** Just collect the members of the Remote Management group on each domain-joined computer * **ObjectProps** - Performs Object Properties collection for properties such as LastLogon or PwdLastSet * **SPNTargets** - Just collect Service Principal Name (SPN) target information from Active Directory objects. This helps identify service relationships such as MSSQL service accounts and related target systems. * **UserRights** - Just collect User Rights Assignment from domain computers (needs admin) * **CARegistry** - Just collect ADCS properties from registry of Certificate Authority servers * **DCRegistry** - Just collect properties from registry of Domain Controller servers * **CertServices** - Just collect ADCS objects from Certificate Services * **WebClientService** - Just check whether the WebClient service is running on domain-joined Windows systems. This data supports NTLM relay-related attack paths. * **LdapServices** - Just collect LDAP service configuration information from domain controllers, including LDAP/LDAPS authentication behavior. This data supports NTLM relay-related attack paths. * **SmbInfo** - Just collect SMB configuration information from domain-joined Windows systems, such as SMB service settings. This data supports NTLM relay-related attack paths. * **NTLMRegistry** - Just collect NTLM-related registry values from domain-joined Windows systems. This data supports NTLM relay-related attack paths. * **AzureRegistry** - Read the Azure guest VM `VmId` value from `HKLM\SOFTWARE\Microsoft\Windows Azure` on domain-joined Windows systems and add it to the Computer object's `azvmid` property. SharpHound tries WMI first and Remote Registry as a fallback. If the key or value is unavailable, collection continues without a usable VM ID. For example, to collect sessions: ``` C:\> SharpHound.exe --CollectionMethods session ``` To collect Azure VM identifiers: ``` C:\> SharpHound.exe --CollectionMethods AzureRegistry ``` `AzureRegistry` is included in `ComputerOnly` and `All`. It is not included in `Default`. Collection methods visualization: ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-87.webp?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=81a800ce2078a92879e939faa776fc57) Image credit: [https://twitter.com/SadProcessor](https://twitter.com/SadProcessor) ### Domain or 'd' Tell SharpHound which Active Directory domain you want to gather information from. Importantly, you must be able to resolve DNS in that domain for SharpHound to work correctly. For example, to collect data from the \`contoso.local\` domain: ``` C:\> SharpHound.exe --Domain contoso.local ``` ### SearchForest or 's' This flag would instruct SharpHound to automatically collect data from all domains in your current forest. ### Stealth Perform “stealth” data collection. This switch modifies your data collection method. For example, if you want to perform user session collection, but only touch systems that are the most likely to have user session data: ``` C:\> SharpHound.exe --CollectionMethods Session --Stealth ``` Stealth mode removes `AzureRegistry` along with other computer-based collection methods. ### ComputerFile Load a list of computer names or IP addresses for SharpHound to collect information from. The file should be line-separated. ### DistinguishedName Base DistinguishedName to start search at. Use this to limit your search. Equivalent to the old `--OU` and '--SearchBase' option. ``` C:\> SharpHound.exe --DistinguishedName "OU=New York,DC=Contoso,DC=Local" ``` ### LDAPFilter or 'f' Instruct SharpHound to only collect information from principals that match a given LDAP filter. For example, to only gather abusable ACEs on a user with a certain display name, run this: ``` C:\> SharpHound.exe --LDAPFilter "(displayName=John Smith)" ``` ### ExcludeDCs Instruct SharpHound to not touch domain controllers. By not touching domain controllers, you will not be able to collect anything specified in the `DCOnly_`\_ collection method, but you will also likely avoid detection by e.g., Microsoft ATA/ATP. ``` C:\> SharpHound.exe -d contoso.local --ExcludeDCs ``` ### RealDNSName In some networks, DNS is not controlled by Active Directory, or is otherwise not synchronized to Active Directory. This causes issues when a computer joined to AD has an AD FQDN of COMPUTER.CONTOSO.LOCAL, but also has a DNS FQDN of, for example, COMPUTER.COMPANY.COM. You can help SharpHound find systems in DNS by providing the latter DNS suffix, like this: ``` C:\> SharpHound.exe --RealDNSName COMPANY.COM ``` ### OverrideUserName When running SharpHound from a \`runas /netonly\`-spawned command shell, you may need to let SharpHound know what username you are authenticating to other systems as. ### CollectAllProperties Collect every LDAP property where the value is a string from each enumerated Active Directory object. ## Output Options ### OutputDirectory By default, SharpHound will output zipped JSON files to the directory SharpHound was launched from. You can specify a different folder for SharpHound to write files to. For example, to instruct SharpHound to write output to C:temp: ``` C:\> SharpHound.exe --OutputDirectory C:\temp\ ``` ### OutputPrefix Add a prefix to your JSON and ZIP files. For example, to have the JSON and ZIP file names start with “Financial Audit”: ``` C:\> SharpHound.exe --OutputPrefix "Financial Audit" ``` ### NoZip Instruct SharpHound to **not** zip the JSON files when collection finishes ### ZipPassword Specify the password to be used for encrypting zip file, by default the zip file is not encrypted ### ZipFileName Specify the name of the zip file ### RandomFileNames Randomize output file names ### PrettyPrint Outputs JSON with indentation on multiple lines to improve readability. Tradeoff is increased file size. ### TrackComputerCalls Adds a CSV tracking requests to computers by dumping error codes from attempted connections to computers ## Loop Options ### Loop or 'l' Instruct SharpHound to loop computer-based collection methods. For example, attempt to collect local group memberships across all systems in a loop: ``` C:\> SharpHound.exe --CollectionMethods LocalGroup --Loop ``` ### LoopDuration By default, SharpHound will loop for 2 hours. You can specify whatever duration you like using the HH:MM:SS format. For example, to loop session collection for 12 hours, 30 minutes and 12 seconds: ``` C:\> SharpHound.exe --CollectionMethods Session --Loop --LoopDuration 12:30:12 ``` ### LoopInterval How long to pause for between loops, also given in HH:MM:SS format. For example, to loop session collection for 12 hours, 30 minutes and 12 seconds, with a 15 minute interval between loops: ``` C:\> SharpHound.exe --CollectionMethods Session --Loop --Loopduration 12:30:12 --LoopInterval 00:15:00 ``` ## Connection Options ### DomainController Target a specific domain controller by its IP address or name for LDAP collection ### LdapPort Specify an alternate port for LDAP if necessary ### SecureLdap Connect to the domain controller using LDAPS (secure LDAP) vs plain text LDAP. This will use port 636 instead of 389. Recommended. ### LdapUsername Use with the LdapPassword parameter to provide alternate credentials to the domain controller when performing LDAP collection. ### LdapPassword Use with the LdapUsername parameter to provide alternate credentials to the domain controller when performing LDAP collection. ### DisableSigning Disables Kerberos Signing/Sealing. Not recommended. ### DisableCertVerification Disables certificate verification when using LDAPS. Not recommended. ### OverrideUserName Override the username to filter for NetSessionEnum. ### DoLocalAdminSessionEnum Do the session enumeration with local admin credentials instead of domain credentials. ### LocalAdminUsername Username for local Administrator to be used if DoLocalAdminSessionEnum is set. ### LocalAdminPassword Password for local Administrator to be used if DoLocalAdminSessionEnum is set. ## Performance Options ### PortCheckTimeout When SharpHound is scanning a remote system to collect user sessions and local group memberships, it first checks to see if port 445 is open on that system. This helps speed up SharpHound collection by not attempting unnecessary function calls when systems aren’t even online. By default, SharpHound will wait 2000 milliseconds (2 seconds) to get a response when scanning 445 on the remote system. You can decrease this if you’re on a fast LAN, or increase it if you need to. For example, to tell SharpHound to wait just 1000 milliseconds (1 second) before skipping to the next host: ``` C:\> SharpHound.exe --PortCheckTimeout 1000 ``` ### SkipPortCheck Instruct SharpHound to not perform the port 445 check before attempting to enumerate information from a remote host. This can result in significantly slower collection periods. ### SkipPasswordCheck Skip check for PwdLastSet when enumerating computers. ### SkipRegistryLoggedOn Skip registry session enumeration ### Throttle Adds a delay after each request to a computer. Value is in milliseconds (Default: 0) ### Jitter Adds a percentage jitter to throttle. (Default: 0) ### Threads Number of threads to run enumeration with ## Cache Options ### CacheName SharpHound will create a local cache file to dramatically speed up data collection. It does this primarily by storing a map of principal names to SIDs and IPs to computer names. By default, SharpHound will auto-generate a name for the file, but you can use this flag to control what that name will be. For example, to name the cache file \`Accounting.bin\`: ``` C:\> SharpHound.exe --CacheName Accounting.bin ``` ### MemCache This will instruct SharpHound to NOT create the local cache file. Future enumeration will be slower than they would be with a cache file, but this will prevent SharpHound from putting the cache file on disk, which can help with AV and EDR evasion. ### RebuildCache Invalidate the cache file and build a new cache ## Miscellaneous ### StatusInterval Interval in which to display status in milliseconds ### Verbosity or 'v' Enable verbose output # Review Data Quality Source: https://bloodhound.specterops.io/collect-data/data-quality Use the Data Quality page to validate collected object counts, trends, and coverage after ingest. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) The **Data Quality** page helps you validate what data exists in your BloodHound database after collection and ingest. Use it to confirm that expected data sources appear, object counts change as expected, and collection coverage supports the analysis workflows you plan to use. It helps answer questions about the current shape and recent history of your database before you investigate findings, explore the graph, or troubleshoot collector output. ## What the Data Quality page is for Use the **Data Quality** page after you upload or refresh data to: * Confirm that BloodHound ingested new or updated data. * Review object counts across supported data sources. * Compare current counts with historical collection trends. * Verify that expected object types appear for a directory, platform, or extension. * Check Active Directory data completeness for privileged collection coverage, including local groups and sessions. > [!NOTE] > > Data quality does not replace collector logs or Cypher queries. If the page shows unexpected counts or coverage gaps, use it to identify where to investigate next. ## Before you begin Before you review data quality, complete the collection or upload workflow for the data source you want to validate: * For Active Directory, collect and ingest SharpHound data. * For Azure and Entra ID, collect and ingest AzureHound data. * For structured (OpenGraph data conforming to the basic node, edge, and metadata format required for a data payload and associated with an installed extension definition schema.) OpenGraph data, verify or install the matching [OpenGraph extension definition schema](/opengraph/extensions/manage#verify-or-install-an-extension), then upload a conforming [data payload](/opengraph/developer/graph-data). The **Data Quality** page does not support generic (OpenGraph data conforming to the basic node, edge, and metadata format required for a data payload, with no associated extension definition schema.) OpenGraph data. > [!NOTE] > > This feature is available through Early Access. Enable **OpenGraph Data Quality** on the **Administration** > **Early Access Features** page to access it. Wait for ingest and analysis processing to complete before you compare counts or trends. ## Review data quality **1. Open the Data Quality page** In BloodHound, go to **Administration** > **Data Quality**. The page opens with an aggregate view of included object data. **2. Review the total object count** Use the total object count at the top of the page to confirm the current amount of included object data in the database. The total helps you verify that a recent upload or collection run changed the database in the expected direction. **3. Review historical trends** Review the historical graph to understand how object counts changed over time. Use this trend to spot unexpected drops after a collector configuration change or large increases after onboarding a new data source. **4. Review source-specific details** Use the environment selector to focus on a specific data source, environment, or extension. Compare the displayed object types and counts with the data you expected the collector or payload to produce. **5. Review privileged collection coverage** For Active Directory privileged collection, review **Local Group Completeness Over Time** and **Session Completeness Over Time**. Use these charts to understand how much visibility BloodHound has into local group membership and session data across active computers. ## Data quality views The available views depend on the data in your BloodHound database. The page can include aggregate object counts, source-specific breakdowns, environment-specific views, and completeness charts. | View or metric | What it tells you | Use it to | | - | - | - | | **Object type and relationship counts** | Current object counts (by type) and relationships in the database. | Confirm that ingest added, removed, or retained the expected amount of data. | | **Historical object count graph** | Object-type count changes over time. | Identify unexpected drops, spikes, or missing collection activity. | | **Source or extension breakdown** | Filter by built-in source or OpenGraph extension. | Confirm which data sources contribute objects to the database. | | **Completeness charts** | Active Directory privileged collection coverage over time. | Evaluate local group and session visibility across active computers. | ## Count behavior Data quality counts show user-facing object data. They do not include internal labels or metadata objects that BloodHound uses to support platform features. For example, internal labels such as `Base` and `AZBase` can support calculations for Active Directory and Azure totals. They do not appear as separate object types in the breakdown because showing them separately can double count the same objects. ## Completeness charts Completeness charts apply to Active Directory data collected with SharpHound [privileged collection](/collect-data/enterprise-collection/privileged-collection). They help you understand collection coverage for data types that depend on host availability and permissions. | Chart | What it measures | | - | - | | **Local Group Completeness Over Time** | Visibility into local group membership collection across active computers. | | **Session Completeness Over Time** | Visibility into session collection across active computers. | Completeness below 100% is common. Workstations and servers can be offline, unavailable, or inaccessible during a collection run. If completeness is lower than expected, review collector permissions, collector logs, and collection scheduling. ## Structured OpenGraph data In BloodHound v9.5.1 and later, the **Data Quality** page includes [structured](/opengraph/overview#graph-structure) OpenGraph object counts and historical trends. This enhancement helps you validate OpenGraph ingest without writing custom Cypher queries. > [!NOTE] > > This feature is available through Early Access. Enable **OpenGraph Data Quality** on the **Administration** > **Early Access Features** page to access it. For structured OpenGraph data, BloodHound organizes counts by extension and registered [`source_kind`](/opengraph/developer/graph-data#data-source). The `source_kind` identifies the OpenGraph data source and can come from payload metadata or from `environments.source_kind` in an extension definition schema. Select a specific extension or source kind to review object type counts and historical trends for that OpenGraph source. # Ad-hoc BHE Data Collection with SharpHound CE Source: https://bloodhound.specterops.io/collect-data/enterprise-collection/ad-hoc-collection Learn how to do ad-hoc data collection for BloodHound Enterprise using SharpHound Community Edition. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) ## Purpose This article explains how to perform ad-hoc data collection for BloodHound Enterprise (BHE) using the SharpHound Community Edition (CE) collector. Use SharpHound CE when you cannot deploy [SharpHound Enterprise](/install-data-collector/install-sharphound/system-requirements). Examples include: * Environments with no internet access (such as SCADA or OT environments) * Merger and acquisition scenarios to assess risk before integration or consolidation of IT infrastructure * Quick deployment scenarios to do an initial assessment before a full SharpHound Enterprise deployment > [!NOTE] > > SharpHound CE may require allow-listing in endpoint protection solutions, as it is unsigned and will likely be flagged as malicious. SharpHound CE uses the same collection library as SharpHound Enterprise and therefore collects the same data. However, CE does not integrate with the SaaS portal, so it cannot provide portal status monitoring or configurable scheduled automatic collection and upload. ## Prerequisites The following prerequisites are required to perform ad-hoc data collection with SharpHound CE: * Logged in as a user with the **Administrator**, **Power User**, or **Upload-only** [role](/manage-bloodhound/auth/users-and-roles) * Access to an account and computer in the in-scope domain or a domain trusted by the in-scope domain ## Process The ad-hoc data collection process consists of two main steps: performing the data collection with SharpHound CE and uploading the collected data to BloodHound Enterprise. ### Perform SharpHound CE data collection This section outlines how to use SharpHound CE to collect data from the target environment. **1. Download SharpHound CE** Get the latest version of SharpHound CE using one of the following methods: * Download from your [BloodHound Enterprise](/get-started/quickstart/community-edition-quickstart#download-collectors) tenant * Download from [GitHub](https://github.com/SpecterOps/SharpHound/releases/latest) > [!NOTE] > > You can also compile SharpHound CE from the [source code](https://github.com/SpecterOps/SharpHound). **2. Extract SharpHound CE** Extract the contents of the downloaded ZIP archive to a working directory on the system where you plan to collect data. **3. Collect data** 1. Choose a [collection](/collect-data/ce-collection/sharphound-flags#collectionmethods-or-'c') method that meets your requirements. > [!TIP] > > DCOnly is the recommended starting method and is equivalent to BHE's Active Directory + Certificate Services. 2. Open a PowerShell or Command Prompt window. 3. Navigate to the directory where you extracted SharpHound CE. 4. Start collection with the chosen method. For example, to perform a **DCOnly** collection: ```ps theme={null} C:\> SharpHound.exe --CollectionMethods DCOnly ``` **4. Locate collected data** After the collection completes, locate the output .zip file in the same directory where you ran SharpHound CE. The file name is in the format `SharpHound-.zip`. ### Upload data to BloodHound Enterprise This section outlines how to upload the collected data to BloodHound Enterprise for analysis. **1. Open the File Ingest page** In the left menu, click **Administration** > **File Ingest**. **2. Upload collected data** 1. Click **Upload File(s)**. ![File Ingest screen showing the Upload File(s) button](https://mintcdn.com/specterops/g2ltNIVwNN2AtKcq/images/data_collectors/file-ingest-page.png?fit=max\&auto=format\&n=g2ltNIVwNN2AtKcq\&q=85\&s=e6d6bb53b1aa0e77c6a44f96a5a3dcf0) 2. Click the modal or drag and drop the output .zip file onto it and click **Upload**. ![File Ingest screen showing the upload modal](https://mintcdn.com/specterops/g2ltNIVwNN2AtKcq/images/data_collectors/file-ingest-modal.png?fit=max\&auto=format\&n=g2ltNIVwNN2AtKcq\&q=85\&s=4db135a79b82aeb138addff9fb7a95f9) > [!NOTE] > > After the upload completes, you can verify the status on the [**File Ingest**](/collect-data/enterprise-collection/monitor#file-ingest-logs) page. ### Analyze Data and Use BloodHound Enterprise Features * **Dashboard and Visualization:** Review key insights and summaries. * **Running Queries:** Explore specific security aspects and visualize attack paths. * **Posture Reporting:** Visualize and track exposure within your Enterprise ### Best Practices for Secure Environments * **Minimize Data Collection Scope:** Focus on necessary data to limit exposure. * **Secure Data Handling:** Ensure secure storage and handling of collected data. * **Regular Updates and Maintenance:** Keep SharpHound CE updated. ## Outcome After ingest and analysis is complete, BloodHound Enterprise presents a comprehensive report with actionable recommendations on the **Attack Paths** page. # Create a Data Collection Schedule Source: https://bloodhound.specterops.io/collect-data/enterprise-collection/collection-schedule Learn how to configure an Enterprise collector client to run data collection on a schedule. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) ## Purpose This article explains how to configure a data collector client to run on a schedule. Administrators should use it when deploying a new client or adding an additional schedule to an existing client. > [!NOTE] > > Azure and Active Directory objects typically change slowly, so daily collection is usually sufficient. To capture activity across different times of day, schedule Local Groups and Sessions more frequently (for example, every 7 hours). ## Prerequisites The following prerequisites are required to create a data collection schedule: * An existing SharpHound Enterprise or AzureHound Enterprise [collector client](/collect-data/enterprise-collection/create-collector) * Logged in as a user assigned a [role](/manage-bloodhound/auth/users-and-roles) authorized to modify clients ## Process The process to create a data collection schedule consists of the following steps: **1. Open the Manage Clients page** In the left menu, click **Administration** > **Manage Clients**. **2. Edit a collector client** On the client that you want to schedule, click the hamburger menu in the *Actions* column and select **Edit Client**. ![Navigate to the Edit Client button on the Clients page](https://mintcdn.com/specterops/g2ltNIVwNN2AtKcq/images/data_collectors/edit-client.png?fit=max\&auto=format\&n=g2ltNIVwNN2AtKcq\&q=85\&s=f4321f86689c0a88aca363e8f0cc072a) **3. Create a data collection schedule** 1. Click under **Collection Schedule** to add a new schedule. ![Click the plus icon to add a new collection schedule](https://mintcdn.com/specterops/_SFxVE2HYJFNfxOf/images/data_collectors/add-schedule.png?fit=max\&auto=format\&n=_SFxVE2HYJFNfxOf\&q=85\&s=5bcd756d2009fd39a6365a0292b81c51) 2. Configure the following details in the **Schedule** window: * **Start Date**: The time at which the first collection should run * **Frequency**: The frequency at which the collection should run * **Data**: The type of data that the schedule collects, see: * [SharpHound Data and Permissions](/collect-data/sharphound-data-permissions) * [AzureHound Data and Permissions](/collect-data/azurehound-data-permissions) * **Advanced Options**: > [!NOTE] > > If you need SharpHound Enterprise to collect outside the SharpHound service account domain, expand **Advanced Options** and configure **Scope Collection to Multiple Domains**. > > To collect from every domain that trusts the SharpHound service account domain, enable **Collect from all domains trusting the SharpHound service account domain, including transitively**. ![Configure the schedule details](https://mintcdn.com/specterops/_SFxVE2HYJFNfxOf/images/data_collectors/configure-schedule.png?fit=max\&auto=format\&n=_SFxVE2HYJFNfxOf\&q=85\&s=26649b4dae5689fb3c3bfb460560a329) | **Option** | **Description** | | - | - | | Data (Required) | Multi-select option for the different types of collection available. See [SharpHound Data Collection and Permissions](/collect-data/permissions) for details on the data collected and permissions necessary for each. | | Domain controller | By default, SharpHound automatically selects a Domain Controller for LDAP queries. Specifying a Domain Controller hostname or FQDN here will define the default value used for this scan or schedule. If not set, SharpHound will utilize the value set in the client configuration. We recommend not configuring a Domain Controller manually. | | Target Local Group and/or User Session Collection by Organizational Unit | Define one or more OUs within a domain to only collect Local Group and Session data from computers contained within the specified OUs and their descendants. If left empty, *SharpHound will collect from all OUs.* If defined, the schedule or On Demand Scan will not collect AD structure data. A dedicated schedule or On Demand Scan must therefore be created for AD structure collection. \[!NOTE] Not supported with multi-domain collections. | | Scope Collection to Multiple Domains | Utilize trust relationships in your environment to collect data from multiple domains. If left empty, SharpHound collects only from the domain where the SharpHound service account belongs. SharpHound supports two options:
  • Define a specific list of domains from which to collect data.
  • Enable **Collect from all domains trusting the SharpHound service account domain, including transitively** to collect from every trusting domain, including trusted domains in other forests.
For setup details, see [SharpHound Enterprise Cross-Trust Collection](/collect-data/enterprise-collection/cross-trust). \[!NOTE] Multi-domain collections cannot be scoped by OU. | 3. Click **Save** in the **Schedule** window. 4. Click **Save** in the **Edit SharpHound Client** window. ## Outcome The client is now configured for continuous data collection with one schedule. You can add multiple schedules to a single client for more granular control. A summary of a client's schedule displays in the *Collection Schedule* column on the **Clients** page. ![View of the Collection Schedule column on the Clients page](https://mintcdn.com/specterops/g2ltNIVwNN2AtKcq/images/data_collectors/client-schedule-summary.png?fit=max\&auto=format\&n=g2ltNIVwNN2AtKcq\&q=85\&s=c5e1bb4dfd83cb9917a2362e2d4e604e) > [!NOTE] > > After the next schedule, see the job's status on the [**Finished Jobs Log**](/collect-data/enterprise-collection/monitor#finished-jobs-log) page. # Manage Collector Support Bundles Source: https://bloodhound.specterops.io/collect-data/enterprise-collection/collector-support-bundles Request, download, and delete collector support bundles in BloodHound Enterprise. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) A **collector support bundle** is a `.zip` file that contains diagnostic information from a collector client (A configuration object in your BloodHound Enterprise tenant that links your tenant to a collector application. It stores authentication and configuration details used by the collector application to upload data). Support bundles help you troubleshoot collection issues faster, reduce the need for direct access to the system where the collector runs, and give your team or SpecterOps support a consistent package of collector logs and diagnostics. > [!NOTE] > > This is a SpecterOps-managed feature. If it is not enabled in your environment, contact your account team for assistance. This page explains how to request, download, delete, and troubleshoot collector support bundles from **Administration** > **Manage Clients**. After the collector processes the request and uploads the file, BloodHound Enterprise shows download and delete actions for that client. > [!WARNING] > > Support bundles can contain diagnostic data from your environment. Handle downloaded bundles according to your organization's data handling process and share them only through approved support channels. ## Use cases Use support bundles when you need to shorten the path from a collector issue to troubleshooting: * **Self-service troubleshooting:** Request and download collector diagnostics from BloodHound Enterprise when you do not have direct access to the system where the collector runs. * **SpecterOps-assisted troubleshooting:** Work with a SpecterOps support representative who has authorized access to your tenant. They can use the same BloodHound Enterprise workflow to retrieve the support bundle. * **Targeted diagnostic collection:** Collect one support bundle for a specific client, download it through the browser, and delete it when you no longer need it or when you need a newer bundle. ## Prerequisites Before you can request, download, or delete a support bundle, you must have the following: * BloodHound Enterprise with the collector support bundle feature enabled by your account team. * A user assigned the **Administrator** role. The support-bundle controls require permission to manage users and access client-management actions. * A SharpHound Enterprise or OpenHound collector client for one of the following collector versions: | **Collector** | **Minimum version** | | - | - | | SharpHound Enterprise | v2.16.0 | | OpenHound | v0.4.0 | > [!NOTE] > > Support bundles are currently available for SharpHound Enterprise and OpenHound clients. AzureHound Enterprise clients are not supported. ## Support bundle lifecycle Refer to the following table for the support-bundle lifecycle and what you can do at each stage: | State | What you see | What to do | | - | - | - | | No bundle exists | **Request Support Bundle** | Request a bundle when you need collector diagnostics. | | Request in progress | **Requesting Support Bundle...** | Wait for the collector to process the request. | | Bundle is ready | **Download Support Bundle** and **Delete Support Bundle** | Download the bundle or delete it when it is no longer needed. | | Request failed or was canceled | **Request Support Bundle** | Request a new bundle, or contact support if the request fails again. | Uploaded support bundles expire 90 days after the upload session is created. Deleting a bundle removes it sooner. Downloaded copies are outside the scope of BloodHound Enterprise retention. > [!NOTE] > > BloodHound Enterprise allows one downloadable support bundle per client. To request a more recent bundle after one is available, delete the existing bundle first. ## Request a support bundle To request a support bundle, you must have the **Administrator** role. The request is asynchronous. BloodHound Enterprise checks for completion in the background and displays status notifications. **1. Open the Manage Clients page** In the left menu, click **Administration** > **Manage Clients**. **2. Open the client action menu** Find the SharpHound Enterprise or OpenHound client you want to troubleshoot, then click the action menu in that client's row. **3. Request the bundle** Click **Request Support Bundle**. The action menu changes to **Requesting Support Bundle...** while the collector processes the request. **4. Confirm the request** BloodHound Enterprise displays **Support bundle requested successfully** when the request is queued. ## Download a support bundle Provide your SpecterOps support representative with the `.zip` file through the approved support workflow, or inspect it locally if you are troubleshooting without SpecterOps support. **1. Open the client action menu** In **Administration** > **Manage Clients**, open the action menu for the SharpHound Enterprise or OpenHound client. **2. Download the bundle** Click **Download Support Bundle**. BloodHound Enterprise displays **Support bundle download started.** when your browser begins downloading the file. **3. Confirm the download** Your browser downloads the bundle as a `.zip` file. The bundle contents depend on the collector type: > [tab] SharpHound Enterprise > > The file is named `sharphound_enterprise_support_bundle_.zip` and contains the following files: > > | **File** | **Description** | > | - | - | > | `log_archive/*.zip` | Archived SharpHound Enterprise logs. These files can include previous service logs, collection job logs, management operation logs, computer status CSVs, and archived collection output files. | > | `service.log` | The active SharpHound Enterprise service log. This file records service startup, configuration, API communication, tasking, and operational events. | > | `settings.json` | The SharpHound Enterprise service configuration file. This file includes connection, collection, and logging settings used by the collector. | > > > [!NOTE] > > > > SharpHound Enterprise support bundles do not include `auth.json` files. > [tab] OpenHound > > The file is named `_support_bundle_.zip` and contains the following files: > > | **File** | **Description** | > | - | - | > | `openhound.log` | The current OpenHound platform and service log. | > | `openhound.log.*` | Rotated OpenHound platform and service logs. | > | `ext_*.log` | Current logs for OpenHound collector extensions and pipeline components. | > | `ext_*.log.*` | Rotated logs for OpenHound collector extensions and pipeline components. | ## Delete a support bundle Delete a support bundle when you no longer need it or when you need to request a newer bundle for the same client. **1. Open the client action menu** In **Administration** > **Manage Clients**, open the action menu for the SharpHound Enterprise or OpenHound client. **2. Start deletion** Click **Delete Support Bundle**. **3. Confirm deletion** In the **Delete Support Bundle** confirmation dialog, confirm that you want to delete the bundle. BloodHound Enterprise displays **Support bundle deleted successfully** when complete. The client action menu returns to **Request Support Bundle** after the client table refreshes. ## Troubleshoot support bundles Use the following issues to troubleshoot support-bundle requests, downloads, and deletion. > [accordion] Request Support Bundle is missing > > **Likely cause:** The feature is not enabled, the client is not SharpHound Enterprise or OpenHound, the collector application is below the minimum supported version, or your role cannot use support-bundle controls. > > **Action:** Confirm that the client type is **SharpHound Enterprise** or **OpenHound**, and that the collector meets the minimum version: SharpHound Enterprise v2.16.0 or later or OpenHound v0.4.0 or later. Also confirm that you are assigned the **Administrator** role. Contact SpecterOps if the feature is not available in your tenant. > [accordion] The action menu is missing > > **Likely cause:** Your role can read clients but cannot manage client actions. > > **Action:** Ask an administrator to assign a role with client-management permissions or request the bundle for you. > [accordion] The request fails immediately > > **Likely cause:** BloodHound Enterprise cannot queue the request because of permissions, feature availability, client visibility, or a temporary service error. > > **Action:** Retry once. If it fails again, record the client name, request time, and error text. > [accordion] Requesting Support Bundle stays visible > > **Likely cause:** The collector has not picked up the request, is offline, or has not finished uploading the bundle. > > **Action:** Confirm the client status on **Manage Clients**. If the client is **Disconnected**, **Delayed**, or **Unconfigured**, troubleshoot collector connectivity before retrying. > [accordion] BloodHound says the bundle does not exist > > **Likely cause:** The request completed without an uploaded artifact. > > **Action:** Request a new bundle. If the problem repeats, contact support with the client name, collector version, and request time. > [accordion] The request failed or was canceled > > **Likely cause:** The collector or server ended the support-bundle operation before a downloadable file was available. > > **Action:** Request a new bundle. If the second request fails, collect the visible notification text and contact support. > [accordion] Download fails > > **Likely cause:** The browser, network path, permissions, or stored artifact is unavailable. > > **Action:** Try again. If it still fails, confirm that the bundle has not been deleted and contact support with the visible error. > [accordion] You need a newer bundle > > **Likely cause:** BloodHound keeps one downloadable support bundle per client. > > **Action:** Delete the existing support bundle, then request a new one. # Create a Collector Client Source: https://bloodhound.specterops.io/collect-data/enterprise-collection/create-collector Learn how to create a BloodHound Enterprise collector client. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) ## Purpose This guide explains how to create a BloodHound Enterprise collector client. It is intended for Administrators who are deploying a collector application for data collection. Collector clients connect your BloodHound Enterprise tenant to collector applications. They provide the authentication and configuration information that SharpHound Enterprise, AzureHound Enterprise, and OpenHound use to securely upload collected data for processing and analysis. BloodHound Enterprise supports three types of collector clients: * **SharpHound Enterprise** - Collects data from Active Directory environments * **AzureHound Enterprise** - Collects data from Entra ID environments * **OpenHound** - Collects data from cloud environments supported by OpenHound collectors ## Prerequisites * A BloodHound Enterprise tenant (A dedicated instance of BloodHound that contains its own data, configurations, and user access controls.) * Logged in as a user assigned a [role](/manage-bloodhound/auth/users-and-roles) authorized to create a collector client > [!NOTE] > > See [SharpHound Enterprise System Requirements](/install-data-collector/install-sharphound/system-requirements), [AzureHound Enterprise System Requirements](/install-data-collector/install-azurehound/system-requirements), or [OpenHound server/container requirements](/openhound/enterprise#server%2Fcontainer-requirements) for collector-specific requirements. ## Process This guide covers the required steps to create a collector client in your BloodHound Enterprise tenant. Optional configuration settings are also explained, but can be skipped during initial setup and configured later if necessary. ### SharpHound Enterprise SharpHound Enterprise collector clients support both API token-based authentication and Integrated Windows Authentication (IWA) via Active Directory Federation Services (ADFS). When creating a SharpHound Enterprise collector client, you must select the authentication method and provide the required information based on that method. Be sure to save the generated token or configuration information and use it to [configure](/install-data-collector/install-sharphound/local-configuration) the SharpHound Enterprise collector application. **1. Open the Manage Clients page** In the left menu, click **Administration** > **Manage Clients**. **2. Create the client** 1. On the right side of the page, click **Create Client**. 2. Select **Create SharpHound Enterprise Client** from the dropdown menu. 3. Complete the required fields: | Field | Required | Description | | - | - | - | | **Client Name** | Yes | A descriptive name for the collector client (for example, the name of the domain it collects from or system it runs on) | | **Collection Schedule** | No | Optional configuration options for [scheduling](/collect-data/enterprise-collection/collection-schedule) data collection jobs | | **Advanced Options** | No | Optional domain controller targeting By default, SharpHound automatically selects a Domain Controller for LDAP queries. Specifying a target will prevent cross-trust collection from working unless the targeted LDAP server can respond for all desired domains | | **Authentication** | Yes | Authentication method the client will use:
  • **BHE Authentication**: Traditional API token-based authentication (default)
  • **Integrated Windows Authentication**: Windows-based authentication via ADFS
| | **Issuer Address** | Yes (*IWA only*) | The ADFS well-known endpoint URL, typically: `https://adfs.example.com/.well-known/openid-configuration` | | **Issuer Address Override** | No (*IWA only*) | An optional override for the token issuer address if your ADFS configuration uses a different issuer URL for token validation | | **Custom Client Identifier** | No (*IWA only*) | An optional value that BloodHound Enterprise uses to associate the ADFS bearer token with this client when the token identifies the client with a value other than the generated Client ID. The value must exactly match the configured token claim and be unique across clients. Leave blank to use the generated Client ID. | > [tab] BHE Authentication > > The following screenshot shows the client creation form when **BHE Authentication** is selected. > > ![A view of the Create Client screen for SharpHound Enterprise](https://mintcdn.com/specterops/THSfGdmoVlHP6lc_/images/data_collectors/create-sharphound-bhe-auth.png?fit=max\&auto=format\&n=THSfGdmoVlHP6lc_\&q=85\&s=0da174469cfc2cf59bb329450852d8fb) > [tab] Integrated Windows Authentication > > The following screenshot shows the client creation form when **Integrated Windows Authentication** is selected. > > Note the additional required **Issuer Address** field and optional **Issuer Address Override** and **Custom Client Identifier** fields. > > ![A view of the Create Client screen for SharpHound Enterprise IWA](https://mintcdn.com/specterops/THSfGdmoVlHP6lc_/images/data_collectors/create-sharphound-iwa-auth.png?fit=max\&auto=format\&n=THSfGdmoVlHP6lc_\&q=85\&s=d9afd07545693347255df7a8a97cda19) 4. Click **Create**. **3. Save the client token or configuration** A pop-up window will appear and display the client token (for BHE Authentication) or client ID information (for Integrated Windows Authentication). Follow the instructions in it before clicking **Close**. > [!NOTE] > > **Switching Authentication Methods** > > If you are switching an existing SharpHound Enterprise collector client to a different authentication method, this step replaces the current credentials. > > * Switching to **Integrated Windows Authentication** invalidates existing API tokens and requires you to update the `settings.json` file and remove the `auth.json` file. > * Switching to **BHE Authentication** generates a new token and requires you to update the `auth.json` file and disable IWA in the `settings.json` file. > [tab] BHE Authentication > > A *Client Token Info* window will appear with authentication credentials. Copy and save the token information before closing. > > > [!NOTE] > > > > The token information is required to [configure](/install-data-collector/install-sharphound/local-configuration#auth-json) the SharpHound Enterprise collector application in the `auth.json` file. > > ![A view of the client token info screen for SharpHound Enterprise](https://mintcdn.com/specterops/D55xoeIL2FwCP-YZ/images/data_collectors/sharphound-client-token-info.png?fit=max\&auto=format\&n=D55xoeIL2FwCP-YZ\&q=85\&s=f0ac33f2a2cb70450b9be7ce7c9df81b) > [tab] Integrated Windows Authentication > > A *Client Configuration Info* window will appear with the Client ID required to set up ADFS. > > > [!NOTE] > > > > The Client ID and configuration details are required to [configure ADFS](/install-data-collector/install-sharphound/configure-adfs-iwa) and to [configure](/install-data-collector/install-sharphound/local-configuration) the SharpHound Enterprise collector application in the `settings.json` file. > > > > If you entered a Custom Client Identifier, record it for the ADFS claim-rule configuration. The value must be included in the ADFS token's client-identifier claim; do not add it to SharpHound's `settings.json` file. > > ![A view of the client configuration info screen for SharpHound Enterprise IWA](https://mintcdn.com/specterops/D55xoeIL2FwCP-YZ/images/data_collectors/sharphound-client-config-info.png?fit=max\&auto=format\&n=D55xoeIL2FwCP-YZ\&q=85\&s=6eae2f1765b14f1c786c289e2d4819bc) ### AzureHound Enterprise AzureHound collector clients use API token-based authentication. When creating an AzureHound collector client, you must save the generated **Token ID** and **Token** before closing the dialog. You use these credentials to [configure](/install-data-collector/install-azurehound/create-configuration) the AzureHound collector application. **1. Open the Manage Clients page** In the left menu, click **Administration** > **Manage Clients**. **2. Create the client** 1. On the right side of the page, click **Create Client**. 2. Select **Create AzureHound Client** from the dropdown menu. 3. Complete the required fields: | Field | Required | Description | | - | - | - | | **Client Name** | Yes | A descriptive name for the collector client (for example, the name of the domain it collects from or system it runs on) | | **Collection Schedule** | No | Optional configuration options for [scheduling](/collect-data/enterprise-collection/collection-schedule) data collection jobs | ![A view of the Create Client screen for AzureHound Enterprise](https://mintcdn.com/specterops/NuvEx5RAlEpXt0Eq/images/data_collectors/create-azurehound.png?fit=max\&auto=format\&n=NuvEx5RAlEpXt0Eq\&q=85\&s=84f535237560e469a0ffae880c5c215e) 4. Click **Create**. **3. Save the client token** A *Client Token Info* window appears with authentication credentials. Copy and save the token information before closing the window. > [!NOTE] > > The token information is required to [configure](/install-data-collector/install-azurehound/create-configuration) the AzureHound collector application. ![A view of the client token info screen for AzureHound Enterprise](https://mintcdn.com/specterops/NuvEx5RAlEpXt0Eq/images/data_collectors/azurehound-client-token-info.png?fit=max\&auto=format\&n=NuvEx5RAlEpXt0Eq\&q=85\&s=c4d1b7eda843a062097d8393b421a028) ### OpenHound OpenHound collector clients use API token-based authentication. When creating an OpenHound collector client, you must save the generated **Token ID** and **Token** before closing the dialog. You use these credentials to [configure](/openhound/configuration#enterprise-2) the OpenHound `secrets.toml` file. > [!NOTE] > > This is a SpecterOps-managed feature. If it is not enabled in your environment, contact your account team for assistance. **1. Open the Manage Clients page** In the left menu, click **Administration** > **Manage Clients**. **2. Create the client** 1. On the right side of the page, click **Create Client**. 2. Select **Create OpenHound Client** from the dropdown menu. 3. Complete the required fields: | Field | Required | Description | | - | - | - | | **Client Name** | Yes | A descriptive name for the collector client (for example, the environment it collects from) | | **Collection Schedule** | No | Optional configuration options for [scheduling](/collect-data/enterprise-collection/collection-schedule) data collection jobs | ![A view of the Create Client screen for OpenHound](https://mintcdn.com/specterops/VcftGf8JZI2II_sl/images/data_collectors/create-openhound.png?fit=max\&auto=format\&n=VcftGf8JZI2II_sl\&q=85\&s=465ef03e366efdaae046d9e5936677eb) 4. Click **Create**. **3. Save the client token** A *Client Token Info* window appears with authentication credentials. Copy and save the token information before closing the window. > [!NOTE] > > The token information is required to [configure](/openhound/configuration#enterprise-2) the OpenHound `secrets.toml` file. ![A view of the client token info screen for OpenHound](https://mintcdn.com/specterops/VcftGf8JZI2II_sl/images/data_collectors/create-openhound-client-token-info.png?fit=max\&auto=format\&n=VcftGf8JZI2II_sl\&q=85\&s=8ee43bc35b92b63c47359c4bb256f97a) ## Outcome BloodHound Enterprise displays collector clients in the table on the **Manage Clients** page with a **Status** of **Unconfigured**. ![A view of the clients table showing newly created AzureHound, OpenHound, and SharpHound Enterprise collector clients with a status of Unconfigured](https://mintcdn.com/specterops/VcftGf8JZI2II_sl/images/data_collectors/create-collector-outcome.png?fit=max\&auto=format\&n=VcftGf8JZI2II_sl\&q=85\&s=331ebc90947201e0d896be375fe8b19f) ## Next Steps * SharpHound Enterprise clients: * **BHE Authentication**: Use the token information to [configure](/install-data-collector/install-sharphound/local-configuration#auth-json) the SharpHound Enterprise collector application in the `auth.json` file. * **Integrated Windows Authentication**: Follow the [ADFS configuration guide](/install-data-collector/install-sharphound/configure-adfs-iwa) to set up ADFS, then [configure](/install-data-collector/install-sharphound/local-configuration#settings-json) the SharpHound Enterprise collector application in the `settings.json` file. * AzureHound Enterprise clients: * Use the token information to [configure](/install-data-collector/install-azurehound/create-configuration) the AzureHound collector application. * OpenHound clients: * Use the **Token ID** and **Token** to [configure](/openhound/configuration#enterprise-2) the OpenHound `secrets.toml` file. # SharpHound Enterprise Cross-Trust Collection Source: https://bloodhound.specterops.io/collect-data/enterprise-collection/cross-trust Learn how to configure SharpHound Enterprise to collect data across trusted Active Directory domains and forests. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) By default, SharpHound Enterprise collects only from the domain where the SharpHound service account belongs. > [!NOTE] > > If you need to collect from trusted domains or other forests, configure **Scope Collection to Multiple Domains** in the client or schedule **Advanced Options**. > > You can either specify a list of domains or enable **Collect from all domains trusting the SharpHound service account domain, including transitively**. ## Configure Cross-Trust Collection In **Scope Collection to Multiple Domains**, you can either specify a list of domains to collect from or enable **Collect from all domains trusting the SharpHound service account domain, including transitively**. This option also collects from trusting domains in other forests. ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-85.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=468fba27c1eb14febc49d7c8624680fe) If selective authentication is enabled on a trust, the SharpHound Enterprise service account must explicitly be granted read permissions on all AD objects in all domains of the targeted forest to perform collection. ## Collect Across External Trust Kerberos authentication works by default for all Active Directory trust types except external trusts. SharpHound Enterprise supports collection across external trusts via two mechanisms. ### Forest Search Order (preferred) Administrators can enable Kerberos authentication across external trusts by adding the name of the other domain to the [Use forest search order](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-r2-and-2008/hh920181\(v=ws.10\)) policy setting on Domain Controllers. ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-86.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=b8aa7445f4a94955316538345e0cb007) We recommend deploying this setting to all Domain Controllers in domains with external trusts to avoid using the older and less secure NTLM authentication. ### LDAP Auto-Negotiation By default, SharpHound Enterprise only supports Kerberos authentication for the LDAP connections to Domain Controllers for Active Directory Structure Data collection. This will cause the collection across the external trust to fail without modifying SharpHound's default behavior in the `settings.json` configuration file. > [!TIP] > > The default configuration file path is described in [SharpHound Enterprise Local Configuration](/install-data-collector/install-sharphound/local-configuration). To enable support for auto-negotiation in LDAP connections: 1. Stop the SharpHound Delegator service. 2. Open the `settings.json` configuration file as an Administrator (right click -> Run as Administrator on notepad.exe). 3. Change the `ForceLDAPKerberosAuth` setting to `False` (no quotes). 4. Save the `settings.json` configuration file. 5. Start the SharpHound Delegator service. If NTLM fallback is enabled, deny outbound NTLM authentication from the SharpHound server to all servers except Domain Controllers in domains with external trust relationships. For hardening guidance, see [NTLM cracking (and relaying) remediation](/manage-bloodhound/securing-bloodhound-and-collectors/sharphound-hardening#attack-4-ntlm-cracking). ## Troubleshoot Cross-Trust Collection The collection across a trust will fail if: * The Kerberos-supported encryption types between domains/forests do not match. * Authentication has been restricted, e.g., using authentication policy silos or IPSec. * There is no network access from the SharpHound server to the trusting domain's DCs and domain-joined Windows systems in scope for privileged collection. # Data Reconciliation and Retention Source: https://bloodhound.specterops.io/collect-data/enterprise-collection/data-retention ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) ## Data reconciliation BloodHound Enterprise (BHE) will perform data reconciliation. That is, BHE will automatically update changes identified during subsequent data collections, such as the removal of group membership, role assignments, access control list changes, etc. ### HasSession edge reconciliation [HasSession](/resources/edges/has-session) edges are generated to indicate patterns of behavior rather than session active at any exact moment. For this reason, HasSession edges are only reconciled based on their retention/time-to-live expiring, rather than reconciling upon follow-on collections no longer seeing the active session. If you need to refresh session data immediately, an administrator can delete **HasSession** edges from **Database Management** before recollecting session data instead of waiting for the retention window to expire. > [!NOTE] > > Manual **HasSession** edge deletion is generally only necessary in BloodHound Community. In BloodHound Enterprise, **HasSession** edges reconcile automatically based on the configured retention period. Delete them manually only when you need to refresh session data immediately instead of waiting for that retention window to expire. ## Data retention BloodHound Enterprise (BHE) implements data retention, i.e., a time-to-live where data that has not been collected and ingested for a certain period will get deleted from BHE. This retention period is configurable and is by default: * Session Data, i.e. [HasSession](/resources/edges/has-session) edges: 3 days * General Data, i.e. objects/nodes and relationships/edges, excluding HasSession edges: 7 days Tier Zero tags on deleted nodes will remain, and the Group Management page will show the deleted node as an object ID. Data retention periods can be changed at ⚙️ > Administration > BloodHound Configuration: ![](https://mintcdn.com/specterops/3L2OuEwvAIHzUPXm/assets/image-57.png?fit=max\&auto=format\&n=3L2OuEwvAIHzUPXm\&q=85\&s=eaad4b8c2501bdf225a671a1a1850c59) Retention means BHE does not assume that lack of visibility during a single collection means that an object or edge no longer exists; it's possible that the most recent collection, for example, if BHE doesn't see a user object for some reason (operational issue, collection scoped to another domain, etc.). On objects, this timestamp is updated for both visibility of the object itself and visibility to references of the object. For example, if an object is deleted, but the SID remains present in an ACE applied to some other remaining object, this timestamp will be updated, and the object will appear present in BHE. To implement this, BHE stores a timestamp on every data point, updated whenever a new collection includes the same data point. The timestamp on nodes can be seen as the "Last Seen by BloodHound" property in every node's entity panel on the **Explore** page. ![Last Seen by BloodHound property in a node's entity panel](https://mintcdn.com/specterops/pHejRdw4zAfrroMt/images/data_collectors/data-retention-last-seen.png?fit=max\&auto=format\&n=pHejRdw4zAfrroMt\&q=85\&s=df83e5bf563639c42c15f08fe7c010f0) > [!NOTE] > > In cases where retention maintains visibility into an already resolved finding, the "Accept" feature may be used to hide nodes/principals in the "Attack Paths" page, see [Accept attack path finding](/analyze-data/bloodhound-gui/accept-findings). ### Active Directory recycle bin BHE's data retention period starts once an object has been permanently deleted from Active Directory, that is, after the object has left retention in the AD recycle bin. By default, the AD recycle bin has a retention (tombstone lifetime) of 180 days; thus, the default total retention for nodes will be 180 days + 7 days = 187 days. Check if the AD recycle bin has been enabled for the forest: ```powershell theme={null} # Returns 'True' if the AD recycle bin has been enabled [bool](Get-ADOptionalFeature -Identity 766ddcd8-acd0-445e-f3b9-a7f9b6744f2a | select -ExpandProperty EnabledScopes) ``` Check the AD recycle bin's retention period (tombstone lifetime): ```powershell theme={null} # Returns the number of days the AD recycle bin retains deleted objects (tombstone lifetime) $ForestConfigurationNC = (Get-ADRootDSE).configurationNamingContext Get-ADObject -Identity "CN=Directory Service,CN=Windows NT,CN=Services,$ForestConfigurationNC" -Partition $ForestConfigurationNC -Properties tombstoneLifetime | select tombstoneLifetime ``` # SharpHound Collection FAQ Source: https://bloodhound.specterops.io/collect-data/enterprise-collection/faq The following are common questions about the data collection capabilities provided by the SharpHound Enterprise service. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) > [accordion] How long does collection take? > > Collection time can vary from minutes to hours depending on the size of the environment (but other complicating factors can contribute to longer durations). > > Example full scan and upload durations with privileged collection: > > * 15,000 users + groups, 4,000 computers, and AD CS: 45 minutes > * > 500,000 computers , and AD DS: 3 hours > [accordion] How does SharpHound select which domain controller to use with auto-negotiation? > > SharpHound automatically selects the best Domain Controller based on information returned from Active Directory. > [accordion] What do the LDAP errors mean in a SharpHound run.log? > > If you see an error in run.log that looks something like this: > > 2022-08-05T09:18:13.6406652-04:00|WARNING|\[CommonLib LDAPUtils]LDAP Exception in Loop: 52. (null). The LDAP server returned an unknown error.. > > You may reference this link to understand the meaning of the exception code by number: [https://ldap.com/ldap-result-code-reference-core-ldapv3-result-codes](https://ldap.com/ldap-result-code-reference-core-ldapv3-result-codes) > [accordion] Hows does SharpHound Enterprise interact with antivirus? > > SharpHound Enterprise installs as a signed Windows service. For this reason, antivirus products tend not to alert on the service. > > Notable exceptions include: > > * Behavioral analytics tools: Any security tool that performs behavioral identification of scanners will flag SharpHound Enterprise as a scanner during local privileged collection. Typically these cannot block activity but will generate alerts to the SOC. > * Cisco Umbrella: As each customer is deployed utilizing their own domain, Umbrella commonly flags the domain as new and will quarantine it until excluded by an administrator. # Least-Privileged Collection in SharpHound Source: https://bloodhound.specterops.io/collect-data/enterprise-collection/least-privileged-collection Learn how to collect more than AD Structure data without Domain Admin. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) Privileged collection allows BloodHound to analyze Attack Paths based on non-centralized configurations using privileged administrative credentials, similar to performing a privileged vulnerability scan. Least-privileged collection accomplishes these goals without using default administrative privileges to perform the collection. With some additional configuration SharpHound can collect the local groups, active sessions, and registry keys without adding any SharpHound collection service accounts to `Domain Admins`. > [!NOTE] > > We also recommend following the article [SharpHound Enterprise Service Hardening](/manage-bloodhound/securing-bloodhound-and-collectors/sharphound-hardening). ## AD Structure Data By default, all `Authenticated Users` may query almost all data from Active Directory utilized by BloodHound via LDAP. Additional privileges are required for the sections below. ### Restricted Read Permissions If modifications exist that restrict the default read permissions, the SharpHound collector service account must be a member of an audit role group which is granted `Read Property` and `Read Permissions` on all collected AD objects. ### Delegated Managed Service Account The Active Directory Schema restricts `Authenticated Users` read permissions on Delegated Managed Service Account (dMSA) objects by default. Grant the SharpHound account `Read` and `Read Permissions` on dMSA objects in the `Managed Service Accounts` container by running the code below after changing the SID to the SharpHound account. Repeat for all other OUs containing dMSA objects. ```powershell theme={null} Import-Module ActiveDirectory # SharpHound account SID $SharpHoundSID = "S-1-5-21-1273778777-4208638582-2921056243-16306" # Container/OU to grant permissions on $MSAContainerDN = "CN=Managed Service Accounts," + $(Get-ADDomain).DistinguishedName # Static configuration $DMSAObjectClassGUID = [GUID]"0feb936f-47b3-49f2-9386-1dedc2c23765" # msDS-DelegatedManagedServiceAccount $Trustee = New-Object System.Security.Principal.SecurityIdentifier($SharpHoundSID) # Get current ACL and trustee SID $ACL = Get-Acl "AD:\$MSAContainerDN" # Add Read Property and Read Permissions ACEs (inherit-only on dMSA objects) $ACL.AddAccessRule((New-Object System.DirectoryServices.ActiveDirectoryAccessRule($Trustee, "ReadProperty", "Allow", [GUID]::Empty, "Descendents", $DMSAObjectClassGUID))) $ACL.AddAccessRule((New-Object System.DirectoryServices.ActiveDirectoryAccessRule($Trustee, "ReadControl", "Allow", [GUID]::Empty, "Descendents", $DMSAObjectClassGUID))) # Apply the modified ACL Set-Acl "AD:\$MSAContainerDN" -AclObject $ACL ``` ### Deleted Objects Container (Optional) SharpHound can read the content of the Deleted Objects container (also known as the AD Recycle Bin). Collecting deleted objects affects data retention behavior in BloodHound Enterprise, see [Active Directory Recycle Bin](/collect-data/enterprise-collection/data-retention#active-directory-recycle-bin) for details on how this impacts retention periods. You can delegate permissions to a group for [read access to the "Deleted Objects" container](https://learn.microsoft.com/en-us/troubleshoot/windows-server/identity/non-administrators-view-deleted-object-container), and then add the SharpHound collector service account to that group. The Deleted Objects container locations are: * Domain NC Deleted Objects DistinguishedName (DN): `CN=Deleted Objects,` * Configuration NC Deleted Objects DistinguishedName (DN): `CN=Deleted Objects,CN=Configuration,` > [!NOTE] > > SharpHound can read these containers even if the AD Recycle Bin feature is not enabled. ## Local Group Membership SharpHound collects local group membership via [Remote SAM Enumeration](https://learn.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/network-access-restrict-clients-allowed-to-make-remote-sam-calls). By default, on currently supported Windows operating systems, only `Administrators` on the device(s) being collected have this right on Windows clients and member servers. For compatibility purposes, `Everyone` is granted this right on domain controllers by default. Microsoft supports delegating this permission via a properly scoped Group Policy Object with the [Network access: Restrict clients allowed to make remote calls to SAM](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/security-policy-settings/network-access-restrict-clients-allowed-to-make-remote-sam-calls) setting. For example, if our Tier Zero SharpHound collector gMSA is a member of the Allow_SamConnect_T0 group, a GPO configured like this and linked to the Tier Zero OU where all of the non-DC Tier Zero assets are located, SharpHound will be able to collect Local Group data from those hosts. ![](https://mintcdn.com/specterops/XoGxbpcZWmSbKcIE/assets/least-priv-gpo-samr.png?fit=max\&auto=format\&n=XoGxbpcZWmSbKcIE\&q=85\&s=399fdd8ced99e006045fcc72ccb7a4a0) ## User Rights Assignments Only `Administrators` can perform the `LsaOpenPolicy` and `LsaEnumerateAccountsWithUserRights` function calls necessary to collect User Rights Assignments (URAs) directly from a remote host. There is no known way around this limitation. Currently, not collecting User Rights Assignments may cause inaccurate [CanRDP](/resources/edges/can-rdp) edges. In the future, SharpHound may collect additional user rights to identify more attack paths. ## Sessions By default, local `Administrators` have the rights necessary to perform the [NetWkstaUserEnum](https://learn.microsoft.com/en-us/windows/win32/api/lmwksta/nf-lmwksta-netwkstauserenum) function calls to collect session data. While not ideal, local `Print Operators` also have the rights necessary to collect session data from Windows Server hosts. Unfortunately, this option does not exist on Windows desktop operating systems. An alternate collection method, such as event log parsing, is required to collect session data from all domain-joined devices. To collect session data from domain controllers, the collector service account can be added to the local builtin [Print Operators](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-groups#print-operators) group for the domain. When doing this it is also important to lessen the capabilities of the Print Operators group by removing the default User Rights Assignments created by the Default Domain Controllers Policy linked to the Domain Controllers OU. The Print Operators group should no longer be granted rights to Allow log on locally: `SeInteractiveLogonRight`, Load and unload device drivers: `SeLoadDriverPrivilege`, and Shut down the system: `SeShutdownPrivilege`. Domain controllers should not be used as print servers and the builtin Print Operators group for the domain should be unused, except perhaps for this purpose. ![](https://mintcdn.com/specterops/XoGxbpcZWmSbKcIE/assets/least-priv-gpo-defang-printop.png?fit=max\&auto=format\&n=XoGxbpcZWmSbKcIE\&q=85\&s=7ea2200098901c71f62472d913f723be) To collect session data from Windows member servers, the collector service account can be added to the local `Print Operators` group on each device. The best way to accomplish this is likely via Group Policy Preferences. For example, if our Tier One SharpHound collector gMSA is a member of the Allow_NetwkstaUserEnum_T1 group, a GPO configured like this and linked to any OUs where Tier One assets are located will grant the SharpHound collector session enumeration rights. ![](https://mintcdn.com/specterops/XoGxbpcZWmSbKcIE/assets/least-priv-gpo-local-printop.png?fit=max\&auto=format\&n=XoGxbpcZWmSbKcIE\&q=85\&s=052f927deb6a615873984f323065656e) > [!TIP] > > Local group membership can also be managed via the `Restricted Groups` GPO setting category. This is a legacy setting. Group Policy Preferences is more robust and less likely to create security or denial of service (DoS) issues. Collecting session data from domain-joined Windows desktops will require membership in the local `Administrators` group on each endpoint, which is best handled via Group Policy Preferences. Utilizing a service account that is a member of `Domain Admins` is strongly discouraged. There may be other options for collecting session data from the environment, such as parsing Windows event logs from all forest domain controllers, specifically Event ID 4624. ## Certificate Services All `Authenticated Users`, by default, may collect certificate services data from Active Directory via LDAP. The majority of certificate services data is in the Configuration NC for the forest and collected with the AD Structure data. The remainder of Certificate Services data may be collected from the Windows Registry. ## Registry SharpHound collects registry data for both certificate services and NTLM relay edges. The certificate services registry paths are on certificate authorities and domain controllers. NTLM relay paths are located on all Windows hosts. By default, only `Administrators` may read the registry remotely. There are two methods to delegate remote registry access for least-privileged collection: 1. **AllowedPaths / AllowedExactPaths exceptions**: Create exceptions using the GPO setting [Network access: Remotely accessible registry paths](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/security-policy-settings/network-access-remotely-accessible-registry-paths) to allow `Authenticated Users` to connect to the `Remote Registry` named pipe at specific registry paths. Effective access is still governed by permissions on individual registry keys. 2. **Modify Remote Registry named pipe security descriptor**: Alternatively, modify the default security descriptor on the `Remote Registry` named pipe to grant explicit security principals read permissions to the entire registry. Permissions on individual registry keys still govern effective access. ![](https://mintcdn.com/specterops/XoGxbpcZWmSbKcIE/assets/least-priv-gpo-winreg.png?fit=max\&auto=format\&n=XoGxbpcZWmSbKcIE\&q=85\&s=cd24c6dcb34c8cade934ff27d58a0964) ### CA Registry When the AD CS role is installed in Windows, the `HKLM\SYSTEM\CurrentControlSet\Services\CertSvc` registry path is automatically added to `HKLM\SYSTEM\CurrentControlSet\Control\SecurePipeServers\winreg\AllowedPaths`. This creates a remote registry exception that allows `Authenticated Users` to query any keys and subkeys in this path, as long as they also are granted rights to read the key. Therefore, CA registry data is accessible to `Authenticated Users` by default when AD CS is installed. ### DC Registry For domain controllers, you can create exceptions by adding the required DC registry paths to `HKLM\SYSTEM\CurrentControlSet\Control\SecurePipeServers\winreg\AllowedExactPaths` using the GPO setting mentioned above. This will create an exception to the Remote Registry named pipe on the DC allowing `Authenticated Users` to read those exact key paths, as long as they also are granted permissions on the registry key DACL. ### NTLM Relay Registry Paths Registry paths for NTLM relay edges exist on all Windows hosts. By default, only `Administrators` can access these paths remotely. To enable least-privileged collection, use Group Policy to add these specific paths to `AllowedExactPaths`. This grants `Authenticated Users` remote read access, following the same method described above. ### Azure VM Registry Azure VM identity collection reads `HKLM\SOFTWARE\Microsoft\Windows Azure\VmId` from domain-joined Windows computers. If SharpHound uses the Remote Registry fallback, add `HKLM\SOFTWARE\Microsoft\Windows Azure` to `AllowedExactPaths` with the GPO setting described above. The target computer's registry key permissions must also allow the collector account to read the key and value. SharpHound tries WMI before Remote Registry. This delegation guidance covers the Remote Registry fallback; verify WMI permissions and network access separately if your deployment relies on the WMI strategy. # Monitor Data Collection Source: https://bloodhound.specterops.io/collect-data/enterprise-collection/monitor Learn how to interpret the status of collector jobs and file uploads. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Monitor collection activity and processing status to confirm uploads, understand analysis timing, and troubleshoot failures. The status concepts in this guide apply to both collector client jobs on the [Finished Jobs Log](#finished-jobs-log) page and manual uploads on the [File Ingest](#file-ingest) page. BloodHound Enterprise uses separate status indicators for tenants and jobs. These statuses operate independently and are not directly synchronized. This means you may observe scenarios where job status and tenant status appear out of sync, which is expected behavior. * **Tenant** status reflects datapipe ingestion and analysis progress. The datapipe performs its own processing and reflects status independent of job status. * **Job** status reflects the collector client and file ingest workflows. Jobs notify the datapipe when certain actions are complete. > [!TIP] > > For more information about what triggers analysis, see [Analysis Process](/analyze-data/findings/analysis#when-analysis-runs). ## Tenant Status Tenant status (also known as [datapipe status](/reference/datapipe/get-datapipe-status)) displays in the top-right corner of the BloodHound Enterprise user interface. This status reflects the current state of data processing for your tenant. | Status | Description | | - | - | | **Idle** | The tenant is waiting for new data. | | **Purging** | Data is actively being deleted from the database (for example, you used the **Database Management** page to delete data). | | **Ingesting** | Data is actively being ingested from one or more collection jobs or file uploads. | | **Analyzing** | Analysis is actively running on ingested data. | | **Optimizing** | BloodHound is optimizing graph storage after startup or analysis to keep graph performance responsive. | | **Pruning** | Analysis is almost complete; stale objects, edges, and disconnected nodes are being removed based on [data reconciliation](/collect-data/enterprise-collection/data-retention) settings. | With [Variable Analysis Mode](/analyze-data/findings/analysis#variable-analysis-mode), analysis triggered by Privilege Zone changes still appears as **Analyzing** in tenant status. The tenant status does not distinguish between a full analysis run and a variable analysis run that starts at **Tagging**. *Scheduled analysis (a SpecterOps-managed feature) always runs a full analysis.* ## Job Status The following statuses apply to both the **Finished Jobs Log** and **File Ingest** pages. | Status | Description | | - | - | | **Ready** | Job is queued and waiting to start. | | **Running** | Job is actively executing data collection or file processing. | | **Complete** | Job finished successfully; all data has been ingested and analyzed. | | **Partially Completed** | Job finished with some data processed successfully, but one or more files or operations encountered issues. Check the job details for specific warnings. | | **Canceled** | Job was manually canceled before completion. | | **Timed Out** | Job exceeded the maximum allowed execution time and was terminated. | | **Failed** | Job encountered an error and could not complete. Check the job details for specific error messages. | | **Ingesting** | Data is actively being written to the database. | | **Analyzing** | Data collection is complete; awaiting completion of analysis. | | **Invalid** | Data failed validation (for example, schema errors, corrupted files, or unsupported formats). | The following state diagram illustrates the possible transitions between job statuses: ```mermaid theme={null} stateDiagram-v2 [*] --> Ready Ready --> Running: Job starts Running --> Ingesting: Data upload begins Running --> Failed: Error occurs Running --> TimedOut: Timeout exceeded Running --> Canceled: User cancels Ingesting --> Analyzing: Ingestion complete Ingesting --> Invalid: Validation fails Analyzing --> Complete: Analysis complete Analyzing --> PartiallyCompleted: Partial success state "Timed Out" as TimedOut state "Partially Completed" as PartiallyCompleted Complete Failed Canceled Invalid ``` ## Finished Jobs Log Data collection clients log completed jobs to the **Finished Jobs Log**, which provides details about all collection activities that a client performs. This log is essential for monitoring and troubleshooting data collection jobs. The **Finished Jobs Log** page provides a detailed log of each collection job, including: | Field | Value | | - | - | | **ID** | A unique identifier for the client collection job | | **Client** | The client that initiated the collection job | | **Status** | The [status](#job-status) of the collection job (for example, complete, failed) | | **Message** | A brief message providing additional context about the collection job | | **Start Time** | The time when the collection job started | | **Duration** | The time taken to process the collection job | | **Data Collected** | The type of data that the client is configured to collect, see [SharpHound Data and Permissions](/collect-data/sharphound-data-permissions) and [AzureHound Data and Permissions](/collect-data/azurehound-data-permissions) | > [!NOTE] > > For clients on [scheduled collection](/collect-data/enterprise-collection/collection-schedule), jobs can display an *Analyzing* status while the tenant status remains *Idle*. When the scheduled collection time arrives, the tenant status changes to *Ingesting*, and analysis begins automatically after the collection completes successfully. ![Finished Jobs Log screen showing the details panel](https://mintcdn.com/specterops/g2ltNIVwNN2AtKcq/images/data_collectors/view-finished-jobs-log.png?fit=max\&auto=format\&n=g2ltNIVwNN2AtKcq\&q=85\&s=8f1f62fccb896126a1f2e21e80901644) **1. View the Finished Jobs Log** In the left menu, click **Administration** > **Finished Jobs Log**. **2. Open the Details panel** Click the specific job **ID** in the table to open the **Details** panel. > [!TIP] > > You can also click the icon to filter job IDs by status, data collected, data range, and client. **3. Review the job details** In the **Details** panel, review the job details for the selected ID. Look for any errors or warnings that may indicate issues during the collection process. The **Details** panel displays the following information for each job ID: | Field | Description | | - | - | | **Job ID** | A unique identifier for the client collection operation | | **Client Name** | The name of the client that performed the collection | | **Domains attempted** | The number of domains that were attempted to be collected | | **Domain Controller** | The domain controller used for collection | | **OUs** | The organizational units (OUs) that were collected | | **Domains** | The domains that were collected, including the number of objects collected from each domain and status messages (if available) | ![Finished Jobs Log Details panel showing job details](https://mintcdn.com/specterops/g2ltNIVwNN2AtKcq/images/data_collectors/finished-jobs-log-details.png?fit=max\&auto=format\&n=g2ltNIVwNN2AtKcq\&q=85\&s=75e328c74e16792da1ac292de9029c61) ## File Ingest When you perform an [ad-hoc data collection](/collect-data/enterprise-collection/ad-hoc-collection) by uploading a SharpHound output .zip file, ingestion process details are logged on the **File Ingest** page. You can use this page to monitor ingestion and ensure successful data processing. It shows the status of each file ingest operation, which can be helpful for viewing data upload history or troubleshooting data ingestion issues. The **File Ingest** page provides a detailed log of each ingestion attempt, including: | Field | Description | | - | - | | **ID** | A unique identifier for the file ingest operation | | **User** | The user who initiated the file ingest operation | | **Status** | The current [status](#job-status) of the file ingest operation (for example, complete, failed) | | **Message** | A brief message providing additional context about the file ingest operation | | **Start Time** | The time when the file ingest was initiated | | **Duration** | The time taken to process the file ingest operation | | **File Information** | Details about the ingested file(s), such as file count and file name(s) | **1. View File Ingest logs** In the left menu, click **Administration** > **File Ingest**. **2. Open the Details panel** Click the specific file ingest **ID** in the table to open the **Details** panel. > [!TIP] > > You can also click the icon to filter ingest IDs by status, data range, and user. ![File Ingest screen showing the upload details panel](https://mintcdn.com/specterops/g2ltNIVwNN2AtKcq/images/data_collectors/view-file-ingest-details.png?fit=max\&auto=format\&n=g2ltNIVwNN2AtKcq\&q=85\&s=f3b361dcf3011a9a0a26cb751eaef709) **3. Review the log entries** In the **Details** panel, review the log entries for the selected ID. Look for any errors or warnings that may indicate issues during the ingestion process. If a file failed to ingest due to format issues or data corruption, the log provides specific error messages to help you diagnose the problem. For example, the following log indicates a failed ingestion due to a schema validation error: ![File Ingest screen showing details about a failed file ingest](https://mintcdn.com/specterops/g2ltNIVwNN2AtKcq/images/data_collectors/file-ingest-fail-example.png?fit=max\&auto=format\&n=g2ltNIVwNN2AtKcq\&q=85\&s=8a3deaa55265ec0458018967d7ab93a4) # Run an On Demand Scan Source: https://bloodhound.specterops.io/collect-data/enterprise-collection/on-demand-scan Learn how to run an on demand scan with a collector client in BloodHound Enterprise. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) ## Purpose This article describes how to run an unscheduled scan to perform a one-time, immediate data collection with a collector client. Administrators may use it during collector client deployment, one-time collections, or troubleshooting. ## Prerequisites The following prerequisites are required to run an on demand scan: * An existing SharpHound Enterprise or AzureHound Enterprise [collector client](/collect-data/enterprise-collection/create-collector) * Logged in as a user assigned a [role](/manage-bloodhound/auth/users-and-roles) authorized to run a collector client on demand scan ## Process The process to run an on demand scan consists of the following steps: **1. Open the Manage Clients page** In the left menu, click **Administration** > **Manage Clients**. **2. Choose a collector client** On the client that you want to schedule, click the icon in the *Action* column and select **On Demand Scan**. > [!TIP] > > Verify the client is online by validating **Status** is **Ready** ![A collector client with the Action menu open and On Demand Scan selected](https://mintcdn.com/specterops/g2ltNIVwNN2AtKcq/images/data_collectors/run-on-demand-scan.png?fit=max\&auto=format\&n=g2ltNIVwNN2AtKcq\&q=85\&s=af70d3c986c35b3d6fbe7e831b8649cc) **3. Configure the scan** Configure the following details in the **On Demand Scan** window: * **Data**: The [type of data](/collect-data/permissions) that the scan collects, see: * [SharpHound Data and Permissions](/collect-data/sharphound-data-permissions) * [AzureHound Data and Permissions](/collect-data/azurehound-data-permissions) * **Advanced Options**: > [!NOTE] > > If you need SharpHound Enterprise to collect outside the SharpHound service account domain, expand **Advanced Options** and configure **Scope Collection to Multiple Domains**. > > To collect from every domain that trusts the SharpHound service account domain, enable **Collect from all domains trusting the SharpHound service account domain, including transitively**. ![A collector client On Demand Scan configuration window](https://mintcdn.com/specterops/_SFxVE2HYJFNfxOf/images/data_collectors/configure-on-demand-scan.png?fit=max\&auto=format\&n=_SFxVE2HYJFNfxOf\&q=85\&s=5a770ddc51da7e1dd9885489bc1174a6) | **Option** | **Description** | | - | - | | Data (Required) | Multi-select option for the different types of collection available. See [SharpHound Data Collection and Permissions](/collect-data/permissions) for details on the data collected and permissions necessary for each. | | Domain controller | By default, SharpHound automatically selects a Domain Controller for LDAP queries. Specifying a Domain Controller hostname or FQDN here will define the default value used for this scan or schedule. If not set, SharpHound will utilize the value set in the client configuration. We recommend not configuring a Domain Controller manually. | | Target Local Group and/or User Session Collection by Organizational Unit | Define one or more OUs within a domain to only collect Local Group and Session data from computers contained within the specified OUs and their descendants. If left empty, *SharpHound will collect from all OUs.* If defined, the schedule or On Demand Scan will not collect AD structure data. A dedicated schedule or On Demand Scan must therefore be created for AD structure collection. \[!NOTE] Not supported with multi-domain collections. | | Scope Collection to Multiple Domains | Utilize trust relationships in your environment to collect data from multiple domains. If left empty, SharpHound collects only from the domain where the SharpHound service account belongs. SharpHound supports two options:
  • Define a specific list of domains from which to collect data.
  • Enable **Collect from all domains trusting the SharpHound service account domain, including transitively** to collect from every trusting domain, including trusted domains in other forests.
For setup details, see [SharpHound Enterprise Cross-Trust Collection](/collect-data/enterprise-collection/cross-trust). \[!NOTE] Multi-domain collections cannot be scoped by OU. | **4. Start the scan** Click **Run** to begin the on demand scan. ## Outcome The client starts the on demand scan after the next client check-in (usually within one minute). After it starts, the client status shows **Running a Job**: ![A collector client summary showing Running a Job status](https://mintcdn.com/specterops/g2ltNIVwNN2AtKcq/images/data_collectors/summary-on-demand-scan.png?fit=max\&auto=format\&n=g2ltNIVwNN2AtKcq\&q=85\&s=fec53ddf512410bf6c0538de896ffe41) > [!NOTE] > > After the next schedule, see the job's status on the [**Finished Jobs Log**](/collect-data/enterprise-collection/monitor#finished-jobs-log) page. # BloodHound Enterprise Collection Source: https://bloodhound.specterops.io/collect-data/enterprise-collection/overview Learn about attack path data collection in BloodHound Enterprise. > [card] [Data Reconciliation and Retention](/collect-data/enterprise-collection/data-retention) > > Learn how BloodHound Enterprise updates collected data and removes stale data after retention periods expire. > [card] [Ad-hoc Data Collection with SharpHound CE](/collect-data/enterprise-collection/ad-hoc-collection) > > Collect data for BloodHound Enterprise manually with SharpHound Community Edition. > [card] [Create a Collector Client](/collect-data/enterprise-collection/create-collector) > > Create a collector client to connect a collector application to your BloodHound Enterprise tenant. > [card] [Run an On Demand Scan](/collect-data/enterprise-collection/on-demand-scan) > > Start a collector client scan outside its scheduled collection window. > [card] [Create a Data Collection Schedule](/collect-data/enterprise-collection/collection-schedule) > > Configure a collector client to collect attack path data on a schedule. > [card] [Monitor Data Collection](/collect-data/enterprise-collection/monitor) > > Interpret collector job status, file uploads, and collection activity. > [card] [Manage Collector Support Bundles](/collect-data/enterprise-collection/collector-support-bundles) > > Request, download, and delete diagnostic bundles for SharpHound Enterprise collectors. > [card] [Why perform privileged collection in SharpHound](/collect-data/enterprise-collection/privileged-collection) > > Understand how privileged collection improves attack path analysis with local group, session, registry, and user rights data. > [card] [SharpHound Enterprise Cross-Trust Collection](/collect-data/enterprise-collection/cross-trust) > > Configure SharpHound Enterprise to collect data across trusted Active Directory domains and forests. > [card] [SharpHound Collection FAQ](/collect-data/enterprise-collection/faq) > > Review common questions about SharpHound Enterprise collection capabilities and behavior. # Privileged Collection in SharpHound Source: https://bloodhound.specterops.io/collect-data/enterprise-collection/privileged-collection ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) Privileged collection allows BloodHound to analyze Attack Paths based on non-centralized configurations, the local groups, active sessions, registry, and user rights assignments configured on each domain-joined system in your environment. Without this data, BloodHound Enterprise will be limited in its ability to accurately assess the true risk each Attack Path poses to your environment. Privileged collection is similar to performing a privileged vulnerability scan - without it, you will gain a lot of previously unknown information about your environment, however that presents you with a limited and less accurate picture of the risks present in your environment. As an example, if BloodHound Enterprise identified the following set of Attack Paths in a given environment based on AD Structure alone: ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-82.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=0615076d209eb38ae32b548834ceed18) Based on this view, the tree of Attack Paths on the left would present the greatest risk to this environment, now lets collect Local Group membership information from the domain: ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-83.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=490cf21864f1300118ae0f514d74ad94) BloodHound Enterprise has identified that a computer at the bottom of the right Attack Path tree has `Authenticated Users` (all users and computers contained within the current domains, and all domains trusted by the current domain) added as a local `Administrator` to a system at the beginning of one Attack Path. After updating the exposure presented by this new information, BloodHound Enterprise would identify that the actual largest risk to this environment as the path on the right. ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-84.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=a3af060485dda16214a7f4d6c5887f0b) For details on what data types can be collected, see: * [SharpHound Data and Permissions](/collect-data/sharphound-data-permissions) * [AzureHound Data and Permissions](/collect-data/azurehound-data-permissions) # Data Collection Source: https://bloodhound.specterops.io/collect-data/overview Learn how to run attack path data collection and ingestion. ## BloodHound Enterprise Collection > [card] [Data reconciliation and retention](/collect-data/enterprise-collection/data-retention) > [card] [Ad-hoc BHE Data Collection with SharpHound CE](/collect-data/enterprise-collection/ad-hoc-collection) > [card] [Run an On Demand Scan](/collect-data/enterprise-collection/on-demand-scan) > [card] [Create a BloodHound Enterprise collector client](/collect-data/enterprise-collection/create-collector) > [card] [Create a data collection schedule](/collect-data/enterprise-collection/collection-schedule) > [card] [See all 9 articles](/collect-data/enterprise-collection/overview) ## BloodHound CE Collection > [card] [SharpHound Community Edition](/collect-data/ce-collection/sharphound) > [card] [All SharpHound Community Edition Flags, Explained](/collect-data/ce-collection/sharphound-flags) > [card] [AzureHound Community Edition](/collect-data/ce-collection/azurehound) > [card] [All AzureHound Community Edition Flags, Explained](/collect-data/ce-collection/azurehound-flags) ## Validate Data > [card] [Review Data Quality](/collect-data/data-quality) # SharpHound Data Collection and Permissions Source: https://bloodhound.specterops.io/collect-data/sharphound-data-permissions Learn how SharpHound collects data and the permissions required. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) SharpHound data collection utilizes the open-source [SharpHound Common](https://github.com/SpecterOps/SharpHoundCommon) library, maintained by the BloodHound Enterprise Engineering team. The scan types in SharpHound Enterprise and SharpHound Community Edition are named differently but effectively collect the same data. * BloodHound Enterprise scan types can be started with a [collection schedule](/collect-data/enterprise-collection/collection-schedule) or an [on-demand scan](/collect-data/enterprise-collection/on-demand-scan) * BloodHound Community Edition, you run scans with the [CollectionMethods flag](https://bloodhound.specterops.io/collect-data/ce-collection/sharphound-flags#enumeration-options) This article details all BloodHound Enterprise scan types and the required service account permissions. SpecterOps recommends collecting all data types because it provides maximum visibility into your environment. Local Group Memberships and Sessions are especially important, as they reveal Attack Paths to individual systems based on non-centralized configurations, see [Why perform privileged collection in SharpHound](/collect-data/enterprise-collection/privileged-collection). > [!WARNING] > > The SharpHound collection service account does not require `Domain Admin` membership. While adding the account to local `Administrators` groups on domain computers will work, we recommend following the articles [Least-Privileged Collection](/collect-data/enterprise-collection/least-privileged-collection) (referenced below for each scan type) and [SharpHound Enterprise Service Hardening](/manage-bloodhound/securing-bloodhound-and-collectors/sharphound-hardening). ## Active Directory Structure Data Information about the objects and relationships within your Active Directory environment makes up the basic information necessary to identify attack paths within your environment. This information includes: * Domain trusts. * Object properties of users, groups, computers, GPOs, OUs containers, sites, and domain objects. * ACLs related to users, groups, computers, GPOs, OUs, containers, sites, and domain objects. * Enumerated objects contained in every OU, container, and Domain. * Enumerated memberships of all Groups. Reference: [Current Object Properties collected by SharpHound](https://github.com/SpecterOps/SharpHoundCommon/blob/68a68c6eab5375b46f975274b16ff1acdc35dc48/src/CommonLib/LdapQueries/CommonProperties.cs). **Collection Method:** SharpHound collects this information utilizing signed LDAP queries against a domain controller in the domain. **Default Permissions:** By default, all `Authenticated Users` may query almost all data from Active Directory utilized by BloodHound via LDAP. Higher privileges are required for other objects, see **Least-Privileged Option**. **Least-Privileged Option:** For information on how to collect all objects with least privilege, see [Least-Privileged Collection - AD Structure Data](/collect-data/enterprise-collection/least-privileged-collection#ad-structure-data). **Additional Data Sources:** (Optional) Deleted Objects Container: SharpHound can read the contents of the Deleted Objects container (also known as the AD Recycle Bin). By default, SharpHound cannot read the Deleted Objects container, but read access can be delegated. Collecting deleted objects affects data retention behavior in BloodHound Enterprise, see [Active Directory Recycle Bin](/collect-data/enterprise-collection/data-retention#active-directory-recycle-bin) for details. For delegation configuration, see [Least-Privileged Collection - AD Structure Data](/collect-data/enterprise-collection/least-privileged-collection#ad-structure-data). ## Local Groups / NTLM ### Local Group Membership Members of the following groups are enumerated: * Administrators * Remote Desktop Users * Distributed COM Users * Remote Management Users **Collection Method:** SharpHound collects this information utilizing [Remote SAM Enumeration](https://learn.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/network-access-restrict-clients-allowed-to-make-remote-sam-calls). **Default Permissions:** By default, computers beginning with Windows 10 version 1607 and Windows Server 2016 require `Administrator` access to perform `Remote SAM` operations. **Least-Privileged Option:** This setting may be overridden with Group Policy to allow non-administrative collection. For detailed configuration steps using the "Network access: Restrict clients allowed to make remote calls to SAM" setting, see [Least-Privileged Collection - Local Group Membership](/collect-data/enterprise-collection/least-privileged-collection#local-group-membership). ### Azure VM identity SharpHound can correlate an Active Directory Computer object with its Azure VM by collecting the guest VM identifier from domain-joined Windows computers. The identifier is stored in the `VmId` value under `HKLM\SOFTWARE\Microsoft\Windows Azure`. **Collection Method:** When `AzureRegistry` is selected, SharpHound tries WMI registry access first and Remote Registry as a fallback. BloodHound Enterprise includes this collection with Local Groups collection. A successful value is normalized to lowercase and written to the Computer object's `azvmid` property. A missing value does not stop collection and does not provide a usable identifier. **Network Requirements:** The collector needs access to the target computer over WMI's `135/TCP` or, when WMI is unavailable, SMB/Remote Registry over `445/TCP`. **Default Permissions:** The service account must be permitted to use the selected remote registry strategy. In typical Windows configurations, remote registry reads require local `Administrators` membership on the target computer. **Least-Privileged Option:** See [Azure VM Registry](/collect-data/enterprise-collection/least-privileged-collection#azure-vm-registry) for Remote Registry delegation guidance. ### User Rights Assignments User Rights Assignments (URAs) in Windows define what privileges and capabilities security principals have on a system, independent of group membership. Collecting User Rights Assignments allows BloodHound to accurately determine the [CanRDP](/resources/edges/can-rdp) edge. Before SharpHound Common v3, BloodHound made assumptions based solely on group membership—assuming that membership in the `Remote Desktop Users` group alone gives users the ability to RDP to a system. However, to successfully use Remote Desktop, a user needs **both** membership in the `Remote Desktop Users` group **and** the User Rights Assignment `SeRemoteInteractiveLogonRight`. **Collection Method:** SharpHound collects this information utilizing the [LsaOpenPolicy](https://learn.microsoft.com/en-us/windows/win32/api/ntsecapi/nf-ntsecapi-lsaopenpolicy) function. **Required Permissions:** Only local `Administrators` may call the `LsaOpenPolicy` function. **Least-Privileged Option:** There is currently no known method to delegate this permission for least-privileged collection, see [Least-Privileged Collection - User Rights Assignments](/collect-data/enterprise-collection/least-privileged-collection#user-rights-assignments) for more details on the implications. ### NTLM SharpHound collects various registry values related to NTLM from the registry paths `SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0`, `SYSTEM\CurrentControlSet\Control\Lsa\`, and `SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters` to create the `CoerceAndRelayNTLMTo*` edges. **Collection Method:** SharpHound collects these registry key values first via WMI access, and remote registry as a failover. **Default Permissions:** Collecting these registry key values requires membership of `Administrators` on the systems by default. **Least-Privileged Option:** Delegation is possible via Group Policy or registry modifications, see [Least-Privileged Collection - NTLM Relay Registry Paths](/collect-data/enterprise-collection/least-privileged-collection#ntlm-relay-registry-paths). ## Sessions SharpHound collects active session information to identify abusable sessions on domain-joined systems. These sessions are vulnerable to [OS Credential Dumping](https://attack.mitre.org/techniques/T1003/001/) from tools such as [Mimikatz](https://github.com/ParrotSec/mimikatz). **Collection Method:** SharpHound collects this information utilizing the [NetWkstaUserEnum](https://learn.microsoft.com/en-us/windows/win32/api/lmwksta/nf-lmwksta-netwkstauserenum) function. **Default Permissions:** Members of the local `Administrators` group may call this function. **Least-Privileged Options:** * On Windows Server operating systems, members of the local `Print Operators` group may also collect session data * Windows desktop operating systems do not have a local `Print Operators` group and require alternate approaches > [!WARNING] > > When using `Print Operators` for collection, you should remove dangerous default User Rights Assignments (`SeInteractiveLogonRight`, `SeLoadDriverPrivilege`, `SeShutdownPrivilege`) from this group to prevent privilege escalation on DCs. For detailed configuration instructions, including how to safely configure `Print Operators`, see [Least-Privileged Collection - Sessions](/collect-data/enterprise-collection/least-privileged-collection#sessions). ## Certificate Services Information about the Active Directory Certificate Service hierarchy within your Active Directory environment makes up the basic information necessary to identify ADCS attack paths within your environment. This information includes: * Certificate Templates * Root CAs * Enterprise CAs **Collection Method:** SharpHound collects this information utilizing signed LDAP queries against a domain controller in the domain. **Default Permissions:** By default, `Authenticated Users` can enumerate almost all Certificate Services data utilized by BloodHound Enterprise. **Additional Data Sources:** Two additional types of data can enhance the findings - [DC Registry](/collect-data/sharphound-data-permissions#dc-registry) and [CA Registry](/collect-data/sharphound-data-permissions#ca-registry). ## CA Registry SharpHound collects the following registry key values on enterprise CAs stored under `SYSTEM\CurrentControlSet\Services\CertSvc\Configuration\`: * **EnrollmentAgentRights**: Contains restrictions for enrollment agents. BloodHound will take the restrictions into account when calculating ADCS ESC3 edges, and assume no restrictions if not collected, as no restrictions are configured by default. * **Security**: Contains the security descriptor for the enterprise CA (i.e., the permissions for Enroll, ManageCA, and ManageCertificates edges against the enterprise CA). This security descriptor is also stored in the AD object of the enterprise CA. SharpHound collects both. The CA registry security descriptor holds the effective permissions. Changes in the CA registry security descriptor are replicated to the AD copy, however, not the other way. Therefore, collecting the CA registry security descriptor may reveal permissions of the enterprise CA that are not present if only collecting the AD object. * **PolicyModules\\\\EditFlags**: SharpHound checks if the `EDITF_ATTRIBUTESUBJECTALTNAME2` flag is present, which is required to calculate ADCS ESC6 edges. * **InterfaceFlags**: SharpHound checks whether `IF_ENFORCEENCRYPTICERTREQUEST` (`0x00000200`) is set. The resulting `rpcencryptionenforced` property identifies whether the CA enforces encryption for RPC certificate requests, which is required to evaluate [ADCS ESC11](/resources/edges/coerce-and-relay-ntlm-to-adcs-rpc). * **PolicyModules\\\\DisableExtensionList**: SharpHound collects disabled certificate extension OIDs as `disabledextensions`. The SID security extension OID `1.3.6.1.4.1.311.25.2` must be present for [ADCSESC16](/resources/edges/adcs-esc16). * **RoleSeparationEnabled**: SharpHound checks whether role separation is enforced (a user cannot be both CA Administrator and Certificate Manager). The registry key values are described in detail in the [Certified Pre-Owned whitepaper](https://specterops.io/wp-content/uploads/sites/3/2022/06/Certified_Pre-Owned.pdf). **Collection Method:** SharpHound collects these registry key values via remote registry access on enterprise CAs. **Default Permissions:** `Authenticated Users` may collect these registry key values by default, see [Least-Privileged Collection - CA Registry](/collect-data/enterprise-collection/least-privileged-collection#ca-registry) for an explanation of why this is accessible. ## DC Registry/LDAP Services ### DC Registry SharpHound collects the registry values `Kdc\StrongCertificateBindingEnforcement` and `Schannel\CertificateMappingMethods` (described [here](https://support.microsoft.com/en-us/topic/kb5014754-certificate-based-authentication-changes-on-windows-domain-controllers-ad2c23b0-15d8-4340-a468-4d4f3b188f16)) to determine the allowed certificate mapping methods on domain controllers (DCs). The BloodHound ADCS edges ESC6, ESC9, and ESC10 require this data to be collected. SharpHound Enterprise additionally collects the `VulnerableChannelAllowList` value under `SYSTEM\CurrentControlSet\Services\Netlogon\Parameters` (described [here](https://support.microsoft.com/en-us/topic/how-to-manage-the-changes-in-netlogon-secure-channel-connections-associated-with-cve-2020-1472-f7e8cc17-0309-1d6a-304e-5ba73cd1a11e#theGroupPolicy)) to determine which accounts are allowed to use Netlogon secure channel connections without secure RPC. **Collection Method:** SharpHound collects these registry key values via remote registry access. **Default Permissions:** Collecting these registry key values requires membership of `Administrators` on the DCs by default. **Least-Privileged Option:** Delegation is possible via Group Policy or registry modifications, see [Least-Privileged Collection - DC Registry](/collect-data/enterprise-collection/least-privileged-collection#dc-registry). ### LDAP Services SharpHound collects LDAP service configuration information from domain controllers. **Collection Method:** SharpHound collects this information by performing NTLM authentication tests against all domain controllers by default on ports 389 (LDAP) and 636 (LDAPS). **Default Permissions:** No special directory permissions are required beyond valid domain credentials and network access. # BloodHound Community Edition Custom Installation Source: https://bloodhound.specterops.io/get-started/custom-installation Learn how to install and customize BloodHound Community Edition (BHCE). ![Applies to BloodHound CE only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=3a8d58a0f10bb4bd4c711489b93d6dda) The recommended installation method for most users is the [BloodHound CLI](/get-started/quickstart/community-edition-quickstart). However, if you need more control over the installation process or want to customize specific aspects of your BHCE environment, this guide provides alternative installation methods and customization options. Use cases for custom installation include: * Switch between PostgreSQL and Neo4j backends * Run multiple BHCE instances on a single machine ## Prerequisites BloodHound CE deploys in a traditional multi-tier container architecture consisting of database, application, and UI layers. To complete installation, ensure your system meets the following requirements: | Minimum specifications | For large environments (>50K users) | | - | - | | 8GB of RAM | 96GB of RAM | | 4 processor cores | 12 processor cores | | 10GB hard disk space | 50GB hard disk space | > [!NOTE] > > During startup, BloodHound CE runs initial graph analysis that may continue for about the first minute after launch. On low-memory hosts, sending API requests immediately after container startup can cause the `bloodhound` container to terminate with exit code `137` (out of memory). > > To avoid this behavior, allocate at least **8GB of RAM** or wait for startup processing to complete before running API automation tasks such as user creation. ## Install with Docker Compose > [!WARNING] > > BloodHound Community Edition is a security auditing tool that was written to test the resilience of networks against attackers. Because this tool can equally be used for evil, some anti-malware and endpoint detection and response (EDR) solutions flag BloodHound and its components as **malware**. > > If you encounter issues with downloads being blocked and files being prohibited from execution, create targeted allow-list entries for the specific BloodHound binaries, supporting libraries, and installation paths required for your deployment. We recommend that you set up BloodHound on a dedicated machine so that your regular work environment remains protected. If you are planning to use BloodHound on a corporate network, notify your Security Operations Center (SOC) or Chief Information Security Officer (CISO) ahead of time and ensure you have the required permissions to audit the network. > > For legal and ethical reasons, you must never use BloodHound on systems you do not own or lack explicit permission to audit. This installation method provides more control over each configuration file and works well for running multiple BHCE instances on a single machine. **1. Install Docker Desktop** Follow the instructions in the [Docker documentation](https://docs.docker.com/get-started/get-docker/) to install Docker Desktop for your operating system. > [!NOTE] > > Docker Desktop must be running to build and test BHCE. Start Docker Desktop on your machine. **2. Create installation directory** Create a new directory on your machine to hold the BHCE configuration files. ```bash theme={null} mkdir bhce cd bhce ``` **3. Download configuration files** Download the following configuration files: * [`docker-compose.yml`](https://github.com/SpecterOps/BloodHound/blob/main/examples/docker-compose/docker-compose.yml) * [`bloodhound.config.json`](https://github.com/SpecterOps/BloodHound/blob/main/examples/docker-compose/bloodhound.config.json) **4. Add configuration files** Move the configuration files into the directory you created. ```bash theme={null} mv /path/to/downloaded/files/* . ``` > [!TIP] > > Continue to the [Customizations](/get-started/custom-installation#customizations) section below to modify your installation as needed. **5. Start BloodHound** Now that your files are ready, you can bring the containers up using the following command: ```bash theme={null} docker compose up ``` > [!NOTE] > > You only need to perform this step once. In the future, you can use the Docker Desktop application to start and turn off BloodHound. You can still use the CLI to bring the containers `up` or `down` if you prefer. ## Build from source You can also build the BHCE code from source if you plan on contributing to the project or customizing the application beyond what is possible with configuration files. ### Prerequisite The following table lists the minimum requirements to build BHCE from source: > [!NOTE] > > These requirements are higher than the minimum specifications needed to *run* BHCE. | Requirement | Version/Specification | | - | - | | RAM | 16GB | | Processor cores | 8 | | [Just](https://github.com/casey/just) | --- | | [Python](https://www.python.org/downloads/) | 3.10 | | [Go](https://go.dev/dl/) | 1.24 | | [Node.js](https://nodejs.dev/en/download/) | 22 | | [Yarn](https://yarnpkg.com/getting-started/install) | 3.6 | | [Docker Desktop](https://www.docker.com/products/docker-desktop/) | --- | ### Set up your environment The code repository contains all the necessary files to build BHCE. Follow these steps to set up your development environment: **1. Clone the repository** Clone the BloodHound repository from GitHub: ```bash theme={null} git clone https://github.com/SpecterOps/BloodHound.git ``` **2. Start Docker Desktop** Docker Desktop must be running to build and test BHCE. Start Docker Desktop on your machine. **3. Navigate to repository directory** Change to the cloned BloodHound repository directory: ```bash theme={null} cd BloodHound ``` **4. Install dependencies** Use the following command to install project dependencies and initialize the environment: ```bash theme={null} just init ``` **5. Start development environment** Use the following command to start the development environment: ```bash theme={null} just bh-dev ``` **6. Compile BHCE** The BloodHound team maintains a Python tool called [`stbernard`](https://github.com/SpecterOps/BloodHound/wiki/packages/go/stbernard/README.md) for building and testing the project. To build locally, run the following command: ```bash theme={null} just build ``` The build process generates all artifacts in the `dist/` directory. > [!TIP] > > See the following resources for next steps: > > * [Source code wiki](https://github.com/SpecterOps/BloodHound/wiki/Development#quick-start) on GitHub for testing and debugging details. > > * [Customizations](/get-started/custom-installation#customizations) section below to modify your installation as needed. ## Customizations This section describes common customizations you can make to your BHCE installation. ### Change backend database PostgreSQL provides significant advantages over Neo4j as a backend database, particularly in terms of query performance and speed. > [!NOTE] > > For information on supported Cypher syntax in PostgreSQL, see [Supported Cypher Syntax](/analyze-data/explore/cypher-supported). #### PostgreSQL If you are currently using a Neo4j backend database and want to change to PostgreSQL, follow these steps. > [!NOTE] > > We recommend using PostgreSQL 18 for new installations. To upgrade an existing installation from PostgreSQL 16 to 18, see [Upgrade PostgreSQL](/get-started/upgrade-postgres). **1. Add the PostgreSQL graph driver** Modify the `bloodhound.config.json` file and add a line in the main section to use PostgreSQL as the graph driver: ```json theme={null} ... "graph_driver": "pg", ... ``` This is an example of adding the line between `default_password` and `log_level`, but it can be anywhere at the top level. ```json theme={null} { "bind_addr": "127.0.0.1:8080", "collectors_base_path": "/etc/bloodhound/collectors", "default_admin": { "password": "", "principal_name": "admin" }, "default_password": "", "graph_driver": "pg", // [!code ++] "log_level": "INFO", "log_path": "bloodhound.log", "metrics_port": ":2112", "recreatedefaultadmin": "false", "root_url": "http://127.0.0.1:8080", "tls": { "cert_file": "", "key_file": "" }, "version": 1, "work_dir": "/opt/bloodhound/work" } ``` **2. Remove the Neo4j service** Modify the `docker-compose.yml` file to remove the Neo4j service and its dependencies. * Delete the `graph_db` section: ```yaml theme={null} graph-db: # [!code --:23] labels: name: "bhce_neo4j" image: docker.io/library/neo4j:4.4 environment: - NEO4J_AUTH=${NEO4J_USER:-neo4j}/${NEO4J_SECRET:-bloodhoundcommunityedition} - NEO4J_dbms_allow__upgrade=${NEO4J_ALLOW_UPGRADE:-true} # Database ports are disabled by default. Please change your database password to something secure before uncommenting ports: - 127.0.0.1:${NEO4J_DB_PORT:-7687}:7687 - 127.0.0.1:${NEO4J_WEB_PORT:-7474}:7474 volumes: - ${NEO4J_DATA_MOUNT:-neo4j-data}:/data healthcheck: test: [ "CMD-SHELL", "wget -O /dev/null -q http://localhost:7474 || exit 1" ] interval: 10s timeout: 5s retries: 5 start_period: 30s ``` * Delete the two lines at the end of the `bloodhound` section: ```yaml theme={null} graph-db: # [!code --:2] condition: service_healthy ``` * Delete the following line from the `volumes` section: ```yaml theme={null} neo4j-data: # [!code --] ``` The following is the complete modified `docker-compose.yml` file for PostgreSQL: **full file example** ```yaml theme={null} # Copyright 2023 Specter Ops, Inc. # # Licensed under the Apache License, Version 2.0 # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # SPDX-License-Identifier: Apache-2.0 services: app-db: image: docker.io/library/postgres:18 environment: - PGUSER=${POSTGRES_USER:-bloodhound} - POSTGRES_USER=${POSTGRES_USER:-bloodhound} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-bloodhoundcommunityedition} - POSTGRES_DB=${POSTGRES_DB:-bloodhound} # Database ports are disabled by default. Please change your database password to something secure before uncommenting # ports: # - 127.0.0.1:${POSTGRES_PORT:-5432}:5432 volumes: - postgres-data:/var/lib/postgresql healthcheck: test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-bloodhound} -d ${POSTGRES_DB:-bloodhound} -h 127.0.0.1 -p 5432" ] interval: 10s timeout: 5s retries: 5 start_period: 30s bloodhound: image: docker.io/specterops/bloodhound:${BLOODHOUND_TAG:-latest} environment: - bhe_disable_cypher_complexity_limit=${bhe_disable_cypher_complexity_limit:-false} - bhe_enable_cypher_mutations=${bhe_enable_cypher_mutations:-false} - bhe_graph_query_memory_limit=${bhe_graph_query_memory_limit:-2} - bhe_database_connection=user=${POSTGRES_USER:-bloodhound} password=${POSTGRES_PASSWORD:-bloodhoundcommunityedition} dbname=${POSTGRES_DB:-bloodhound} host=app-db - bhe_neo4j_connection=neo4j://${NEO4J_USER:-neo4j}:${NEO4J_SECRET:-bloodhoundcommunityedition}@graph-db:7687/ - bhe_recreate_default_admin=${bhe_recreate_default_admin:-false} - bhe_graph_driver=${GRAPH_DRIVER:-neo4j} ### Add additional environment variables you wish to use here. ### For common configuration options that you might want to use environment variables for, see `.env.example` ### example: bhe_database_connection=${bhe_database_connection} ### The left side is the environment variable you're setting for bloodhound, the variable on the right in `${}` ### is the variable available outside of Docker ports: ### Default to localhost to prevent accidental publishing of the service to your outer networks ### These can be modified by your .env file or by setting the environment variables in your Docker host OS - ${BLOODHOUND_HOST:-127.0.0.1}:${BLOODHOUND_PORT:-8080}:8080 ### Uncomment to use your own bloodhound.config.json to configure the application # volumes: # - ./bloodhound.config.json:/bloodhound.config.json:ro depends_on: app-db: condition: service_healthy volumes: postgres-data: ``` #### Neo4j If you are currently using a PostgreSQL backend database and want to change to Neo4j, follow these steps. **1. Add the Neo4j service** Replace your `docker-compose.yml` file with the following: ```yaml theme={null} # Copyright 2023 Specter Ops, Inc. # # Licensed under the Apache License, Version 2.0 # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # SPDX-License-Identifier: Apache-2.0 services: app-db: labels: name: "bhce_postgres" image: docker.io/library/postgres:18 environment: - PGUSER=${POSTGRES_USER:-bloodhound} - POSTGRES_USER=${POSTGRES_USER:-bloodhound} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-bloodhoundcommunityedition} - POSTGRES_DB=${POSTGRES_DB:-bloodhound} # Database ports are disabled by default. Please change your database password to something secure before uncommenting # ports: # - 127.0.0.1:${POSTGRES_PORT:-5432}:5432 volumes: - postgres-data:/var/lib/postgresql healthcheck: test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-bloodhound} -d ${POSTGRES_DB:-bloodhound} -h 127.0.0.1 -p 5432" ] interval: 10s timeout: 5s retries: 5 start_period: 30s graph-db: labels: name: "bhce_neo4j" image: docker.io/library/neo4j:4.4 environment: - NEO4J_AUTH=${NEO4J_USER:-neo4j}/${NEO4J_SECRET:-bloodhoundcommunityedition} - NEO4J_dbms_allow__upgrade=${NEO4J_ALLOW_UPGRADE:-true} # Database ports are disabled by default. Please change your database password to something secure before uncommenting ports: - 127.0.0.1:${NEO4J_DB_PORT:-7687}:7687 - 127.0.0.1:${NEO4J_WEB_PORT:-7474}:7474 volumes: - ${NEO4J_DATA_MOUNT:-neo4j-data}:/data healthcheck: test: [ "CMD-SHELL", "wget -O /dev/null -q http://localhost:7474 || exit 1" ] interval: 10s timeout: 5s retries: 5 start_period: 30s bloodhound: labels: name: bhce_bloodhound image: docker.io/specterops/bloodhound:${BLOODHOUND_TAG:-latest} environment: - bhe_disable_cypher_complexity_limit=${bhe_disable_cypher_complexity_limit:-false} - bhe_enable_cypher_mutations=${bhe_enable_cypher_mutations:-true} - bhe_graph_query_memory_limit=${bhe_graph_query_memory_limit:-2} - bhe_database_connection=user=${POSTGRES_USER:-bloodhound} password=${POSTGRES_PASSWORD:-bloodhoundcommunityedition} dbname=${POSTGRES_DB:-bloodhound} host=app-db - bhe_neo4j_connection=neo4j://${NEO4J_USER:-neo4j}:${NEO4J_SECRET:-bloodhoundcommunityedition}@graph-db:7687/ - bhe_recreate_default_admin=${bhe_recreate_default_admin:-false} - bhe_enable_text_logger=${bhe_enable_text_logger:-true} ### Add additional environment variables you wish to use here. ### For common configuration options that you might want to use environment variables for, see `.env.example` ### example: bhe_database_connection=${bhe_database_connection} ### The left side is the environment variable you're setting for bloodhound, the variable on the right in `${}` ### is the variable available outside of Docker ports: ### Default to localhost to prevent accidental publishing of the service to your outer networks ### These can be modified by your .env file or by setting the environment variables in your Docker host OS - ${BLOODHOUND_HOST:-127.0.0.1}:${BLOODHOUND_PORT:-8080}:8080 ### Uncomment to use your own bloodhound.config.json to configure the application volumes: - ./bloodhound.config.json:/bloodhound.config.json:ro depends_on: app-db: condition: service_healthy graph-db: condition: service_healthy volumes: neo4j-data: postgres-data: ``` **2. Remove the PostgreSQL graph driver** Delete the following line from the `bloodhound.config.json` file: ```json theme={null} "graph_driver": "pg", // [!code --] ``` ### Enable Transport Layer Security (TLS) To secure BHCE with HTTPS, add your certificate information to the `tls` block in the [`bloodhound.config.json`](https://github.com/SpecterOps/BloodHound/blob/main/examples/docker-compose/bloodhound.config.json) file. Then, make the certificate files available in the BloodHound container with volume mounts in the [`docker-compose.yml`](https://github.com/SpecterOps/BloodHound/blob/main/examples/docker-compose/docker-compose.yml) file. > [!NOTE] > > After you set both `cert_file` and `key_file`, BloodHound uses HTTPS on that port instead of HTTP. **1. Obtain a TLS certificate and key** For a local or testing deployment, generate a self-signed certificate and key with `openssl`: ```bash theme={null} openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:4096 \ -keyout private_key.pem -out certificate.pem \ -subj "/CN=your_domain.com" ``` > [!NOTE] > > Self-signed certificates are appropriate for local testing only. For any shared or production deployment, use a certificate issued by a trusted certificate authority (CA). **2. Move the certificate and key to a mountable directory** Create a directory next to your `docker-compose.yml` and `bloodhound.config.json` files and move the certificate and key into it. The examples on this page use a directory named `cert`: ```bash theme={null} mkdir cert mv certificate.pem private_key.pem cert/ ``` **3. Configure TLS settings** In the `bloodhound.config.json` file, set `cert_file` and `key_file` to the paths where the certificate and key will be available **inside the container**. These values must match the container-side destination of the volume mount you add in the next step, not the location of the files on your host: ```json title="bloodhound.config.json" theme={null} "tls": { "cert_file": "/cert/certificate.pem", // [!code ++] "key_file": "/cert/private_key.pem" // [!code ++] }, ``` **4. Mount the certificate directory** In the `docker-compose.yml` file, mount both the `bloodhound.config.json` file and the `cert` directory into the `bloodhound` service as read-only volumes: ```yaml title="docker-compose.yml" theme={null} bloodhound: # ... volumes: # [!code ++] - ./bloodhound.config.json:/bloodhound.config.json:ro # [!code ++] - ./cert:/cert:ro # [!code ++] ``` > [!NOTE] > > By default, the `volume` mount for the `bloodhound` service is commented out. Make sure to uncomment it before you continue. Otherwise, the container ignores your custom configuration and continues to serve plain HTTP. **5. Start BloodHound and verify HTTPS** Bring up (or recreate) the `bloodhound` container so the new volume mounts and configuration take effect: ```bash theme={null} docker compose up -d --force-recreate bloodhound ``` > [!TIP] > > The `--force-recreate` option ensures the container picks up changes to volumes and configuration. A plain `docker compose restart` does not reapply volume mounts. **6. Verify HTTPS** Browse to `https://127.0.0.1:8080` and confirm that BloodHound loads over HTTPS. The default URL is `http://127.0.0.1:8080`, so make sure to change the protocol to `https://` in the address bar. The listening port is unchanged. TLS is negotiated on the same port that the BloodHound service binds to by default (`8080`). > [!NOTE] > > Browsers display a certificate warning when you use a self-signed certificate; this is expected and does not occur with a CA-issued certificate. ### Run multiple instances simultaneously You might want to run multiple BHCE instances to: * Test a Neo4j backend alongside a PostgreSQL backend * Evaluate a new version of BHCE without affecting your current installation * Isolate data for different engagements > [!NOTE] > > You must bind each instance to a different port on your machine. The steps below show you which settings to edit. Follow these steps to run multiple BHCE instances on a single machine. **1. Change default BHCE port** In the `docker-compose.yml` file, update the BloodHound service port binding to use a different port. The following example uses port `8585` instead of the default `8080` port: ```yaml theme={null} - ${BLOODHOUND_HOST:-127.0.0.1}:${BLOODHOUND_PORT:-8585}:8080 ``` **2. Change Neo4j web console port** If you are running multiple Neo4j databases, update the Neo4j web console port binding in the `docker-compose.yml` file to use a different port. The following example uses port `7575` instead of the default `7474` port: ```yaml theme={null} - 127.0.0.1:${NEO4J_WEB_PORT:-7575}:7474 ``` You must also update the health check to use the new port: ```yaml theme={null} "wget -O /dev/null -q http://localhost:7575 || exit 1" ``` > [!NOTE] > > The Neo4j database port `7687` runs only inside the Docker container, so you do not need to change it. ### Expose BHCE outside of `localhost` You might need to access your BHCE instance from another computer than the one it is installed on. The default installation does not expose the port outside of `localhost`. To do it, you will need to change the IP address that the BloodHound UI binds to. In the `docker-compose.yml` file, update the BloodHound service port binding to use a different IP Address. The following example uses IP `0.0.0.0` to bind the port `8080` to *all* interfaces and IP Addresses on the machine. If the machine has multiple IP Addresses, you can set that specific IP Address. ```yaml theme={null} - ${BLOODHOUND_HOST:-0.0.0.0}:${BLOODHOUND_PORT:-8080}:8080 ``` > [!WARNING] > > Binding to `0.0.0.0` can expose BloodHound to untrusted networks. Only do this behind appropriate network controls (for example, firewall rules, VPN, or a restricted reverse proxy), and ensure HTTPS and strong non-default credentials are in place. # Introduction to BloodHound Source: https://bloodhound.specterops.io/get-started/introduction > [card] Know your adversary with BloodHound security testing. BloodHound uses graph theory to reveal hidden and often unintended relationships within Active Directory and Entra ID (formerly Azure Active Directory). Defenders (blue teams) and attackers (red teams) use BloodHound for a deeper understanding of privileged relationships in an environment. With the introduction of [OpenGraph](/opengraph/overview) in BloodHound v8.0, you can extend BloodHound's capabilities beyond Active Directory and Entra ID to visualize attack paths across hybrid environments. OpenGraph is a powerful framework that enables you to: * **Extend coverage** to identity services across other platforms (for example, GitHub, Okta, Jamf, and more) * **Build custom collectors** that ingest data using a standardized JSON schema There are two BloodHound products: BloodHound Enterprise and BloodHound Community Edition (BloodHound CE). This site documents both products. > [!TIP] > > New to BloodHound? Take the on-demand [BloodHound Basics](https://academy.specterops.io/bloodhound-basics) course to build a practical, ground-up understanding of attack path management with BloodHound Community Edition and BloodHound Enterprise. ## BloodHound Enterprise vs BloodHound Community Edition
![BloodHound Enterprise logo](https://mintcdn.com/specterops/LJiUiXm48pjJ2upb/logo/BHE-logo-square.svg?fit=max\&auto=format\&n=LJiUiXm48pjJ2upb\&q=85\&s=3b40c7695eb385206efffd8f19521e13) ![BloodHound Community Edition logo](https://mintcdn.com/specterops/LJiUiXm48pjJ2upb/logo/CE-logo-square.svg?fit=max\&auto=format\&n=LJiUiXm48pjJ2upb\&q=85\&s=811dfc4e65036f8a661ffaeeca361382)
With BloodHound Enterprise, **continuously monitor, prioritize, and eliminate attack path risk across your environment.** With BloodHound Community Edition, **identify, test, and validate attack path risk.**
A fully-managed SaaS application for blue teams focused on **risk management.** An offering for red teams focused on **security testing.**
Leverage features like scheduled data collection and data reconciliation.  
Manage attack paths over time with exposure measurement and remediation guidance.  
24/7/365 enterprise support. No dedicated support.
[Get started](/get-started/quickstart/enterprise-quickstart) [Get started](/get-started/quickstart/community-edition-quickstart)
See the [full feature comparison](https://specterops.io/bloodhound-feature-comparison/). ## BloodHound Enterprise BloodHound Enterprise is a fully deployed and secured SaaS offering by SpecterOps to address the need for Attack Path Management. It requires no additional installation or maintenance. [Attack Path Management](https://specterops.io/what-is-attack-path-management/) is a framework designed to help organizations measure and remediate the risk created by attack paths. With BloodHound Enterprise, leverage ongoing collection, data reconciliation, and analysis to manage risk following the Attack Path Management framework. It's the only tool available that helps defenders easily identify and eliminate highly complex attack paths that would otherwise be impossible to manage. [Get started](/get-started/quickstart/enterprise-quickstart) [Request a demo](https://specterops.io/get-a-demo/) ## BloodHound Community Edition BloodHound CE is free, open-source, and focused on enabling penetration testers and red teams to rapidly evaluate attack paths within Active Directory and Entra ID (formerly Azure AD). [Get started](/get-started/quickstart/community-edition-quickstart) ## Need help? > [card] BloodHound Enterprise Support > > [**Submit a request**](https://support.bloodhoundenterprise.io/requests/new) for dedicated support or ask in the [**BloodHound user Slack community**](https://slack.specterops.io). > [card] BloodHound Community Edition Support > > Ask in the [**BloodHound user Slack community**](https://slack.specterops.io). # BloodHound Community Edition Sample Data Source: https://bloodhound.specterops.io/get-started/quickstart/ce-ingest-sample-data ![Applies to BloodHound CE only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=3a8d58a0f10bb4bd4c711489b93d6dda) # Ingest Sample Data **1. Download sample data** > [tab] Active Directory > > Download sample data for [Active Directory](https://raw.githubusercontent.com/SpecterOps/BloodHound-Docs/main/docs/assets/sample-data/ad_sampledata.zip). > > **Active Directory sample data** generated with SharpHound includes: > > * 3 collected domains with trusts between them > * Additional, visible, trusted domains without collections > * Coverage for local permissions > * Multiple ADCS escalation paths > [tab] Azure > > Download sample data for [Azure](https://raw.githubusercontent.com/SpecterOps/BloodHound-Docs/main/docs/assets/sample-data/entra_sampledata.zip). > > **Azure sample data** generated with AzureHound includes: > > * Full collection of an Azure environment > * Support for user-sync hybrid paths when ingested alongside the example AD data **2. Upload sample data to BloodHound CE** 1. Log in to the BloodHound CE UI. 2. In the left menu, click **Quick Upload** 3. Click the **Upload Files** modal to open a file system dialog or drag and drop the downloaded sample data ZIP file. 4. Click **Upload** to begin the data ingest process. > [!NOTE] > > The default admin email is `admin@example.com` and will appear as the user ingesting the data. # BloodHound Community Edition Quickstart Source: https://bloodhound.specterops.io/get-started/quickstart/community-edition-quickstart Set up a local instance of BloodHound Community Edition and start identifying and visualizing security risks in your environment. ![Applies to BloodHound CE only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=3a8d58a0f10bb4bd4c711489b93d6dda) This quickstart guide walks you through installing BloodHound Community Edition (BloodHound CE) using the BloodHound CLI (BH-CLI), which is a wrapper around Docker Compose. After installation, you'll learn how to ingest data into BloodHound CE and explore attack paths in your environment. > [!NOTE] > > Are you a blue team member looking to remediate identity risks? [Request a demo of BloodHound Enterprise](https://specterops.io/get-a-demo/). ## Prerequisites BloodHound CE deploys in a traditional multi-tier container architecture consisting of database, application, and UI layers. To complete installation, ensure your system meets the following requirements: | Minimum specifications | For large environments (>50K users) | | - | - | | 8GB of RAM | 96GB of RAM | | 4 processor cores | 12 processor cores | | 10GB hard disk space | 50GB hard disk space | > [!NOTE] > > During startup, BloodHound CE runs initial graph analysis that may continue for about the first minute after launch. On low-memory hosts, sending API requests immediately after container startup can cause the `bloodhound` container to terminate with exit code `137` (out of memory). > > To avoid this behavior, allocate at least **8GB of RAM** or wait for startup processing to complete before running API automation tasks such as user creation. ## Install BloodHound CE > [!WARNING] > > BloodHound Community Edition is a security auditing tool that was written to test the resilience of networks against attackers. Because this tool can equally be used for evil, some anti-malware and endpoint detection and response (EDR) solutions flag BloodHound and its components as **malware**. > > If you encounter issues with downloads being blocked and files being prohibited from execution, create targeted allow-list entries for the specific BloodHound binaries, supporting libraries, and installation paths required for your deployment. We recommend that you set up BloodHound on a dedicated machine so that your regular work environment remains protected. If you are planning to use BloodHound on a corporate network, notify your Security Operations Center (SOC) or Chief Information Security Officer (CISO) ahead of time and ensure you have the required permissions to audit the network. > > For legal and ethical reasons, you must never use BloodHound on systems you do not own or lack explicit permission to audit. Installing BloodHound CE with the BloodHound CLI is the easiest way to get started. The CLI handles downloading the necessary Docker images and creating the `docker-compose.yml` file with standard defaults. **1. Install Docker Desktop** For ease and convenience, we recommend installing [Docker Desktop](https://www.docker.com/get-started) to run BloodHound CE containers on your local machine. **2. Download BloodHound CLI** Download the latest release of **[BloodHound CLI](https://github.com/SpecterOps/bloodhound-cli/releases)** for your operating system and architecture (AMD or ARM). BloodHound CLI is a utility that makes it easy to install BloodHound CE in containers on your machine. > [!TIP] > > To avoid the software getting blocked as malware in the browser, we recommend downloading it using the command line. ```bash Linux theme={null} wget https://github.com/SpecterOps/bloodhound-cli/releases/latest/download/bloodhound-cli-linux-amd64.tar.gz ``` ```powershell Windows PowerShell theme={null} curl.exe -L -o "$env:USERPROFILE\Downloads\bloodhound-cli-windows-amd64.zip" https://github.com/SpecterOps/bloodhound-cli/releases/latest/download/bloodhound-cli-windows-amd64.zip ``` ```bash Mac theme={null} curl -L -o bloodhound-cli-darwin-arm64.tar.gz https://github.com/SpecterOps/bloodhound-cli/releases/latest/download/bloodhound-cli-darwin-arm64.tar.gz ``` **3. Unpack the file** Change to the directory where you downloaded the file and unpack it. ```bash Linux theme={null} tar -xvzf bloodhound-cli-linux-amd64.tar.gz ``` ```powershell Windows PowerShell theme={null} cd "$env:USERPROFILE\Downloads"; tar -xf bloodhound-cli-windows-amd64.zip ``` ```bash Mac theme={null} tar -xvzf bloodhound-cli-darwin-arm64.tar.gz ``` **4. Run the install command** In your terminal or PowerShell, navigate to the directory where you unpacked the BloodHound CLI and install BloodHound CE: ```bash Linux theme={null} ./bloodhound-cli install ``` ```powershell Windows PowerShell theme={null} .\bloodhound-cli install ``` ```bash Mac theme={null} ./bloodhound-cli install ``` > [!NOTE] > > Encountering issues? See [troubleshooting](#troubleshooting). **5. Wait for installation to complete** Keep your terminal open until you see the randomly generated password displayed. Save this password for the next step. ```bash theme={null} [+] BloodHound is ready to go! [+] You can log in as `admin` with this password: ``` If you lose the password, reset it with: ```bash Linux theme={null} ./bloodhound-cli resetpwd ``` ```powershell Windows PowerShell theme={null} .\bloodhound-cli resetpwd ``` ```bash Mac theme={null} ./bloodhound-cli resetpwd ``` **6. Log in to BloodHound** In a browser, go to [http://localhost:8080/ui/login](http://localhost:8080/ui/login) and log in with the `admin` username and the randomly generated password. > [!NOTE] > > The default `docker-compose.yml` file binds only to localhost (127.0.0.1). To access BloodHound outside localhost, follow the instructions in [examples/docker-compose/README.md](https://github.com/SpecterOps/BloodHound/blob/main/examples/docker-compose/README.md). **7. Reset your password** Reset your password as prompted on first login. ## Get data into BloodHound To get data into BloodHound, ingest sample data or collect data from your environment with either standalone collectors or OpenHound. > [tab] Option 1: Sample data (faster) > > Use sample data to quickly explore BloodHound CE without setting up a SharpHound or AzureHound data collector. > > **1. Download sample data** > > > [tab] Active Directory > > > > Download sample data for [Active Directory](https://raw.githubusercontent.com/SpecterOps/BloodHound-Docs/main/docs/assets/sample-data/ad_sampledata.zip). > > > > **Active Directory sample data** generated with SharpHound includes: > > > > * 3 collected domains with trusts between them > > * Additional, visible, trusted domains without collections > > * Coverage for local permissions > > * Multiple ADCS escalation paths > > > [tab] Azure > > > > Download sample data for [Azure](https://raw.githubusercontent.com/SpecterOps/BloodHound-Docs/main/docs/assets/sample-data/entra_sampledata.zip). > > > > **Azure sample data** generated with AzureHound includes: > > > > * Full collection of an Azure environment > > * Support for user-sync hybrid paths when ingested alongside the example AD data > > **2. Upload sample data to BloodHound CE** > > 1. Log in to the BloodHound CE UI. > > 2. In the left menu, click **Quick Upload** > > 3. Click the **Upload Files** modal to open a file system dialog or drag and drop the downloaded sample data ZIP file. > > 4. Click **Upload** to begin the data ingest process. > > > [!NOTE] > > > > The default admin email is `admin@example.com` and will appear as the user ingesting the data. > [tab] Option 2: Data collectors (more realistic) > > There are three main ways to collect data for BloodHound CE: > > * Active Directory, collected by SharpHound CE > > * Entra ID (formerly Azure AD) and Azure IaaS, collected by AzureHound CE > > * GitHub, Jamf, and Okta, collected by OpenHound CLI for BloodHound CE > > > [!TIP] > > > > Use [OpenHound](/openhound/overview) for built-in collectors and workflows for platforms like GitHub, Jamf, and Okta. For additional community-built collectors, explore the [OpenGraph Library](/opengraph/library). > > **1. Choose a collection method** > > Pick the collection method that best fits your environment: > > * Use **SharpHound CE** for Active Directory and **AzureHound CE** for Entra ID. > * Use **OpenHound CLI** for supported SaaS and platform data sources, such as GitHub, Jamf, and Okta. > > **2. Download a collector** > > Each collector is a standalone binary. You can download SharpHound CE and AzureHound CE using one of the following methods: > > > [!NOTE] > > > > To install the OpenHound CLI and configure supported collectors, see [OpenHound Community](/openhound/community). > > > [tab] BloodHound CE UI > > > > Download the collectors directly from the BloodHound CE UI: > > > > 1. Log in to the BloodHound CE UI. > > 2. In the left menu, click **Download Collectors**. > > 3. Click one of the links in the **Community Collectors** section to download the SharpHound or AzureHound binary. > > > [tab] GitHub > > > > Download the latest releases from GitHub: > > > > * [SharpHound releases](https://github.com/SpecterOps/SharpHound/releases/latest) > > * [AzureHound releases](https://github.com/SpecterOps/AzureHound/releases/latest) > > > [tab] Source > > > > Build the collector from the data collector source code > > > > * [SharpHound](/collect-data/ce-collection/sharphound) > > * [AzureHound](/collect-data/ce-collection/azurehound) > > **3. Run a collector** > > Start the collector to generate and compress JSON files into a ZIP archive. > > ```powershell SharpHound CE theme={null} > # Run SharpHound CE from a domain-joined Windows system > C:\> SharpHound.exe > ``` > > ```powershell AzureHound CE theme={null} > # Provide your credentials and tenant information to run AzureHound CE > C:\> AzureHound.exe --username "MattNelson@contoso.onmicrosoft.com" --password "MyVeryStrongPassword" --tenant "contoso.onmicrosoft.com" list > ``` > > ```bash OpenHound CLI theme={null} > # Collect data with OpenHound CLI for BloodHound CE > openhound collect okta ./output > > # Convert collected data to OpenGraph format for BloodHound CE > openhound convert okta ./output/okta ./graph/okta > ``` > > > [!TIP] > > > > For command options, see: > > > > * [SharpHound Community Edition Flags](/collect-data/ce-collection/sharphound-flags) > > * [AzureHound Community Edition Flags](/collect-data/ce-collection/azurehound-flags) > > * [OpenHound CLI](/openhound/community#cli-commands) > > **4. Ingest data into BloodHound** > > Use the BloodHound CE API or the BloodHound CE UI to ingest collected data into BloodHound. > > To ingest collected data with the API, use the BloodHound CE endpoint `/api/v2/file-upload/`. See the [BloodHound API documentation](/integrations/bloodhound-api/working-with-api) for details. > > To ingest collected data with the BloodHound CE UI, go to **Administration** > **Data Collection** > **File Ingest** and click **Upload File(s)** to upload your files. > > > [!NOTE] > > > > BloodHound CE accepts .zip archives or JSON files, with no size limit. Your browser's ability to package the uploaded file is a limiting factor in uploading large datasets directly through the UI. ## Explore attack paths To look at identified attack paths in the graph, go to the **Explore** page in the BloodHound CE UI. **1. Search for a user** 1. In the **Search** bar, search nodes for a user object. * For Active Directory sample data, enter `user:bob`. * For Azure sample data, enter `azuser:bob`. 2. Select the user and click on the node that appears. 3. Explore information about the user's sessions and memberships. **2. Pathfind** Review the path from one user to another on the **Pathfinding** tab. For example, pathfind from `BOB@PHANTOM.CORP` to `ADMINISTRATORS@PHANTOM.CORP`. To route through additional objects, select **Add Destination** and enter up to two more destination nodes in the order you want BloodHound to traverse them. **3. Explore Cypher queries** Explore the pre-saved Cypher queries on the **Cypher** tab. > [!TIP] > > Learn more in [Explore → Search for Objects](/analyze-data/explore/search). ## Update BloodHound CE The easiest way to update your instance of BloodHound Community Edition is via `bloodhound-cli`. ```bash Linux theme={null} ./bloodhound-cli update ``` ```powershell Windows PowerShell theme={null} .\bloodhound-cli update ``` ```bash Mac theme={null} ./bloodhound-cli update ``` ## Next steps * [Learn how to work with the BloodHound API](/integrations/bloodhound-api/working-with-api) * [Configure BloodHound integrations](/integrations/overview) ## Troubleshooting If you encounter issues during installation, refer to the following common problems and solutions. > [accordion] "bloodhound-cli" Not Opened - Apple security check > > When running `./bloodhound-cli install`, you may see an error stating that Apple could not verify the binary is free of malware. This is a standard macOS security check for unsigned or unnotarized applications. > > **Terminal (Quick Fix)** > > 1. Clear the quarantine flag by running: > ```bash theme={null} > xattr -d com.apple.quarantine ./bloodhound-cli > ``` > 2. Repeat the CLI command: `./bloodhound-cli install` > > **System Settings (GUI)** > > 1. Go to **System Settings** (or **System Preferences** on older macOS versions) > 2. Navigate to **Privacy & Security** > 3. Scroll down to the **Security** section > 4. You should see a message stating that bloodhound-cli was blocked > 5. Click **Allow Anyway** > 6. Repeat the CLI command: `./bloodhound-cli install` > 7. Click **Open Anyway** when prompted > 8. Enter your password or use your fingerprint to confirm > [accordion] Malware Blocked - "com.docker.vmnetd" contains malware > > This error occurs when macOS blocks Docker's networking component. Resolve it by reinstalling Docker: > > 1. Follow the [Docker uninstall instructions](https://docs.docker.com/desktop/uninstall/) (select your operating system tab) > 2. Re-install [Docker Desktop](https://www.docker.com/get-started/) > 3. Repeat the CLI command: `./bloodhound-cli install` > [accordion] Docker daemon is not running > > If you see an error stating "Docker is installed on this system, but the daemon is not running": > > 1. Simply launch **Docker Desktop** from your Applications folder > 2. Wait for Docker to fully start > 3. Repeat the CLI command: `./bloodhound-cli install` # BloodHound Enterprise Quickstart Source: https://bloodhound.specterops.io/get-started/quickstart/enterprise-quickstart ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Get started with your BloodHound Enterprise instance and start identifying and remediating security risks. # Prerequisites To complete this quickstart, you must have a BloodHound Enterprise instance. To connect with the SpecterOps team and receive an instance, [request a demo of BloodHound Enterprise](https://specterops.io/get-a-demo/). # Get data into BloodHound BloodHound Enterprise supports multiple data collection paths. Use the path that matches the directories and platforms you want to analyze: * Active Directory, collected by SharpHound Enterprise * Entra ID (formerly Azure AD) and Azure IaaS, collected by AzureHound Enterprise * GitHub, Jamf, and Okta, collected by OpenHound for BloodHound Enterprise You can run SharpHound Enterprise and AzureHound Enterprise from the same Windows system. AzureHound Enterprise also supports Docker and Kubernetes deployments. > [!TIP] > > Use [OpenHound](/openhound/overview) for built-in collectors and workflows for platforms like GitHub, Jamf, and Okta. For additional community-built collectors, explore the [OpenGraph Library](/opengraph/library). ## Ingest with SharpHound Enterprise (Active Directory) SharpHound Enterprise collects [multiple data types](/collect-data/enterprise-collection/data-retention) from Active Directory and its domain-joined systems. We recommend collecting all types for full risk identification and accurate risk assessment calculation. ![](https://mintcdn.com/specterops/4TPJZsZG7jzCVlX6/images/quickstart/collection_diagram.png?fit=max\&auto=format\&n=4TPJZsZG7jzCVlX6\&q=85\&s=cbc9960a495dfea5489838da2b762ca1) Install the SharpHound Enterprise collector service on a domain-joined Windows system and run it as an Active Directory account. 1. Review the [SharpHound Enterprise System Requirements](/install-data-collector/install-sharphound/system-requirements) and [SharpHound Service Hardening Guidelines](/manage-bloodhound/securing-bloodhound-and-collectors/sharphound-hardening). 2. [Install and Upgrade SharpHound Enterprise](/install-data-collector/install-sharphound/installation-upgrade). 3. To fully secure a domain, collect data from all other domains with a trust relationship to it (in- and outgoing trust). Configure SharpHound Enterprise for [Cross-Trust Collection](/collect-data/enterprise-collection/cross-trust). ## Ingest with AzureHound Enterprise (Entra ID and Azure) Install and run AzureHound Enterprise on Windows, Docker, or Kubernetes. When you deploy AzureHound Enterprise on Windows, it runs as a Windows service. 1. Review the [AzureHound Enterprise System Requirements and Deployment Process](/install-data-collector/install-azurehound/system-requirements). 2. [Configure Azure](/install-data-collector/install-azurehound/azure-configuration). 3. [Create your AzureHound configuration](/install-data-collector/install-azurehound/create-configuration). 4. [Deploy and maintain AzureHound](/install-data-collector/install-azurehound/installation-options). ## Ingest with OpenHound (GitHub, Jamf, and Okta) OpenHound for BloodHound Enterprise runs as a containerized service and is complementary to SharpHound Enterprise and AzureHound Enterprise. > [!NOTE] > > This is a SpecterOps-managed feature. If it is not enabled in your environment, contact your account team for assistance. 1. Review the OpenHound for BloodHound Enterprise [configuration requirements](/openhound/enterprise). 2. Create an OpenHound [collector client](/collect-data/enterprise-collection/create-collector) to get API credentials. 3. Configure the OpenHound collector you want to run: * [GitHub](/openhound/collectors/github/collect-data#configure-openhound) * [Jamf](/openhound/collectors/jamf/collect-data#configure-openhound) * [Okta](/openhound/collectors/okta/collect-data#configure-openhound) 4. Deploy OpenHound in your environment and run an on-demand scan or scheduled collection. # Verify data quality After collecting data, to verify data quality: 1. Go to settings (⚙️) → **Administration** and select **Data Quality**. 2. Verify that each collector has collected the expected amount of data and that principal types match your expected coverage for each directory and platform. > [!NOTE] > > For more information, see [Review Data Quality](/collect-data/data-quality). 3. If using privileged collection, verify that the charts **Local Group Completeness Over Time** and **Session Completeness Over Time** report higher than 0%. Obtaining 100% completeness is not possible in most environments due to things like workstations being offline during collection. 4. If you see lower-than-expected data quality, examine the data collection logs and contact your SpecterOps representative if you need assistance. # Scope Tier Zero objects BloodHound Enterprise identifies and prioritizes attack paths. To get the most accurate assessment, scope your Tier Zero objects. 1. [Scope Tier Zero for your environment](/get-started/security-boundaries/tier-zero-members). 2. [Mark your environment's Tier Zero objects in BloodHound](/analyze-data/privilege-zones/overview). # Grant users access Your BloodHound Enterprise instance has a few administrative users by default. To bring your team into your instance, grant your team access with dedicated users and roles. To grant users access to your instance, [create users and set access control roles](/manage-bloodhound/auth/users-and-roles). BloodHound Enterprise supports two authentication methods for users: * Built-in authentication via username and password, supporting TOTP-based multi-factor authentication * [SAML 2.0-based Single-Sign-On](/manage-bloodhound/auth/saml) Your default users are configured with built-in authentication. For your team, you can also configure SAML authentication. > [!TIP] > > Enable multi-factor authentication for all users, no matter the authentication method and user role. If using SAML authentication, your connected identity provider will handle multi-factor authentication. # Explore and remediate attack paths Go to the **Attack Paths**, **Explore**, and **Posture** pages to see identified attack paths, prioritization, and recommended mitigations. # Next steps * Learn how to work with the [BloodHound Enterprise API](/integrations/bloodhound-api/working-with-api) * [Configure BloodHound integrations](/integrations/overview) # BloodHound Enterprise Security Overview Source: https://bloodhound.specterops.io/get-started/security-boundaries/enterprise-security-overview ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) ## Introduction and Architecture Attack Paths are chains of abusable privileges and user behaviors that create direct and indirect connections between computers and users. They exist due to years of misconfigurations and a lack of visibility into how privileges are applied. Attack Paths cannot be patched through traditional methods because they are misconfigurations, not vulnerabilities. SpecterOps built BloodHound Enterprise following the principles of [Attack Path Management](https://specterops.io/what-is-attack-path-management/) (APM). The primary goal of APM is to solve the Attack Path problem directly. APM is a fundamentally different, unique methodology designed to help organizations understand, empirically quantify the impact of, and eliminate Attack Path risks. ## Single-Tenant Architecture Diagram ![](https://mintcdn.com/specterops/4zZaXoxm1ye6bPgH/assets/image-38.png?fit=max\&auto=format\&n=4zZaXoxm1ye6bPgH\&q=85\&s=845145b97bd82691a1802fcb462e07ce) Customer Data Residency and Subprocessors Customers may request that their tenant reside within one of the supported AWS regions below. Existing customers may request migration to an alternate region should residency needs demand. * **United States**: US-EAST-1 (Northern Virginia) * **Canada**: CA-CENTRAL-1 (Montreal) * **Europe**: EU-CENTRAL-1 (Frankfurt) * **United Kingdom**: EU-WEST-2 (London) * **Australia**: AP-SOUTHEAST-2 (Sydney) Additionally, BloodHound Enterprise utilizes [Pendo](https://pendo.io) to provide in-product tours and behavior monitoring. Customer data is not sent to Pendo. More information on Pendo's data privacy, security policies, and certifications is available [here](https://www.pendo.io/data-privacy-security/). ## AWS Datacenter Security BloodHound Enterprise is hosted within AWS, which touts a litany of security certifications and is subject to regular audits and certifications. Certifications for AWS include ISO 27001, SOC 1 and 2, etc. * [AWS Cloud Security Overview](https://aws.amazon.com/security/) * [AWS Compliance Programs](https://aws.amazon.com/compliance/programs/) * Quick links to frequently requested compliance documentation: * [ISO 27001 Certification](https://d1.awsstatic.com/certifications/iso_27001_global_certification.pdf) * [ISO 27017 Certification](https://d1.awsstatic.com/certifications/iso_27017_certification.pdf) * [SOC 1 / 2 /3 Artifacts](https://aws.amazon.com/compliance/soc-faqs/) ## Customer Data Storage and Separation ### Separation of Customer Data BloodHound Enterprise is deployed in a single-tenancy model within AWS. Each customer environment is configured with its own database, API, and UI servers, and data is not commingled between customers. Each tenant has unique authentication keys defined for authentication between services within the overall system. ### Data Backup and Retention Data backup occurs via [Amazon EBS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-lifecycle.html) and [Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_CommonTasks.BackupRestore.html) backup functionality. All backups are encrypted using the methods listed below in the Customer Data Security section. All backups are retained for seven (7) days. ### Customer Data Security BloodHound Enterprise uses available Amazon encryption functionalities to encrypt all data using AES-256 with an Amazon-managed key. This applies to all servers in the BloodHound Enterprise infrastructure. Backup snapshots utilize the same encryption mechanisms. AWS security groups isolate all BHE installations. They do not have permission to reach other customer assets. More information on EBS volume encryption [can be found here](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html). Information specific to RDS volume encryption [can be found here](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Encryption.html). ### Bring Your Own Key Encryption BloodHound Enterprise supports a "Bring Your Own Key" (BYOK) model for encryption of data at rest, allowing you to maintain control over your encryption keys to support internal security policies and compliance requirements. With BYOK, you provide your own encryption key through AWS Key Management Service (KMS), and BloodHound Enterprise uses that key to encrypt your tenant data instead of SpecterOps-managed keys. > [!NOTE] > > BYOK encryption applies only to data at rest. It does not impact TLS certificates used for encrypting data in transit. #### Important Considerations To enable BYOK encryption for your BloodHound Enterprise tenant, you must contact your account team. You should also be aware of the following considerations: * **Key availability**: Your BloodHound Enterprise tenant requires continuous access to your KMS key. If the key becomes unavailable (deleted, access revoked, or expired), your tenant will experience service disruptions. * **Key rotation**: You are responsible for managing key rotation according to your security policies. Coordinate any key changes with your SpecterOps account team. * **Cost**: There may be additional AWS KMS costs associated with key usage. Consult AWS pricing documentation for details. * **Migration**: Migrating an existing tenant to BYOK requires coordination and may involve scheduled maintenance windows. #### Prerequisites To use BYOK encryption, you need: * An AWS account with permissions to create and manage KMS keys * Ability to configure IAM policies for cross-account access * A BloodHound Enterprise tenant #### Setup Process BYOK setup requires coordination with your SpecterOps account team. The general process involves the following steps: **1. Create a KMS key in your AWS account** Create a KMS key in your AWS account. > [!NOTE] > > See the [AWS documentation](https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html) for details. **2. Configure cross-account access** Attach an IAM policy to your KMS key that allows the SpecterOps AWS account ID (provided by your account team) to use the key. > [!NOTE] > > See the [AWS documentation](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-modifying-external-accounts.html) for details. **3. Provide the key ARN to SpecterOps** Contact your account team and provide the Amazon Resource Name (ARN) of your KMS key. **4. Coordinate tenant provisioning** Work with your account team to provision a new tenant or migrate your existing tenant to use your key. ## Network Communications ### Web Browser and SharpHound/AzureHound connections BloodHound Enterprise uses a shared AWS Application Load Balancer. The load balancer policy has been set to ELBSecurityPolicy-TLS13-1-2-2021-06. With this policy, BloodHound Enterprise: * Does not support SSL renegotiation for client or target connections. * Does not support custom TLS/cipher policies. * Enforces TLS v1.2 minimum. #### Supported protocols * TLS v1.3 * TLS v1.2 #### Supported ciphers * TLS_AES_128_GCM_SHA256 * TLS_AES_256_GCM_SHA384 * TLS_CHACHA20_POLY1305_SHA256 * ECDHE-ECDSA-AES128-GCM-SHA256 * ECDHE-RSA-AES128-GCM-SHA256 * ECDHE-ECDSA-AES128-SHA256 * ECDHE-RSA-AES128-SHA256 * ECDHE-ECDSA-AES256-GCM-SHA384 * ECDHE-RSA-AES256-GCM-SHA384 * ECDHE-ECDSA-AES256-SHA384 * ECDHE-RSA-AES256-SHA384 More information on supported TLS policies [can be found here](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html). ### Certificates The Amazon certificate authority provides customer-facing TLS certificates. This CA is trusted by all major browsers and operating systems and includes: * RSA 2048 public key. * Automatic renewal on an annual basis. * Private keys are never exposed to SpecterOps. Amazon retains full control. More information about the TLS certificates we use [can be found here](https://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html). ## Authentication and Role-Based Access ### Authentication Details BloodHound Enterprise provides built-in authentication via username and password, with the option to enable TOTP-based multi-factor authentication. Customers may additionally choose to enable SAML 2.0-based Single Sign-On to control authentication through an external, third-party provider such as Azure AD SAML, ADFS, or Okta. User access and role assignment are controlled within the BloodHound Enterprise product, and both SP- and IDP-initiated authentication flows are supported. ### Local Authentication Specifications #### Password Expiration and Complexity All passwords configured locally expire every 90 days. * Passwords configured via local authentication require: * At least 12 characters in length * At least one lowercase letter * At least one uppercase letter * At least one number * At least one symbol (One of: !@#\$%^&\*) #### Brute Force Resistance Although BloodHound Enterprise does not lock a user out from attempted brute forcing, API calls against the BloodHound Enterprise authentication API are limited to one call per second, making a successful brute force attack impossible before a password rotation occurs. All other API endpoints are limited to 55 calls per second. #### Password Hashing All passwords are hashed utilizing the Argon2id key derivation function with a unique 16-byte salt length per Argon2id recommendations. For more information on Argon2, see [here](https://datatracker.ietf.org/doc/html/rfc9106). #### Session Expiration User-interface sessions expire after eight (8) hours. #### Role-Based Access Control [BloodHound Enterprise User Roles](/manage-bloodhound/auth/users-and-roles) ## Third-Party Assessments and Certifications ### Penetration Testing BloodHound Enterprise undergoes annual penetration tests at a minimum. Results from these tests can be made available upon request under NDA. All critical-, high-, and medium-risk findings have been remediated. ### Certification BloodHound Enterprise is included in the scope for the following certifications held by SpecterOps: * ISO/IEC 27001:2022 * ISO/IEC 27017:2015 * SOC 2 Type II Visit [trust.specterops.io](https://trust.specterops.io) for more information. ## Patching Operating system security patches are fetched daily and applied automatically. The rest of the BloodHound Enterprise infrastructure utilizes Amazon-provided services, and Amazon performs security patching automatically. We follow security mailing lists, RSS feeds, etc., and periodically review for CVEs in supporting software we use in BHE environments. ## Access to Data Only the BloodHound Enterprise infrastructure engineers maintain persistent access to BHE environments. All SpecterOps employees must pass criminal background checks as a condition of employment. In some instances, select developers are provided temporary access to systems for debugging purposes. This activity is monitored and logged. Access is revoked at the end of the event. ## Logging and Monitoring BloodHound Enterprise captures login and administrative actions within an Audit log that includes the following information: * Who attempted the action (user ID, user name, email) * What action was attempted * The status of the action (intent/success/failure) * When it occurred * Source IP(s) associated with the request This information is available from the API of a running BloodHound Enterprise environment. ## Data Collection Overview For SharpHound, see [SharpHound Data Collection and Permissions](/collect-data/sharphound-data-permissions). For AzureHound, see [AzureHound Data and Permissions](/collect-data/azurehound-data-permissions). # Tier Zero: Members and Modification Source: https://bloodhound.specterops.io/get-started/security-boundaries/tier-zero-members ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) BloodHound borrows from [Microsoft's Enhanced Security Administration Environment (ESAE - Retired)](https://learn.microsoft.com/en-us/security/compass/esae-retirement) model in using the term "Tier Zero." In this model, Tier Zero is the set of objects with full control over the environment AND *any objects with control over those objects*. You may also be familiar with [Microsoft's Enterprise Access Model (EAM)](https://learn.microsoft.com/en-us/security/compass/privileged-access-access-model), which later replaced ESAE; however, they recommend effectively the same advice. Although implementing a tiered model remains the best path toward securing your overall environment, BloodHound enables your teams to identify and remediate the paths towards control of Tier Zero assets without necessarily implementing a strict tiering model. Jonas Bülow Knudsen, one of our BloodHound Enterprise team members, has written this fantastic blog on implementing a tiering model in your environment: [Establish security boundaries in your on-prem AD and Azure environment](https://specterops.io/blog/2022/06/20/establish-security-boundaries-in-your-on-prem-ad-and-azure-environment/). ## How BloodHound Identifies Tier Zero Objects The following sections will cover the default objects in Tier Zero in BloodHound and what to include in the group manually. Still, it's important to understand how the identification process works. Loosely, the steps look like this in BloodHound: 1. Identify all starting members of Tier Zero (default objects and any objects tagged manually within the environment). 2. Unroll group memberships and role assignments: 1. For Active Directory, all group objects will be unrolled to identify any nested objects and tag them as members of Tier Zero. This process is recursive, so any nested memberships will also be identified and tagged. 2. In Azure, the same process occurs with Roles and Groups, identifying objects with those roles assigned to them. This process only identifies direct group members, as Azure does not grant nested group members permissions of the parent group. 3. After identifying these objects, BloodHound will identify objects which maintain structural control over those things already tagged. This includes things like OUs, Containers, and GPOs in Active Directory and Subscriptions and Management Groups in Azure. At this point, the "Tier Zero Boundary" is drawn, and any remaining control over those objects would be identified as a Tier Zero path within BloodHound. ## Default Members of Tier Zero BloodHound will automatically identify many Tier Zero objects within your environment to get you started on protecting the most critical assets within your environment. ### Active Directory In Active Directory, BloodHound starts primarily with the default groups that maintain full control of a domain or have the (effectively) irrevocable ability to gain access to those groups. These include (default RIDs are provided for reference): * Domain head object * AdminSDHolder object * Built-in Administrator account (-500) * Domain Admins (-512) * Domain Controllers (-516) * Schema Admins (-518) * Enterprise Admins (-519) * Enterprise Domain Controllers (1-5-9) * Key Admins (-526) * Enterprise Key Admins (-527) * Administrators (-544) *Please see the following sections about modifying Tier Zero in an Active Directory environment for information on the inclusion of other default groups in Tier Zero.* ### Azure In Azure, BloodHound starts primarily with the default roles that maintain full control of an Azure tenant or have the (effectively) irrevocable ability to gain access to those roles. These include: * Tenant object * Global Administrator * Privileged Role Administrator * Privileged Authentication Administrator * Partner Tier2 Support ## Modifying Tier Zero Although BloodHound can identify much of Tier Zero by default, many things included in Tier Zero do not have a consistent means to identify them across multiple environments. We recommend splitting this effort into two phases for organizations just starting to develop the internal concept of Tier Zero. If your organization has already begun the process, you may decide to go through both phases more rapidly. ### Phase One Phase One consists of those systems within an AD environment which are almost always Tier Zero, regardless of your implementation. You will want to identify both the computers and the service accounts associated with the following services: * PKI (Public Key Infrastructure) / ADCS (Active Directory Certificate Services) * Root CA (Certificate Authority) server * Subordinate CAs * ADFS (Active Directory Federation Services) * Note: The Web Application Proxy (WAP) servers should be in a separate AD forest (DMZ or extranet network) and are not considered Tier Zero. * Azure AD Connect servers and accounts * Incl. servers with PTA agents if Pass-Through Authentication (PTA) is enabled. * Privileged Access Management systems (such as Delinea or CyberArk) * GPO Administration tools (such as Quest GPO Admin or AGPM) * Read-Only Domain Controller (RODC) computer objects * Read about why the RODC computer objects are Tier Zero and how RODCs should be configured to protect Tier Zero here: [What is Tier Zero - Part 2](https://specterops.io/blog/2023/09/14/what-is-tier-zero-part-2/). * Anything else your organization already classifies as Tier Zero, such as Privileged Access Workstations. ### Phase Two In Phase 2, you will include systems in Tier Zero that have code execution ability on Tier Zero systems (or other privileged control). For example, if DCs are managed from SCCM, compromising SCCM allows the attacker to execute code on DCs. SCCM is, in this case, an indirect path to full control over the environment and, therefore, a Tier Zero system. Compromising the environment through these systems requires a more sophisticated attack than the systems covered in Phase 1. There are often many systems in this category, and it will usually require some effort to execute this part of the Tier Zero classifications. We recommend examining the [TierZeroTable](https://github.com/SpecterOps/TierZeroTable) and adding assets classified as Tier Zero in this table to Tier Zero in BloodHound as part of this phase as well. # Upgrade PostgreSQL Source: https://bloodhound.specterops.io/get-started/upgrade-postgres Migrate BloodHound Community Edition from PostgreSQL 16 to 18. ![Applies to BloodHound CE only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=3a8d58a0f10bb4bd4c711489b93d6dda) BloodHound Community Edition is already compatible with PostgreSQL 18. Use this guide to get a head start on the latest PostgreSQL release before it becomes the default bundled version, and to benefit from its new capabilities and performance improvements. However, the upgrade introduces a **breaking change** to the Docker volume mount path that prevents a simple image tag update. > [!WARNING] > > The PostgreSQL 18 Docker image uses a different volume mount path than version 16. Starting a PostgreSQL 18 container against an existing PostgreSQL 16 volume will fail. You must migrate your data using the scripts provided on this page. > > | PostgreSQL version | Volume mount path | > | - | - | > | 16 (and earlier) | `/var/lib/postgresql/data` | > | 18 (and later) | `/var/lib/postgresql` | The upgrade scripts on this page automate the migration by dumping your existing data, backing up the Docker volume, updating your `docker-compose.yml`, and restoring the data into a fresh PostgreSQL 18 container. ## Prerequisites * Docker with the Compose V2 plugin (`docker compose`, not `docker-compose`) * Sufficient free disk space for the database dump file and a volume backup * PowerShell 5.1 or later (all platforms), or bash (Linux/macOS) * Your BloodHound CE installation must be accessible and running before you begin ## Before you begin > [!WARNING] > > Back up your data before running the upgrade script. The scripts automatically create a copy of your PostgreSQL Docker volume, but you should verify that your data is intact independently before and after the migration. The upgrade scripts perform the following steps in order: | Step | What it does | | - | - | | 1. Stop app, keep database running | Stops the BloodHound application container while leaving PostgreSQL 16 running so the database can be dumped cleanly | | 2. Dump the database | Exports the PostgreSQL 16 database to a compressed dump file on your host | | 3. Stop all containers | Brings down all containers before modifying the volume | | 4. Back up the data volume | Copies the PostgreSQL 16 Docker volume to a backup volume for safety | | 5. Update `docker-compose.yml` | Changes the image tag to `postgres:18` and updates the volume mount path; saves a backup of the original compose file | | 6. Start PostgreSQL 18 and restore | Removes the old volume, starts PostgreSQL 18, and restores the database from the dump file | | 7. Start the full stack | Brings up all BloodHound CE containers | ## Run the upgrade script Save the following script to a file and run it. > [tab] PowerShell (all platforms) > > Save the script as `upgrade-pg.ps1` and run it with `.\upgrade-pg.ps1`. > > ```powershell theme={null} > #Requires -Version 5.1 > <# > .SYNOPSIS > Migrates BloodHound Community Edition PostgreSQL from 16 to 18. > .DESCRIPTION > Walks through dumping the PG 16 database, backing up the Docker volume, > upgrading to PG 18, and restoring the data. Requires Docker with the > Compose V2 plugin. > #> > > $ErrorActionPreference = "Stop" > > function Write-Step { param([string]$Msg) Write-Host "`n=== $Msg ===" -ForegroundColor Cyan } > function Write-Ok { param([string]$Msg) Write-Host $Msg -ForegroundColor Green } > function Write-Warn { param([string]$Msg) Write-Host $Msg -ForegroundColor Yellow } > > # ── 1. Gather inputs ──────────────────────────────────────────────────────── > Write-Step "BloodHound PostgreSQL 16 -> 18 Migration" > > $defaultDir = Join-Path $HOME ".config" "bloodhound" > $composeDir = Read-Host "Enter the directory containing docker-compose.yml (default: $defaultDir)" > if ([string]::IsNullOrWhiteSpace($composeDir)) { $composeDir = $defaultDir } > $composeDir = [System.IO.Path]::GetFullPath($composeDir.Replace("~", $HOME)) > $composeFile = Join-Path $composeDir "docker-compose.yml" > > if (-not (Test-Path $composeFile)) { > Write-Error "docker-compose.yml not found at $composeFile"; exit 1 > } > > $defaultDump = Join-Path $composeDir "pg16_backup.dump" > $dumpPath = Read-Host "Enter path for the database dump file (default: $defaultDump)" > if ([string]::IsNullOrWhiteSpace($dumpPath)) { $dumpPath = $defaultDump } > $dumpPath = [System.IO.Path]::GetFullPath($dumpPath.Replace("~", $HOME)) > > # ── 2. Read credentials (.env then defaults) ──────────────────────────────── > $pgUser = "bloodhound"; $pgDb = "bloodhound" > > $envFile = Join-Path $composeDir ".env" > if (Test-Path $envFile) { > Write-Host "Reading overrides from $envFile ..." > Get-Content $envFile | ForEach-Object { > if ($_ -match '^\s*POSTGRES_USER\s*=\s*(.+)$') { $pgUser = $Matches[1].Trim() } > if ($_ -match '^\s*POSTGRES_DB\s*=\s*(.+)$') { $pgDb = $Matches[1].Trim() } > } > } > Write-Host "Credentials: user=$pgUser db=$pgDb" > > # ── 3. Resolve project and volume names via Docker Compose ─────────────────── > $dcBase = @("-f", $composeFile, "--project-directory", $composeDir) > > $projectName = (docker compose @dcBase config --format json | ConvertFrom-Json).name > if ([string]::IsNullOrWhiteSpace($projectName)) { > Write-Error "Could not determine Compose project name."; exit 1 > } > > $declaredVols = @(docker compose @dcBase config --volumes) > $pgVolDecl = $declaredVols | Where-Object { $_ -match 'postgres-data' } | Select-Object -First 1 > if (-not $pgVolDecl) { > Write-Error "No 'postgres-data' volume declared in compose config."; exit 1 > } > $volumeName = "${projectName}_${pgVolDecl}" > > $volExists = docker volume ls --format "{{.Name}}" | Where-Object { $_ -eq $volumeName } > if (-not $volExists) { > Write-Error "Docker volume '$volumeName' not found. Is BloodHound installed?" > exit 1 > } > Write-Host "Project: $projectName Volume: $volumeName" > > # ── 4. Confirm ────────────────────────────────────────────────────────────── > Write-Warn "`nThis script will:" > Write-Host " 1. Stop the BloodHound app (keep PG 16 running)" > Write-Host " 2. Dump the PG 16 database to: $dumpPath" > Write-Host " 3. Stop all containers" > Write-Host " 4. Create a backup copy of the PostgreSQL data volume" > Write-Host " 5. Update docker-compose.yml to use PostgreSQL 18" > Write-Host " 6. Start PG 18 and restore the database" > Write-Host " 7. Start the full BloodHound stack" > > $confirm = Read-Host "`nProceed? (y/N)" > if ($confirm -notin @('y','Y')) { Write-Host "Cancelled."; exit 0 } > > # ── Helper: run docker compose with project context ────────────────────────── > function Invoke-DC { > $dcArgs = @("-f", $composeFile, "--project-directory", $composeDir) + $args > & docker compose @dcArgs > if ($LASTEXITCODE -ne 0) { throw "docker compose failed (exit $LASTEXITCODE)" } > } > > # ── 5. Stop app, keep PG 16 alive ─────────────────────────────────────────── > Write-Step "Stopping BloodHound application container" > Invoke-DC stop bloodhound > Write-Ok "BloodHound app stopped." > > Write-Step "Ensuring PostgreSQL 16 is running" > Invoke-DC start app-db > Start-Sleep -Seconds 5 > > # ── 6. Dump database ──────────────────────────────────────────────────────── > Write-Step "Dumping PostgreSQL 16 database" > Invoke-DC exec app-db pg_dump -U $pgUser -d $pgDb -Fc -Z 9 -f /tmp/pg16_backup.dump > Invoke-DC cp app-db:/tmp/pg16_backup.dump $dumpPath > > $dumpSize = (Get-Item $dumpPath).Length > Write-Ok "Database dumped ($dumpSize bytes) -> $dumpPath" > > # ── 7. Stop everything ────────────────────────────────────────────────────── > Write-Step "Stopping all containers" > Invoke-DC down > Write-Ok "All containers stopped." > > # ── 8. Copy the volume ────────────────────────────────────────────────────── > Write-Step "Backing up PostgreSQL data volume" > $backupVol = "${volumeName}-pg16-backup" > docker volume create $backupVol | Out-Null > docker run --rm -v "${volumeName}:/source:ro" -v "${backupVol}:/backup" ` > alpine sh -c "cp -a /source/. /backup/" > Write-Ok "Volume copied to: $backupVol" > > # ── 9. Update docker-compose.yml ──────────────────────────────────────────── > Write-Step "Updating docker-compose.yml to PostgreSQL 18" > $bakFile = Join-Path $composeDir "docker-compose.yml.pg16.bak" > Copy-Item $composeFile $bakFile > Write-Host "Compose file backed up to: $bakFile" > > $content = Get-Content $composeFile -Raw > $updated = $content -replace 'image:\s*docker\.io/library/postgres:16', 'image: docker.io/library/postgres:18' > if ($updated -eq $content) { Write-Error "Could not find postgres:16 image reference in compose file"; exit 1 } > # PG 18+ expects the mount at /var/lib/postgresql (not /var/lib/postgresql/data). > # It manages version-specific subdirectories under that path automatically. > $beforeMount = $updated > $updated = $updated -replace 'postgres-data:/var/lib/postgresql/data', 'postgres-data:/var/lib/postgresql' > if ($updated -eq $beforeMount) { Write-Error "Could not find postgres-data:/var/lib/postgresql/data volume mount in compose file"; exit 1 } > [System.IO.File]::WriteAllText($composeFile, $updated) > Write-Ok "docker-compose.yml updated (image + volume mount path)." > > # ── 10. Remove old volume, start PG 18 ────────────────────────────────────── > Write-Step "Removing old PostgreSQL data volume" > docker volume rm $volumeName | Out-Null > Write-Ok "Old volume removed (backup preserved at $backupVol)." > > Write-Step "Starting PostgreSQL 18" > Invoke-DC up -d app-db > > # Resolve the actual container name for app-db from Compose > $appDbContainer = (docker compose @dcBase ps --format "{{.Name}}" app-db).Trim() > if ([string]::IsNullOrWhiteSpace($appDbContainer)) { > Write-Error "Could not determine container name for app-db service."; exit 1 > } > > Write-Host "Waiting for PostgreSQL 18 to become healthy ($appDbContainer)..." > for ($i = 0; $i -lt 30; $i++) { > Start-Sleep -Seconds 2 > $health = docker inspect --format "{{.State.Health.Status}}" $appDbContainer 2>$null > if ($health -eq "healthy") { break } > } > if ($health -ne "healthy") { Write-Error "Container '$appDbContainer' is not healthy (status: $health). Aborting migration."; exit 1 } > > # ── 11. Restore database ──────────────────────────────────────────────────── > Write-Step "Restoring database into PostgreSQL 18" > Invoke-DC cp $dumpPath app-db:/tmp/pg16_backup.dump > Invoke-DC exec app-db pg_restore -U $pgUser -d $pgDb --clean --if-exists /tmp/pg16_backup.dump > Write-Ok "Database restored." > > # ── 12. Start full stack ───────────────────────────────────────────────────── > Write-Step "Starting full BloodHound stack" > Invoke-DC up -d > Write-Ok "BloodHound stack is starting." > > # ── Done ───────────────────────────────────────────────────────────────────── > Write-Step "Migration Complete" > Write-Ok "PostgreSQL upgraded from 16 to 18." > Write-Host " Database dump : $dumpPath" > Write-Host " Volume backup : $backupVol" > Write-Host " Compose backup: $bakFile" > Write-Warn "`nOnce verified, you can clean up with:" > Write-Host " docker volume rm $backupVol" > Write-Host " Remove-Item '$bakFile'" > Write-Host " Remove-Item '$dumpPath'" > ``` > [tab] Linux/macOS (bash) > > Save the script as `upgrade-pg.sh`, make it executable with `chmod +x upgrade-pg.sh`, and run it with `./upgrade-pg.sh`. > > ```bash theme={null} > #!/usr/bin/env bash > # Migrates BloodHound Community Edition PostgreSQL from 16 to 18. > # Requires Docker with the Compose V2 plugin. > set -euo pipefail > > # ── Helpers ────────────────────────────────────────────────────────────────── > step() { printf '\n\033[36m=== %s ===\033[0m\n' "$1"; } > ok() { printf '\033[32m%s\033[0m\n' "$1"; } > warn() { printf '\033[33m%s\033[0m\n' "$1"; } > die() { printf '\033[31mError: %s\033[0m\n' "$1" >&2; exit 1; } > > dc() { docker compose -f "$COMPOSE_FILE" --project-directory "$COMPOSE_DIR" "$@"; } > > # ── 1. Gather inputs ──────────────────────────────────────────────────────── > step "BloodHound PostgreSQL 16 -> 18 Migration" > > DEFAULT_DIR="$HOME/.config/bloodhound" > read -rp "Enter the directory containing docker-compose.yml (default: $DEFAULT_DIR): " COMPOSE_DIR > COMPOSE_DIR="${COMPOSE_DIR:-$DEFAULT_DIR}" > COMPOSE_DIR="${COMPOSE_DIR/#\~/$HOME}" > COMPOSE_DIR="$(cd "$COMPOSE_DIR" && pwd)" > COMPOSE_FILE="$COMPOSE_DIR/docker-compose.yml" > > [ -f "$COMPOSE_FILE" ] || die "docker-compose.yml not found at $COMPOSE_FILE" > > DEFAULT_DUMP="$COMPOSE_DIR/pg16_backup.dump" > read -rp "Enter path for the database dump file (default: $DEFAULT_DUMP): " DUMP_PATH > DUMP_PATH="${DUMP_PATH:-$DEFAULT_DUMP}" > DUMP_PATH="${DUMP_PATH/#\~/$HOME}" > > # ── 2. Read credentials (.env then defaults) ──────────────────────────────── > PG_USER="bloodhound" > PG_DB="bloodhound" > > ENV_FILE="$COMPOSE_DIR/.env" > if [ -f "$ENV_FILE" ]; then > echo "Reading overrides from $ENV_FILE ..." > _val="$(grep -E '^\s*POSTGRES_USER\s*=' "$ENV_FILE" | tail -n1 | cut -d= -f2- | xargs || true)" && [ -n "$_val" ] && PG_USER="$_val" > _val="$(grep -E '^\s*POSTGRES_DB\s*=' "$ENV_FILE" | tail -n1 | cut -d= -f2- | xargs || true)" && [ -n "$_val" ] && PG_DB="$_val" > fi > echo "Credentials: user=$PG_USER db=$PG_DB" > > # ── 3. Resolve project and volume names via Docker Compose ─────────────────── > PROJECT_NAME="$(docker compose -f "$COMPOSE_FILE" --project-directory "$COMPOSE_DIR" \ > config --format json | python3 -c "import sys,json; print(json.load(sys.stdin)['name'])")" > [ -n "$PROJECT_NAME" ] || die "Could not determine Compose project name." > > PG_VOL_DECL="$(docker compose -f "$COMPOSE_FILE" --project-directory "$COMPOSE_DIR" \ > config --volumes | grep 'postgres-data' | head -n1)" > [ -n "$PG_VOL_DECL" ] || die "No 'postgres-data' volume declared in compose config." > > VOLUME_NAME="${PROJECT_NAME}_${PG_VOL_DECL}" > > docker volume ls --format '{{.Name}}' | grep -qx "$VOLUME_NAME" \ > || die "Docker volume '$VOLUME_NAME' not found. Is BloodHound installed?" > > echo "Project: $PROJECT_NAME Volume: $VOLUME_NAME" > > # ── 4. Confirm ────────────────────────────────────────────────────────────── > warn "" > warn "This script will:" > echo " 1. Stop the BloodHound app (keep PG 16 running)" > echo " 2. Dump the PG 16 database to: $DUMP_PATH" > echo " 3. Stop all containers" > echo " 4. Create a backup copy of the PostgreSQL data volume" > echo " 5. Update docker-compose.yml to use PostgreSQL 18" > echo " 6. Start PG 18 and restore the database" > echo " 7. Start the full BloodHound stack" > > read -rp $'\nProceed? (y/N): ' CONFIRM > [[ "$CONFIRM" =~ ^[yY]$ ]] || { echo "Cancelled."; exit 0; } > > # ── 5. Stop app, keep PG 16 alive ─────────────────────────────────────────── > step "Stopping BloodHound application container" > dc stop bloodhound > ok "BloodHound app stopped." > > step "Ensuring PostgreSQL 16 is running" > dc start app-db > sleep 5 > > # ── 6. Dump database ──────────────────────────────────────────────────────── > step "Dumping PostgreSQL 16 database" > dc exec app-db pg_dump -U "$PG_USER" -d "$PG_DB" -Fc -Z 9 -f /tmp/pg16_backup.dump > dc cp app-db:/tmp/pg16_backup.dump "$DUMP_PATH" > > DUMP_SIZE="$(stat -f%z "$DUMP_PATH" 2>/dev/null || stat -c%s "$DUMP_PATH")" > ok "Database dumped ($DUMP_SIZE bytes) -> $DUMP_PATH" > > # ── 7. Stop everything ────────────────────────────────────────────────────── > step "Stopping all containers" > dc down > ok "All containers stopped." > > # ── 8. Copy the volume ────────────────────────────────────────────────────── > step "Backing up PostgreSQL data volume" > BACKUP_VOL="${VOLUME_NAME}-pg16-backup" > docker volume create "$BACKUP_VOL" > /dev/null > docker run --rm -v "${VOLUME_NAME}:/source:ro" -v "${BACKUP_VOL}:/backup" \ > alpine sh -c "cp -a /source/. /backup/" > ok "Volume copied to: $BACKUP_VOL" > > # ── 9. Update docker-compose.yml ──────────────────────────────────────────── > step "Updating docker-compose.yml to PostgreSQL 18" > BAK_FILE="$COMPOSE_DIR/docker-compose.yml.pg16.bak" > cp "$COMPOSE_FILE" "$BAK_FILE" > echo "Compose file backed up to: $BAK_FILE" > > # Replace image tag > if ! grep -q 'docker.io/library/postgres:16' "$COMPOSE_FILE"; then > die "Could not find postgres:16 image reference in compose file" > fi > sed -i.tmp 's|image: *docker\.io/library/postgres:16|image: docker.io/library/postgres:18|' "$COMPOSE_FILE" > > # PG 18+ expects the mount at /var/lib/postgresql (not /var/lib/postgresql/data). > if ! grep -q 'postgres-data:/var/lib/postgresql/data' "$BAK_FILE"; then > die "Could not find postgres-data:/var/lib/postgresql/data volume mount in compose file" > fi > sed -i.tmp 's|postgres-data:/var/lib/postgresql/data|postgres-data:/var/lib/postgresql|' "$COMPOSE_FILE" > rm -f "${COMPOSE_FILE}.tmp" > ok "docker-compose.yml updated (image + volume mount path)." > > # ── 10. Remove old volume, start PG 18 ────────────────────────────────────── > step "Removing old PostgreSQL data volume" > docker volume rm "$VOLUME_NAME" > /dev/null > ok "Old volume removed (backup preserved at $BACKUP_VOL)." > > step "Starting PostgreSQL 18" > dc up -d app-db > > # Resolve the actual container name for app-db from Compose > APP_DB_CONTAINER="$(docker compose -f "$COMPOSE_FILE" --project-directory "$COMPOSE_DIR" \ > ps --format '{{.Name}}' app-db | head -n1 | xargs)" > [ -n "$APP_DB_CONTAINER" ] || die "Could not determine container name for app-db service." > > echo "Waiting for PostgreSQL 18 to become healthy ($APP_DB_CONTAINER)..." > for i in $(seq 1 30); do > sleep 2 > HEALTH="$(docker inspect --format '{{.State.Health.Status}}' "$APP_DB_CONTAINER" 2>/dev/null || true)" > [ "$HEALTH" = "healthy" ] && break > done > [ "$HEALTH" = "healthy" ] || die "Container '$APP_DB_CONTAINER' is not healthy (status: $HEALTH). Aborting migration." > > # ── 11. Restore database ──────────────────────────────────────────────────── > step "Restoring database into PostgreSQL 18" > dc cp "$DUMP_PATH" app-db:/tmp/pg16_backup.dump > dc exec app-db pg_restore -U "$PG_USER" -d "$PG_DB" --clean --if-exists /tmp/pg16_backup.dump > ok "Database restored." > > # ── 12. Start full stack ───────────────────────────────────────────────────── > step "Starting full BloodHound stack" > dc up -d > ok "BloodHound stack is starting." > > # ── Done ───────────────────────────────────────────────────────────────────── > step "Migration Complete" > ok "PostgreSQL upgraded from 16 to 18." > echo " Database dump : $DUMP_PATH" > echo " Volume backup : $BACKUP_VOL" > echo " Compose backup: $BAK_FILE" > warn "" > warn "Once verified, you can clean up with:" > echo " docker volume rm $BACKUP_VOL" > echo " rm '$BAK_FILE'" > echo " rm '$DUMP_PATH'" > ``` ## Verify the upgrade After the script finishes running, confirm that the database is healthy and your data is intact. **1. Check the container status** Confirm all containers are running: ```bash theme={null} docker compose ps ``` The `app-db` container should show a status of `healthy`. **2. Confirm the PostgreSQL version** Confirm that PostgreSQL 18 is running: ```bash theme={null} docker compose exec app-db psql -U [POSTGRES_USER] -d [POSTGRES_DB] -c "SELECT version();" ``` The output should include `PostgreSQL 18`. **3. Log in to BloodHound CE** Open your browser and navigate to BloodHound CE (default: `http://127.0.0.1:8080`). Log in and confirm that your data is accessible. ## Clean up After you have verified that the upgrade was successful and your data is intact, remove the temporary files and backup volume created during the migration. Replace the placeholder values with the actual paths and volume name printed by the script. > [tab] PowerShell (all platforms) > > ```powershell theme={null} > docker volume rm > Remove-Item 'C:\path\to\docker-compose.yml.pg16.bak' > Remove-Item 'C:\path\to\pg16_backup.dump' > ``` > [tab] Linux/macOS (bash) > > ```bash theme={null} > docker volume rm > rm '/path/to/docker-compose.yml.pg16.bak' > rm '/path/to/pg16_backup.dump' > ``` # Home Source: https://bloodhound.specterops.io/home Attack Paths For All (b:BloodHoundUsers) - \[h:Think_In] -> (e:Graphs) Search or ask Get started > [card] [Get Started](/get-started/introduction) > > Learn about BloodHound, how to get started, and its security boundaries. > [card] [Install a Data Collector](/install-data-collector/overview) > > Deploy SharpHound Enterprise or AzureHound Enterprise to collect and upload data for processing and analysis. > [card] [Collect Data](/collect-data/overview) > > Learn how attack path data collection and ingestion works, and how to run attack path data collections. > [card] [Analyze Attack Path Data](/analyze-data/overview) > > Analyze ingested BloodHound data, and identify and remediate attack paths and risks. > [card] [OpenGraph](/opengraph/overview) > > Ingest any data source and map Attack Paths. Learn about the schema, custom icons and more. > [card] [Manage BloodHound](/manage-bloodhound/overview) > > Manage a BloodHound instance and its related components, such as users, roles, authentication, collector status, and general security. > [card] [API & Integrations](/integrations/overview) > > Build with BloodHound through its REST API and integrations. # AzureHound Enterprise Azure Configuration Source: https://bloodhound.specterops.io/install-data-collector/install-azurehound/azure-configuration Follow this guide to configure Microsoft Entra ID for AzureHound Enterprise data collection. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) For Certificate, Client Secret, and Username and Password authentication methods, creating a Microsoft Entra ID application registration is a prerequisite for AzureHound Enterprise data collection. If you are using **Azure Managed Identity** authentication, an app registration is not required — skip directly to [Configure authentication](#configure-authentication). For app registration-based authentication, the setup involves the following steps: ```mermaid theme={null} graph LR A[Create a new app registration] --> B[Add required API permissions] B --> C[Configure authentication methods] C --> D[Create and assign required access roles] ``` For Certificate, Client Secret, and Username and Password authentication, some steps are required before you can complete the [AzureHound configuration](/install-data-collector/install-azurehound/create-configuration). At minimum, you must create the application registration because AzureHound requires an Entra ID **Directory (tenant) ID** and **Application (client) ID**. For **Azure Managed Identity** authentication, these steps are not required — see [Managed identity](#managed-identity-recommended) instead. ## Create a new app registration This section guides you through the minimum steps to create a new application registration in Microsoft Entra ID for AzureHound Enterprise data collection. > [!NOTE] > > See the Microsoft [documentation](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app) for more information. **1. Navigate to Entra ID** Log into the [Microsoft Entra admin center](https://entra.microsoft.com/) as a user with the [Global Administrator] role, or the following less privileged roles: * [Privileged Role Administrator] AND * [Application Administrator] OR [Cloud Application Administrator] [Global Administrator]: https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/permissions-reference#global-administrator [Privileged Role Administrator]: https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/permissions-reference#privileged-role-administrator [Cloud Application Administrator]: https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/permissions-reference#cloud-application-administrator [Application Administrator]: https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/permissions-reference#application-administrator **2. Create a new app registration** 1. In the left menu, click **Entra ID** > **App registrations** > **New registration**. 2. In the **Name** field, enter a name for the application to identify it in your organization. Make sure the supported account type is set to the **Accounts in this organizational directory only (Single tenant)** option. A URI is not required. ![A view of the Azure portal showing the New registration page with fields to enter the application name and supported account types.](https://mintcdn.com/specterops/TagLJJCvysaU586D/images/data_collectors/azurehound/register-app.png?fit=max\&auto=format\&n=TagLJJCvysaU586D\&q=85\&s=77271dece4e8aafc0e93edd80f6e8d9e) 3. Click **Register** to create the application registration. **3. Retrieve details for AzureHound configuration** In the **Overview** menu, copy the **Application (client) ID** and **Directory (tenant) ID**. > [!NOTE] > > You will need this information later to configure [AzureHound Enterprise](/install-data-collector/install-azurehound/create-configuration). ![A view of the Azure portal showing the application registration details page with the Application (client) ID and Directory (tenant) ID fields highlighted.](https://mintcdn.com/specterops/TagLJJCvysaU586D/images/data_collectors/azurehound/app-registration-details.png?fit=max\&auto=format\&n=TagLJJCvysaU586D\&q=85\&s=776aee67cf0d55593e2d6f6a653f27c1) ## Add required API permissions This section describes how to configure the required Microsoft Graph API permissions for the AzureHound Enterprise application registration. > [!NOTE] > > See the [Microsoft documentation](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-configure-app-access-web-apis#add-permissions-to-access-microsoft-graph) for more information. > [!NOTE] > > This section applies to Certificate, Client Secret, and Username and Password authentication methods. For **Azure Managed Identity** authentication, Microsoft Graph permissions must be granted directly to the managed identity's service principal — see [Managed identity](#managed-identity-recommended) for details. **1. Navigate to API permissions** On the **Overview** page of the app registration, click **API Permissions**. **2. Remove default permission** Remove the default **User.Read** delegated permission. It is not required for AzureHound Enterprise data collection. ![A view of the Azure portal showing the API permissions page with the User.Read permission highlighted for removal.](https://mintcdn.com/specterops/TagLJJCvysaU586D/images/data_collectors/azurehound/remove-default-permission.png?fit=max\&auto=format\&n=TagLJJCvysaU586D\&q=85\&s=e15dd845184527e49b2ba3a30ac690af) **3. Add Microsoft Graph API permissions** 1. Click **Add a permission** > **Microsoft Graph**. 2. Select **Application permissions**. ![A view of the Microsoft Graph API permission selection page with the Application permissions option highlighted.](https://mintcdn.com/specterops/TagLJJCvysaU586D/images/data_collectors/azurehound/ms-graph-api-permission-type.png?fit=max\&auto=format\&n=TagLJJCvysaU586D\&q=85\&s=94013002e867004956033c56b48a77f7) 3. Search for and check the box next to each of the following Microsoft Graph **application** permissions. See [AzureHound Data and Permissions: Entra ID](/collect-data/azurehound-data-permissions#entra-id) for details on the least-privilege approach: | Permission | Purpose | | - | - | | `User.Read.All` | Enumerate users and user properties | | `GroupMember.Read.All` | Enumerate groups, group owners, and group members | | `Application.Read.All` | Enumerate applications, app owners, federated identity credentials, service principals, service principal owners, and app role assignments | | `Device.Read.All` | Enumerate devices and device registered owners | | `Organization.Read.All` | Read tenant/organization information | | `RoleManagement.Read.Directory` | Enumerate Entra ID role definitions, role assignments, PIM eligible role assignments, and role management policy assignments | | `AdministrativeUnit.Read.All` | Populate Administrative Unit properties on AU-scoped role assignments. Collected by AzureHound, not processed by BloodHound yet. | | `AuditLog.Read.All` | (Optional) Collect `signInActivity` (last sign-in timestamps) on user objects. AzureHound gracefully degrades if this permission is missing. Requires a Microsoft Entra ID P1 or P2 license. | 4. Click **Add permissions**. **4. Grant admin consent** After adding the required permissions, you must grant admin consent for the application to use them. 1. Click **Grant admin consent for \**. ![A view of the Azure portal showing the API permissions page with the Grant admin consent button highlighted.](https://mintcdn.com/specterops/TagLJJCvysaU586D/images/data_collectors/azurehound/grant-admin-consent.png?fit=max\&auto=format\&n=TagLJJCvysaU586D\&q=85\&s=9c22e91a1b4eb1eb6f495a47c4437723) 2. Click **Yes** in the confirmation dialog. 3. After being redirected to API Permissions again, you should see all requested permissions as **Granted**. ![A view of the Azure portal showing the API permissions page with the requested permissions marked as Granted.](https://mintcdn.com/specterops/TagLJJCvysaU586D/images/data_collectors/azurehound/admin-consent-granted.png?fit=max\&auto=format\&n=TagLJJCvysaU586D\&q=85\&s=c26bd63b72a9afdf06b2d2b166d4accf) ## Configure authentication This section describes how to configure authentication methods for AzureHound Enterprise. AzureHound Enterprise supports the following authentication methods: * Azure Managed Identity (recommended) * Certificate * Client Secret * Username and Password > [!NOTE] > > This section provides instructions for configuring the **Azure Managed Identity** and **Certificate** authentication methods. For information on other methods, see the Microsoft [documentation](https://learn.microsoft.com/en-us/entra/identity-platform/how-to-add-credentials). ### Managed identity (recommended) Managed identities provide the most secure authentication method because they remove the need to manage credentials directly. Microsoft [recommends](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/overview#use-managed-identities-for-azure-resources) user-assigned managed identities for Microsoft services, so this example uses the **user-assigned** type. AzureHound Enterprise also supports system-assigned managed identities, but that workflow is not covered in this guide. For this setup, create a user-assigned managed identity in Azure and assign it to the Azure resource where you plan to run AzureHound Enterprise. > [!NOTE] > > To complete [AzureHound configuration](/install-data-collector/install-azurehound/create-configuration), you will need the user-assigned managed identity **Client ID**. AzureHound Enterprise must run on the Azure resource where that identity is assigned. **1. Navigate to Azure Managed Identities** Sign in to the [Azure portal](https://portal.azure.com/) and search for **Managed Identities** in the top search bar. **2. Create a user-assigned managed identity** Click **Create** and enter the required information to create a new user-assigned managed identity. > [!NOTE] > > See the Microsoft [documentation](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/manage-user-assigned-managed-identities-azure-portal) for more information. **3. Assign the managed identity to the AzureHound Enterprise host** Assign the user-assigned managed identity to the Azure resource where you plan to run AzureHound Enterprise, such as a virtual machine or app service. > [!NOTE] > > Azure Managed Identity authentication only works when AzureHound Enterprise runs on an Azure resource that has access to the managed identity. See the Microsoft [documentation](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/managed-identities-status) for more information. **4. Grant required permissions to the managed identity** AzureHound authenticates directly as the managed identity — no app registration is involved. You must grant both types of required permissions directly to the managed identity's service principal: * **Microsoft Graph API permissions** — The Azure portal provides no user interface for granting Microsoft Graph **application** permissions to a managed identity's service principal. You must use PowerShell (or Azure Cloud Shell) to assign these permissions directly. See [AzureHound Data and Permissions: Entra ID](/collect-data/azurehound-data-permissions#entra-id) for details on the least-privilege approach. * **AzureHound Reader role** — Assign the AzureHound Reader custom role to the managed identity's service principal at the Tenant Root Group scope. See [Create and assign required access roles](#create-and-assign-required-access-roles) below. The following PowerShell script (Microsoft Graph SDK) assigns all required Microsoft Graph application permissions to your managed identity's service principal. Replace the `$managedIdentityClientId` placeholder with the **Client ID** found in the Azure portal under **Managed Identities** > your identity > **Overview**. If you use a sovereign Azure cloud, set `$graphEnvironment` to the corresponding Microsoft Graph environment. ```powershell theme={null} <# .SYNOPSIS Grants Microsoft Graph application permissions to an Azure managed identity's service principal for AzureHound Enterprise data collection. .DESCRIPTION The Azure portal provides no user interface for granting Microsoft Graph application permissions to a managed identity's service principal. This script uses the Microsoft Graph PowerShell SDK to assign the required least-privilege permissions directly to the managed identity's existing service principal. The required PowerShell module can be installed from the PowerShell Gallery: Install-Module -Scope AllUsers -Repository PSGallery -Force -Name @( Microsoft.Graph.Applications, Microsoft.Graph.Authentication ) .NOTES Version: 1.0 #> #Requires -Version 5 #Requires -Modules Microsoft.Graph.Applications,Microsoft.Graph.Authentication # --------------------------------------------------------------------------- # Replace with your managed identity's Client ID. # Found in the Azure portal: Managed Identities > your identity > Overview. # --------------------------------------------------------------------------- [string] $managedIdentityClientId = '' # Use Global, China, USGov, or USGovDoD as appropriate. [string] $graphEnvironment = 'Global' # Connect to Microsoft Graph with the scopes required to read service principals # and grant app role assignments. # Note: The -TenantId parameter is also required when using an External ID. Connect-MgGraph -NoWelcome -ContextScope Process -Environment $graphEnvironment -Scopes @( 'Application.Read.All', 'AppRoleAssignment.ReadWrite.All' ) # Resolve the managed identity's service principal by its Client ID (AppId). [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphServicePrincipal] $miServicePrincipal = Get-MgServicePrincipal -Filter "AppId eq '$managedIdentityClientId'" if (-not $miServicePrincipal) { throw "No service principal found for managed identity Client ID '$managedIdentityClientId'." } # Fetch the Microsoft Graph service principal, resolved by its well-known, # tenant-invariant AppId rather than DisplayName for robustness. [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphServicePrincipal] $microsoftGraph = Get-MgServicePrincipal -Filter "AppId eq '00000003-0000-0000-c000-000000000000'" # Define the least-privilege Microsoft Graph application permissions # See: /collect-data/azurehound-data-permissions#entra-id [string[]] $requiredPermissions = @( 'User.Read.All' 'GroupMember.Read.All' 'Application.Read.All' 'Device.Read.All' 'Organization.Read.All' 'RoleManagement.Read.Directory' 'AdministrativeUnit.Read.All' 'AuditLog.Read.All' # Optional: for signInActivity on user objects ) # Assign each permission to the managed identity's service # principal using New-MgServicePrincipalAppRoleAssignment. foreach ($permission in $requiredPermissions) { [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAppRole] $appRole = $microsoftGraph.AppRoles | Where-Object Value -eq $permission if (-not $appRole) { throw "Permission '$permission' not found in Microsoft Graph app roles." } New-MgServicePrincipalAppRoleAssignment ` -ServicePrincipalId $miServicePrincipal.Id ` -PrincipalId $miServicePrincipal.Id ` -ResourceId $microsoftGraph.Id ` -AppRoleId $appRole.Id } Write-Host '' Write-Host 'Microsoft Graph permissions granted to managed identity:' -ForegroundColor Green $requiredPermissions | ForEach-Object { Write-Host " - $_" } Write-Host '' # Sign out from Microsoft Graph Disconnect-MgGraph | Out-Null ``` ### Certificate Certificates provide stronger authentication than client secrets or username and password combinations, but you must manage and rotate them properly. For this setup, you must also upload the certificate to the app registration if you're using the AzureHound Enterprise CLI tool to create the certificate. > [!NOTE] > > If you have not already created a certificate, see [Create an AzureHound Configuration](/install-data-collector/install-azurehound/create-configuration) before proceeding. **1. Navigate to Entra ID Certificates & secrets** 1. On the **Overview** page of the app registration, click **Certificates & secrets**. ![The AzureHound app registration Overview page with the Certificates & secrets menu item highlighted.](https://mintcdn.com/specterops/dSyPFnFn7QBl0TvL/assets/image-138.png?fit=max\&auto=format\&n=dSyPFnFn7QBl0TvL\&q=85\&s=c0d3f4ff5ed6ebd7199a12c460d6245a) 2. Click **Certificates**. ![The Certificates & secrets page with the Certificates tab highlighted.](https://mintcdn.com/specterops/dSyPFnFn7QBl0TvL/assets/image-139.png?fit=max\&auto=format\&n=dSyPFnFn7QBl0TvL\&q=85\&s=3964b1c6976b3bf2c0d334fbcbd1d64f) **2. Upload certificate** 1. Click **Upload certificate**. ![The Certificates page showing the Upload certificate button.](https://mintcdn.com/specterops/dSyPFnFn7QBl0TvL/assets/image-140.png?fit=max\&auto=format\&n=dSyPFnFn7QBl0TvL\&q=85\&s=e5c525ce1a8f6c40420c7622eb49d012) 2. Locate the `cert.pem` file that you created during [AzureHound configuration](/install-data-collector/install-azurehound/create-configuration). 3. Click the folder icon, select the `cert.pem` file, and add a description (optional). ![The upload dialog with a selected certificate file and optional description field.](https://mintcdn.com/specterops/dSyPFnFn7QBl0TvL/assets/image-141.png?fit=max\&auto=format\&n=dSyPFnFn7QBl0TvL\&q=85\&s=d77903e276e9e9a3c9e185b5e5c41a3f) 4. Click **Add**. ## Configure application branding > [!NOTE] > > This section applies only if you created an app registration (Certificate, Client Secret, or Username and Password authentication). It does not apply to Azure Managed Identity authentication, since no app registration exists to brand. Optionally, add branding to help users identify the AzureHound Enterprise application in the Entra ID admin center. These steps do not affect collector functionality. **1. Download application logo** You can download the [AzureHound Enterprise icon](/assets/icons/entra-bhe-app-icon.png) from this site to use for the application logo in the Entra ID admin center. **2. Open the Branding & properties section** In the Entra ID admin center, navigate to the AzureHound Enterprise application and open the **Branding & properties** section. ![Screenshot of the Branding & properties section of the AzureHound Enterprise application in the Entra ID admin center.](https://mintcdn.com/specterops/TagLJJCvysaU586D/images/data_collectors/azurehound/azurehound-install-branding.png?fit=max\&auto=format\&n=TagLJJCvysaU586D\&q=85\&s=2ef42f9f614265bbb2336bbc9ee7567e) **3. Upload the application logo** Click **Select a file** and browse to the icon file you downloaded. ![Screenshot of the file upload dialog for the application logo in the Branding & properties section.](https://mintcdn.com/specterops/TagLJJCvysaU586D/images/data_collectors/azurehound/azurehound-install-upload-logo.png?fit=max\&auto=format\&n=TagLJJCvysaU586D\&q=85\&s=15c2906d401bed8d03052faca50cc2de) **4. Set the application name and home page URL** 1. In the **Name** field, enter a human-readable name for the application, for example, **BloodHound Enterprise Collector (AzureHound)**. 2. In the **Home page URL** field, enter your BloodHound Enterprise tenant URL. This is for record keeping only. **5. Save the branding settings** Click **Save** and review the results. ![The Branding & properties section showing the saved AzureHound Enterprise application logo and name.](https://mintcdn.com/specterops/TagLJJCvysaU586D/images/data_collectors/azurehound/azurehound-install-branding-result.png?fit=max\&auto=format\&n=TagLJJCvysaU586D\&q=85\&s=f8305ca8d51b6daee84998cecf92b2e8) ## Create and assign required access roles This section describes how to assign the required access roles for AzureHound Enterprise data collection. For Certificate, Client Secret, and Username and Password authentication methods, assign the role to the app registration's service principal. For **Azure Managed Identity** authentication, assign the role to the managed identity's service principal instead. The AzureHound Reader role is a least-privilege custom role that grants AzureHound the minimum permissions required to collect data from Azure Resource Manager. Assigning this role at the Tenant Root Group scope ensures AzureHound can collect data across all current and future subscriptions in the tenant. > [!NOTE] > > If you don't have any management groups, you can skip this section. However, AzureHound will log a warning during each collection indicating it cannot collect management group data. > > Alternatively, you can create your Tenant Root Group by following the prompts in the Azure portal. This ensures visibility if another administrator begins using subscriptions in the future. **1. Navigate to the Tenant Root Group** 1. Log into the [Azure portal](https://portal.azure.com/) as a user with the [User Access Administrator](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/privileged#user-access-administrator) role. 2. Search for and select the **Management groups** item in the top search bar. ![The Azure portal search bar with Management groups selected from results.](https://mintcdn.com/specterops/0hnP16TYKIpfuVCL/assets/arm-search-management-groups.png?fit=max\&auto=format\&n=0hnP16TYKIpfuVCL\&q=85\&s=14074f1b649d5b46c7b3e2759c77eed6) 3. Select **Tenant Root Group**. ![The Management groups page showing Tenant Root Group selected.](https://mintcdn.com/specterops/0hnP16TYKIpfuVCL/assets/arm-select-tenant-root-group.png?fit=max\&auto=format\&n=0hnP16TYKIpfuVCL\&q=85\&s=9835c5f79e046bd19f2b55a5a295d33e) **2. Create the AzureHound Reader custom role** 1. Select **Access control (IAM)**. ![The Tenant Root Group page with Access control (IAM) selected.](https://mintcdn.com/specterops/0hnP16TYKIpfuVCL/assets/arm-select-access-control-iam.png?fit=max\&auto=format\&n=0hnP16TYKIpfuVCL\&q=85\&s=b4077dc3891469985e6f58a45fb831f9) 2. Click **Add**, then **Add custom role**. ![The Access control (IAM) page with Add and Add custom role options highlighted.](https://mintcdn.com/specterops/0hnP16TYKIpfuVCL/assets/arm-add-custom-role.png?fit=max\&auto=format\&n=0hnP16TYKIpfuVCL\&q=85\&s=5dc476737386557d22f02c18c0f713b2) 3. Download [azurehound-reader-role.json](/assets/azurehound-reader-role.json), open it in a text editor, and replace `` with your [Tenant Root Management Group ID](https://learn.microsoft.com/en-us/azure/governance/management-groups/overview#root-management-group-for-each-directory) (this is your Entra ID tenant ID). ![The azurehound-reader-role.json file showing where to replace the tenantRootGroupId placeholder.](https://mintcdn.com/specterops/0hnP16TYKIpfuVCL/assets/arm-json-tenantid.png?fit=max\&auto=format\&n=0hnP16TYKIpfuVCL\&q=85\&s=79b730659d3c7f062feb5363a148b6a1) 4. In **Basics** > **File**, upload the edited file and click **Review + create**. ![The Add custom role Basics page with the edited role file uploaded and ready for review.](https://mintcdn.com/specterops/0hnP16TYKIpfuVCL/assets/arm-upload-azurehound-reader.png?fit=max\&auto=format\&n=0hnP16TYKIpfuVCL\&q=85\&s=12ae807b4a71b082e685420d32697f46) > [!NOTE] > > See [AzureHound Data Collection and Permissions: Azure Resource Manager](/collect-data/azurehound-data-permissions#azure-resource-manager) for details on each least-privilege permission in the AzureHound Reader role. 5. Review the role and click **Create** at the bottom of the page. ![The custom role review page with the Create button available at the bottom.](https://mintcdn.com/specterops/0hnP16TYKIpfuVCL/assets/arm-create.png?fit=max\&auto=format\&n=0hnP16TYKIpfuVCL\&q=85\&s=c2ede50192e4f8b9ce965da5994c7719) **3. Assign the AzureHound Reader role** 1. Back in **Access control (IAM)**, click **Add**, then **Add role assignment**. ![The Access control (IAM) page with Add role assignment selected from the Add menu.](https://mintcdn.com/specterops/0hnP16TYKIpfuVCL/assets/arm-add-role-assignment.png?fit=max\&auto=format\&n=0hnP16TYKIpfuVCL\&q=85\&s=285a745e530588a9f51276691739bc9a) 2. Search for the **AzureHound Reader** role and select it. ![The role assignment screen with the AzureHound Reader role selected.](https://mintcdn.com/specterops/0hnP16TYKIpfuVCL/assets/arm-select-azurehound-reader-role.png?fit=max\&auto=format\&n=0hnP16TYKIpfuVCL\&q=85\&s=bc4fde6fd871fdcfd6c980848d2c52f3) 3. Click **Members**. ![The role assignment workflow showing the Members step.](https://mintcdn.com/specterops/dSyPFnFn7QBl0TvL/assets/image-130.png?fit=max\&auto=format\&n=dSyPFnFn7QBl0TvL\&q=85\&s=2d275360ab8ef54c598d4168b665e292) 4. Click **Select members**. Select the tab for your authentication method and assign the AzureHound Reader role to the corresponding service principal. > [tab] App registration > > ![The Members step with User, group, or service principal selected and the Select members button highlighted.](https://mintcdn.com/specterops/dSyPFnFn7QBl0TvL/assets/image-131.png?fit=max\&auto=format\&n=dSyPFnFn7QBl0TvL\&q=85\&s=57de5ece40ffd1cde30bff363f2eaf28) > > 1. Under **Assign access to**, leave **User, group, or service principal** selected. > > 2. Search for and click the AzureHound Enterprise app registration's service principal. > > ![The member picker dialog with the AzureHound Enterprise app registration service principal selected.](https://mintcdn.com/specterops/dSyPFnFn7QBl0TvL/assets/image-132.png?fit=max\&auto=format\&n=dSyPFnFn7QBl0TvL\&q=85\&s=d531d45dbd80db7845f8988ec3b1049a) > > 3. Validate the selected principal, then click **Select**. > > ![The selected AzureHound Enterprise app registration service principal before applying the role assignment.](https://mintcdn.com/specterops/dSyPFnFn7QBl0TvL/assets/image-133.png?fit=max\&auto=format\&n=dSyPFnFn7QBl0TvL\&q=85\&s=86120fa8ad87a876d9e576f7078f9087) > [tab] Managed identity > > 1. Under **Assign access to**, select **Managed identity**. > > > [!NOTE] > > > > Managed identities do not appear in the default member picker. You must switch **Assign access to** to **Managed identity** before searching, or your search will return no results. > > 2. Search for and click the managed identity's service principal. > > 3. Validate the selected principal, then click **Select**. **4. Review the role assignment** 1. Click the tab **Review + Assign**. ![The role assignment workflow with the Review + Assign tab selected.](https://mintcdn.com/specterops/dSyPFnFn7QBl0TvL/assets/image-134.png?fit=max\&auto=format\&n=dSyPFnFn7QBl0TvL\&q=85\&s=e863d7bf2125b71aa486dedbdf18260a) 2. Click **Review + Assign** at the bottom of the page. ![The Review + Assign page with the final Review + Assign button ready to submit.](https://mintcdn.com/specterops/dSyPFnFn7QBl0TvL/assets/image-135.png?fit=max\&auto=format\&n=dSyPFnFn7QBl0TvL\&q=85\&s=696d9929cb9f2deb230ad936541cf93f) 3. Confirm the role is present by refreshing this view. You may need to alter the filter to see this role. ## Scripted configuration As an alternative to the manual steps described in this document, you can use **PowerShell** to automate the entire configuration process. > [!NOTE] > > This script applies to **Certificate, Client Secret, and Username and Password** authentication methods only — it is not applicable for Managed Identity authentication. The script below registers AzureHound in Entra ID, creates the least-privilege Azure Reader role, and assigns it to the service principal. The script is **idempotent**—it safely handles re-runs by detecting existing resources and updating them as needed, preventing duplicate role definitions or assignments. > [!NOTE] > > After running this script, follow the steps to [configure an authentication certificate](/install-data-collector/install-azurehound/azure-configuration#certificate) to complete the setup. ```powershell theme={null} <# .SYNOPSIS Registers the Azure Data Exporter for BloodHound Enterprise (AzureHound) as an application in Entra ID. .DESCRIPTION This script registers the Azure Data Exporter for BloodHound Enterprise (AzureHound) as an application in Microsoft Entra ID and Azure, including all necessary read permissions and a least-privilege custom Azure Reader role. The script is idempotent: on subsequent runs, it detects existing role definitions and assignments, updates them if needed, and skips creation to prevent duplicates. The required PowerShell modules can be installed from the PowerShell Gallery using the following command: Install-Module -Scope AllUsers -Repository PSGallery -Force -Name @( Microsoft.Graph.Applications, Microsoft.Graph.Authentication, Az.Resources, Az.Accounts ) .NOTES Version: 1.1 #> #Requires -Version 5 #Requires -Modules Microsoft.Graph.Applications,Microsoft.Graph.Authentication #Requires -Modules Az.Resources,Az.Accounts #region Entra ID # Connect to Microsoft Entra ID through the Microsoft Graph API # Note: The -TenantId parameter is also required when using an External ID. Connect-MgGraph -NoWelcome -ContextScope Process -Scopes @( 'User.Read', 'Application.ReadWrite.All', 'AppRoleAssignment.ReadWrite.All' ) # Register the AzureHound application [string] $appName = 'BloodHound Enterprise Collector' [string] $appDescription = 'Azure Data Exporter for BloodHound Enterprise (AzureHound)' # TODO: Optionally provide the actual URL your BloodHound Enterprise tenant [string] $homePage = 'https://specterops.io/bloodhound-enterprise' [hashtable] $infoUrls = @{ MarketingUrl = 'https://specterops.io/bloodhound-enterprise' TermsOfServiceUrl = 'https://specterops.io/terms-of-service' PrivacyStatementUrl = 'https://specterops.io/privacy-policy' SupportUrl = 'https://bloodhound.specterops.io/' } [hashtable] $webUrls = @{ HomePageUrl = $homePage } [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphApplication] $registeredApp = New-MgApplication -DisplayName $appName ` -Description $appDescription ` -Info $infoUrls ` -Web $webUrls ` -SignInAudience 'AzureADMyOrg' # Configure the application logo [string] $logoUrl = 'https://bloodhound.specterops.io/assets/icons/entra-bhe-app-icon.png' [string] $tempLogoPath = New-TemporaryFile Invoke-WebRequest -Uri $logoUrl ` -OutFile $tempLogoPath ` -UseBasicParsing ` -ErrorAction Stop try { Set-MgApplicationLogo -ApplicationId $registeredApp.Id ` -ContentType 'image/png' ` -InFile $tempLogoPath } finally { # Delete the local copy of the logo from temp Remove-Item -Path $tempLogoPath } # Make sure the app instance property lock is enabled Update-MgApplication ` -ApplicationId $registeredApp.Id ` -ServicePrincipalLockConfiguration @{ IsEnabled = $true AllProperties = $true } # Create the associated service principal object [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphServicePrincipal] $servicePrincipal = New-MgServicePrincipal -DisplayName $appName ` -AppId $registeredApp.AppId ` -AccountEnabled ` -ServicePrincipalType Application ` -Notes $appDescription ` -Homepage $homePage ` -Tags 'WindowsAzureActiveDirectoryIntegratedApp','HideApp' # Fetch the Microsoft Graph applicaton ID, # which should be 00000003-0000-0000-c000-000000000000 [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphServicePrincipal] $microsoftGraph = Get-MgServicePrincipal -Filter "DisplayName eq 'Microsoft Graph'" # Define the least-privilege Microsoft Graph application permissions # See: /collect-data/azurehound-data-permissions#entra-id [string[]] $requiredPermissions = @( 'User.Read.All' 'GroupMember.Read.All' 'Application.Read.All' 'Device.Read.All' 'Organization.Read.All' 'RoleManagement.Read.Directory' 'AdministrativeUnit.Read.All' 'AuditLog.Read.All' # Optional: for signInActivity on user objects. Requires a Microsoft Entra ID P1 or P2 license ) # Resolve each permission name to its AppRole definition [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAppRole[]] $appRoles = $requiredPermissions | ForEach-Object { [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAppRole] $role = $microsoftGraph.AppRoles | Where-Object Value -eq $PSItem if (-not $role) { throw "Permission '$PSItem' not found in Microsoft Graph app roles" } $role } # Transform the app roles to the format required by Update-MgApplication [hashtable[]] $resourceAccess = $appRoles | ForEach-Object { @{ id = $PSItem.Id; type = 'Role' } } # Delegate the required API permissions Update-MgApplication -ApplicationId $registeredApp.Id -RequiredResourceAccess @{ ResourceAppId = $microsoftGraph.AppId # 00000003-0000-0000-c000-000000000000 ResourceAccess = $resourceAccess } # Admin-consent each permission foreach ($access in $resourceAccess) { New-MgServicePrincipalAppRoleAssignment -ServicePrincipalId $servicePrincipal.Id ` -PrincipalId $servicePrincipal.Id ` -ResourceId $microsoftGraph.Id ` -AppRoleId $access.id } # Get the environment-specific Microsoft Graph API endpoint # Azure Global: https://graph.microsoft.com # Azure USGov: https://graph.microsoft.us [string] $graphEndpoint = (Get-MgEnvironment -Name (Get-MgContext).Environment).GraphEndpoint # Fetch the info about the current user [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphDirectoryObject] $currentUser = Invoke-MgGraphRequest -Method GET -Uri '/v1.0/me' # OData IDs need to be used when assigning application ownership, # e.g., https://graph.microsoft.com/v1.0/users/{bca3617a-4c54-45eb-9a32-744c1938242e} [string] $currentUserOdataId = "$graphEndpoint/v1.0/users/{$($currentUser.Id)}" # Assign the current user as the application object owner New-MgApplicationOwnerByRef -ApplicationId $registeredApp.Id ` -OdataId $currentUserOdataId # Assign the current user as the service principal owner New-MgServicePrincipalOwnerByRef -ServicePrincipalId $servicePrincipal.Id ` -OdataId $currentUserOdataId # Sign out from Microsoft Graph Disconnect-MgGraph | Out-Null #endregion Entra ID #region Azure # Optionally enable browser-based login on Windows 10 and later Update-AzConfig -EnableLoginByWam $false # Authenticate against Azure Resource Manager Connect-AzAccount -Environment AzureCloud -Scope Process # Load the AzureHound Reader custom role definition [string] $roleDefinitionJson = @' { "properties": { "roleName": "AzureHound Reader", "description": "Least-privilege read-only role for AzureHound data collection from Azure Resource Manager.", "assignableScopes": [ "/providers/Microsoft.Management/managementGroups/" ], "permissions": [ { "actions": [ "Microsoft.Resources/tenants/read", "Microsoft.Resources/subscriptions/read", "Microsoft.Resources/subscriptions/resourceGroups/read", "Microsoft.Authorization/roleAssignments/read", "Microsoft.Management/managementGroups/read", "Microsoft.Management/managementGroups/descendants/read", "Microsoft.Compute/virtualMachines/read", "Microsoft.Compute/virtualMachineScaleSets/read", "Microsoft.KeyVault/vaults/read", "Microsoft.Web/sites/read", "Microsoft.ContainerRegistry/registries/read", "Microsoft.ContainerService/managedClusters/read", "Microsoft.Automation/automationAccounts/read", "Microsoft.Logic/workflows/read", "Microsoft.Storage/storageAccounts/read", "Microsoft.Storage/storageAccounts/blobServices/containers/read" ], "notActions": [], "dataActions": [], "notDataActions": [] } ] } } '@ if (-not (Test-Path -Path 'variable:servicePrincipal')) { # Fetch the service principal if the Azure part of the script is executed independently [Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphServicePrincipal] $servicePrincipal = Get-AzADServicePrincipal -DisplayName 'BloodHound Enterprise Collector' } # Fetch the Tenant Root Group [guid] $currentTenantId = (Get-AzContext).Tenant.Id [Microsoft.Azure.Commands.Resources.Models.ManagementGroups.PSManagementGroup] $rootManagementGroup = Get-AzManagementGroup -GroupName $currentTenantId # New-AzRoleDefinition expects a flat structure, not the nested `properties` wrapper # used by the ARM portal upload format, so we must flatten it before passing it in. [PSCustomObject] $roleDefinition = $roleDefinitionJson | ConvertFrom-Json $flatRole = [PSCustomObject]@{ Name = $roleDefinition.properties.roleName Description = $roleDefinition.properties.description Actions = $roleDefinition.properties.permissions[0].actions NotActions = $roleDefinition.properties.permissions[0].notActions DataActions = $roleDefinition.properties.permissions[0].dataActions NotDataActions = $roleDefinition.properties.permissions[0].notDataActions AssignableScopes = @($roleDefinition.properties.assignableScopes | ForEach-Object { $_ -replace '', $currentTenantId }) } [string] $flatRolePath = New-TemporaryFile $flatRole | ConvertTo-Json -Depth 10 | Set-Content -Path $flatRolePath # Create the custom AzureHound Reader role try { $existingRole = Get-AzRoleDefinition -Name 'AzureHound Reader' -ErrorAction SilentlyContinue if ($existingRole) { $existingRole.Actions = $flatRole.Actions $existingRole.NotActions = $flatRole.NotActions $existingRole.DataActions = $flatRole.DataActions $existingRole.NotDataActions = $flatRole.NotDataActions $existingRole.Description = $flatRole.Description $existingRole.AssignableScopes = $flatRole.AssignableScopes [Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition] $azureHoundReaderRole = Set-AzRoleDefinition -Role $existingRole } else { [Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition] $azureHoundReaderRole = New-AzRoleDefinition -InputFile $flatRolePath } } finally { Remove-Item -Path $flatRolePath } # Assign the AzureHound Reader role at the Tenant Root Group $existingRoleAssignment = Get-AzRoleAssignment -ObjectId $servicePrincipal.Id ` -Scope $rootManagementGroup.Id ` -RoleDefinitionId $azureHoundReaderRole.Id ` -ErrorAction SilentlyContinue if ($null -ne $existingRoleAssignment) { [Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment] $readerRoleAssignment = $existingRoleAssignment } else { [Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleAssignment] $readerRoleAssignment = New-AzRoleAssignment -ObjectId $servicePrincipal.Id ` -Scope $rootManagementGroup.Id ` -RoleDefinitionId $azureHoundReaderRole.Id } # Sign out from Azure Resource Manager Disconnect-AzAccount -Scope Process #endregion Azure #region Summary Write-Host '' Write-Host '=== Configuration Summary ===' -ForegroundColor Cyan Write-Host '' Write-Host 'Entra ID app registration:' -ForegroundColor Green Write-Host " Application Name: $appName" Write-Host " Application ID: $($registeredApp.AppId)" Write-Host " Object ID: $($registeredApp.Id)" Write-Host " Tenant ID: $currentTenantId" Write-Host " Owner: $($currentUser.UserPrincipalName)" Write-Host '' Write-Host 'Microsoft Graph permissions (admin-consented):' -ForegroundColor Green $requiredPermissions | ForEach-Object { Write-Host " - $_" } Write-Host '' Write-Host 'Azure Resource Manager:' -ForegroundColor Green Write-Host " Custom Role: $($azureHoundReaderRole.Name)" Write-Host " Role ID: $($azureHoundReaderRole.Id)" Write-Host " Assigned Scope: $($rootManagementGroup.Id)" Write-Host '' Write-Host 'Remaining manual step:' -ForegroundColor Yellow Write-Host ' Upload an authentication certificate to the app registration.' Write-Host ' See: https://bloodhound.specterops.io/install-data-collector/install-azurehound/azure-configuration#certificate' Write-Host '' #endregion Summary ``` # Create an AzureHound Configuration Source: https://bloodhound.specterops.io/install-data-collector/install-azurehound/create-configuration Learn how to create a configuration file for AzureHound Enterprise data collection. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) ## Prerequisites To complete the configuration process, you must have the following information: | Item | Description | | - | - | | **Directory (tenant) ID** | Identifies the Microsoft Entra ID instance for your Azure environment. For Certificate, Client Secret, and Username and Password authentication, this is also the tenant where you must [register](/install-data-collector/install-azurehound/azure-configuration) the AzureHound Enterprise application. | | **Application (client) ID** | Identifies the AzureHound Enterprise [app registration](/install-data-collector/install-azurehound/azure-configuration) that you must create in the Microsoft Entra admin center. For **Azure Managed Identity** authentication, use the managed identity's Client ID. | | **AzureHound token ID** | Identifies the AzureHound Enterprise [collector client](/collect-data/enterprise-collection/create-collector) that you must create in BloodHound Enterprise. | | **AzureHound token** | Provides the authentication key for the AzureHound Enterprise [collector client](/collect-data/enterprise-collection/create-collector) that you must create in BloodHound Enterprise. | | **BloodHound Enterprise URL** | The URL of your BloodHound Enterprise tenant (for example, `https://.bloodhoundenterprise.io/`). | | **Managed Identity Client ID** | If using [Azure Managed Identity](/install-data-collector/install-azurehound/azure-configuration#managed-identity-recommended) authentication, identifies the managed identity assigned to the Azure resource where you run AzureHound Enterprise. | | **Certificate and private key** | If using [Certificate](/install-data-collector/install-azurehound/azure-configuration#certificate) authentication, the certificate and private key used to authenticate the AzureHound Enterprise application. The AzureHound Enterprise CLI tool can generate this for you during the configuration process if needed. | Configuring AzureHound Enterprise involves the following steps: ```mermaid theme={null} flowchart LR subgraph Download a(AzureHound Enterprise) end subgraph Configure b(Azure connection)-->c(AzureHound authentication) c-->d(AzureHound collector client) d-->e(AzureHound logging) end subgraph Review f(Configuration Summary) end Download-->Configure-->Review ``` Follow the steps below to create your AzureHound Enterprise configuration file using the AzureHound Enterprise CLI tool. **1. Download AzureHound Enterprise** 1. Login to your BloodHound Enterprise tenant. 2. In the left menu, click **Download Collectors**. 3. Download the AzureHound Enterprise ZIP archive. > [!NOTE] > > Choose the option suitable for your system's architecture (ARM64 or AMD64). 4. Extract the contents of the ZIP archive to a working directory on the system where you plan to run the AzureHound Enterprise binary. **2. Configure connection to Azure** 1. Start the AzureHound Enterprise CLI tool with the `configure` command. ```text theme={null} C:\Users\Administrator.ROOT\Downloads\azurehound-v2.8.2\azurehound-windows-amd64>azurehound.exe configure ``` To see all available options, run `azurehound.exe -h`. 2. Select the Azure region where your organization's tenant is hosted. > [!NOTE] > > Most organizations use the `cloud` region. ```text theme={null} AzureHound v2.8.2 Created by the BloodHound Enterprise team - https://bloodhoundenterprise.io Use the arrow keys to navigate: ↓ ↑ ← → ? Azure Region: china > cloud usgov14 usgov15 ``` 3. Enter the Azure **Directory (tenant) ID**. ```text theme={null} Directory (tenant) ID: b82887fc-338d-44ab-97d6-ac32d060ad7e ``` 4. Enter the Azure **Application (client) ID** that you created when [registering](/install-data-collector/install-azurehound/azure-configuration) the AzureHound Enterprise application. ```text theme={null} Application (client) ID: 18a7b927-9905-484e-8b17-c09630ce8ff2 ``` > [!NOTE] > > If you are using **Azure Managed Identity** authentication, enter the managed identity's **Client ID** here. **3. Configure AzureHound authentication** Choose one of the following authentication methods for AzureHound Enterprise to connect to your Microsoft Entra ID and Azure environment: > [tab] Azure Managed Identity > > Microsoft [recommends](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/overview#use-managed-identities-for-azure-resources) user-assigned managed identities for Microsoft services, so this example uses the **user-assigned** type. AzureHound Enterprise also supports system-assigned managed identities, but that workflow is not covered in this guide. > > Before configuring Azure Managed Identity authentication, you must first create a [user-assigned managed identity](/install-data-collector/install-azurehound/azure-configuration#managed-identity-recommended), assign it to the Azure resource where you plan to run AzureHound Enterprise, and grant the required permissions and AzureHound Reader role directly to the managed identity. > > 1. Select **Azure Managed Identity** as the authentication method. > > ```text theme={null} > Use the arrow keys to navigate: ↓ ↑ ← → > ? Authentication Method: > Certificate > Client Secret > Username and Password > > Azure Managed Identity > ``` > > 2. Select **User-Assigned** as the Managed Identity type. > > ```text theme={null} > Use the arrow keys to navigate: ↓ ↑ ← → > ? Managed Identity Type: > System-Assigned > > User-Assigned > ``` > > 3. Enter the **Client ID** of the User-Assigned Managed Identity. > > ```text theme={null} > v Input the User-Assigned Managed Identity (Client ID): > ``` > > > [!NOTE] > > > > To find the Client ID, navigate to the Managed Identity in the Azure portal and copy the value from the **Client ID** field in the Overview. > > 4. Press **Enter** (or enter `Y`) to connect to BloodHound Enterprise. > > ```text theme={null} > ? Setup connection to BloodHound Enterprise? [Y/n] > ``` > > 5. Enter the URL of your BloodHound Enterprise tenant. > > ```text theme={null} > v BloodHound Enterprise URL: https://.bloodhoundenterprise.io/ > ``` > [tab] Certificate > > 1. Select **Certificate** as the authentication method. > > ```text theme={null} > Use the arrow keys to navigate: ↓ ↑ ← → > ? Authentication Method: > > Certificate > Client Secret > Username and Password > Azure Managed Identity > ``` > > 2. Press **Enter** or type `Y` to create a new certificate and key. > > ```text theme={null} > Authentication Method: Certificate > ? Generate Certificate and Key? [Y/n] > ``` > > > [!NOTE] > > > > * The certificate generated by AzureHound expires after one year. See [Renew an AzureHound Certificate](/install-data-collector/install-azurehound/renew-certificate) to rotate it before it expires. > > * If using a certificate issued by another authority, AzureHound Enterprise supports certificates with the following characteristics: > > * PEM encoded > > * RSA 256 > > * PKCS#8 or PKCS#5 > > 3. Enter an optional passphrase for the private key. > > ```text theme={null} > Authentication Method: Certificate > v Private Key Passphrase (optional): > ``` > > 4. Press **Enter** (or enter `Y`) to connect to BloodHound Enterprise. > > ```text theme={null} > ? Setup connection to BloodHound Enterprise? [Y/n] > ``` > > 5. Enter the URL of your BloodHound Enterprise tenant. > > ```text theme={null} > v BloodHound Enterprise URL: https://.bloodhoundenterprise.io/ > ``` **4. Configure AzureHound collector client** 1. Create an AzureHound [collector client](/collect-data/enterprise-collection/create-collector). Continue to the next step when you have the **Token ID** and **Token**. 2. Enter the collector client's **Token ID**. ```text theme={null} v BloodHound Enterprise Token ID: bb7b957f-2508-400b-971e-6a1857cc0101 ``` 3. Enter the collector client's **Token**. ```text theme={null} v BloodHound Enterprise Token: **************************************** ``` 4. (Optional) Enter `y` if you want to use a proxy URL. > [!NOTE] > > Most organizations do not use a proxy. ```text theme={null} ? Set proxy URL? [y/N] ``` **5. Configure AzureHound logging** 1. Press **Enter** (or type `y`) to set up local logging. ```text theme={null} ? Setup AzureHound logging? [Y/n] ``` 2. Select the logging verbosity, as a start we recommend **Default**. ```text theme={null} Use the arrow keys to navigate: ↓ ↑ ← → ? Verbosity: Disabled > Default Debug Trace ``` 3. Enter a name for the log file. > [!TIP] > > You can also enter a full path as a file name. If you do not specify a full path, AzureHound Enterprise writes logs to the specified file name and stores it in the same directory as the AzureHound binary. ```text theme={null} v Log file (optional): azurehound.log ``` 4. If you want AzureHound Enterprise to generate JSON-structured logs, press **Enter** or type `y`. ```text theme={null} ? Enable Structured Logs? [y/N] ``` **6. Review configuration summary** When configuration is complete, the AzureHound Enterprise CLI tool displays a configuration summary. ```text theme={null} Configuration written to C:\Users\Administrator.ROOT\.config\azurehound\config.json Key written to C:\Users\Administrator.ROOT\.config\azurehound\key.pem Certificate written to C:\Users\Administrator.ROOT\.config\azurehound\cert.pem Ensure certificate is uploaded to your application's client credentials ``` > [!NOTE] > > The example above shows the summary for Certificate authentication. For Azure Managed Identity authentication, the summary omits the key and certificate paths and the certificate upload reminder. # Install and Upgrade AzureHound (Windows, Docker, or Kubernetes) Source: https://bloodhound.specterops.io/install-data-collector/install-azurehound/installation-options ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) You will need your AzureHound Enterprise configuration file from [Create an AzureHound Configuration](/install-data-collector/install-azurehound/create-configuration) prior to beginning this process. ## Windows ### Install AzureHound Enterprise on Windows This shows how to install AzureHound Enterprise as a service. Many organizations choose to run AzureHound Enterprise alongside SharpHound Enterprise from the same system. These services can live alongside each other and will not conflict. Organizations who wish to run multiple AzureHound Enterprise collectors on the same server, for example, because of multiple Azure tenants, must install AzureHound Enterprise as Scheduled Tasks instead of Windows Services. See [Setting up multiple AzureHound collectors on the same server with scheduled tasks](/install-data-collector/install-azurehound/multiple-collectors). 1. Follow the article [Create an AzureHound Configuration](/install-data-collector/install-azurehound/create-configuration) to create a configuration file. 2. Create a directory for the AzureHound service binary. We recommend using "C:\Program Files\AzureHound Enterprise" as the Program Files directory is write-protected from non-administrative users. ``` New-Item 'C:\\Program Files\\AzureHound Enterprise' -ItemType Directory ``` 3. Move "azurehound.exe" into the created directory 4. Open a command line as a local administrator, navigate to the created directory, and run: ``` azurehound.exe install ``` 5. Hit Enter, or type 'y', to use the previously created configuration file. * AzureHound will copy the configuration settings in your user profile to "C:\ProgramData\AzureHound\config.json", this is a hard-coded configuration file location ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-163.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=5da9dcf3f37efed9b86160c09b97235a) 6. **If using certificate authentication:** * Copy the certificate and key file created in your user profile to a more central location, for example next to the configuration settings in "C:\ProgramData\azurehound" ``` Move-Item "$env:USERPROFILE\\.config\\azurehound\\*.pem" "C:\\ProgramData\\azurehound\\" ``` * Edit the configuration file in "C:\ProgramData\AzureHound\config.json" and change the "cert" and "key" values to the new certificate and key file locations. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-164.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=939ecafb4ecf6799edd8651a77564b7e) 7. Start the "AzureHound" service: ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-165.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=b4c5abb95af751063b1e1e7173c54192) 8. If configured correctly, the collector client in BloodHound Enterprise will show "Status: Ready", and "Last Checkin: a few seconds ago" ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-166.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=665275c0c786abde99ddc86420e3bd3a) ### Upgrade AzureHound Enterprise on Windows Upgrading AzureHound Enterprise is done by replacing the previous service binary. 1. Log into your BloodHound Enterprise tenant. 2. Click ⚙️ → **Download Collectors** ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-167.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=2c45e7e46ead0b9a0d4dbd57b00186a9) 3. Download AzureHound Enterprise by clicking the button **DOWNLOAD AZUREHOUND vX.X.X (.ZIP)** ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-168.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=796104d73f56d4e20ccb8c767af5860e) 4. Extract the contents of the zip archive and locate the binary suitable for your system's architecture 5. Log into the server running your AzureHound service 6. Click "Start" and then locate the "Services" application or run "services.msc" 7. Locate the AzureHound service and open its properties 8. From the service properties window, stop AzureHound by clicking **Stop** ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-169.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=59653712eed246263cdb5b3e03850be0) 9. Replace the existing "azurehound.exe" binary seen in "Path to executable" with the newly downloaded one 10. From the service properties window, start AzureHound by clicking **Start** ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-170.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=a69696b00ada6b5f39c93de6c0578c9b) ### Single run of AzureHound Enterprise on Windows Instead of installing AzureHound as a service, it is also possible to run AzureHound a single time which runs until the command line is closed or the user logs off. This is often used in troubleshooting scenarios. 1. Follow the article [Create an AzureHound Configuration](/install-data-collector/install-azurehound/create-configuration) to create a configuration file. 2. Open a command line as a local administrator, navigate to the directory containing AzureHound Enterprise, and run: ``` azurehound.exe start ``` 3. If the connection to BloodHound Enterprise is successful, the program will output "*Waiting for jobs...*". * In BloodHound Enterprise, the AzureHound collector client will now show "Status: Ready", and "Last Checkin: a few seconds ago" ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-171.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=5cf96a1f40dc346850551ca5f835c441) 4. If needing to test AzureHound's connectivity to Azure; keep the command prompt open and follow [Run an On Demand Scan](/collect-data/enterprise-collection/on-demand-scan) 5. When started and AzureHound has fetched the job, the command line will output data while the collection is running. * If successful, the final message will be "*Collection completed successfully*" * If unsuccessful, check the log for errors, or check the AzureHound log generated next to the binary, or contact the BloodHound Enterprise team for support. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-172.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=c525b8c529a191490bfa9a34b55031cf) ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-173.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=6622bb796750e04bcac4bcb9fece9e18) ## Docker ### Run AzureHound Enterprise on Docker 1. Use the attached sample file: [docker-compose.yaml](https://raw.githubusercontent.com/SpecterOps/BloodHound-docs/main/docs/assets/deploy/docker-compose.yaml) (397 Bytes) 2. Integrate the appropriate structure into your existing configuration or utilize it as a new configuration in Docker, moving the associated config.json, cert.pem, and key.pem files to the appropriate location, and updating config.json according to your assigned values. 3. In your docker directory, run: ``` docker-compose pull && docker-compose up -d ``` 4. Review the container logs and BloodHound Enterprise user interface to verify that AzureHound has successfully connected. ### Upgrade AzureHound Enterprise on Docker 1. In your docker directory, run: ``` docker-compose pull && docker-compose up -d ``` 2. Review the container logs and BloodHound Enterprise user interface to verify that AzureHound has successfully connected. ## Kubernetes ### Run AzureHound Enterprise on Kubernetes 1. Create TLS secret for certificate and key using ``` kubectl create secret tls azurehound-tls --cert=<path to cert> --key=<path to key>” ``` 2. Create a generic secret. Choose between: 1. No passphrase: ``` kubectl create secret generic azurehound-secret --from-literal tokenId=<bloodhound enterprise token id> --from-literal token=<bloodhound enterprise token> ``` 2. Private key has passphrase: ``` kubectl create secret generic azurehound-secret --from-literal tokenId=<bloodhound enterprise token id> --from-literal token=<bloodhound enterprise token> --from-literal keypass=<private key passphrase> ``` 3. A sample [deployment.yaml](https://raw.githubusercontent.com/SpecterOps/bloodhound-docs/main/docs/assets/deploy/deployment.yaml) file is attached to this article. 4. Edit the provided deployment.yaml file. Read comments and replace instances of \[ INSERT HERE ] with appropriate values 5. Deploy AzureHound on k8s: ``` kubectl apply -f deployment.yaml ``` 6. Review the container logs and BloodHound Enterprise user interface to verify that AzureHound has successfully connected. ### Upgrade AzureHound Enterprise on Kubernetes 1. On your Kubernetes cluster, run: kubectl rollout restart deployment/azurehound-deployment 2. Review the container logs and BloodHound Enterprise user interface to verify that AzureHound has successfully connected. * [docker-compose.yaml](https://raw.githubusercontent.com/SpecterOps/bloodhound-docs/main/docs/assets/deploy/docker-compose.yaml) (397 Bytes) * [deployment.yaml](https://raw.githubusercontent.com/SpecterOps/bloodhound-docs/main/docs/assets/deploy/deployment.yaml) (2 KB) # Run Multiple AzureHound Enterprise Collectors on One Server With Scheduled Tasks Source: https://bloodhound.specterops.io/install-data-collector/install-azurehound/multiple-collectors ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) ## Purpose This article outlines how to set up multiple AzureHound Enterprise collectors on the same server using scheduled tasks. Authorized Active Directory administrators should use this when experiencing issues while running multiple AzureHound collectors simultaneously on the same server. ## Process ### A. Create the AzureHound files for all Azure tenants 1. Follow the [AzureHound Enterprise System Requirements and Deployment Process](/install-data-collector/install-azurehound/system-requirements) through deployment in step 3. Deploy and maintain AzureHound: [Run and Upgrade AzureHound (Windows, Docker, or Kubernetes).](/install-data-collector/install-azurehound/installation-options) 2. Organize the files created in a directory structure with a single AzureHound binary and a directory at the same level for each desired tenant configuration. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-174.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=792d7d78da49e78c1c4b17d0038d633d) 3. Update associated paths in each **config.json** file to reflect the new file locations. The example below shows the **default-tenant** directory pictured in step 2. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-175.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=102238a8aa7d0b6ad454a504c8f7d4f2) ### B. Setup the Scheduled Task 1. Log in to an Administrator account on a computer with access to the desired collection server. Then, from the **Windows Start** menu, open the **Task Scheduler** application. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-176.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=f8b6083c418ee83470cda39b4f49bcad) 2. From the **Action** menu, select **Create task…** This will open a window to name and configure a new task. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-177.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=8cc9de8ed48154b6302db5fce9774c32) 3. Best practices recommend naming tasks after their collector service and tenant to ensure clarity when reviewing multiple tasks across multiple collectors and/or tenants. In this example, **AzureHound Enterprise** is the collector, and the tenant referenced is **Dumpster**. In the Security options in the lower portion of the **General** tab, select the **Change User or Group...** button to run this task as **SYSTEM**. This ensures the scheduled task remains independent from user activity. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-178.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=696bd3062ddffbe99d5b346290fae603) 4. On the **Trigger** tab, click **New**. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-179.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=4ca8dd48215c4b8c26242a2e362191be) 5. On the **New Trigger** screen, set the task to run **Daily**, **repeating every 5 minutes** for a **duration of 1 day**. This ensures the task restarts if an issue arises. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-180.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=a99d6487a92d6c65865bab993ace606c) 5. On the **Action** tab, **New**. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-181.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=0f4729e85fa4b4c132bdefeaee34d725) 6. On the **New Action** window, select **Start a program**, then **Browse...** to the location of AzureHound with the config file for that Azure tenant. Modify the following argument to match the location of the appropriate **config.json**, then fill in the **Add arguments (optional)** field, and click **OK**. ``` start -c "C:\\AzureHound\\dumpster-tenant\\config.json" ``` ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-182.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=782e0ebc86bf7794938f891c146c2954) 6. On the bottom of the **Conditions** tab, check the **Start only if the following network connection is** **available:** checkbox, and select **Any connection**. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-183.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=6d3ba9bdc31ff50f678607ed306320e4) 7. On the **Settings** tab, enable the **Stop the task if it runs longer than 1 day** setting, then select **OK**. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-184.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=aafcc2f363689b2f64651b691c5b23e7) 8. Right-click on the new **AzureHound** task in the **Task Scheduler** window, and choose **Run**. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-185.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=a3c0a02568f8e673e2b4c20afb730647) 9. Navigate to your BloodHound Enterprise tenant, click on the **Gear icon**, then **Administration,** and scroll down in the **Manage Clients** view to confirm AzureHound is executing collections appropriately. If the task is set up correctly, there will be a green dot next to **Ready**. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-186.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=d5d158ecd38b9e7ffe82dae4248617c3) ### C. Setup remaining Scheduled Tasks Repeat **Section B** for any additionally required scheduled tasks for other Azure tenants. ## Outcome When this process is executed successfully, scheduled tasks automatically direct multiple AzureHound collections to run on the same server simultaneously and in a way that is clearly distinguishable from discrete user activity. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-187.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=20d74bad2ea4b1b6171147f170e7f71d) # Deploying AzureHound Enterprise Source: https://bloodhound.specterops.io/install-data-collector/install-azurehound/overview Deploy and maintain AzureHound Enterprise for continuous, automated collection of Microsoft Entra ID (formerly Azure Active Directory) and Azure attack path data. > [card] [AzureHound Enterprise System Requirements and Deployment Process](/install-data-collector/install-azurehound/system-requirements) > > Review supported platforms, hardware and network requirements, and the deployment process. > [card] [AzureHound Enterprise Azure Configuration](/install-data-collector/install-azurehound/azure-configuration) > > Configure Microsoft Entra ID for AzureHound Enterprise data collection. > [card] [Create an AzureHound Configuration](/install-data-collector/install-azurehound/create-configuration) > > Create a configuration file for AzureHound Enterprise data collection. > [card] [Install and Upgrade AzureHound (Windows, Docker, or Kubernetes)](/install-data-collector/install-azurehound/installation-options) > > Install or upgrade AzureHound Enterprise on Windows, Docker, or Kubernetes. > [card] [Renew an AzureHound Certificate](/install-data-collector/install-azurehound/renew-certificate) > > Replace an expiring AzureHound Enterprise certificate on Windows. > [card] [Running multiple AzureHound Enterprise collectors on one server with Scheduled Tasks](/install-data-collector/install-azurehound/multiple-collectors) > > Run multiple AzureHound Enterprise collectors on one server with scheduled tasks. # Renew an AzureHound Certificate Source: https://bloodhound.specterops.io/install-data-collector/install-azurehound/renew-certificate Replace an expiring certificate used by AzureHound Enterprise on Windows. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Rotate the certificate AzureHound Enterprise uses to authenticate to Microsoft Entra ID. AzureHound-generated certificates expire after one year. ## Prerequisites Before you begin, ensure you have the following: * On the AzureHound Enterprise server: * Permission to stop and start the AzureHound Enterprise service * Permission to replace the existing AzureHound Enterprise certificate and key * In Microsoft Entra ID, permission to add/replace the certificate on the AzureHound Enterprise application You must use AzureHound's `configuration` command to generate new certificate and key files. **1. Stop the AzureHound service** **2. Identify the certificate and key locations** 1. Open AzureHound's `config.json` file, typically at `C:\ProgramData\azurehound\config.json`. 2. Expected locations are listed in the `cert` and `key` values. **3. Generate a new certificate and key** 1. Run the following command to start the AzureHound configuration process: ```cmd theme={null} azurehound.exe configure ``` 2. Run the configuration in full. Use the existing `config.json` file as a reference when inputting values, like **Directory ID**. 3. Choose **Authentication Method: Certificate**, and set an optional **Private Key Passphrase**. 4. The terminal prints the paths of the new certificate and private key, together with a new `config.json` file. **4. Delete the new config.json file** **5. Move the new certificate and key** Move the new certificate and private key into the locations referenced by the old `config.json` file. If you set a private key passphrase, you must add it to the `config.json` file. **6. Add the certificate to the Azure application** See [AzureHound Enterprise Configuration](/install-data-collector/install-azurehound/azure-configuration#certificate) for details. **7. Start the AzureHound service** # AzureHound Enterprise System Requirements and Deployment Process Source: https://bloodhound.specterops.io/install-data-collector/install-azurehound/system-requirements ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) AzureHound Enterprise is a critical element in your deployment that collects and uploads data about your Microsoft Entra ID and Azure environments to your BloodHound Enterprise tenant for processing and analysis. AzureHound Enterprise supports Windows, Docker, and Kubernetes deployments. Many organizations deploy one AzureHound Enterprise instance per Entra ID tenant. If you deploy AzureHound Enterprise on Windows, it typically runs as a Windows service. You need at least one AzureHound deployment for the tenants in scope and one Entra ID Enterprise Application service instance for each tenant. Running multiple AzureHound collector instances on a single server requires the collectors to be installed as Scheduled Tasks instead of Windows Services. Installation instructions for such a configuration can be found at: [Setting up multiple AzureHound collectors on the same server with scheduled tasks](/install-data-collector/install-azurehound/multiple-collectors). While it is possible to run both AzureHound and SharpHound on the same machine, the hardware recommendations for each application persist. ## Deployment Process Overview To deploy a new AzureHound collector: 1. Configure Entra ID and Azure: [AzureHound Enterprise Azure Configuration](/install-data-collector/install-azurehound/azure-configuration) 2. Create your AzureHound configuration: [Create an AzureHound Configuration](/install-data-collector/install-azurehound/create-configuration) 3. Deploy and maintain AzureHound: [Run and Upgrade AzureHound (Windows, Docker, or Kubernetes)](/install-data-collector/install-azurehound/installation-options) ## Server Requirements ### Hardware | Resource | Minimum | Recommended | Large enterprise | | - | - | - | - | | **Processor Cores** | 2 physical cores | 4 physical cores | 6 physical cores | | **Memory** | 4GB RAM | 16GB RAM | 32GB RAM | | **Hard disk space** | 1GB for logging | 5GB for logging | 20GB for logging | > [!NOTE] > > These recommendations should be considered a baseline and may need to be increased depending on the size and complexity of your environments. Minimums apply to test or development deployments. Where multiple collectors are deployed on a single host, scaling will be necessary to maintain performance. ### Software AzureHound Enterprise supports several deployment options: * Windows Server 2019+ * .NET 4.7.2+ OR * Docker OR * Kubernetes ### Network * TLS on 443/TCP to your BloodHound Enterprise tenant URL (provided by your account team) * TLS on 443/TCP to your Azure environment. Required domains are: * login.microsoftonline.com * Required for authentication to Entra ID and Azure. * msidentity.com (CNAME of login.microsoftonline.com) * Required for authentication to Entra ID and Azure. * graph.microsoft.com * Required for collection of attack path data from Microsoft Entra ID. * management.azure.com * Required for collection of attack path data from Microsoft Azure Resource Manager. ## Service Principal Requirements The AzureHound Enterprise service runs as an Entra ID registered application with a corresponding service principal (Enterprise application). The application and service principal need permissions to collect data from your tenant as detailed in [AzureHound Data Collection and Permissions](/collect-data/azurehound-data-permissions). # Configure ADFS for Integrated Windows Authentication Source: https://bloodhound.specterops.io/install-data-collector/install-sharphound/configure-adfs-iwa Learn how to enable Integrated Windows Authentication for SharpHound Enterprise on your Active Directory Federation Services (ADFS) server. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) When using Integrated Windows Authentication (IWA) to authenticate SharpHound Enterprise with your BloodHound Enterprise tenant, you must configure your Active Directory Federation Services (ADFS) server to support this authentication method. ## Purpose This guide explains the BloodHound-specific ADFS configuration steps. For general ADFS setup and administration, refer to [Microsoft's ADFS documentation](https://learn.microsoft.com/en-us/windows-server/identity/active-directory-federation-services). ## Prerequisites * An ADFS server deployed and operational in your network * Administrative access to your ADFS server * The **Client ID** generated after [creating a SharpHound Enterprise collector client](/collect-data/enterprise-collection/create-collector#integrated-windows-authentication) * The optional **Custom Client Identifier** entered when creating the client (if you use a custom identifier) ## Process The ADFS configuration process involves creating a server application for SharpHound Enterprise, configuring authentication, and ensuring that the identifier BloodHound Enterprise uses for client lookup is included in the issued token. By default, BloodHound uses the token's `sub` claim and the generated **Client ID**. If you configure a **Custom Client Identifier**, the token must contain that value instead. If your deployment uses a custom claim key, BloodHound Enterprise uses that claim instead of `sub`. **1. Create a Server Application (Web API)** In ADFS Management, create a server application using the Web API template. 1. Open **ADFS Management** on your ADFS server. 2. Right-click **Application Groups**. 3. Select **Add Application Group...** to launch the *Add Application Group Wizard*. 4. Enter a name for the application group (e.g., "sharphound-bloodhound"). 5. Under **Template** > **Client Server applications**, select **Server application accessing a Web API**. ![A view of the Add Application Group Wizard in ADFS Management](https://mintcdn.com/specterops/NuvEx5RAlEpXt0Eq/images/data_collectors/adfs-create-server-app.png?fit=max\&auto=format\&n=NuvEx5RAlEpXt0Eq\&q=85\&s=4748132db183660af3b6788685dd8f1c) 6. Click **Next**. **2. Server Application** 1. On the **Server Application** page enter the **Client ID** provided after [creating](/collect-data/enterprise-collection/create-collector#integrated-windows-authentication-2) the SharpHound Enterprise collector client. > [!NOTE] > > A **Redirect URI** is not necessary for SharpHound's authentication flow, but is required for application creation. You can enter any valid URI (e.g., `http://localhost`) and it will not impact SharpHound's ability to authenticate. ![A view of the Server Application configuration page in the Add Application Group Wizard](https://mintcdn.com/specterops/NuvEx5RAlEpXt0Eq/images/data_collectors/adfs-configure-app.png?fit=max\&auto=format\&n=NuvEx5RAlEpXt0Eq\&q=85\&s=e46f7a2265acf05695a3adc353aef4c0) 2. Click **Next**. **3. Configure Application Credentials** 1. On the **Configure Application Credentials** page, click the **Integrated Windows Authentication** checkbox. 2. Click **Select...** and enter the service account user that SharpHound Enterprise will use to authenticate with ADFS. ![A view of the Configure Application Credentials page in the Add Application Group Wizard](https://mintcdn.com/specterops/NuvEx5RAlEpXt0Eq/images/data_collectors/adfs-configure-credentials.png?fit=max\&auto=format\&n=NuvEx5RAlEpXt0Eq\&q=85\&s=a5023471c0cfb309fa450b73650d330f) 3. Click **OK**. 4. Click **Next**. **4. Configure Web API** 1. On the **Configure Web API** page, enter a descriptive name for the Web API (e.g., `bloodhound-api`). 2. In the **Identifier** field, enter your BloodHound Enterprise tenant URL (e.g., `https://your-tenant/bloodhoundenterprise.io`). 3. Click **Add**. 4. Click **OK** to add the Web API. ![A view of the Configure Web API page in the Add Application Group Wizard](https://mintcdn.com/specterops/NuvEx5RAlEpXt0Eq/images/data_collectors/adfs-configure-webapi.png?fit=max\&auto=format\&n=NuvEx5RAlEpXt0Eq\&q=85\&s=67b79f997e878e7ab2aed1534dda6ca6) 5. Click **Next**. **5. Apply Access Control Policy** On the **Apply Access Control Policy** page, select the appropriate access control policy for your environment and click **Next**. > [!TIP] > > The default **Permit everyone** policy allows any authenticated user to obtain a token for SharpHound Enterprise, but you may choose a more restrictive policy if necessary. **6. Configure Application Permissions** 1. On the **Configure Application Permissions** page, review the permitted scopes assigned to the application. At minimum, you must select **openid** to ensure that the necessary claims are included in the token for BloodHound authentication. No additional permissions are required for SharpHound Enterprise. ![A view of the Configure Application Permissions page in the Add Application Group Wizard](https://mintcdn.com/specterops/NuvEx5RAlEpXt0Eq/images/data_collectors/adfs-configure-permissions.png?fit=max\&auto=format\&n=NuvEx5RAlEpXt0Eq\&q=85\&s=6773766275a44c17922e23d99c26a517) 2. Click **Next**. **7. Summary** Review the application group configuration and click **Next** to create the application group and associated server application. **8. Configure Issuance Transform Rule** The issuance transform rule is critical for token validation in BloodHound Enterprise. The rule must include the client lookup identifier in the issued token. 1. On the **Application Groups** page, open the application group you created for SharpHound Enterprise (e.g., `sharphound-bloodhound`). 2. Open the **Web API** you created for BloodHound Enterprise (e.g., `bloodhound`). 3. Click the **Issuance Transform Rules** tab and click **Add Rule...**. 4. On the **Choose Rule Type** page, select the **Send Claims Using a Custom Rule** template from the dropdown menu and click **Next**. ![A view of the Add Transform Claim Rule Wizard in ADFS Management](https://mintcdn.com/specterops/NuvEx5RAlEpXt0Eq/images/data_collectors/adfs-add-claim-rule.png?fit=max\&auto=format\&n=NuvEx5RAlEpXt0Eq\&q=85\&s=06313b9c36a9f15465bff60232609f8f) 5. On the **Configure Claim Rule** page, enter a name for the rule (e.g., `Issue Sub`). 6. For the default configuration, add the following custom rule to ensure the **Client ID** is included as the `sub` claim in the token: ```text theme={null} c:[type == "http://schemas.microsoft.com/2014/01/clientcontext/claims/appid"] => issue(Type = "sub", Value = c.Value); ``` ![A view of the Configure Claim Rule page in the Add Transform Claim Rule Wizard](https://mintcdn.com/specterops/NuvEx5RAlEpXt0Eq/images/data_collectors/adfs-claim-rule.png?fit=max\&auto=format\&n=NuvEx5RAlEpXt0Eq\&q=85\&s=985555360cd590dd5deaac7f99036bd5) The exact claim transformation rules required may vary based on your ADFS version and configuration. For the default configuration, the token issued by ADFS must include the **Client ID** as the `sub` claim. If you use a **Custom Client Identifier**, issue that value in the claim BloodHound Enterprise uses for client lookup. The value must be a non-empty string and must match the client configuration exactly. > [!NOTE] > > For instructions on creating and modifying ADFS claim rules, refer to [Microsoft's Active Directory Federation Services documentation](https://learn.microsoft.com/en-us/windows-server/identity/active-directory-federation-services). The claim rule depends on your ADFS version and the claim that contains the identifier in your environment. 7. Click **Finish**. 8. Click **Apply**. ## Next Steps After ADFS is configured: 1. [Configure](/install-data-collector/install-sharphound/local-configuration#integrated-windows-authentication-iwa) the SharpHound Enterprise collector application with the required IWA properties in the `settings.json` file. 2. [Run an on-demand scan](/collect-data/enterprise-collection/on-demand-scan) to test the configuration. ## Troubleshooting If SharpHound does not authenticate successfully with ADFS, use the following accordion to troubleshoot common issues: > [accordion] Check the ADFS event log > > Review the ADFS event log for authentication failures or token issuance errors. The event log often contains detailed information about why authentication or token issuance failed, including specific error codes and messages. > [accordion] Verify network connectivity > > Ensure that the SharpHound service account can reach the ADFS server. From the server running SharpHound, verify connectivity to the ADFS server over HTTPS on port 443. You can test this using tools like `Test-NetConnection` (PowerShell) or `curl` to confirm the well-known endpoint is accessible. > [accordion] Confirm Windows authentication rights > > Verify that the service account running SharpHound has Windows authentication rights on the ADFS-protected Web API. Check the ADFS application configuration and ensure Windows authentication is enabled for the Web API. > [accordion] Check SharpHound logs > > Review the SharpHound logs for detailed error messages during authentication attempts. Logs are typically located in `%APPDATA%\BloodHoundEnterprise`. Look for errors related to token acquisition, ADFS connectivity, or authentication failures. > [accordion] Verify the client identifier claim > > Confirm that the token contains the expected client identifier. By default, the `sub` claim must contain the generated **Client ID** or configured **Custom Client Identifier**. If your deployment uses a custom claim key, confirm that the configured claim exists, contains a non-empty string, and matches the client configuration exactly. # Create a gMSA for Use With SharpHound Enterprise Source: https://bloodhound.specterops.io/install-data-collector/install-sharphound/create-gmsa ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) This page describes how to configure and run the SharpHound Enterprise collection tool using an Active Directory gMSA. > [!TIP] > > To learn how to do this with SharpHound Community Edition, see [Create a gMSA for Use With SharpHound Community Edition](/collect-data/ce-collection/create-gmsa-community-edition). ## Overview of gMSAs Group Managed Service Accounts (gMSA) are managed domain accounts that provide automatic password management, simplified service principal name (SPN) management, and the ability to delegate the management to other objects. Detailed software requirements from Microsoft are available [here](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/hh831782\(v=ws.11\)#software-requirements). Microsoft gMSA documentation is available [here](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/hh831782\(v=ws.11\)). ## Create a gMSA account To create a gMSA account, start by preparing the domain. 1. Log into a domain controller within the domain you want to create a gMSA. 2. To validate whether the domain has a KDS Root Key configured, run: ``` Get-KdsRootKey ``` If there's no result returned, the KDS Root Key has not been configured in the domain. Continue on to step 3. If there is a result returned, the KDS Root Key has already been configured in the domain. Skip step 3 and move on to [Create the gMSA and password read group](#create-the-gmsa-and-password-read-group). ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-88.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=336e25c181b45885e07bbdb6bbbbbaf1) 3. Create the KDS Root Key. For a production environment, run: ``` Add-KdsRootKey -EffectiveImmediately ``` ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-89.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=f62b4eb3f4f7ef59238528ea0555bd50) For a test environment, make the key available for immediate use by running: ``` Add-KdsRootKey -EffectiveTime ((Get-Date).AddHours(-10)) ``` ## Create the gMSA and password read group Perform these steps from/against a writeable Domain Controller. 1. Create a gMSA password read group for computers that should have access to the gMSA password. Browse to the desired location in Users and Computers and create the group. Alternatively, use this template to create the group using PowerShell: ```json theme={null} $gmsaName = "t0_gMSA_SHS" # Name of the gMSA $pwdReadOUDN = "<DISGINGUISHED_NAME>" # Distinguished Name of OU to create the password read group in New-ADGroup ` -Name "$($gmsaName)_pwdRead" ` -GroupScope Global ` -GroupCategory Security ` -Path $pwdReadOUDN ` -Description "This group grants the rights to retrieve the password of the BloodHound data collector (SharpHound) gMSA '$gmsaName'." ` -PassThru ``` ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-90.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=bf723d27dd1d121147ef90d42e705cb0) 2. Add the SharpHound Enterprise server that performs the Sharphound collections as a member of the gMSA password read group. This allows it to access the password of the gMSA and run the service. Add the computer to the group in Users and Computers. Alternatively, use this template to add group membership using PowerShell: ```json theme={null} $gmsaName = "t0_gMSA_SHS" # Name of the gMSA $shServerDN = "<DISGINGUISHED_NAME>" # Distinguished Name of the SharpHound Enterprise server Add-ADGroupMember ` -Identity "$($gmsaName)_pwdRead" ` -Members $shServerDN ` -PassThru ``` ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-91.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=7d534c83d27dfbd4b4808c22acd2a851) When viewing the changes on a Windows server with the GUI enabled, you can see the OUs and the t0_gMSA_SHS_pwdRead group you created. 3. Create the gMSA and allow the password read group to retrieve its password. On a Domain Controller, use this template to create the gMSA and set the retrieve right using PowerShell: ```json theme={null} $gmsaName = "t0_gMSA_SHS" # Name of the gMSA $gmsaOUDN = "<DISGINGUISHED_NAME>" # Distinguished Name of OU to create the gMSA in New-ADServiceAccount -Name $gmsaName ` -Description "SharpHound service account for BloodHound" ` -DNSHostName "$($gmsaName).$((Get-ADDomain).DNSRoot)" ` -ManagedPasswordIntervalInDays 32 ` -PrincipalsAllowedToRetrieveManagedPassword "$($gmsaName)_pwdRead" ` -Enabled $True ` -AccountNotDelegated $True ` -KerberosEncryptionType AES128,AES256 ` -Path $gmsaOUDN ` -PassThru ``` > [!TIP] > > If you receive the error `"_New-ADServiceAccount : Key does not exist_"`, try again in 10 hours. This allows all Domain Controllers to converge AD replication of the KDS root key. ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-92.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=2b19562951385fa3074a378fbe6a0c97) ## Prepare the SharpHound Enterprise server 1. Restart the SharpHound Enterprise server so that the server's membership of the \`pwdRead\` group takes effect. 2. Grant the gMSA the "Log on as a service" User Rights Assignment on the SharpHound Enterprise server. This can be done through \`secpol.msc\` or policy deployment methods like a GPO. 3. (Optional) Test that the SharpHound Enterprise server can retrieve the gMSA password. See [Test the gMSA](#test-the-gmsa). ## Test the gMSA Optionally test the gMSA server to make sure that the gMSA is working. 1. Check the status of the RSAT PowerShell module. On the SharpHound Enterprise server, open a PowerShell as an Administrator and run: ```json theme={null} Get-WindowsCapability -Name RSAT* ``` ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-93.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=ee24689c085fb0f6ac1a68e892d78373) If the Install State shows "Installed", skip to step 2, otherwise run: ``` Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online ``` ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-94.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=de2a83b4a483e0c80d32cfe4c2c25004) 2. In the elevated PowerShell, test that the SharpHound server can retrieve the gMSA password by running: ```json theme={null} $gmsaName = "t0_gMSA_SHS" # Name of the gMSA Test-ADServiceAccount -Identity $gmsaName ``` ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-95.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=4ca5d7fe1413654e9d7a08b4f8f84ce0) The test is successful if the command responds with `True`. The gMSA is now ready to be used on the SharpHound Enterprise server. Follow [Install and Upgrade SharpHound Enterprise](/install-data-collector/install-sharphound/installation-upgrade) to complete the installation of the SharpHound Enterprise service. ## Add the gMSA to the SharpHound Enterprise service Change the SharpHound Enterprise service to be run by the created gMSA. This can be done in two ways: ### Using Services GUI / 'services.msc' 1. Open the Services application / 'services.msc' as a local administrator. 2. Open properties of the service: **SharpHoundDelegator**. 3. In the **Log On** tab, set **This account** to be the gMSA. 4. Delete the contents of the password fields if present. 5. Save by clicking **OK**. ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-96.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=0a294bfe37f40098ee5775ce4288ec5e) ### Using command line / 'sc.exe' 1. Open the command prompt/PowerShell as a local administrator. 2. Run the following command, replacing the 'DOMAIN' and gMSA name to match your environment. ``` sc.exe config SHDelegator obj= "DOMAIN\\t0_gMSA_SHS$" ``` ![](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image-97.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=c30c62daf3361c230290ff1565e9195f) # Install or upgrade SharpHound Enterprise Source: https://bloodhound.specterops.io/install-data-collector/install-sharphound/installation-upgrade Install SharpHound Enterprise on a Windows server or upgrade an existing deployment. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Use this guide to install SharpHound Enterprise on a domain-joined Windows server, upgrade an existing installation, or perform a headless installation for automated deployment workflows. ## Before you begin * Deploy a domain-joined Windows server for the service. For requirements and deployment guidance, see [SharpHound Enterprise System Requirements and Deployment Process](/install-data-collector/install-sharphound/system-requirements). * Sign in to BloodHound Enterprise with a user role that is authorized to download SharpHound Enterprise installation binaries. For role details, see [User Role Definitions](/manage-bloodhound/auth/users-and-roles#user-role-definitions). ## Install SharpHound Enterprise **1. Open the Download Collectors page** Sign in to your BloodHound Enterprise tenant. In the left menu, click **Download Collectors**. **2. Download the latest archive** Click the latest SharpHound Enterprise version to begin downloading the `.zip` archive. ![SharpHound download option marked Latest](https://mintcdn.com/specterops/ETeZtbnNN0LoLdnl/images/data_collectors/sharphound-latest.png?fit=max\&auto=format\&n=ETeZtbnNN0LoLdnl\&q=85\&s=839cdbd0678e77a2e0ced50a62185f6e) **3. Prepare the target server** Connect to the server where you want to install the SharpHound Enterprise service. Confirm that your SharpHound service account is a member of the local **Administrators** group. **4. Extract the archive** Copy the downloaded `.zip` archive to the target server and extract it. **5. Install the service** Choose one of the following installation methods: > [tab] Interactive > > Use this method for standard installations where you can interact with the installer UI. > > 1. Run **SHSetup-v#.#.#.exe** as an administrator. > > 2. If Microsoft Defender SmartScreen displays the following warning, click **More info**. > > ![Microsoft Defender SmartScreen warning](https://mintcdn.com/specterops/3L2OuEwvAIHzUPXm/assets/image-41.png?fit=max\&auto=format\&n=3L2OuEwvAIHzUPXm\&q=85\&s=5c66b0f099fbb3fe5504599cac569915) > > Confirm that the publisher is **Specter Ops, Inc.**, then click **Run anyway**. > > ![SmartScreen prompt showing publisher details](https://mintcdn.com/specterops/3L2OuEwvAIHzUPXm/assets/image-42.png?fit=max\&auto=format\&n=3L2OuEwvAIHzUPXm\&q=85\&s=30ee11551cc172daea3491644807f5f0) > > 3. Select the installation path, then click **Next**. > > We recommend a path that low-privileged users cannot write to, such as the default `C:\Program Files (x86)\SHService`. > > ![SharpHound Enterprise installer path selection](https://mintcdn.com/specterops/3L2OuEwvAIHzUPXm/assets/image-43.png?fit=max\&auto=format\&n=3L2OuEwvAIHzUPXm\&q=85\&s=a3b4217ec8211b8088919118ce356bc6) > > 4. Click **Install**. > > ![SharpHound Enterprise installer ready to install](https://mintcdn.com/specterops/3L2OuEwvAIHzUPXm/assets/image-44.png?fit=max\&auto=format\&n=3L2OuEwvAIHzUPXm\&q=85\&s=1685ed6048d085739e0a46b0614945f4) > > 5. Enter the SharpHound service account credentials in the format `DOMAIN\username`. > > If you use a gMSA, follow the guidance in [SharpHound hardening](/manage-bloodhound/securing-bloodhound-and-collectors/sharphound-hardening): enter credentials for a standard user account that has local administrator access during installation, then switch the service to the gMSA after installation as described in [Add the gMSA to the SharpHound Enterprise service](/install-data-collector/install-sharphound/create-gmsa). > > ![SharpHound Enterprise installer service account credentials screen](https://mintcdn.com/specterops/3L2OuEwvAIHzUPXm/assets/image-45.png?fit=max\&auto=format\&n=3L2OuEwvAIHzUPXm\&q=85\&s=98d25c3273d81675bc3b561a22160a49) > > 6. Click **Finish**. > > ![SharpHound Enterprise installer completion screen](https://mintcdn.com/specterops/3L2OuEwvAIHzUPXm/assets/image-46.png?fit=max\&auto=format\&n=3L2OuEwvAIHzUPXm\&q=85\&s=1e91b7965679363ad795933026bc2fae) > [tab] Headless > > Use this method for automated deployments where interactive desktop sessions are unavailable or restricted. > > > [!NOTE] > > > > We recommend using a [Group Managed Service Account (gMSA)](/install-data-collector/install-sharphound/create-gmsa) for the SharpHound Enterprise service account instead of a standard Active Directory user account. > > Run the installer silently, then register the service. Replace the placeholder values to match your environment and SharpHound Enterprise version. > > ```powershell theme={null} > # Run the silent installer > SHSetup-.exe /VERYSILENT /SUPPRESSMSGBOXES /FORCECLOSEAPPLICATIONS /LOG="BloodHound.log" > > # Register the service > $ServiceName = "SHDelegator" > $DisplayName = "SharpHoundDelegator" > $ExecutablePath = "C:\Program Files (x86)\SHService\SHDelegator.exe" > $Username = "DOMAIN\service-account" # For a gMSA, use the format DOMAIN\$ (include the trailing $) > $Password = "" # Leave blank ("") for a gMSA > > if (-not (Get-Service -Name $ServiceName -ErrorAction SilentlyContinue)) { > New-Service -Name $ServiceName ` > -BinaryPathName "`"$ExecutablePath`"" ` > -DisplayName $DisplayName ` > -StartupType Automatic > } > > $svc = Get-WmiObject -Class Win32_Service -Filter "Name='$ServiceName'" > $null = $svc.Change( > $null, # StartMode > $null, # DesktopInteract > $null, # ErrorControl > $null, # BinaryPathName > $null, # LoadOrderGroup > $null, # LoadOrderGroupDependencies > $Username, # ServiceAccountName > $Password # Password > ) > ``` **6. Confirm that the service is installed** Confirm that the **SharpHoundDelegator** service is present. **Interactive installation** ![Services console showing the SharpHoundDelegator service](https://mintcdn.com/specterops/3L2OuEwvAIHzUPXm/assets/image-47.png?fit=max\&auto=format\&n=3L2OuEwvAIHzUPXm\&q=85\&s=8147ea944793286cfaa2ec347f210ebf) **Headless installation** ```powershell theme={null} Get-Service -Name "SHDelegator" ``` > [!NOTE] > > If you do not see the service, see [I don't see the SharpHoundDelegator service](/install-data-collector/install-sharphound/installation-upgrade#no-service). **7. Switch the service account to a gMSA if needed** If you use a gMSA, change the service to run as the gMSA as described in [Add the gMSA to the SharpHound Enterprise service](/install-data-collector/install-sharphound/create-gmsa). **8. Initialize the configuration directory** Start the service once. For headless installations, run the following command: ```powershell theme={null} Start-Service -Name $ServiceName ``` This initial startup fails, but it creates the configuration and log directory in the service account's user profile: `%AppData%\BloodHoundEnterprise`. **9. Configure the service** Update `settings.json` and `auth.json` as described in [SharpHound Enterprise Local Configuration](/install-data-collector/install-sharphound/local-configuration). In most environments, update the following values: * In `settings.json`, set `RestEndpoint` to your BloodHound Enterprise tenant domain in the format `CODENAME.bloodhoundenterprise.io`. * In `settings.json`, if you use a proxy, set `Proxy` in the format `proxy.acme.com:8080`. * [Create a BloodHound Enterprise collector client](/collect-data/enterprise-collection/create-collector), then set `Token` and `TokenID` in `auth.json` to the generated values. **10. Start the service and verify readiness** Start the service. For headless installations, run the following command: ```powershell theme={null} Start-Service -Name "SHDelegator" ``` > [!NOTE] > > If the service does not start, see [The SharpHoundDelegator service won't start](/install-data-collector/install-sharphound/installation-upgrade#no-start). Return to BloodHound Enterprise and confirm that the client reports **🟢 Ready**. ![Collector client status showing Ready](https://mintcdn.com/specterops/3L2OuEwvAIHzUPXm/assets/image-48.png?fit=max\&auto=format\&n=3L2OuEwvAIHzUPXm\&q=85\&s=b179850f4acb54d351ecaa51897d5c5c) Start data collection by doing one of the following: * [Create a data collection schedule](/collect-data/enterprise-collection/collection-schedule) * [Run an on-demand scan](/collect-data/enterprise-collection/on-demand-scan) ## Upgrade SharpHound Enterprise **1. Open the Download Collectors page** Sign in to your BloodHound Enterprise tenant. In the left menu, click **Download Collectors**. **2. Download the latest archive** Click the latest SharpHound Enterprise version to begin downloading the `.zip` archive. ![Latest SharpHound download for upgrade](https://mintcdn.com/specterops/ETeZtbnNN0LoLdnl/images/data_collectors/sharphound-latest.png?fit=max\&auto=format\&n=ETeZtbnNN0LoLdnl\&q=85\&s=839cdbd0678e77a2e0ced50a62185f6e) **3. Run the installer on the SharpHound server** Connect to the SharpHound Enterprise server. Extract the `.zip` archive, then run **SHSetup-v#.#.#.exe** as an administrator. **4. Complete the upgrade** Click **Finish**. ![SharpHound Enterprise installer finish screen after upgrade](https://mintcdn.com/specterops/3L2OuEwvAIHzUPXm/assets/image-51.png?fit=max\&auto=format\&n=3L2OuEwvAIHzUPXm\&q=85\&s=d8f97045dd1d70948d1274eaab4d19dc) **5. Start the service** Start the **SharpHoundDelegator** service. > [!NOTE] > > If the service does not start, see [The SharpHoundDelegator service won't start](/install-data-collector/install-sharphound/installation-upgrade#no-start). **6. Verify the upgrade** Confirm that the service starts successfully and resumes normal communication with BloodHound Enterprise. ## Common installation issues ### I don't see the SharpHoundDelegator service This issue most often has one of the following causes: 1. The service account was not added to the local **Administrators** group before installation. 2. The credentials entered during installation were incorrect. The installation log can help with troubleshooting. The file is `InstallUtil.Install.Log` in the installation directory. The default path is `C:\Program Files (x86)\SHService\InstallUtil.Install.Log`. ![InstallUtil installation log in the SharpHound Enterprise installation directory](https://mintcdn.com/specterops/3L2OuEwvAIHzUPXm/assets/image-52.png?fit=max\&auto=format\&n=3L2OuEwvAIHzUPXm\&q=85\&s=c027d5b44bb58dca65ced8e8b120fc34) ### The SharpHoundDelegator service won't start Check the `TempDirectory` value in `settings.json` as described in [SharpHound Enterprise Local Configuration](/install-data-collector/install-sharphound/local-configuration). If `TempDirectory` is `null`, the service account does not have local administrator privileges. Add the service account to the local **Administrators** group, then restart the service. If `TempDirectory` is set to a directory, open that directory, locate `service.log`, and review the logged errors. Common issues include: * `RestEndpoint` cannot be resolved. * Confirm that `RestEndpoint` matches your BloodHound Enterprise tenant domain in the format `CODENAME.bloodhoundenterprise.io`. * Confirm that the host can resolve the domain from a command prompt. * `RestEndpoint` cannot be reached, such as by timeout or connection refusal. * Confirm that firewall exclusions for your BloodHound Enterprise tenant are configured correctly. * If you need an explicit proxy, configure it in `settings.json`. * Confirm TLS 1.2 connectivity to your BloodHound Enterprise tenant over port `443`. # SharpHound Enterprise Local Configuration Source: https://bloodhound.specterops.io/install-data-collector/install-sharphound/local-configuration ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) SharpHound Enterprise stores its local configuration in two files: | **File** | **Purpose** | | - | - | | `settings.json` | Defines how the service behaves, including settings for connecting to the BloodHound Enterprise tenant, Active Directory, and logs. | | `auth.json` | Defines the credentials the service uses to authenticate to the BloodHound Enterprise API. | > [!NOTE] > > When using Integrated Windows Authentication (IWA), the `auth.json` file is not used; all authentication information is provided in `settings.json` instead. You can find the file paths for each configuration file and logs in the table below. `%AppData%` is the directory of the service account: `C:\\Users\\SERVICE_ACCOUNT$\\AppData\\Roaming`. | **SharpHound File** | **Default Path (v2.5.8+) ** | **Default Path (\<= v2.5.8) ** | | - | - | - | | Configuration File | `%AppData%\\BloodHoundEnterprise\\settings.json` | `C:\\Program Files (x86)\\SHService\\settings.json` | | Authentication File | `%AppData%\\BloodHoundEnterprise\\auth.json` | `C:\\Program Files (x86)\\SHService\\auth.json` | | Active Logs | `%AppData%\\BloodHoundEnterprise\\*.log` | `%AppData%\\BloodHoundEnterprise\\*.log` | | Archived Logs | `%AppData%\\BloodHoundEnterprise\\log_archive\\*.zip` | `%AppData%\\BloodHoundEnterprise\\log_archive\\*.zip` | ## Configure SharpHound Settings To modify any settings in your SharpHound configuration, you must stop the SharpHound service. The process to modify SharpHound's configuration files is as follows: 1. Stop the SharpHound Enterprise service: "SharpHound Delegator" 2. Edit and save one of the configuration files as an Administrator: * `settings.json` * `auth.json` 3. Start the SharpHound Enterprise service: "SharpHound Delegator" ## settings.json The `settings.json` file is a plaintext JSON file that defines information about how the service behaves, such as settings for connecting to the BloodHound Enterprise tenant, connecting to Active Directory, and writing logs. ```json title="settings.json" icon="file-brackets-curly" theme={null} { "RestEndpoint": "CODENAME.bloodhoundenterprise.io", "RestPort": 443, "SSL": true, "CurrentJob": null, "LogLevel": "Information", "EnumerationLogLevel": "Information", "TempDirectory": "C:\\Users\\gmsa_SHS$\\AppData\\Roaming\\BloodHoundEnterprise", "Proxy": null, "ComputerPasswordResetWindow": 60, "ForceLDAPKerberosAuth": true, "PortCheckTimeout": 10000, "LDAPSSLPort": 636, "LDAPPort": 389, "ForceLDAPSSL": false, "NumWorkers": 50, "PartitionLDAPQueries": true, "Version": "2.5.9.0" } ``` ### Integrated Windows Authentication (IWA) If using IWA instead of API tokens, you must include IWA-specific configuration fields in your `settings.json` file. These fields are required to enable SharpHound to authenticate using the service account's Windows credentials via Active Directory Federation Services (ADFS). ```json title="settings.json" icon="file-brackets-curly" theme={null} { ... (other settings) ... "ProviderWellKnown": "https://adfs.example.com/.well-known/openid-configuration", "ClientId": "12345678-1234-1234-1234-123456789012", "Resource": "https://your-tenant.bloodhound.com", "UseIntegratedWindowsAuthForADFS": true, } ``` > [!TIP] > > When using this configuration, do not include an `auth.json` file. The authentication credentials will be handled through ADFS using the service account's Windows identity. > [!NOTE] > > `ClientId` is the generated client ID that SharpHound sends when it requests a token from ADFS. It is separate from the optional **Custom Client Identifier** configured on the BloodHound Enterprise client. Do not add the custom identifier to `settings.json`; BloodHound uses it server-side when matching the identifier in the ADFS token. See the following reference to learn more about the supported fields in the `settings.json` file: **RestEndpoint** `string` Your tenant domain, as provided by your account team. Enter the domain only and do not include URI information such as `https://`. **Default value:** `CODENAME.bloodhoundenterprise.io` **Example value:** `demo.bloodhoundenterprise.io` **RestPort** `integer` TCP port on which the BloodHound Enterprise API runs. **Default value:** `443` **Example value:** `443` **SSL** `boolean` Specifies whether SSL is enabled for the API connection. **Default value:** `True` **Example value:** `True` **Proxy** `string | null` HTTP proxy URL, if your environment requires one. **Default value:** `null` **Example value:** `proxy.acme.com:8080` **CurrentJob** `array | null` SharpHound uses this field to track the currently running task. When no task is running, the value is `null`. **Default value:** Do not modify this value. **Example value:** Do not modify this value. **LogLevel** `string` Logging verbosity level for the service itself. These logs appear in `service.log` within the configured `TempDirectory` location. Supported values, from most to least verbose: * `Trace` * `Debug` * `Information` * `Warning` * `Error` * `Critical` * `None` **Default value:** `Information` **Example value:** `Trace` **EnumerationLogLevel** `string` Logging verbosity level used during collection jobs. Supported values, from most to least verbose: * `Trace` * `Debug` * `Information` * `Warning` * `Error` * `Critical` * `None` **Default value:** `Information` **Example value:** `Trace` **TempDirectory** `string | null` Directory in which SharpHound stores logs and temporary files. If this value is `null` when the service starts, SharpHound uses the `%APPDATA%\\BloodHoundEnterprise\\` directory for the service user. Logs are retained for 14 days. Escape backslashes for valid JSON formatting by using double backslashes. **Default value:** `null` **Example value:** `C:\\Users\\SERVICE_USER$\\AppData\\Roaming\\BloodHoundEnterprise\\` **Version** `string` Current SharpHound Enterprise version. **Default value:** Do not modify this value. **Example value:** Do not modify this value. **ComputerPasswordResetWindow** `integer` Excludes computer objects from local collections if they have not rotated their password with the domain within this many days. By default, Active Directory computers rotate their passwords every 30 days. Minimum value: `7` This Windows setting controls how often the computer [rotates its password](https://learn.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/domain-member-maximum-machine-account-password-age). You can also [prevent password rotation](https://learn.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/domain-member-disable-machine-account-password-changes) entirely through Windows policy. **Default value:** `60` **Example value:** `365` **PortCheckTimeout** `integer` Time, in milliseconds, that SharpHound waits for a response on TCP port `445` before considering the system unavailable. Minimum value: `200` Requires SharpHound Enterprise `v2.2.1+`. **Default value:** `10000` **Example value:** `15000` **NumWorkers** `integer` Number of concurrent threads that perform privileged collection. Minimum value: `10` Maximum value: `100` Requires SharpHound Enterprise `v2.2.1+`. **Default value:** `50` **Example value:** `50` **PartitionLDAPQueries** `boolean` Specifies whether SharpHound splits LDAP queries into multiple parts. Use this setting when you query very large domains. **Default value:** `True` **Example value:** `True` **ForceLDAPKerberosAuth** `boolean` Enforces Kerberos authentication when SharpHound queries LDAP servers. Disabling this setting may be required to collect across an External trust type. For more information, see [Cross-Trust Collection](/collect-data/enterprise-collection/cross-trust). When set to `False`, SharpHound auto-negotiates authentication to domain controllers and prefers Kerberos when it is available. **Default value:** `False` **Example value:** `True` **LDAPSSLPort** `integer` TCP port used for LDAP over SSL collection. Requires SharpHound Enterprise `v2.2.1+`. **Default value:** `636` **Example value:** `636` **LDAPPort** `integer` TCP port used for LDAP collection. **Default value:** `389` **Example value:** `389` **ForceLDAPSSL** `boolean` Controls SharpHound's primary LDAP connection behavior. When set to `False`, SharpHound attempts LDAP over SSL first and can fall back to signed and sealed LDAP. When set to `True`, SharpHound is configured to use LDAPS for its base LDAP configuration where possible, but some ancillary directory-related operations may still use other negotiation or resolution paths. Do not use this setting as a guarantee that no TCP `389` traffic will occur in all scenarios. **Default value:** `False` **Example value:** `False` **ProviderWellKnown** `string | null` ADFS well-known endpoint URL for Integrated Windows Authentication. This is typically the ADFS server address with `/.well-known/openid-configuration` appended. Required when `UseIntegratedWindowsAuthForADFS` is enabled. **Default value:** `null` **Example value:** `https://adfs.example.com/.well-known/openid-configuration` **ClientId** `string | null` Client ID generated by BloodHound during collector client creation. SharpHound sends this value to identify itself when requesting a token from the ADFS server. BloodHound uses the generated Client ID for token-to-client matching by default. Required when `UseIntegratedWindowsAuthForADFS` is enabled. **Default value:** `null` **Example value:** `12345678-1234-1234-1234-123456789012` **Resource** `string | null` BloodHound Enterprise tenant URL used as the resource identifier for the ADFS application. Required when `UseIntegratedWindowsAuthForADFS` is enabled. **Default value:** `null` **Example value:** `https://your-tenant.bloodhoundenterprise.io` **UseIntegratedWindowsAuthForADFS** `boolean` Enables Integrated Windows Authentication through ADFS. When set to `true`, SharpHound authenticates with the service account's Windows credentials against the configured ADFS server. When this setting is enabled, SharpHound does not use `auth.json`. You must also configure `ProviderWellKnown`, `ClientId`, and `Resource`. **Default value:** `False` **Example value:** `True` ## auth.json The `auth.json` file is a plaintext JSON file that defines the credentials the service uses to authenticate to the BloodHound Enterprise API. Creating a new client or rotating the credentials of an existing one will provide you with the complete JSON structure used for a SharpHound Enterprise client. ```json title="auth.json" icon="file-brackets-curly" theme={null} { "Token": "w4Tc+heVmaMTWgodlw0YlztaEGG53J/mwogiEZLvKE6WtylfYuoVEA==", "TokenID": "0c6120ee-2fbe-478f-a864-2e264f9c16d2" } ``` See the following reference to learn more about the supported fields in the `auth.json` file: **Token** `string | null` Token SharpHound Enterprise uses to authenticate with the BloodHound Enterprise tenant. **Default value:** `null` **Example value:** `w4Tc+heVmaMTWgodlw0YlztaEGG53J/mwogiEZLvKE6WtylfYuoVEA==` **TokenID** `string | null` Unique identifier for the token. **Default value:** `null` **Example value:** `0c6120ee-2fbe-478f-a864-2e264f9c16d2` # Modify the Service Account Used By SharpHound Enterprise Source: https://bloodhound.specterops.io/install-data-collector/install-sharphound/modify-service-account ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) SharpHound Enterprise utilizes the Windows Service manager to handle authentication. In certain cases, you may need to modify the user account utilized by the SharpHound Enterprise service. The steps to perform that modification are as follows. 1. Log into your SharpHound Enterprise server. 2. Open the Computer Management window. 3. Under Local Users and Groups, make sure the new account is a member of the local Administrators group (Note: this is the most commonly missed step that prevents successful migration) 4. Stop the SharpHound Delegator service. 5. Open the properties on the SharpHound Delegator service. 6. Navigate to the Logon tab. 7. Change the account in this tab to the newly desired account. > [!NOTE] > > If the account configuration is greyed out, run the following command within a terminal window, then re-open the SharpHound Delegator service properties. ``` sc.exe config "SHDelegator" obj= "localsystem" ``` 8. \[Optional] By default, the service will assign the logging directory to the %APPDATA% folder of the initial user that started the directory. You may desire to change that using the nested steps. 1. Run notepad.exe as an Administrator 2. Open the configuration file "settings.json". The default path is described in [SharpHound Enterprise Local Configuration](/install-data-collector/install-sharphound/local-configuration). 3. Modify the "TempDirectory" value (you may either set this to null, or make sure to utilize double backslashes as seen in the current setting) 4. Save the file and exit Notepad 9. Start the SharpHound Delegator service and confirm that it has started checking into your BloodHound Enterprise tenant utilizing the new account. # Deploy SharpHound Enterprise Source: https://bloodhound.specterops.io/install-data-collector/install-sharphound/overview Deploy and maintain SharpHound Enterprise for continuous automatic collection of Active Directory attack path data. > [card] [SharpHound Enterprise System Requirements and Deployment Process](/install-data-collector/install-sharphound/system-requirements) > [card] [Install and Upgrade SharpHound Enterprise](/install-data-collector/install-sharphound/installation-upgrade) > [card] [Deploy a Tiered SharpHound Enterprise Collector Strategy](/install-data-collector/install-sharphound/tiered-collector-strategy) > [card] [Create a gMSA for Use With SharpHound Enterprise](/install-data-collector/install-sharphound/create-gmsa) > [card] [SharpHound Enterprise Local Configuration](/install-data-collector/install-sharphound/local-configuration) > [card] [Modify the Service Account Used By SharpHound Enterprise](/install-data-collector/install-sharphound/modify-service-account) > [card] [Configure ADFS for Integrated Windows Authentication](/install-data-collector/install-sharphound/configure-adfs-iwa) > [card] [Troubleshoot Local Collection Coverage](/install-data-collector/install-sharphound/troubleshooting) # SharpHound Enterprise System Requirements and Deployment Process Source: https://bloodhound.specterops.io/install-data-collector/install-sharphound/system-requirements ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) The SharpHound Enterprise service is a critical element in your deployment that collects and uploads data about your environment to your BloodHound Enterprise instance for processing and analysis. SharpHound Enterprise is deployed as a signed Windows service, runs under the context of a domain account, and collects from one or more domains utilizing the configured service account. ## Deployment Process Overview To collect Active Directory data with SharpHound and ingest it into BloodHound for analysis: 1. Provision a Server that meets or exceeds the recommended Hardware, Software, and Network requirements below. 2. Create a Service Account or [gMSA](/install-data-collector/install-sharphound/create-gmsa) that SharpHound will run as, meeting the service account requirements below. 3. [Install and Upgrade SharpHound Enterprise](/install-data-collector/install-sharphound/installation-upgrade) 4. [Create a BloodHound Enterprise collector client](/collect-data/enterprise-collection/create-collector) 5. [Run an On Demand Scan](/collect-data/enterprise-collection/on-demand-scan) or [Create a data collection schedule](/collect-data/enterprise-collection/collection-schedule) ## Server Requirements ### Hardware | Resource | Minimum | Recommended | Large enterprise | | - | - | - | - | | **Processor Cores** | 2 physical cores | 4 physical cores | 6 physical cores | | **Memory** | 4GB RAM | 16GB RAM | 32GB RAM | | **Hard disk space** | 1GB for logging | 5GB for logging | 20GB for logging | > [!NOTE] > > These recommendations should be considered a baseline and may need to be increased depending on the size and complexity of your environments. Minimums apply to test or development deployments. Where multiple collectors are deployed on a single host, scaling will be necessary to maintain performance. ### Software * Windows Server 2019+ * .NET 4.7.2+ ### Network SharpHound Enterprise needs outbound access to your BloodHound Enterprise tenant and to at least one domain controller in each domain you collect. Additional ports are required only for specific collection methods. #### Baseline Connectivity | Destination | Protocol / port | Applies to | Notes | | - | - | - | - | | BloodHound Enterprise SaaS tenant URL | TLS `443/TCP` | All deployments | Proxy is supported | | At least one domain controller in each collected domain | LDAPS `636/TCP` | Active Directory collection | Configurable with `LDAPSSLPort` | | At least one domain controller in each collected domain | LDAP `389/TCP` | Active Directory collection fallback | Configurable with `LDAPPort` | > [!NOTE] > > SharpHound attempts LDAP over SSL first. If LDAPS is unavailable and `ForceLDAPSSL` is disabled, SharpHound falls back to signed and sealed LDAP on the configured LDAP port. SharpHound uses [LDAP channel signing](https://www.hub.trimarcsecurity.com/post/ldap-channel-binding-and-signing) for all queries. > [!WARNING] > > `ForceLDAPSSL` is a best-effort control for SharpHound's primary LDAP collection path, not a blanket guarantee that every directory-related operation during collection avoids non-LDAPS resolution paths. > > Some LDAP negotiation or AD structure resolution may still occur through existing .NET APIs. Do not assume that blocking TCP `389` is safe in every deployment without validating collector behavior in your deployed version. #### Optional Connectivity | Collection method | Protocol / port | Destination | Notes | | - | - | - | - | | [Privileged collection](/collect-data/enterprise-collection/privileged-collection) | SMB/RPC `445/TCP` | All in-scope domain-joined Windows systems | Required for host-based privileged collection | | [Privileged collection](/collect-data/enterprise-collection/privileged-collection) | SMB/RPC `135/TCP` | All in-scope domain-joined Windows systems | Required for NTLM relay-based collection | | [DC Registry and CA Registry collection](/collect-data/sharphound-data-permissions) | SMB/RPC `445/TCP` | All domain controllers and domain-joined CAs | Required for registry-based collection | | Azure VM identity during Local Groups collection | WMI `135/TCP` or SMB/Remote Registry `445/TCP` | Domain-joined Windows computers | SharpHound tries WMI first and Remote Registry as a fallback | > [!NOTE] > > Expected network bandwidth for privileged collection is approximately `60-100 kB` per collection. ## Service Account Requirements Run the SharpHound Enterprise service under a domain-joined account that has the **Log on as a service** User Rights Assignment on the SharpHound Enterprise server. This account can be a traditional user account or a [Group Managed Service Account (gMSA)](/install-data-collector/install-sharphound/create-gmsa). The service account needs permissions to collect data from your target domains and domain-joined systems as detailed in [SharpHound Data Collection and Permissions](/collect-data/sharphound-data-permissions). We recommend following [SharpHound Enterprise Service Hardening](/manage-bloodhound/securing-bloodhound-and-collectors/sharphound-hardening). > [!WARNING] > > The SharpHound collection service account does not require `Domain Admin` membership. | Data type | Default permissions | Least-privileged option | | - | - | - | | [Active Directory Structure](/collect-data/sharphound-data-permissions#active-directory-structure-data) | `Authenticated Users` can read most required data via LDAP | Delegate additional read permissions where needed (for example, restricted AD objects and dMSA) | | [Local Group Membership](/collect-data/sharphound-data-permissions#local-group-membership) | Local `Administrators` | Delegate Remote SAM access with Group Policy configuration | | [User Rights Assignments](/collect-data/sharphound-data-permissions#user-rights-assignments) | Local `Administrators` | No known delegation path today | | [NTLM](/collect-data/sharphound-data-permissions#ntlm) | Local `Administrators` | Delegate registry access with Group Policy or registry configuration | | [Sessions](/collect-data/sharphound-data-permissions#sessions) | Local `Administrators` | On Windows Server, `Print Operators` can be used; Windows desktops still require local `Administrators` | | [Certificate Services](/collect-data/sharphound-data-permissions#certificate-services) | `Authenticated Users` can collect most ADCS LDAP data | Already least-privileged by default for LDAP-collected certificate services data | | [CA Registry](/collect-data/sharphound-data-permissions#ca-registry) | `Authenticated Users` can collect CA registry data when AD CS is installed | No additional delegation is typically required | | [DC Registry](/collect-data/sharphound-data-permissions#dc-registry) | Local `Administrators` on domain controllers | Delegate access via Group Policy or registry configuration for required paths | | [Azure VM identity](/collect-data/sharphound-data-permissions#azure-vm-identity) | Permissions for WMI or Remote Registry on target computers | Delegate the Azure registry path for the Remote Registry fallback; verify WMI permissions separately | > [!NOTE] > > If Active Directory tombstoning is enabled, the service account must also have [read permissions](https://learn.microsoft.com/en-us/troubleshoot/windows-server/identity/non-administrators-view-deleted-object-container) on the deleted objects container. ### Integrated Windows Authentication (IWA) If you want to use IWA for SharpHound, the following additional requirements apply: * Active Directory Federation Services (ADFS) server must be accessible in your network environment > [!NOTE] > > Both the system running SharpHound and the BloodHound Enterprise tenant require network connectivity to the ADFS server. * Service account must be [configured](/install-data-collector/install-sharphound/configure-adfs-iwa) in ADFS to support Windows authentication for SharpHound * Generated Client ID must be registered in ADFS and the issued token must contain the generated Client ID or configured Custom Client Identifier in the claim BloodHound uses for client lookup (provided during [collector client creation](/collect-data/enterprise-collection/create-collector)) * Local SharpHound configuration must include [IWA-specific properties](/install-data-collector/install-sharphound/local-configuration#integrated-windows-authentication-iwa) in the `settings.json` file # Deploy a Tiered SharpHound Enterprise Collector Strategy Source: https://bloodhound.specterops.io/install-data-collector/install-sharphound/tiered-collector-strategy ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) ## Purpose This guide provides instructions on how to implement a tiered SharpHound Enterprise collector strategy, which is the recommended approach for collecting local data (i.e. Local Groups or Sessions) using SharpHound Enterprise. The recommendation seeks to remove the risk of credential caching, delegation, and relaying by following the principle that "[elevated user accounts should not be used to log on to lower Tier assets](https://techcommunity.microsoft.com/t5/core-infrastructure-and-security/protecting-domain-administrative-credentials/ba-p/259210)" as recommended for domains with the [Active Directory Tier Model](https://learn.microsoft.com/en-us/microsoft-identity-manager/pam/tier-model-for-partitioning-administrative-privileges) or [Enterprise access model](https://learn.microsoft.com/en-us/security/privileged-access-workstations/privileged-access-access-model). Without a tiered strategy, an organization may violate this principle if a Tier Zero SharpHound Enterprise service account authenticates to all hosts/computer objects in the domain. This is essentially the same as a Domain Admin logging onto a workstation. Be advised that this risk is considered lower because: * SharpHound Enterprise collects data through [network logons](https://learn.microsoft.com/en-us/windows-server/identity/securing-privileged-access/reference-tools-logon-types), which will not cache credentials on target systems. * SharpHound Enterprise does not use NTLM authentication by default, it uses Kerberos, which is less likely to be relayed. * SharpHound Enterprise **can** be hardened to mitigate the risk of Kerberos Delegation and NTLM authentication, see [SharpHound Enterprise Service Hardening](/manage-bloodhound/securing-bloodhound-and-collectors/sharphound-hardening). Although this article uses the term "*tier*", it is mostly interchangeable with the term "'*plane*" from the Enterprise access model. ## Prerequisites * Having defined/created one or more Organizational Units (OUs) for computers of each tier. * Each tier's collector will be configured to only process computers stored in the tier's OU(s). * Creation of one BloodHound collector server for each tier, see [SharpHound Enterprise System Requirements](/install-data-collector/install-sharphound/system-requirements) * Tip: In BloodHound, mark the Tier Zero collector server as Tier Zero, see [Privilege Zones](/analyze-data/privilege-zones/overview) * Creation of one SharpHound Enterprise service account for each tier, see [Create a gMSA for use with SharpHound Enterprise](/install-data-collector/install-sharphound/create-gmsa) * Each service account must have collection permission on all systems in the service account's tier - local `Administrators` group membership or [Least-Privileged Collection](/collect-data/enterprise-collection/least-privileged-collection) permissions. * Each service account is recommended to be hardened, see [SharpHound Enterprise Service Hardening](/manage-bloodhound/securing-bloodhound-and-collectors/sharphound-hardening). * Tip: In BloodHound, mark the Tier Zero service account as Tier Zero, see [Privilege Zones](/analyze-data/privilege-zones/overview) ## Process ### Create a tiered SharpHound Enterprise collector client This section outlines how to create a collector client that will be dedicated to local collection on computers in a single tier. One client should be created for each tier, for example: * Tier Zero * Tier One * Tier Two For organizations without an implemented tier model, we recommend creating a Tier Zero collector, and only a single collector for the other tiers. In this example, a collector client for Tier Zero will be created. 1. Follow the article [Create a SharpHound Enterprise collector client](/collect-data/enterprise-collection/create-collector) * Tip: Include an indicator for the client's tier in the **Client Name** field, for example, appending it with "t0" ![](https://mintcdn.com/specterops/3L2OuEwvAIHzUPXm/assets/image-53.png?fit=max\&auto=format\&n=3L2OuEwvAIHzUPXm\&q=85\&s=38572a917ffabb4dbe23901ac9412003) 2. Install the collector client on the dedicated Tier Zero BloodHound collector server, using the dedicated Tier Zero SharpHound Enterprise service account. [See Install and Upgrade SharpHound Enterprise](/install-data-collector/install-sharphound/installation-upgrade). ### Create tiered collector clients' schedules Two types of data collection schedules can be deployed for each of the tiered collector clients. For three tiers, the recommended schedule configuration is: * Tier Zero * Schedule 1 * **Active Directory Structure Data**, frequency: 1 day * Schedule 2 * **Local Groups** and **Sessions**, frequency: 3-6 hours * Tier One * Schedule 1 * **Local Groups** and **Sessions**, frequency: 3-6 hours * Tier Two * Schedule 1 * **Local Groups** and **Sessions**, frequency: 3-6 hours ### Active Directory Structure Data schedule Only one AD Structure Data schedule is needed, even though multiple tiers exist. It is recommended to be collected by the Tier Zero collector, as the clients of other tiers may be denied read access to Active Directory structure data. 1. On the Tier Zero collector client, create a new collection schedule, see [Create a data collection schedule](/collect-data/enterprise-collection/collection-schedule) 2. Set the frequency to be **Daily** and **Every 1 day(s)**. 3. Set the schedule to only collect **Active Directory Structure Data** 4. The completed schedule should look like so:\*\* ![](https://mintcdn.com/specterops/_WgKw_c5a1RSTrKM/assets/image-54.png?fit=max\&auto=format\&n=_WgKw_c5a1RSTrKM\&q=85\&s=add380aba401dca87440065092dee3af) ### Local Groups and Sessions schedule In this example, a schedule is configured on a Tier Zero collector client. Other tiers must follow the same procedure with different OUs selected. 1. On the Tier Zero collector client, create a new collection schedule, see [Create a data collection schedule](/collect-data/enterprise-collection/collection-schedule) 2. Set the frequency to be **Hourly** and **Every 3-6 hours**. 3. Set the schedule to collect **Local Groups** and **Sessions** 4. In **Advanced Options** in the setting **Target Local Group and/or User Session Collection by Organizational Unit**, search for the Tier Zero OU(s) containing the domain's Tier Zero computer objects. * Tip: Remember to add your Domain Controllers OU to the Tier Zero schedule. ![](https://mintcdn.com/specterops/3L2OuEwvAIHzUPXm/assets/image-55.png?fit=max\&auto=format\&n=3L2OuEwvAIHzUPXm\&q=85\&s=40fff8ef9136f541e43ee6afaec3508a) 5. The completed schedule should look like so: ![](https://mintcdn.com/specterops/3L2OuEwvAIHzUPXm/assets/image-56.png?fit=max\&auto=format\&n=3L2OuEwvAIHzUPXm\&q=85\&s=e83156c50c68f1a192ed98dbac0b26e1) # Troubleshoot Local Collection Coverage Source: https://bloodhound.specterops.io/install-data-collector/install-sharphound/troubleshooting ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) SharpHound collects data from domain-joined systems utilizing SMB/RPC on port 445/TCP and requires the account running SharpHound (e.g., the SharpHound Enterprise gMSA) to have local administrator membership on each system in scope, see [SharpHound Data Collection and Permissions](/collect-data/sharphound-data-permissions). This article can assist in troubleshooting why a local collection is not successful for all systems in scope. Azure VM identity collection runs during Enterprise Local Groups collection. SharpHound reads `HKLM\SOFTWARE\Microsoft\Windows Azure\VmId` from each Computer target and writes a successful value to the Computer object's `azvmid` property in lowercase. It tries WMI first and Remote Registry as a fallback, so this operation can require access to `135/TCP` or `445/TCP` when the job collects Local Groups. ## Computer status logfile The computer status logfile, named `compstatus.csv` contains information about the collection results for each system in the collection's scope. * SharpHound Enterprise: Generates one `compstatus.csv` per collection job that emits computer status events, including Local Groups jobs that attempt Azure VM identity collection, and stores it within the `log_archive` directory on the SharpHound Enterprise server. The default location for this is `%APPDATA%\\Roaming\\BloodHound Enterprise` - that is, App Data for the service account running the SharpHound Enterprise service. However, you may override this location within `settings.json`, see [SharpHound Enterprise Local Configuration](/install-data-collector/install-sharphound/local-configuration). * SharpHound Community Edition: Will generate `compstatus.csv` when run with the `DumpComputerStatus` flag. ## Analyzing compstatus.csv The first step in troubleshooting local collection issues is by identifying and understanding errors in `compstatus.csv`. BloodHound Enterprise customers can reach out to their Technical Account Manager (TAM) for support in this analysis. Alternatively, you may do your own troubleshooting by utilizing the below example PowerShell commands and the process described below the code block. ```json theme={null} ### Import data and get uniques without sorting them $stats_file = Import-Csv -Path 'FILE_PATH_HERE' | Group-Object ComputerName, Task, Status, IPAddress | ForEach-Object { $_.Group[0] } ### Status Pivot Table - Exclude GetMembersInAlias as it's irrelevant for troubleshooting $stats_file | Where-Object {$_.Task -NotLike 'GetMembersInAlias -*'} | Group-Object Task, Status -NoElement | Format-Table -Autosize ### Pivot table for failures only $stats_file | Where-Object {$_.Status -ne "Success"} | Group-Object Task,Status -NoElement | Format-Table -Autosize ### Which systems were unreachable on 445/TCP $stats_file | Where-Object {$_.Task -eq "ComputerAvailability" -and $_.Status -eq "PortNotOpen"} ### IPv4 /24 subnets unreachable on 445/TCP $stats_file | Where-Object {$_.Task -eq "ComputerAvailability" -and $_.Status -eq "PortNotOpen" -and $_.IPAddress -match '^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$'} | Group-Object {$_.IPAddress.Remove($_.IPAddress.LastIndexOf('.'))+'.0/24'} -NoElement | Sort-Object -property Count | Format-Table -Autosize ### IPv4 /16 subnets unreachable on 445/TCP $stats_file | Where-Object {$_.Task -eq "ComputerAvailability" -and $_.Status -eq "PortNotOpen" -and $_.IPAddress -match '^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$'} | Group-Object {($_.IPAddress.split(".")[0..1] -join ".") + ".0.0/16"} -NoElement | Sort-Object -property Count | Format-Table -Autosize ### Which systems are missing permissions $stats_file | Where-Object {$_.Status -eq "ERROR_ACCESS_DENIED" -or $_.Status -eq "StatusAccessDenied"} ``` To understand and resolve the errors outputted by the commands, you must understand the process involved in SharpHound's local collection, described below. ### Domain computer enumeration First, SharpHound queries a Domain Controller to list every enabled computer object in the domain. Every enumerated system will be represented by one or more lines in `compstatus.csv`. ### Azure VM identity For each Computer object in an Enterprise Local Groups collection, SharpHound attempts the Azure registry read. Strategy failures can appear in `compstatus.csv` with task names such as `ReadAzureRegistryData - DotNetWmiRegistryStrategy` or `ReadAzureRegistryData - RemoteRegistryStrategy`. A completed registry operation with no `VmId` value is not a collection failure, but it does not provide a usable `azvmid`. If both strategies fail, collection continues without a usable Azure VM identifier; inspect the collector log and the status entries for the underlying access or connectivity error. ### ComputerAvailability Next, SharpHound performs the `ComputerAvailability` check, which filters out inactive computers, so that SharpHound only connects to active computers to collect Local Groups and Sessions later on in the process. Each active computer object is checked to see whether it is a Windows OS. Local collection is not supported for any OS besides Windows. If the system is not a Windows OS, SharpHound will not perform additional checks on the system. * If a system fails this check, `compstatus.csv` will contain a line for the system with the result `Task = ComputerAvailability` and `Status = NonWindowsOS`. * If a Windows system is incorrectly marked with `NonWindowsOS`; ensure that the system's AD computer object attribute `[operatingSystem](https://learn.microsoft.com/en-us/windows/win32/adschema/a-operatingsystem)` is set to a string representing a Windows OS. If the system is a Windows OS, SharpHound proceeds with the next set of checks: 1. Check if the system has changed it's password within the duration set for `ComputerPasswordResetWindow` in SharpHound's `settings.json`. * If a system fails this check, `compstatus.csv` will contain a line for the system with the result `Task = ComputerAvailability` and `Status = PwdLastSetOutOfRange`. * If an active system is incorrectly marked with `PwdLastSetOutOfRange`, try one of the following: * Ensure that the `ComputerPasswordResetWindow` key in SharpHound's `settings.json` has a value corresponding to the computer's security policy `[Domain member: Maximum machine account password age](https://learn.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/domain-member-maximum-machine-account-password-age)`. By default this value is 60 days. A description of the `ComputerPasswordResetWindow` value is found the article [SharpHound Enterprise Local Configuration](/install-data-collector/install-sharphound/local-configuration). * Ensure that the system's password is changing as expected: Confirm that the system's AD computer object attribute `[pwdLastSet](https://learn.microsoft.com/en-us/windows/win32/adschema/a-pwdlastset)` has been changed within the period defined in the computer's security policy `Domain member: Maximum machine account password age` 2. Check if the system has TCP port 445 (SMB) open. * If a system fails this check, `compstatus.csv` will contain a line for the system with the result `Task = ComputerAvailability` and `Status = PortNotOpen`. * If an active system is incorrectly marked with `PortNotOpen`, try one of the following: * Ensure that the system running SharpHound can reach the system checked on TCP port 445. From the SharpHound system, run: ```json theme={null} Test-NetConnection -ComputerName -Port 445 ``` (replace `` with the system's DNS name as seen in `compstatus.csv`). * Ensure that the system running SharpHound can reach the system checked on TCP port 445 **within 500ms**. From the SharpHound system, run: ```json theme={null} Measure-Command { Test-NetConnection -ComputerName -Port 445 } ``` (replace `` with the system's DNS name as seen in `compstatus.csv`). * Ensure that the system's DNS name found in `compstatus.csv` can be resolved, and matches the system's DNS name in Active Directory. From the SharpHound system, check the name can be resolved by running: ```json theme={null} Resolve-DnsName -Name ``` (replace `` with the system's DNS name as seen in `compstatus.csv`). * Ensure that a network layer above TCP (e.g., SMB) is not being blocked by a security solution, such as an IDPS. After these steps, if the system is not available, no further collection attempts are made. If a system *is* found available, `compstatus.csv` will contain a line for it with the result `Task = ComputerAvailability` and `Status = Success`. Next, SharpHound will start the actual collection of Sessions and/or Local Groups. ### Local Groups This collection gathers two types of data points: 1. Local group memberships 2. User Rights Assignment **Local group memberships** First, SharpHound connects via RPC with `SamConnect`. * If unsuccessful, `compstatus.csv` will contain a line for the system with the result `Task = SamConnect` and a status depending on the error type. * `Status = -1073610725` means SharpHound account is not in the system's local administrators group. * `Status = StatusRpcServerUnavailable` means SharpHound cannot access RPC or SMB on the system. Ensure that the system running SharpHound can reach the system checked on SMB. * If successful, SharpHound continues with the method `GetMembersInAlias` as detailed below. Next, SharpHound connects via RPC with `GetMembersInAlias`. * If unsuccessful, `compstatus.csv` will contain a line for the system with the result `Task = GetMembersInAlias` and a status depending on the error type. * If successful `compstatus.csv` will contain one line per computer in system with the result `Task = GetMembersInAlias - ` and "Status = Success' **User Rights Assignment** First, SharpHound connects via RPC with `LSAOpenPolicy`. * If unsuccessful, `compstatus.csv` will contain a line for the system with the result `Task = LSAOpenPolicy` and a status depending on the error type. * `Status = StatusRpcServerUnavailable` means SharpHound cannot access RPC or SMB on the system. Ensure that the system running SharpHound can reach the system via SMB. * `Status = StatusAccessDenied` means SharpHound account is not in the system's local administrators group. * If successful, SharpHound continues with the method `LSAEnumerateAccountsWithUserRight` as detailed below. Next, sharpHound connects via RPC with `LSAEnumerateAccountsWithUserRight`. * If unsuccessful, `compstatus.csv` will contain a line for the system with the result `Task = LSAEnumerateAccountsWithUserRight` and a status depending on the error type. * `Status = StatusAccessDenied` means SharpHound account is not in the Local Administrators group. * If successful, `compstatus.csv` will contain one line per local group in system with the result `Task = LSAEnumerateAccountsWithUserRight` and "Status = Success' ### Sessions This collection gathers logon sessions via RPC with `NetWkstaUserEnum`. * If unsuccessful, `compstatus.csv` will contain a line for the system with the result `Task = NetWkstaUserEnum` and a status depending on the error type. * `Status = ErrorAccessDenied` means SharpHound account is not in the Local Administrators group. * `Status = 53` means SharpHound cannot access RPC or SMB on the system. Ensure that the system running SharpHound can reach the system via SMB. * If successful `compstatus.csv` will contain one line per local group with the result `Task = NetWkstaUserEnum` and "Status = Success' # Install Data Collectors Source: https://bloodhound.specterops.io/install-data-collector/overview Get started with SharpHound Enterprise or AzureHound Enterprise for continuous, automatic collection of attack path data. ## Install SharpHound Enterprise > [card] [SharpHound Enterprise System Requirements and Deployment Process](/install-data-collector/install-sharphound/system-requirements) > > System requirements and deployment process for SharpHound Enterprise > [card] [Install and Upgrade SharpHound Enterprise](/install-data-collector/install-sharphound/installation-upgrade) > > Guide for installing and upgrading SharpHound Enterprise > [card] [Deploy a Tiered SharpHound Enterprise Collector Strategy](/install-data-collector/install-sharphound/tiered-collector-strategy) > > Learn about tiered collector strategy deployment > [card] [Create a gMSA for Use With SharpHound Enterprise](/install-data-collector/install-sharphound/create-gmsa) > > Instructions for creating a group Managed Service Account > [card] [SharpHound Enterprise Local Configuration](/install-data-collector/install-sharphound/local-configuration) > > Configure SharpHound Enterprise locally > [card] [Modify the Service Account Used by SharpHound Enterprise](/install-data-collector/install-sharphound/modify-service-account) > > How to change the service account for SharpHound Enterprise [See all 8 articles](/install-data-collector/install-sharphound/overview) ## Install AzureHound Enterprise > [card] [AzureHound Enterprise System Requirements and Deployment Process](/install-data-collector/install-azurehound/system-requirements) > > System requirements and deployment process for AzureHound Enterprise > [card] [AzureHound Enterprise Azure Configuration](/install-data-collector/install-azurehound/azure-configuration) > > Configure AzureHound Enterprise for Azure > [card] [Create an AzureHound Configuration](/install-data-collector/install-azurehound/create-configuration) > > Steps to create an AzureHound configuration > [card] [Install and Upgrade AzureHound (Windows, Docker, or Kubernetes)](/install-data-collector/install-azurehound/installation-options) > > Guide for installing and upgrading AzureHound on various platforms > [card] [Run Multiple AzureHound Enterprise Collectors on One Server with Scheduled Tasks](/install-data-collector/install-azurehound/multiple-collectors) > > How to run multiple AzureHound Enterprise collectors using Scheduled Tasks # Integrate BloodHound Enterprise with Jira Source: https://bloodhound.specterops.io/integrations/atlassian/jira/configure Learn how to install and configure the Jira integration for BloodHound Enterprise. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) The BloodHound Enterprise Jira integration is a Jira Cloud app built on Atlassian Forge. It synchronizes BloodHound Enterprise attack path findings to Jira issues for remediation tracking. This page shows you how to install the integration, connect a Jira project to BloodHound Enterprise, and configure synchronization behavior for Jira Software or Jira Service Management. Use this integration to: * Automatically synchronize BloodHound Enterprise findings with Jira every five minutes * Map BloodHound zones to Jira priorities and due dates * Automatically close Jira issues when findings are remediated ## Prerequisites Before you configure the integration, confirm that you have the following: | Platform | Requirements | | - | - | | **Jira** |
  • A Jira Cloud instance (Data Center and Server are not supported)
  • A Jira Software or Jira Service Management project where you want the integration to create issues
  • Project Administrator or Site Administrator access in Jira
  • Atlassian Forge CLI installed (for self-hosted installations)
  • Network connectivity between Jira and BloodHound Enterprise
| | **BloodHound Enterprise** |
  • A BloodHound Enterprise tenant
  • A BloodHound Enterprise [non-personal API key/ID pair](/integrations/bloodhound-api/working-with-api#create-a-non-personal-api-key%2Fid-pair) with the **Auditor** role
| ## Install the integration Install the integration in your Jira Cloud instance. > [!NOTE] > > Atlassian requires **Organization Administrator** or **Site Administrator** privileges to install Marketplace apps in Jira Cloud. **1. Start the installation** 1. Go to the [SpecterOps BloodHound Enterprise](https://marketplace.atlassian.com/apps/2043886069) listing on the Atlassian Marketplace. 2. Click **Get it now**. 3. Select the Jira Cloud site where you want to install the integration. 4. Click **Install app**. **2. Review and install** Review the installation details, then start the installation. ## Configure connection settings Configure the connection between Jira and BloodHound Enterprise using your BloodHound Enterprise non-personal API key/ID pair. **1. Navigate to Connection Settings** Navigate to the project where you want the integration to create issues. 1. Go to **Space Settings**. 2. In the **Apps** section, select **BloodHound Enterprise Integration**. 3. Click the **Connection Settings** tab. **2. Enter the connection values** Enter the BloodHound Enterprise connection details. | Field | Description | | - | - | | **BloodHound Enterprise Domain** | The URL of your BloodHound Enterprise tenant | | **Token ID** | The API token ID used to authenticate requests | | **Token Key** | The API token key used to sign and authorize requests | **3. Test the connection** Before you can access the **Configuration** tab, you must successfully test the connection. Click **Test Connection** and wait for Jira to confirm that it can reach your BloodHound Enterprise tenant. ## Configure synchronization settings After successfully testing the connection, you can configure how the integration should synchronize BloodHound Enterprise findings with your Jira project. The **Configuration** tab provides the following settings: | Setting | Purpose | | - | - | | **Issue Type / Request Type** | Chooses the Jira issue type for Jira Software projects or the request type for Jira Service Management projects | | **BHE Domains** | Limits synchronization to the selected BloodHound Enterprise environments | | **BHE Zones** | Limits synchronization to the selected BloodHound Enterprise zones, such as Tier Zero, Tier One, and Hygiene | | **Priority Mapping** | Maps BloodHound Enterprise zones to Jira priorities | | **Due Days** | Sets the due date window for each Jira priority | | **Enable Auto-Closure** | Enables automatic closure of Jira issues when the corresponding BloodHound Enterprise finding is no longer detected (remediated) | | **Cleanup Interval** | Defines how often the integration checks for orphaned issues | > [!NOTE] > > For Jira Service Management projects, the integration detects the project type automatically and replaces the **Issue Type** selector with a **Request Type** selector filtered to incident request types. > > When the integration detects a Jira Service Management project, it automatically manages the following fields: > > * Service Desk ID > * Request Type ID > * Request Type Field ID > * Incident Request Type Name **1. Choose the Jira issue model** Select the Jira issue type that should represent BloodHound Enterprise findings (for example, Task, Bug, or Story). **2. Select the synchronization scope** The integration dynamically fetches the available domains and zones from your BloodHound Enterprise tenant. Select the domains and zones that you want to include in the synchronization. 1. Choose one or more **BHE Domains**. 2. Choose the **BHE Zones** that you want to synchronize with Jira. * **Tier Zero**: Critical attack paths to high-value targets * **Tier One**: Significant attack paths that require attention * **Hygiene**: General security hygiene and best practices issues **3. Map priority and due dates** Customize the priority and due date settings for each BloodHound Enterprise zone. 1. Map each BloodHound Enterprise zone to the Jira priority you want to use based on your organization's policies. The default priorities are: | Zone | Default Jira Priority | | - | - | | **Tier Zero** | Highest | | **Tier One** | Low | | **Hygiene** | Lowest | 2. Set the number of due days for each priority. The default due days are: | Jira Priority | Default Due Days | | - | - | | **Highest** | 3 days | | **High** | 7 days | | **Medium** | 14 days | | **Low** | 30 days | | **Lowest** | 90 days | > [!NOTE] > > Use **None** to disable due dates for specific priorities. **4. Set auto-closure behavior** The integration can automatically close Jira issues when the corresponding BloodHound Enterprise finding is no longer detected (remediated). | Setting | Description | Options | | - | - | - | | **Enable Auto-Closure** | Enables automatic closure of Jira issues when the corresponding BloodHound Enterprise finding is no longer detected (remediated) | Yes / No | | **Cleanup Interval** | Defines how often the integration checks for (and closes) orphaned issues | 1-10 days | When **Auto-Closure** is enabled: * The cleanup interval runs hourly to check for orphaned issues. * An issue is considered orphaned if the corresponding BloodHound Enterprise finding is no longer detected. * The integration transitions orphaned issues to a **Done** status and adds a comment indicating that the issue has been automatically closed. > [!NOTE] > > The integration closes remediated issues according to the cleanup interval that you set. For example, if you set the interval to 3 days, the integration closes eligible issues no more than once every 3 days. **5. Save and run the first synchronization** After you have configured the integration, you can save the configuration and run the first synchronization from the **Configuration** tab. 1. Click **Save Configuration**. 2. Click **Run Sync Now** to trigger the first synchronization immediately. ## Verify the configuration After you save the configuration and run the first synchronization, confirm the following: * Jira starts the synchronization successfully * The configured project receives issues for findings that match the selected domains and zones * The created issues use the expected priority and due date values * Jira adds zone and domain labels that you can use for filtering ## Next steps * [Use Jira with BloodHound Enterprise](/integrations/atlassian/jira/use) * [Troubleshoot the Jira integration](/integrations/atlassian/jira/troubleshoot) # Jira integration design reference Source: https://bloodhound.specterops.io/integrations/atlassian/jira/reference Technical reference for the Jira integration, including its Atlassian Forge architecture, schedules, and API usage. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) This page explains how the BloodHound Enterprise Jira integration works. It covers the Atlassian Forge app architecture, authentication model, configuration inputs, scheduler behavior, and BloodHound API dependencies. > [!NOTE] > > For setup instructions, see [Install and configure the integration](/integrations/atlassian/jira/configure). ## Integration type The BloodHound Enterprise Jira integration is a **vulnerability management and remediation tracking** integration. It synchronizes BloodHound Enterprise attack path findings into Jira so security and operations teams can manage remediation work in Jira Software or Jira Service Management. ## Use cases * Create Jira issues automatically for BloodHound Enterprise findings * Route findings into Jira Software or Jira Service Management workflows * Map BloodHound Enterprise zones to Jira priorities and due dates * Keep Jira aligned with BloodHound Enterprise by closing remediated findings automatically ## Core design The integration is built on the Atlassian Forge platform and uses a combination of scheduled tasks and API calls to synchronize data between BloodHound Enterprise and Jira. | Component | Purpose | | - | - | | **Configuration UI** | Provides the Forge project settings page where Jira administrators enter BloodHound Enterprise connection details and synchronization settings | | **Sync scheduler** | Pulls findings from BloodHound Enterprise every five minutes and creates Jira issues or incidents | | **Cleanup scheduler** | Runs hourly and closes orphaned Jira issues after the corresponding BloodHound Enterprise findings no longer exist and auto-closure is enabled | | **Jira project** | Hosts the created issues or incidents and provides the remediation workflow | The integration follows the following workflow: 1. A Jira administrator installs the app from the Atlassian Marketplace. 2. A project administrator opens the Forge project settings page in Jira and enters the BloodHound Enterprise connection values. 3. The integration validates the credentials with **Test Connection**. 4. The sync scheduler polls BloodHound Enterprise every five minutes and creates one Jira issue or incident per matching finding. 5. The cleanup scheduler runs hourly and closes orphaned issues when the corresponding finding no longer exists in BloodHound Enterprise. ## Authentication and secrets The integration uses the following security measures: | Control | Implementation | | - | - | | **BloodHound Enterprise authentication** | HMAC-SHA256 signed requests | | **Jira authorization** | Atlassian Forge OAuth 2.0 app scopes | | **Secret storage** | Atlassian Forge encrypted Key-Value Storage (KVS) | | **Data in transit** | HTTPS/TLS | | **Data flow** | Direct API calls from Atlassian Forge to BloodHound Enterprise | Each BloodHound Enterprise request includes: 1. `Authorization: bhesignature {token_id}` 2. `RequestDate: {rfc3339_timestamp}` 3. `Signature: {base64_hmac_signature}` ## Configuration inputs The integration exposes the following user-configurable inputs: | Input | Required | Description | | - | - | - | | **BloodHound Enterprise Domain** | Yes | The URL of your BloodHound Enterprise tenant | | **Token ID** | Yes | The API token ID used to authenticate requests | | **Token Key** | Yes | The API token key used to sign requests | | **Issue Type / Request Type** | Yes | The Jira issue type for Jira Software or the request type for Jira Service Management | | **BHE Domains** | Yes | The BloodHound Enterprise environments to synchronize | | **BHE Zones** | Yes | The BloodHound Enterprise zones to synchronize | | **Priority Mapping** | Yes | The mapping between BloodHound Enterprise zones and Jira priorities | | **Due Days** | Yes | The number of due days to assign for each mapped priority | | **Enable Auto-Closure** | Yes | Enables or disables automatic closure of orphaned Jira issues | | **Cleanup Interval** | Yes | The number of days between orphaned-issue closure checks | The integration does not allow the Jira project key to be configured by the user because the app derives it from the Forge extension context. ## Jira project behavior The integration adjusts its configuration model based on the Jira project type: | Capability | Jira Software | Jira Service Management | | - | - | - | | **Issue model** | Standard Jira issue type | Incident issue type with a selected request type | | **Configuration field** | **Issue Type** | **Request Type** | | **Project detection** | Uses the configured Jira Software issue type | Detects the JSM project automatically and populates incident request types | ## Sync model The integration follows the following synchronization behavior: | Setting | Value | | - | - | | **Sync interval** | Every 5 minutes | | **Cleanup scheduler** | Every hour | | **Cleanup interval** | 1 to 10 days, based on configuration | | **Synchronization scope** | Selected BloodHound Enterprise domains and zones | | **Manual action** | **Run Sync Now** triggers an immediate synchronization | The integration creates one Jira issue or incident for each finding that matches the selected domains and zones. It prevents duplicate issue creation by storing Jira Entity Properties in `sync_metadata`, including `findingId` and `updatedAt`. The provided Jira source documents also describe the following operational values for the synchronization workflow: | Setting | Value | | - | - | | **Batch size** | 500 findings per batch | | **Bulk Jira operations** | 50 issues per API call | | **Invocation timeout** | 15 minutes | ## Synced Jira issue content The integration requires each Jira issue or incident to store the attack path data needed for remediation tracking. | Field | Contents | | - | - | | **Issue correspondence** | One unique Jira issue or incident for each BloodHound Enterprise finding | | **Attack path title** | The issue corresponds to the attack path title | | **Graph View link** | A deep link to the finding in BloodHound Enterprise | | **Attack path data** | Relevant finding data retrieved from BloodHound Enterprise | | **Remediation guidance** | Remediation steps associated with the finding | | **Priority and due date** | Values derived from the configured zone-to-priority and due-day mappings | ## API endpoints The integration depends on the following BloodHound Enterprise API endpoints: | Endpoint | Purpose | | - | - | | [`GET /api/v2/available-domains`](/reference/search/get-available-domains) | Lists the environments available to the configured API token | | [`GET /api/v2/asset-group-tags`](/reference/asset-isolation/get-asset-group-tags) | Lists the available BloodHound Enterprise zones used for synchronization filtering | | [`GET /api/v2/domains/{domain_id}/available-types`](/reference/attack-paths/list-available-attack-paths) | Lists the attack path finding types for a selected environment | | [`GET /api/v2/domains/{domain_id}/details`](/reference/attack-paths/list-domain-attack-paths-details) | Returns detailed attack path records for a selected environment and finding type | | `GET /api/v2/assets/findings/{finding_type}/title.md` | Returns the title for a finding type | | `GET /api/v2/assets/findings/{finding_type}/short_description.md` | Returns the short description for a finding type | | `GET /api/v2/assets/findings/{finding_type}/short_remediation.md` | Returns the short remediation text for a finding type | | `GET /api/v2/assets/findings/{finding_type}/long_remediation.md` | Returns the long remediation text for a finding type | ## Error handling The integration calls for centralized API error handling with logging and graceful recovery when possible. | Status | Meaning | Expected behavior | | - | - | - | | `400` | Bad Request | Log the error and stop the current request gracefully | | `401` | Unauthorized | Log the authentication failure and skip the request | | `403` | Forbidden | Log the authorization failure and skip the request | | `404` | Not Found | Log the missing endpoint or resource and skip retry | | `429` | Too Many Requests | Log the rate-limit condition and apply a cooldown before a later run | | `5xx` | Server Error | Log the failure and treat it as a critical synchronization error | If an API request fails, the integration skips the failed operation, logs the error, and retries during a later synchronization interval. ## Platform dependencies The integration relies on the following external dependencies: | Dependency | Role | | - | - | | **BloodHound Enterprise API** | Source of attack path findings and finding metadata | | **Atlassian Forge and Jira Cloud API** | Hosts the app runtime, configuration UI, and Jira issue handling | # Troubleshoot the Jira integration Source: https://bloodhound.specterops.io/integrations/atlassian/jira/troubleshoot Learn how to diagnose and resolve common Jira integration issues with BloodHound Enterprise. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Use this page to troubleshoot common issues with the BloodHound Enterprise Jira integration. Start with the connection test, then validate the project configuration and synchronization scope. ## Test Connection fails If **Test Connection** fails, the most common causes are: * The **Domain**, **Token ID**, or **Token Key** value is incorrect * The BloodHound Enterprise token is expired or revoked * The BloodHound Enterprise URL does not include `https://` * Jira Cloud cannot reach the BloodHound Enterprise tenant To resolve the issue: 1. Verify the **Domain**, **Token ID**, and **Token Key** values in the **Connection Settings** tab. 2. Confirm that the API token is still active in BloodHound Enterprise. 3. Generate a new token if the current token is invalid or compromised. 4. Confirm that the BloodHound Enterprise tenant is reachable from the internet. ## Configuration tab is unavailable The **Configuration** tab stays unavailable until the connection test succeeds. To unlock the configuration options: 1. Re-enter the Jira connection values. 2. Run **Test Connection** again. 3. Wait for Jira to confirm that it retrieved the available BloodHound Enterprise domains. ## Jira does not create issues If the integration does not create issues after a synchronization, check the following: * At least one **BHE Domain** is selected * At least one **BHE Zone** is selected * BloodHound Enterprise currently has active findings in the selected domains and zones * The issues were not already created by an earlier synchronization To verify the configuration: 1. Open the **Configuration** tab. 2. Confirm the selected domains and zones. 3. Click **Run Sync Now**. 4. Check the target Jira project again after the synchronization starts. ## Jira uses the wrong priority or due date The integration applies the priority and due date values from your configured mappings. To correct the issue: 1. Review the **Priority Mapping** values for each BloodHound Enterprise zone. 2. Review the **Due Days** values for the Jira priorities that the integration assigns. 3. Save the updated configuration. 4. Run a manual synchronization to apply the new mapping to future updates and new issues. ## Auto-closure does not close remediated issues If remediated findings do not close in Jira, the most common causes are: * **Enable Auto-Closure** is disabled * The configured cleanup interval has not elapsed yet * The Jira workflow does not provide a transition to **Done** * The integration has not completed a recent synchronization for the configured scope To resolve the issue: 1. Confirm that **Enable Auto-Closure** is enabled. 2. Review the configured **Cleanup Interval**. 3. Confirm that the Jira project workflow supports the transition to **Done**. 4. Run a manual synchronization, then wait for the hourly cleanup scheduler to evaluate orphaned issues. ## Jira Service Management request types do not appear If the request type selector is empty in Jira Service Management: 1. Confirm that the target project is a Jira Service Management project. 2. Confirm that the project has incident request types available. 3. Refresh the configuration page and rerun **Test Connection** if needed. ## Common configuration messages The following error messages may appear in the configuration screen when performing actions: | Message | Cause | Solution | | - | - | - | | `Sync already in progress` | Another synchronization is still running | Wait for the current synchronization to finish before you run another manual synchronization | | `No domains configured` | No BloodHound Enterprise domains are selected | Select one or more domains in the **Configuration** tab and save the change | | `Invalid domain format` | The BloodHound Enterprise URL is malformed | Enter the full tenant URL and include `https://` | # Use Jira with BloodHound Enterprise Source: https://bloodhound.specterops.io/integrations/atlassian/jira/use Learn how to review and manage Jira issues created from BloodHound Enterprise findings. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) After you complete the [installation and configuration](/integrations/atlassian/jira/configure), the integration synchronizes BloodHound Enterprise findings into Jira every five minutes. This page explains how the synchronized issues are structured and how to work with them in Jira. ## Jira issue model The integration creates one Jira issue or incident for each synchronized BloodHound Enterprise finding. | Jira object | Purpose | | - | - | | **Issue or incident** | Represents one BloodHound Enterprise finding | | **Priority** | Reflects the zone-to-priority mapping that you configured | | **Due date** | Uses the due-day rule for the mapped Jira priority | | **Labels** | Adds zone and domain labels so you can filter and report on the findings | | **Auto-closure comment** | Explains that the finding was remediated when Jira closes the issue automatically | > [!NOTE] > > If you connect a Jira Service Management project, the integration uses the configured request type and incident workflow instead of a standard Jira Software issue type. ## Jira issue format When the integration creates a Jira issue, it follows a specific format to ensure that all relevant information is included: > [tab] Summary > > The issue summary includes the zone, domain, affected principal, and finding ID. > > **Example**: \[Tier-Zero] CORP.LOCAL - Administrator (12345) > [tab] Description > > The issue description includes the finding title, Graph View link, finding description, impact details, context, and remediation guidance. > > | Field | Contents | > | - | - | > | **Finding Title** | The name of the attack path finding, such as *GenericWrite Privileges on Tier Zero Objects* | > | **BHE Link** | A direct link to the finding in the BloodHound Enterprise graph view | > | **Description** | An explanation of what the privilege allows and why it is a concern | > | **Impact** | The number of affected assets and exposure paths | > | **Context** | The severity level, finding type, environment details, and finding IDs | > | **Affected Entities** | Details about the source and target principals involved, including name, type, domain, object ID, and status | > | **Relationship** | Information about the relationship, including whether it is ACL-based and inherited | > | **Status** | Whether the finding is accepted plus its creation and update timestamps | > | **Remediation Guidance** | Both the quick fix and the detailed, step-by-step remediation steps | > [tab] Labels > > Labels include zone and domain identifiers, which allow you to filter and report on the findings in Jira. > > * **Example (zone)**: tier-zero, tier-one, hygiene > > * **Example (domain)**: corp-local > [tab] Dates > > The dates include the start date, which Jira sets when it creates the issue, and the due date, which the integration calculates from the configured priority mapping. > > **Example**: > > * Start date: Jun 20, 2026 > * Due date: Jun 23, 2026 > [tab] Priority > > The priority reflects the zone-to-priority mapping in the integration's configuration settings. > > **Example**: Highest ## Synchronization behavior The integration keeps Jira aligned with BloodHound Enterprise automatically: * It runs synchronization every five minutes * It creates issues for new findings and updates existing issues when finding details change * It avoids duplicates by tracking synchronization metadata on the Jira issues * It runs a cleanup scheduler hourly and closes orphaned issues when **Auto-closure** is enabled and the cleanup interval is met > [!NOTE] > > No action is required for automatic synchronization. The integration will automatically create and update Jira issues based on the configured settings. > > If you need to manually trigger a synchronization, you can do so from the integration's [configuration settings](/integrations/atlassian/jira/configure#configure-synchronization-settings) in Jira. ## Review synchronized findings Reviewing the synchronized findings in Jira allows you to triage and manage security issues identified by BloodHound Enterprise. Use the synchronized issues the same way you manage other operational work in Jira: * Filter by labels, priority, or due date to focus on the findings you want to triage first. * Assign findings to the team that owns remediation * Update workflow state as triage and remediation progress * Add comments or work notes that document investigation and closure decisions * Use the Graph View link to move from Jira back to the BloodHound Enterprise finding when you need more context # BloodHound JSON Formats Source: https://bloodhound.specterops.io/integrations/bloodhound-api/json-formats ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) BloodHound requires collected data to be in in a specific JSON format, which is documented in this article. The collectors for BloodHound Enterprise (BHE) and BloodHound Community Edition (BHCE) will format the collected data correctly. Enterprise collectors run continuously and automatically upload the data to the API endpoint `/ingest`, whereas Community Edition collectors drop the JSON data to disk which then has to be uploaded manually to BloodHound via Administration → File Ingest, or to the API endpoint `/file-upload`. Users of BloodHound Enterprise can also manually upload JSON data collected from Community Edition collectors. Users of both BHE and BHCE may also create their own JSON files and upload them to BloodHound. ## Basic JSON Format The JSON format contains two main objects\*\*:\*\* -**data** -An array of collected objects. One JSON file contains only one type of object, for example computers. * **meta** * An object containing meta-information about the collection and the `data` array. * **methods** is a bitmask of the collection method used. This is used for the BloodHound ingestor to know what data to expect. Possible values can be found in models.go as `CollectionMethods`. * **type** describes the type of objects in the data array. One JSON file can only contain one object type. Possible values can be found in models.go as `DataType`. * **count** is an integer representing the number of objects in the `data` object array. * **version** is an integer representing the version of the JSON format. ``` { "data": [ { [...] } ], "meta": { "methods": 127999, "type": "users", "count": 1, "version": 5 } } ``` ## Detailed JSON Format JSON data of each node type will vary greatly. Examples of detailed JSON formats for some node types can be found in the latest version directory [in the BHCE's repository.](https://github.com/SpecterOps/BloodHound/tree/main/cmd/api/src/test/fixtures/fixtures) # Work With the BloodHound API Source: https://bloodhound.specterops.io/integrations/bloodhound-api/working-with-api ![Enterprise and Community Edition badge](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) The BloodHound product family are API-first products, meaning everything functions on the underlying API layer. All data displayed in the portal, all commands given to SharpHound or AzureHound Enterprise collectors, and all data uploaded pass through the BloodHound APIs. Customers may utilize these APIs to extend the use of the BloodHound product to function with other tools in their environment. This article will show how to access the API and include some example use cases. ## API Documentation Our API reference is available [here](../../reference/). Additionally, API documentation is hosted utilizing Swagger behind authentication within your tenant environment. After logging in, you may access it by clicking the cog in the top right corner of your tenant and clicking **API Explorer.** ![API Explorer menu in the BloodHound UI](https://mintcdn.com/specterops/oaqTTRoKDVQ7JntM/assets/image1-1.png?fit=max\&auto=format\&n=oaqTTRoKDVQ7JntM\&q=85\&s=c4a22b70b59d0aa2f5a17f8b48124b3d) ## Authentication The BloodHound API accepts two forms of authentication, each with its own limitations for security. * A JWT is generated through the login process using your email address, password, and 2FA token (or SAML-based authentication flow). These JWT tokens are active for 8 hours and are primarily for end-user access to the web-based application. * An API key/ID pair is generated within the Administration interface. These do not expire and are primarily for long-term API integrations. There are two methods for creating API key/ID pairs, each serving a different purpose: * Non-personal API key/ID pairs for integrations like [Splunk](/integrations/splunk/siem/install) * [Personal API key/ID pairs](#create-a-personal-api-key-and-id-pair) for day-to-day use like [BloodHound Operator](https://www.youtube.com/watch?v=9Og-6_qyw_A) ### Create a non-personal API key/ID pair Administrators can create non-personal BloodHound users solely meant for API integrations. 1. Log in as a user with the Administrator role. 2. [Create a new BloodHound user](../../manage-bloodhound/auth/users-and-roles). * Give the user a long and unique password. 3. ***Optional recommendation:*** Log in as the newly created user and enable MFA. 4. ***Optional recommendation:*** Securely dispose of the password and MFA configuration as they are not needed for authenticating with a key/ID pair and they can be reset by an Administrator if needed. 5. As the Administrator, go back to the **Manage Users** page. 6. On the API user, click the hamburger menu > **Generate / Revoke API Tokens**. ![Generate API Tokens](https://mintcdn.com/specterops/t-Kb-qOfqpgsWjX4/assets/image1-2.png?fit=max\&auto=format\&n=t-Kb-qOfqpgsWjX4\&q=85\&s=569a4d2cb1e2e9074647089ff36671de) 7. Click **Create Token**. 8. Give the token a descriptive name and click **Save**. 9. Save the presented API key/ID pair and click **Close**. * **The API key will never be shown again. If you lose it, you must revoke the previous key and regenerate a new one.** 10. You may now use this key ID pair for [calling the API](#call-the-api) ### Create a personal API Key and ID pair Create a personal API Key/ID pair from the **My Profile** section. 1. In the top-right corner click **My Profile**. ![Create Token](https://mintcdn.com/specterops/t-Kb-qOfqpgsWjX4/assets/image1-3.png?fit=max\&auto=format\&n=t-Kb-qOfqpgsWjX4\&q=85\&s=cec0c45dc72f28c78cfc178b05990658) 2. Click **API Key Management**. ![API Key Management](https://mintcdn.com/specterops/t-Kb-qOfqpgsWjX4/assets/image1-7.png?fit=max\&auto=format\&n=t-Kb-qOfqpgsWjX4\&q=85\&s=5d5922fa2aa29d657c874a92fc87eb1c) 3. Click **Create Token**. ![Create Token](https://mintcdn.com/specterops/t-Kb-qOfqpgsWjX4/assets/image1-4.png?fit=max\&auto=format\&n=t-Kb-qOfqpgsWjX4\&q=85\&s=512b5ffe6e64ac205061960a9ad14ad5) 4. Give the token a descriptive name and click **Save**. ![Create Token](https://mintcdn.com/specterops/t-Kb-qOfqpgsWjX4/assets/image1-5.png?fit=max\&auto=format\&n=t-Kb-qOfqpgsWjX4\&q=85\&s=87fb6089ba49e52ecdf8ebfee204daec) 5. Save the presented API key/ID pair and click **Close**. * The API key will never be shown again. If you lose it, you must revoke the previous key and regenerate a new one. ![API Key Pair](https://mintcdn.com/specterops/t-Kb-qOfqpgsWjX4/assets/image1-6.png?fit=max\&auto=format\&n=t-Kb-qOfqpgsWjX4\&q=85\&s=4ec32358a67c796dcca4014507823284) Use this key/ID pair for calling the API. ## Call the API Once you have your token, you can call the BloodHound API. ### Use a JWT/bearer token For quick tests or one-time calls, the JWT used by your browser may be the simplest route. The API accepts calls using the following header structure in the HTTP request: ```json theme={null} 'Authorization': Bearer $JWT_TOKEN ``` If you open the **Network** tab in your browser, you'll see calls against the API made using this structure. ### Use your API Key/ID pair For long-running API integrations, BloodHound's API uses hash-based message authentication code (HMAC) authentication using the API key as the secret key to verify the authenticity and integrity of the request. Calls against the API must include the following in the signed hash: * API key * HTTP method and URI * Current time * Body content (if applicable to the request) Calls against the API would need to include the following headers in the HTTP request: ```json theme={null} 'Authorization': bhesignature $TOKEN_ID 'RequestDate': $RFC3339_DATETIME 'Signature': $BASE64ENCODED_HMAC_SIGNATURE ``` By validating the hash signature against the request, the API can validate that the calls were made by the original requestor, within a reasonable timeframe, against the proper API endpoint, including the original content body, and that no replay or content modification has occurred. For a complete implementation example, see [`apiclient.py`](https://github.com/SpecterOps/bloodhound-docs/blob/main/docs/assets/apiclient.py) in the `specterops/bloodhound-docs` GitHub repository. The following code snippet from the `apiclient.py` script illustrates the authentication process: ```python theme={null} def _request(self, method: str, uri: str, body: Optional[bytes] = None) -> requests.Response: # Digester is initialized with HMAC-SHA-256 using the token key as the HMAC digest key. digester = hmac.new(self._credentials.token_key.encode(), None, hashlib.sha256) # OperationKey is the first HMAC digest link in the signature chain. This prevents replay attacks that seek to # modify the request method or URI. It is composed of concatenating the request method and the request URI with # no delimiter and computing the HMAC digest using the token key as the digest secret. # # Example: GET /api/v2/test/resource HTTP/1.1 # Signature Component: GET/api/v2/test/resource digester.update(f'{method}{uri}'.encode()) # Update the digester for further chaining digester = hmac.new(digester.digest(), None, hashlib.sha256) # DateKey is the next HMAC digest link in the signature chain. This encodes the RFC3339 formatted datetime # value as part of the signature to the hour to prevent replay attacks that are older than max two hours. This # value is added to the signature chain by cutting off all values from the RFC3339 formatted datetime from the # hours value forward: # # Example: 2020-12-01T23:59:60Z # Signature Component: 2020-12-01T23 datetime_formatted = datetime.datetime.now().astimezone().isoformat('T') digester.update(datetime_formatted[:13].encode()) # Update the digester for further chaining digester = hmac.new(digester.digest(), None, hashlib.sha256) # Body signing is the last HMAC digest link in the signature chain. This encodes the request body as part of # the signature to prevent replay attacks that seek to modify the payload of a signed request. In the case # where there is no body content the HMAC digest is computed anyway, simply with no values written to the # digester. if body is not None: digester.update(body) # Perform the request with the signed and expected headers return requests.request( method=method, url=self._format_url(uri), headers={ 'User-Agent': 'bhe-python-sdk 0001', 'Authorization': f'bhesignature {self._credentials.token_id}', 'RequestDate': datetime_formatted, 'Signature': base64.b64encode(digester.digest()), 'Content-Type': 'application/json', }, data=body, ) ``` Examples for other languages: * [PowerShell](https://github.com/SpecterOps/bloodhound-docs/blob/main/docs/assets/Get-BloodHoundAPISignature.ps1) * [C#](https://github.com/SpecterOps/bloodhound-docs/blob/main/docs/assets/BloodHoundAPIClient.cs) # Integrate BloodHound Enterprise with Cortex XSOAR Source: https://bloodhound.specterops.io/integrations/cortex-xsoar/configure Learn how to integrate BloodHound Enterprise with Cortex XSOAR by Palo Alto Networks. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) The BloodHound Enterprise integration for [Cortex XSOAR](https://www.paloaltonetworks.com/resources/datasheets/cortex-xsoar-for-mssps#:~:text=Cortex%20XSOAR%C2%AE%EF%B8%8F%20is%20a,of%20services%20for%20their%20clients.) lets you ingest and manage BloodHound Enterprise attack path findings in Cortex XSOAR as incidents. Use this integration to: * Automatically convert BloodHound Enterprise attack path findings into Cortex XSOAR incidents * Attach remediation guidance and posture context to incidents * Run playbooks and custom commands to analyze, triage, and remediate findings Key capabilities include: * Automated incident creation with titles, descriptions, remediation guidance, impact/exposure metrics, severity, and domain/environment context * Playbook linking per incident to run custom analysis commands * Custom commands: * Object ID lookup by name * Asset information by object ID * Path analysis between two nodes in the BloodHound graph ## Prerequisites Before installing and configuring the Cortex XSOAR integration, ensure that you have the following: * Cortex XSOAR instance with an admin account * BloodHound Enterprise tenant * BloodHound Enterprise API key/ID pair > [!NOTE] > > We recommend a [non-personal API key/ID pair](/integrations/bloodhound-api/working-with-api#create-a-non-personal-api-key%2Fid-pair). ## Configure Cortex XSOAR Set up the SpecterOps BloodHound Enterprise integration instance in Cortex XSOAR. **1. Open integration instances** 1. Log in to your Cortex XSOAR instance. 2. Go to **Settings & Info** > **Settings** > **Integrations** > **Instances**. ![Cortex XSOAR Integrations & Instances page with SpecterOps integration visible.](https://mintcdn.com/specterops/0ur1vlpDm_tTLi9J/images/integrations/cortex-soar/open-instances.png?fit=max\&auto=format\&n=0ur1vlpDm_tTLi9J\&q=85\&s=cb3a20641e8aca8f6e7313467c0d7a83) **2. Add SpecterOpsBHE instance** 1. Search for the SpecterOps integration. 2. Click **Add Instance** for the SpecterOpsBHE integration. 3. Configure settings. | Field | Description | Required? | | - | - | :-: | | **Name** | Instance display name (default can be modified) | Yes | | **BloodHound Enterprise Domain** | Your tenant domain, e.g., `https://example.bloodhoundenterprise.io` | Yes | | **Token ID** | API token ID from BloodHound Enterprise | Yes | | **Token Key** | API token key from BloodHound Enterprise | Yes | | **Proxy URL** | Proxy URL to reach BloodHound Enterprise | No | | **Proxy URL Username** | Username for proxy authentication | No | | **Proxy URL Password** | Password for proxy authentication | No | | **Finding Environment** | Scope findings to one environment | No | | **Finding Category** | Scope findings to one category | No | > [!NOTE] > > By default, **Finding Environment** and **Finding Category** are set to **All**. ![Cortex XSOAR instance configuration showing fetch settings.](https://mintcdn.com/specterops/0ur1vlpDm_tTLi9J/images/integrations/cortex-soar/add-bhe-instance.png?fit=max\&auto=format\&n=0ur1vlpDm_tTLi9J\&q=85\&s=4abca928595e0bbb77e8a550784c2ea1) **3. Enable fetching and schedule interval** 1. Check the **Fetches incidents** option (required). 2. Set **Incident Type** to "SpecterOpsBHE Attack Path" (optional). 3. Set the **Incidents Fetch Interval** to your preferred schedule (required). > [!NOTE] > > The default fetch interval is 10 minutes. ![Cortex XSOAR instance configuration detail view.](https://mintcdn.com/specterops/0ur1vlpDm_tTLi9J/images/integrations/cortex-soar/schedule.png?fit=max\&auto=format\&n=0ur1vlpDm_tTLi9J\&q=85\&s=73c79876ada7164dafbd77bc5dbd8d7a) **4. Test and save the configuration** 1. Click **Test** to verify connectivity and credentials. 2. Close the modal, then **Save** the instance. > [!TIP] > > "Success" indicates working parameters and connectivity. "Error" indicates invalid parameters or connection failure. ![Cortex XSOAR instance save confirmation.](https://mintcdn.com/specterops/0ur1vlpDm_tTLi9J/images/integrations/cortex-soar/test-connection.png?fit=max\&auto=format\&n=0ur1vlpDm_tTLi9J\&q=85\&s=a347d40243585d908c825e034263e48a) **5. Manage multiple domains or disable instances** * To add additional BloodHound Enterprise domains, create more instances with **Add Instance**. * To stop fetching, uncheck **Enable** to disable the instance. ![List of multiple SpecterOpsBHE instances in Cortex XSOAR.](https://mintcdn.com/specterops/0ur1vlpDm_tTLi9J/images/integrations/cortex-soar/manage-or-disable.png?fit=max\&auto=format\&n=0ur1vlpDm_tTLi9J\&q=85\&s=8c1ef97337b4b108cdbde56583a2fff8) # Cortex XSOAR integration design reference Source: https://bloodhound.specterops.io/integrations/cortex-xsoar/reference Technical reference and design details for the BloodHound Enterprise Cortex XSOAR integration. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) This document provides technical design details and API reference information for the BloodHound Enterprise integration with Cortex XSOAR. For configuration instructions, see [Configure the integration](/integrations/cortex-xsoar/configure). ## Integration type The SpecterOps BloodHound Enterprise integration is a **vulnerability management** integration that enables automated retrieval of attack path findings from BloodHound Enterprise into Cortex XSOAR. This streamlines incident creation and investigation for Active Directory and Microsoft Azure environments. ## Use cases > [accordion] Automated attack path detection and incident creation > > * Automatically fetch new attack paths from BloodHound Enterprise > * Create incidents in XSOAR for each detected attack path > * Filter incidents by domain and finding type > * Track attack paths with granular timestamp-based deduplication > [accordion] Asset information retrieval > > * Retrieve detailed information about Active Directory and Azure assets > * Enrich incident data with asset details including object IDs, names, and properties > * Support for both directory types (User, Computer, Group, Container, Domain, GPO, etc.) and Azure types (AZApp, AZGroup, AZUser, AZRole, AZTenant, AZServicePrincipal, etc.) > [accordion] Path analysis and investigation > > * Check if attack paths exist between two principals in the environment > * Search for objects by name to retrieve their object IDs > * Analyze relationships between principals and assets > [accordion] Multi-domain and multi-finding type support > > * Support for multiple Active Directory domains > * Filter by specific domains or finding types > * Track attack paths per domain and finding type combination ## Authentication The integration uses HMAC-based signature authentication with the following process: 1. Generate HMAC signature using SHA-256 with the token key 2. Include token ID, request date, and signature in request headers 3. Format: `Authorization: bhesignature {token_id}` 4. Include `RequestDate` header in ISO format 5. Include `Signature` header as base64-encoded HMAC digest ## Configuration parameters | Parameter | Display Name | Type | Required | Description | | - | - | - | - | - | | `url` | Server URL | String | Yes | The BloodHound Enterprise server URL (e.g., `bhe.example.com` or `https://bhe.example.com`) | | `token_id` | Token ID | String | Yes | The API token ID for authentication | | `token_key` | Token Key | Password | Yes | The API token key for HMAC signature authentication | | `finding_domain` | Selected Environments | String | No | Comma-separated list of domain names to monitor, or "all" for all domains. Default: "all" | | `finding_category` | Selected Finding Types | String | No | Comma-separated list of finding types to monitor, or "all" for all types. Default: "all" | | `incidentFetchInterval` | Incident Fetch Interval (minutes) | Number | No | The interval in minutes between incident fetches. Default: 10 minutes | | `isFetch` | Fetch incidents | Boolean | No | Enable automatic incident fetching. Default: false | | `proxy_url` | Custom Proxy URL | String | No | Custom proxy server URL (optional) | | `proxy_username` | Proxy Username | String | No | Username for proxy authentication (if required) | | `proxy_password` | Proxy Password | Password | No | Password for proxy authentication (if required) | | `insecure` | Trust any certificate (not secure) | Boolean | No | Skip SSL certificate verification. Default: false | | `proxy` | Use system proxy settings | Boolean | No | Use system proxy settings. Default: false | ## Commands and outputs ### test-module Tests the connection to the BloodHound Enterprise API. **Arguments**: None **Context outputs**: None **Human-readable output**: * Success: "ok" * Failure: Error message indicating the specific failure reason (Unauthorized, Bad Request, Forbidden, Server Error, DNS resolution error, etc.) ### bhe-get-object-id Retrieves object IDs for one or more objects by their names. **Arguments**: | Argument | Type | Description | Required | | - | - | - | - | | `object_names` | String | Comma-separated list of object names to search for | Yes | **Context outputs**: | Path | Type | Description | | - | - | - | | `SpecterOpsBHE.Object.Name` | String | The object name that was searched | | `SpecterOpsBHE.Object.Status` | String | Status of the search ("success" or "error") | | `SpecterOpsBHE.Object.Message` | String | Status message | | `SpecterOpsBHE.Object.Data` | Array | Array of matching objects with id, name, and type | **Human-readable output**: Object ID Search Results | Object Name | Status | Object ID | Type | | - | - | - | - | | `user@example.com` | success | S-1-5-21-... | User | | `COMPUTER01` | success | S-1-5-21-... | Computer | ### bhe-fetch-asset-info Retrieves detailed information about one or more assets by their object IDs. **Arguments**: | Argument | Type | Description | Required | | - | - | - | - | | `object_ids` | String | Comma-separated list of object IDs to fetch information for | Yes | **Context outputs**: | Path | Type | Description | | - | - | - | | `SpecterOpsBHE.Asset.ObjectId` | String | The object ID | | `SpecterOpsBHE.Asset.Name` | String | Asset name | | `SpecterOpsBHE.Asset.Type` | String | Asset type (User, Computer, AZUser, AZApp, etc.) | | `SpecterOpsBHE.Asset.Status` | String | Status of the fetch operation | | `SpecterOpsBHE.Asset.Data` | Object | Complete asset data including properties and related entity counts | **Human-readable output**: Asset Information | Object ID | Name | Type | Status | | - | - | - | - | | S-1-5-21-... | `user@example.com` | User | success | > [!NOTE] > > For Azure objects, the response includes additional related entity counts such as group membership counts, role assignments, inbound/outbound control counts, and abusable app role assignments (for service principals). ### bhe-does-path-exist Checks if an attack path exists between two principals in the BloodHound Enterprise graph. **Arguments**: | Argument | Type | Description | Required | | - | - | - | - | | `FromPrincipal` | String | Object ID of the source principal | Yes | | `ToPrincipal` | String | Object ID of the target principal | Yes | **Context outputs**: | Path | Type | Description | | - | - | - | | `SpecterOpsBHE.Path.Exists` | Boolean | Whether a path exists between the principals | | `SpecterOpsBHE.Path.FromPrincipal` | String | Source principal object ID | | `SpecterOpsBHE.Path.ToPrincipal` | String | Target principal object ID | | `SpecterOpsBHE.Path.Status` | String | Status of the path check operation | **Human-readable output**: Path Existence Check | From Principal | To Principal | Path Exists | Status | | - | - | - | - | | S-1-5-21-... | S-1-5-21-... | true | success | ### fetch-incidents Fetches attack path findings from BloodHound Enterprise and creates incidents in XSOAR (automatically executed when `isFetch` is enabled). **Arguments**: None **Context outputs**: | Path | Type | Description | | - | - | - | | `SpecterOpsBHE.Incident.Name` | String | Incident name (format: `{INSTANCE} - {DOMAIN} - {PATH_TITLE}`) | | `SpecterOpsBHE.Incident.Type` | String | Incident type: "SpecterOpsBHE Attack Path" | | `SpecterOpsBHE.Incident.Severity` | Number | Severity level (1=Low, 2=Medium, 3=High, 4=Critical) | | `SpecterOpsBHE.Incident.AttackId` | String | Unique attack path ID | | `SpecterOpsBHE.Incident.Domain` | String | Domain name where the attack path was detected | | `SpecterOpsBHE.Incident.PathTitle` | String | Human-readable title of the attack path | | `SpecterOpsBHE.Incident.FindingType` | String | Finding type identifier | | `SpecterOpsBHE.Incident.ImpactPercentage` | Number | Impact percentage (0-100) | | `SpecterOpsBHE.Incident.ImpactCount` | Number | Number of impacted principals | | `SpecterOpsBHE.Incident.ExposurePercentage` | Number | Exposure percentage (0-100) | | `SpecterOpsBHE.Incident.ExposureCount` | Number | Number of exposed principals | | `SpecterOpsBHE.Incident.ImpactedPrincipal` | String | Object ID of the impacted principal | | `SpecterOpsBHE.Incident.ImpactedPrincipalName` | String | Name of the impacted principal | | `SpecterOpsBHE.Incident.ImpactedPrincipalKind` | String | Type of the impacted principal | | `SpecterOpsBHE.Incident.ImpactedPrincipalObjectId` | String | Object ID of the impacted principal | | `SpecterOpsBHE.Incident.NonTierZeroPrincipal` | String | Object ID of the non-tier-zero principal (if applicable) | | `SpecterOpsBHE.Incident.NonTierZeroPrincipalName` | String | Name of the non-tier-zero principal (if applicable) | | `SpecterOpsBHE.Incident.ObjectIds` | String | Comma-separated list of object IDs involved | | `SpecterOpsBHE.Incident.ObjectNames` | String | Comma-separated list of object names involved | | `SpecterOpsBHE.Incident.ShortDescription` | String | Short description of the attack path | | `SpecterOpsBHE.Incident.ShortRemediation` | String | Short remediation guidance | | `SpecterOpsBHE.Incident.LongRemediation` | String | Detailed remediation guidance | | `SpecterOpsBHE.Incident.CreatedAt` | String | Timestamp when the attack path was created | | `SpecterOpsBHE.Incident.UpdatedAt` | String | Timestamp when the attack path was last updated | | `SpecterOpsBHE.Incident.Accepted` | Boolean | Whether the attack path has been accepted | | `SpecterOpsBHE.Incident.AcceptedUntil` | String | Date until which the attack path is accepted (if applicable) | **Fetch logic**: 1. **Lock Mechanism**: Uses integration context to prevent concurrent fetch operations 2. **Domain Filtering**: Fetches available domains and filters by `finding_domain` parameter 3. **Finding Type Collection**: Collects available finding types for each domain 4. **Finding Type Filtering**: Filters finding types by `finding_category` parameter 5. **Path Metadata Fetching**: Retrieves titles, descriptions, and remediation guidance for each finding type 6. **Incremental Fetching**: Uses timestamp-based filtering to only fetch new attack paths since last run 7. **Granular Tracking**: Tracks timestamps per `{domain_name}:{finding_type}` combination for precise deduplication 8. **Pagination**: Handles pagination for large result sets (up to 1000 results per page) 9. **Incident Creation**: Creates one incident per attack path with all relevant metadata ## API endpoints The integration uses the following BloodHound Enterprise API v2 endpoints: | Endpoint | Path | Description | | - | - | - | | `available_domain` | `/api/v2/available-domains` | Get list of available domains | | `search` | `/api/v2/search?q={query}` | Search for objects by name | | `dictionary_types` | `/api/v2/{obj_type}s/{object_id}` | Get directory object details | ## Supported object types ### Active Directory types * User * Computer * Group * Container * Domain * GPO (Group Policy Object) * Aiaca * Rootca * Enterpriseca * Ntauthstore * Certtemplate * OU (Organizational Unit) ### Azure types * AZApp (Azure Application) * AZGroup (Azure Group) * AZUser (Azure User) * AZRole (Azure Role) * AZTenant (Azure Tenant) * AZServicePrincipal (Azure Service Principal) * AZAutomationAccount (Azure Automation Account) ## Error handling The integration implements comprehensive error handling with specific exception types: | Exception Type | HTTP Status | Description | | - | - | - | | `BloodHoundBadRequestException` | 400 | Invalid request parameters | | `BloodHoundUnauthorizedException` | 401 | Authentication failure | | `BloodHoundForbiddenException` | 403 | Insufficient permissions | | `BloodHoundNotFoundException` | 404 | Resource not found | | `BloodHoundRateLimitException` | 429 | Rate limit exceeded | | `BloodHoundServerErrorException` | 500+ | Server errors | ### Retry logic * Automatic retry for rate limit (429) and server errors (500, 502, 503, 504) * Maximum of 3 retry attempts * Immediate retry without exponential backoff ### Memory limitation handling * Gracefully handles memory limitation errors for large queries (especially for AZTenant) * Returns appropriate error messages when memory limits are encountered * Sets related entity counts to 0 when memory limitations occur # Use Cortex XSOAR with BloodHound Enterprise Source: https://bloodhound.specterops.io/integrations/cortex-xsoar/use Learn how to use Cortex XSOAR with BloodHound Enterprise to monitor and manage attack path findings. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) After you configure the integration, Cortex XSOAR begins fetching BloodHound Enterprise attack path findings as incidents. Use the sections below to monitor ingestion, view incidents, and inspect details. > [!TIP] > > See [install and configure](/integrations/cortex-xsoar/configure) for setup steps and fetch interval settings. ## Monitor ingestion and logs You can view instance logs to confirm incidents are being fetched. ![Cortex XSOAR instance logs showing incident fetch activity for SpecterOpsBHE integration.](https://mintcdn.com/specterops/0ur1vlpDm_tTLi9J/images/integrations/cortex-soar/monitor-logs.png?fit=max\&auto=format\&n=0ur1vlpDm_tTLi9J\&q=85\&s=a381810f36ea44b0021295671de3a776) ## View incidents Open the **Incidents** view to see all fetched attack path incidents. > [!TIP] > > Click any incident to open its details. ![Cortex XSOAR Incidents list showing SpecterOpsBHE attack path incidents.](https://mintcdn.com/specterops/0ur1vlpDm_tTLi9J/images/integrations/cortex-soar/view-incidents.png?fit=max\&auto=format\&n=0ur1vlpDm_tTLi9J\&q=85\&s=d864014ad0e14f8aa5f9915ee84b1e50) ## Incident details The incident details page includes key information about the attack path and related context: * Incident name and ID * Case details * Quick View side panel with labels containing attack path data ![Incident details view showing case details and Quick View labels for attack path data.](https://mintcdn.com/specterops/0ur1vlpDm_tTLi9J/images/integrations/cortex-soar/incident-details.png?fit=max\&auto=format\&n=0ur1vlpDm_tTLi9J\&q=85\&s=6089c8df4736d25ce0158c5052aa3f33) ## Work Plan and playbook Click the **Work Plan** tab to view the playbook. The SpecterOpsBHE playbook runs custom commands to retrieve object-related information and analyze attack paths. You can click each task or script to view its results. ![Work Plan view showing the playbook tasks and scripts executed for the incident.](https://mintcdn.com/specterops/0ur1vlpDm_tTLi9J/images/integrations/cortex-soar/workplan-playbook.png?fit=max\&auto=format\&n=0ur1vlpDm_tTLi9J\&q=85\&s=44ee24cfd8e4e9e230333555030298ca) ## DBot panel Use the DBot panel to review execution context and results. Locate the **root** section and expand it to see underlying data and command outputs related to the incident. ![DBot panel expanded to show root context and command outputs for the incident.](https://mintcdn.com/specterops/0ur1vlpDm_tTLi9J/images/integrations/cortex-soar/dbot-panel.png?fit=max\&auto=format\&n=0ur1vlpDm_tTLi9J\&q=85\&s=d5587b99137a6341ec3d1b58dd51d6e4) # Integrate BloodHound Enterprise in Google SecOps Source: https://bloodhound.specterops.io/integrations/google-secops/configure Learn how to install and configure the BloodHound Enterprise integration and connector in Google SecOps. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) The BloodHound Enterprise integration for Google SecOps lets you ingest Attack Path findings into Google SecOps so analysts can investigate and respond without leaving the platform. This guide shows you how to install the integration from the Google Marketplace, configure the integration instance, and enable the connector that creates cases, alerts, and events. Use this integration to: * Create Google SecOps cases from BloodHound Enterprise Attack Path findings * Investigate findings with BloodHound Enterprise asset lookup and path validation actions * Group related alerts by source domain to keep investigations organized ## Prerequisites Before you begin, ensure that you have the following: * A Google SecOps tenant * A BloodHound Enterprise tenant * A BloodHound Enterprise [non-personal API key/ID pair](/integrations/bloodhound-api/working-with-api#create-a-non-personal-api-key%2Fid-pair) with the **Auditor** role ## Install and configure the integration Install the integration instance in Google SecOps and connect it to your BloodHound Enterprise tenant. **1. Install the integration** 1. Log in to your Google SecOps tenant with an account that has permission to install integrations. 2. Go to **Content Hub** > **Response Integrations**. 3. Search for `BloodHound Enterprise - Google SecOps`. 4. Click **Install**. 5. Click **Configure**. **2. Enter BloodHound Enterprise connection details** Configure the required fields for the integration instance: | Field | Description | | - | - | | **BloodHound Enterprise Server** | The URL of your BloodHound Enterprise tenant | | **Token ID** | The API token ID used to authenticate requests | | **Token Key** | The API token key used to sign and authorize requests | Save the configuration after you enter the required values. ![BloodHound Enterprise - Google SecOps integration configuration form.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-2-1-integration-configure.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=fded752f6978aac928d71a5d9f1fe465) **3. Verify the integration configuration** 1. Click **Test** to validate the server URL and API credentials. 2. Confirm that the test succeeds before you continue. ![Successful integration test result in Google SecOps.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-2-2-test-success.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=076c42b15ee215ae41dcdf925e4600fa) > [!NOTE] > > A successful test confirms that Google SecOps can connect to the BloodHound Enterprise API with the supplied credentials. > > If the test fails, review the error message and confirm that the server URL, token ID, and token key are correct. You can also refer to the [troubleshooting guide](/integrations/google-secops/troubleshoot) for more help diagnosing common issues. ## Configure the connector The connector retrieves Attack Path findings from BloodHound Enterprise and creates the corresponding cases, alerts, and events in Google SecOps. > [!TIP] > > You can manually trigger the connector to run a one-time ingestion of BloodHound Enterprise findings, or you can enable it to run on a schedule. **1. Create the connector** 1. Go to **Settings** > **SOAR Settings** > **Ingestion** > **Connector**. 2. Click **Create New Connector**. 3. Select the BloodHound Enterprise connector that you want to configure. **2. Configure connector parameters** 1. Open the **Parameter** tab. 2. Enter the required values for the connector. | Field | Description | | - | - | | **BloodHound Enterprise Server** | The URL of your BloodHound Enterprise tenant | | **Token ID** | The API token ID used for authentication | | **Token Key** | The API token key used to sign requests | | **Selected BloodHound Environments** | The BloodHound Enterprise environments that the connector should query | | **Selected Finding Types** | The Attack Path finding categories that the connector should ingest | | **Run Every** | The interval at which the connector polls BloodHound Enterprise | | **Product Field Name** | The source field name that Google SecOps should use for the product value | | **Event Field Name** | The source field name that Google SecOps should use for the event value | ![BloodHound connector Parameter tab in Google SecOps.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-3-1-connector-parameters.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=3bece856c1ded6a75e4b9668f2f3b043) **3. Test the connector** The connector test validates connectivity, connector logic, and the required parameter values without requiring you to enable the connector first. 1. Open the **Testing** tab. 2. Click **Test Connector** to run a one-time execution. 3. Review the generated alerts and the debug logs. 4. Click **Log to System** if you want to create cases from the generated test alerts. ![Connector Testing tab showing the Test Connector action.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-3-2-test-connector.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=124b62dc6ecef68435a043a63f051a59) **4. Enable the connector and logging** 1. Enable the toggle for **Attack Paths Alert**. ![Connector page after the connector is enabled.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-3-4-connector-running.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=1c4472a112549f8c683ef2794db6a009) 2. Open the **Logs** tab. 3. Enable the **Log Connection** toggle if logging is not already enabled. ![Connector logs showing generated alerts.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-3-6-connector-logs.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=2f6dee837d9ef20c25f2873d04106780) 4. Confirm in the logs that alerts are created successfully. ![Connector Logs tab showing the Log Connection toggle.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-3-5-enable-log-connection.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=da6313438f9e65be84c562c516f680c4) 5. Open the **Cases** page to review the resulting cases, alerts, and events. ## Map and model alerts Alerts are not mapped and modeled by default. Configure field mappings before you move the integration into regular analyst workflows. **1. Open Mapping and Modeling** Open the Google SecOps settings menu and select **Mapping and Modeling**. **2. Select the mapping family** For this example, use the **Default** family to classify alerts under a predefined set of rules. 1. Choose the **Default** family. 2. Open the **Visualization** tab. ![Google SecOps Mapping and Modeling page with the Default family selected.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-7-2-default-family.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=12bf86b1843c0344e5f0b50ab2a68fff) **3. Map the required fields** Map the incoming alert fields to the corresponding event fields. 1. Ensure that **StartTime** and **EndTime** are configured correctly. These fields are crucial for defining the time frame of the events. 2. Save the mapping configuration. 3. Test the mapping with sample alerts before you use it in production. ![Visualization tab showing alert field mappings in Google SecOps.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-7-3-visualization-mapping.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=50ed5c1fa1665f0ad337078adf1bae65) ## Configure alert grouping Configure alert grouping so Google SecOps groups related BloodHound Enterprise alerts into one case per source domain. Grouping alerts from the same domain into a single case allows for: * Easier investigation and triage * Clear, organized case structures * Domain-specific incident visibility * Scalable response workflows **1. Create an alert grouping rule** 1. Go to **SOAR Settings** > **Advanced** > **Alert Grouping**. 2. Click **Add Rule**. 3. Configure the rule with the following values: | Setting | Value | | - | - | | **Category** | `Data Source` | | **Value** | `BloodHound Enterprise - Google SecOps` | | **Group By** | `Entities` | | **Grouping Entity** | `SourceDomain` | Save the rule after you enter the values. ![Alert grouping rule configuration for the BloodHound Enterprise - Google SecOps integration.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-7-4-alert-grouping-rule.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=b8f1ea2f41e9ab05ed3279bd6c340a13) With this rule in place, Google SecOps groups all alerts for the same source domain into a single case, up to the platform's case and event limits. ## Next steps After the connector is running, use [cases and alerts](/integrations/google-secops/use) in Google SecOps to investigate BloodHound Enterprise findings. > [!NOTE] > > For help resolving issues, see [troubleshoot common issues](/integrations/google-secops/troubleshoot). # Google SecOps integration design reference Source: https://bloodhound.specterops.io/integrations/google-secops/reference Technical reference for the BloodHound Enterprise integration for Google SecOps, including architecture, authentication, connector flow, and API usage. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) This page explains how the BloodHound Enterprise integration for Google SecOps works. It covers the integration architecture, authentication model, connector behavior, analyst actions, and BloodHound API dependencies. > [!NOTE] > > For setup instructions, see [Install and configure the integration](/integrations/google-secops/configure). ## Integration type The BloodHound Enterprise integration for Google SecOps is a **vulnerability management and investigation** integration. It ingests Attack Path findings into Google SecOps and exposes on-demand actions that help analysts validate paths and enrich cases with BloodHound Enterprise data. ## Use cases * Ingest BloodHound Enterprise Attack Path findings into Google SecOps on a schedule * Group related alerts by source domain to keep investigations organized * Enrich cases with BloodHound Enterprise asset details * Validate whether a shortest path exists between two assets * Use Google SecOps playbooks and response workflows with BloodHound Enterprise findings ## Core design The integration has four main parts: | Component | Purpose | | - | - | | **Integration instance** | Stores the BloodHound Enterprise server URL, token ID, and token key used for API authentication and connection tests. | | **Connector** | Polls BloodHound Enterprise for Attack Path findings, normalizes the response, and sends alerts and events to Google SecOps. | | **Google SecOps actions** | Lets analysts run **Ping**, **Get Object Id**, **Does Path Exist**, and **Fetch Assets** during an investigation. | | **Alert grouping rule** | Groups related alerts into a single case per source domain when you configure the recommended grouping rule in Google SecOps. | The following diagram shows how installation, configuration, ingestion, and analyst investigation fit together across Google SecOps and BloodHound Enterprise. ![Architecture diagram showing the Google SecOps integration components and workflow](https://mintcdn.com/specterops/sqtpiwp_5RCIO4sw/images/integrations/google-secops/architecture.drawio.svg?fit=max\&auto=format\&n=sqtpiwp_5RCIO4sw\&q=85\&s=48ce41e8712d060b925cd3043fc4d695) The workflow for installing and using the Google SecOps integration follows these stages: 1. **Google SecOps Marketplace**: The integration is available from the Google SecOps marketplace inside the tenant. 2. **App installation**: A Google SecOps administrator installs the integration from the marketplace. 3. **Input configuration**: Google SecOps provides the configuration UI where you enter the values required for the integration. 4. **Connector**: The connector pulls findings from BloodHound Enterprise on a schedule, then parses and normalizes alerts and events for Google SecOps. 5. **Actions**: Analysts can use actions in playbooks to enrich investigations, automate response steps, and streamline incident handling. ## Investigation model The connector produces Google SecOps alerts and events from BloodHound Enterprise findings. With the recommended alert grouping rule in place, Google SecOps groups those alerts into one case per source domain. | Object | Purpose | | - | - | | **Case** | Represents the investigation container for a source domain, such as `GHOST.CORP`. | | **Alert** | Represents a distinct BloodHound Enterprise finding or path title within the case. | | **Event** | Represents an individual Attack Path occurrence and its supporting details, such as object IDs and path traversal data. | ## Authentication The integration uses BloodHound API signed requests. Google SecOps stores the BloodHound Enterprise credentials in the integration and connector configuration UI. Each request includes: 1. `Authorization: bhesignature {token_id}` 2. `RequestDate: {rfc3339_timestamp}` 3. `Signature: {base64_hmac_signature}` The signature uses HMAC-SHA-256 and chains the request method, request URI, request timestamp, and request body. For more detail, see [Use the BloodHound API](/reference/overview) and [Work with the BloodHound API](/integrations/bloodhound-api/working-with-api). ## Configuration inputs ### Integration instance Configure the integration instance with the core BloodHound Enterprise connection details: | Field | Description | | - | - | | **BloodHound Enterprise Server** | The URL of your BloodHound Enterprise tenant | | **Token ID** | The API token ID used to authenticate requests | | **Token Key** | The API token key used to sign requests | ### Connector Configure the connector with the ingestion scope and Google SecOps mapping values: | Field | Description | | - | - | | **BloodHound Enterprise Server** | The URL of your BloodHound Enterprise tenant | | **Token ID** | The API token ID used for authentication | | **Token Key** | The API token key used to sign requests | | **Selected BloodHound Environments** | The BloodHound Enterprise environments that the connector queries | | **Selected Finding Types** | The Attack Path finding categories that the connector ingests | | **Run Every** | The interval at which the connector polls BloodHound Enterprise | | **Product Field Name** | The source field name that Google SecOps uses for the product value | | **Event Field Name** | The source field name that Google SecOps uses for the event value | ## Connector flow The connector follows this workflow during ingestion: 1. Read the configured BloodHound Enterprise server, credentials, environments, and finding types. 2. Query available environments from BloodHound Enterprise and filter them to the configured set. 3. Query the available Attack Path finding types for each selected environment. 4. Download the finding title, description, and remediation content for each selected finding type. 5. Retrieve Attack Path detail records for each environment and finding type combination. 6. Create Google SecOps alerts and events from the returned findings. 7. Rely on Google SecOps alert grouping to roll related alerts into one case per source domain. 8. Track previously processed finding timestamps so the connector does not recreate findings it has already ingested. ## Analyst actions Google SecOps exposes the following BloodHound Enterprise actions to analysts: | Action | Purpose | | - | - | | **Ping** | Verifies that Google SecOps can reach the BloodHound Enterprise server with the configured credentials. | | **Get Object Id** | Searches for a node by name and returns matching object IDs. | | **Does Path Exist** | Checks whether a shortest path exists between two specified nodes. | | **Fetch Assets** | Retrieves detailed asset information for an object ID, including properties, relationship-based data, admin counts, and group memberships. | ## API endpoints The integration depends on the following BloodHound Enterprise API endpoints: | Endpoint | Purpose | | - | - | | [`GET /api/v2/available-domains`](/reference/search/get-available-domains) | Lists the environments available to the configured API token | | [`GET /api/v2/domains/{domain_id}/available-types`](/reference/attack-paths/list-available-attack-paths) | Lists the Attack Path finding types for a selected environment | | [`GET /api/v2/domains/{domain_id}/details`](/reference/attack-paths/list-domain-attack-paths-details) | Returns detailed Attack Path records for a selected environment and finding type | | [`GET /api/v2/domains/{domain_id}/sparkline`](/reference/attack-paths/list-attack-path-sparkline-values) | Returns time-windowed Attack Path values used for finding retrieval workflows | | `GET /api/v2/assets/findings/{finding_type}/title` | Returns the human-readable title for a finding type | | `GET /api/v2/assets/findings/{finding_type}/short_description` | Returns the short description for a finding type | | `GET /api/v2/assets/findings/{finding_type}/short_remediation` | Returns the short remediation text for a finding type | | `GET /api/v2/assets/findings/{finding_type}/long_remediation` | Returns the long remediation text for a finding type | | [`GET /api/v2/search`](/reference/search/search-for-objects) | Searches for graph objects by name or object ID | | [`GET /api/v2/graphs/shortest-path`](/reference/graph/get-the-shortest-path-graph) | Returns the shortest path graph between two objects | | [`GET /api/v2/azure/{entity_type}`](/reference/azure-entities/get-azure-entity) | Returns Azure entity details and related entity counts for an object ID | ## Error handling The functional specification calls for graceful handling and clear logging for common API failures. | Status | Meaning | Expected behavior | | - | - | - | | `400` | Bad Request | Log the validation error and stop the current request | | `401` | Unauthorized | Log the authentication failure and prompt for corrected credentials | | `403` | Forbidden | Log the authorization failure and stop the current request | | `404` | Not Found | Log the missing endpoint or resource and skip retry | | `429` | Too Many Requests | Log the rate-limit condition and defer processing until a later run | | `5xx` | Server Error | Log the server-side failure and treat it as a connector or action error | Use the Google SecOps **Test**, **Test Connector**, and connector **Logs** views to validate configuration changes and troubleshoot failed runs. For common operator-facing issues, see [Troubleshoot the Google SecOps integration](/integrations/google-secops/troubleshoot). ## Platform dependencies | Dependency | Role | | - | - | | **BloodHound Enterprise API** | Source of Attack Path findings, finding metadata, and analyst action results | | **Google SecOps** | Hosts the integration instance, connector runtime, cases, alerts, events, and playbook actions | # Troubleshoot the Google SecOps integration Source: https://bloodhound.specterops.io/integrations/google-secops/troubleshoot Learn how to diagnose and resolve common Google SecOps integration issues with BloodHound Enterprise. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Use this page to troubleshoot common issues with the BloodHound Enterprise integration for Google SecOps. Start by testing the integration instance and the connector configuration, then review the connector logs for more detail. ## Integration or connector test fails If the integration or connector test does not succeed: 1. Run **Test** on the integration instance to validate the BloodHound Enterprise server URL, token ID, and token key. 2. Run **Test Connector** from the connector's **Testing** tab to verify the connector logic and required parameter values. 3. Review the generated alerts and the debug logs. 4. Confirm that the connector creates alerts successfully before you enable it for ongoing ingestion. ## API authentication (401 Unauthorized) Possible causes include the following: * The BloodHound Enterprise API token or token key is expired or invalid. * The configured token ID, token key, or server URL is incorrect. * The API token does not have permission to access the required Attack Path endpoints. To resolve the issue: 1. Verify that the configured **Token ID**, **Token Key**, and **BloodHound Enterprise Server** values are correct. 2. Confirm that the API token is still active in BloodHound Enterprise. 3. Generate a new API token if the current one is expired or invalid, then update the integration and connector settings. 4. Confirm that the API token has permission to access the Attack Path endpoints used by the integration. 5. Restart the connector and validate the connection again from the **Testing** tab. # Use Google SecOps with BloodHound Enterprise Source: https://bloodhound.specterops.io/integrations/google-secops/use Learn how to investigate BloodHound Enterprise findings in Google SecOps by using cases, alerts, events, playbooks, and actions. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) After you complete the [installation and configuration](/integrations/google-secops/configure), Google SecOps begins receiving BloodHound Enterprise Attack Path data through the connector. This page explains how that data is organized and how analysts can work with it during an investigation. ## Understand the investigation structure The integration organizes BloodHound Enterprise findings into Google SecOps cases, alerts, and events. | Object | Purpose | | - | - | | **Case** | Groups related BloodHound Enterprise findings for investigation. With alert grouping configured, Google SecOps groups related alerts into one case per source domain. | | **Alert** | Represents a unique BloodHound Enterprise finding or path title within a case. | | **Event** | Captures an individual Attack Path occurrence and its supporting details, such as the involved nodes and object IDs. | ## Review cases, alerts, and events Use the following workflow to inspect the findings created by the connector. **1. Open the Cases page** With alert grouping configured, a case is created for each unique domain. The case contains alerts for each distinct BloodHound Enterprise finding or path title, and the events under those alerts capture the details of each Attack Path occurrence. 1. Open your Google SecOps dashboard. 2. Select **Cases** from the navigation menu. 3. Review the list of cases created by the BloodHound Enterprise connector. **2. Inspect alerts in a case** Each alert corresponds to a distinct BloodHound Enterprise finding or path title. 1. Open a case for the domain that you want to investigate. 2. Review the alerts in that case. ![Google SecOps case showing alerts generated from BloodHound Enterprise findings.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-4-2-case-alerts.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=c64f0c5dfc4689ce360a42df99ddf112) **3. Inspect events in an alert** Event details include the step-by-step path traversal and identifiers such as `object_id`. 1. Open an alert in the case. 2. Review the events listed under that alert. ![Google SecOps alert showing the events generated for a BloodHound Enterprise finding.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-4-3-alert-events.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=ecc9f028f2fac2d6abc1a870a4c13df1) 3. Double-click an event to open the full Attack Path details. ![Google SecOps event details view showing Attack Path traversal data.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-4-4-event-details.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=a973e479cb743a16971dcd8fff9143c6) ## Work with playbooks The **BloodHound Attack Path Alerts Playbook** can run against generated cases. You can also create your own playbook if you want to extend the workflow in Google SecOps. ![Google SecOps playbook tab for a generated BloodHound Enterprise case.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-5-1-playbook-tab.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=1209d68be5259df42de8eeef3355a326) **1. Create a custom playbook** 1. Go to **Response** > **Playbooks**. 2. Click the add (**+**) icon. ![Google SecOps Playbooks page showing the add icon.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-6-1-create-playbook.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=0ed3882448807f88c8e79483ed460af2) 3. Select **Playbook** as the type and click **Create**. ![Google SecOps dialog for selecting Playbook as the item type.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-6-2-select-playbook-type.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=e07b0c8fd6406102b00fab7b875ff72d) 4. Build the custom playbook by adding components from **Actions**, **Triggers**, **Blocks**, and **Flows**. ![Google SecOps playbook editor showing available actions, triggers, blocks, and flows.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-6-4-playbook-components.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=b4f4c7fbf22a5c0ac1acb5810159480a) **2. Review playbook results** After Google SecOps creates the cases, one playbook runs for each case. The following example shows the consolidated playbook results for one case. ![Playbook results for a generated BloodHound Enterprise case in Google SecOps.](https://mintcdn.com/specterops/D3PpNTVteoEyYi1d/images/integrations/google-secops/fig-6-5-playbook-results.png?fit=max\&auto=format\&n=D3PpNTVteoEyYi1d\&q=85\&s=8638cfd5f295194a60026b8761163a87) ## Run BloodHound Enterprise actions The integration includes on-demand actions that help analysts enrich investigations with data from BloodHound Enterprise. | Action | Description | | - | - | | **Ping** | Verifies connectivity to the BloodHound Enterprise server. | | **Get Object Id** | Retrieves the object ID for a named node, such as a user, group, or computer. | | **Does Path Exist** | Checks whether a shortest path exists between two specified nodes in the BloodHound Enterprise graph. | | **Fetch Assets** | Retrieves detailed information about an asset based on its object ID. | | **Path Does Not Exist** | Logs that no shortest path exists between the specified nodes. | # Integrate BloodHound Enterprise with Microsoft Sentinel Source: https://bloodhound.specterops.io/integrations/microsoft/sentinel/configure Install, configure, and verify the Microsoft Sentinel integration for BloodHound Enterprise. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) The Microsoft Sentinel integration for BloodHound Enterprise enables security teams to ingest attack path data, audit logs, posture trends, and Tier Zero asset exposure into Microsoft Sentinel for centralized monitoring, investigation, and response. It's available as a data connector that can be deployed to your Azure environment, with pre-built workbooks (dashboards) and analytics rules to visualize and act on the data. ## Roles and permissions To successfully deploy and use the Microsoft Sentinel integration, different Azure roles and permissions are required for various personas involved in the process. The following table outlines the key roles, their responsibilities, and the required permissions for each role: | Role | Responsibilities | Required permissions | | - | - | - | | **Installer** |
  • Deploy resources for the Microsoft Sentinel solution resources from the Azure Marketplace
|
  • **Subscription Owner** on the target subscription.
| | **Admin** |
  • Manage data connectors, including enable/disable actions and authentication settings
  • Maintain and troubleshoot the integration, including parameters, playbooks, workbooks, and analytics rules
|
  • **Microsoft Sentinel Contributor** on the Log Analytics workspace
  • **Log Analytics Contributor** to manage queries, tables, and saved searches
  • **Resource Group Contributor** on the target resource group
*Optional:*
  • **User Access Administrator** to assign RBAC roles when needed
  • **Contributor** for broader management of underlying Azure resources
| | **User** |
  • Use the deployed solution in daily operations
  • View dashboards, alerts, incidents, and workbooks
|
  • **Microsoft Sentinel Reader** for view-only access to incidents and workbooks
  • **Log Analytics Reader** for read-only access to logs and query results
  • **Microsoft Sentinel Responder** if the user needs to update incident status, assign incidents, or run playbooks
| ## Prerequisites Before you begin the installation and configuration process, ensure the following prerequisites are met: * Active Azure subscription with permissions to deploy resources * Microsoft Sentinel workspace (Log Analytics Workspace) in a target resource group * BloodHound Enterprise tenant * BloodHound Enterprise [non-personal API key/ID pair](/integrations/bloodhound-api/working-with-api#create-a-non-personal-api-key%2Fid-pair) * Microsoft Entra ID application with the **Monitoring Metrics Publisher** role on the target resource group ## Configure the integration Follow the steps below to deploy and configure the Microsoft Sentinel integration for BloodHound Enterprise. This process involves deploying Azure resources, configuring authentication, and setting up data ingestion. **1. Create a Log Analytics Workspace** Create a Log Analytics Workspace to store the data ingested from BloodHound Enterprise. This workspace will be connected to Microsoft Sentinel for monitoring and analysis. 1. Log in to the [Azure Portal](https://portal.azure.com/) with an account that has the necessary permissions for Microsoft Sentinel and Log Analytics Workspace configurations. 2. Navigate to the Log Analytics Workspace and click **Create**. 3. Select subscription and resource group, then enter a workspace name. ![Create Log Analytics Workspace](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image4.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=fc5544d581bfcc6d2649160a082203e6) 4. Click **Review + create**. 5. Add the Log Analytics Workspace in Sentinel: 1. Navigate to Sentinel. 2. Click **Create.** 3. Select the newly created Log Analytics Workspace. 4. Click **Add**. **2. Register a Microsoft Entra ID application** Register a Microsoft Entra ID application to authenticate the data connector with Microsoft Sentinel. This application will be granted the necessary permissions to publish data to Sentinel. 1. Open [Microsoft Entra ID](https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview). 2. Go to **App registrations** > **New registration**. 3. Enter an app name and choose **Accounts in this organizational directory only**. No redirect URI is necessary. ![Register Microsoft Entra ID application](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image7.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=21f31ff3b0e753256e655f0975a39515) 4. Click **Register**. 5. Copy the **Application (client) ID** and **Directory (tenant) ID**. You'll need these later. 6. Under **Certificates & secrets**, create a client secret and save its value immediately. It will not be shown again. **3. Assign required Azure role to the app** Assign the **Monitoring Metrics Publisher** role to the Microsoft Entra ID application on your resource group: 1. Open your resource group. 2. Go to **Access control (IAM)** > **Add role assignment**. 3. Assign **Monitoring Metrics Publisher** to the Entra application. 4. Select a user, group, or service principal to assign access to, then click **Select members**. 5. Select the application that you created, then click **Select**. 6. Click **Review + Assign**. **4. Install the solution from Microsoft Marketplace** Install the BloodHound Enterprise Microsoft Sentinel solution from Microsoft Marketplace. The solution package installs the workbooks, analytics-rule templates, and data connector content; you do not need to deploy the solution package from a GitHub-hosted ARM template. 1. In the Azure Portal, open the Log Analytics workspace you created and note its name and location. You will need this information during installation. 2. Open the [BloodHound Enterprise Microsoft Sentinel solution in Microsoft Marketplace](https://marketplace.microsoft.com/en-us/product/azurehoundenterprise.bloodhoundenterprise-mssentinel?tab=Overview). 3. Select **Get it now**. You will be redirected to the Azure Portal. 4. Select **Create** to begin the installation. 5. Select the target subscription and resource group, then provide the requested deployment parameters, including the Log Analytics workspace name and location. 6. Select **Review + create**, then select **Create** to install the solution. **5. Verify the solution content** Verify that the Marketplace installation added the BloodHound workbook, analytics-rule, and data connector content before configuring the data connector: 1. In the Azure Portal, open **Microsoft Sentinel** and select the workspace where you installed the solution. 2. Go to **Workbooks** under **Threat management**. 3. If prompted to continue in Microsoft Defender, select the link to open **Microsoft Defender portal**. ![Microsoft Defender Portal](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image15.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=7024716ef7e7df5740f34eb90d0beb76) 4. If multiple Sentinel workspaces are available, select the integration workspace from the workspace selector in the top-right corner. ![Select Sentinel Workspace](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image16.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=3c60da2867b8c96927a0271c5fd66d54) ![Microsoft Defender Portal Workspace Selector](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image17.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=3fc9392171fa9a5d518b9fa86c9e7fad) 5. In **Workbooks**, open the **Templates** tab and verify the BloodHound workbook templates are available. ![Verify Workbooks](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image18.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=d18dbc30066fd8ceb2c882b055ded822) 6. Go to **Configuration** > **Analytics** > **Rule templates** and verify the BloodHound analytics rules are available. ![Verify Analytics Rules](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image19.png?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=8d347d15a38dc848202e1a2c64da7386) 7. Go to **Configuration** > **Data connectors** and verify the **BloodHound Data Connector** is listed. You will configure and connect it in the next step. ![Verify Data Connector](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image20.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=030f3e6c9db81b772abafbdca9d93bb3) **6. Deploy the data connector** Deploy the BloodHound Enterprise data connector from the Marketplace-installed solution. This deployment creates the Azure Function App, Data Collection Endpoint (DCE), Data Collection Rule (DCR), custom tables, and supporting resources. 1. Log in to the Azure Portal with an account that has the **Owner** role on the resource group. 2. In Microsoft Sentinel, select the workspace where you installed the solution. 3. Go to **Content management** > **Content hub**, select **BloodHound Enterprise**, then select **Manage**. 4. Select **BloodHound Enterprise Data Connector (using Azure Functions)**, then select **Open connector page**. 5. Review the connector instructions, then select **Deploy to Azure** to open its deployment page. **7. Configure data connector parameters** Fill in the data connector deployment parameters: | Parameter Name | Description | | - | - | | Subscription | The Azure subscription to deploy the resources to. | | Resource Group | The name of the resource group where the resources will be deployed. | | Function App Name | The name of the Azure Function App. This must be unique across Azure, since each instance requires its own Function App (for example, BloodHoundEnterprise-Maple). | | Log Analytics Workspace Name | The name of the existing Log Analytics Workspace where you want to create a Data Collection Endpoint (DCE) and Data Collection Rule (DCR) for custom tables. | | Bloodhound Tenant Domain | The URL for the BloodHound Enterprise tenant domain. | | Bloodhound Token ID Secret Value | The value for the **BloodHound token ID**. This value will be stored in an Azure Key Vault secret. | | Bloodhound Token Key Secret Value | The value for the **BloodHound token key**. This value will be stored in an Azure Key Vault secret. | | Microsoft Entra Id Application App Id | The unique identifier for the Microsoft Entra ID application. This ID, also known as the **Client ID**, is used to authenticate your application to the Microsoft identity platform. | | Microsoft Entra ID Application App Secret | A confidential secret generated for your Microsoft Entra ID application. This secret, also known as the **Client Secret**, is used along with the App ID to prove the application's identity when requesting an access token. | | Lookup Days | Specifies the number of days in the past for which the system should fetch data. A higher value means more historical data will be retrieved, which increases the time and compute resources required during the first iteration when setting up the system. This parameter sets the default lookback period when no previous timestamp is available. | | Selected Bloodhound Environments | The selected BloodHound environments from which you want to fetch data. These should be provided as comma-separated values (e.g., Ghost.Corp, Phantom.Corp). The default value is **All**. | | Selected Finding Types | The selected Finding Types from which you want to fetch data. These should be provided as comma-separated values (e.g., T0MarkSensitive, T0GenericAll). The default value is **All**. | 1. Select the target subscription and resource group, then enter the workspace name, workspace location, and the remaining required parameters. 2. Click **Review + create**. 3. Click **Create** to deploy the data connector resources. **8. Verify the data connector deployment** After deploying the data connector, manually run each function to verify that it can fetch data from BloodHound Enterprise and write it to the custom tables in your Log Analytics workspace. 1. Navigate to the **Overview** page of your Function App and select one of the deployed functions. ![Test/Run](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image23.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=09ebed875fed92e509a19bd9b4c4fd13) 2. Click the **Code + Test** tab. 3. Click **Test/Run**. 4. Click **Run** to execute the function. ![Run function](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image24.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=c604519154b2ad9c38f005ff66e416b3) 5. Monitor the execution logs to confirm that the function is running successfully and fetching data from BloodHound Enterprise. You should see log entries indicating successful execution and data retrieval for each finding type. > [accordion] Show example > > ```log theme={null} > 2025-10-31T08:57:55Z [Information] Collecting asset details for finding type: AzureT0MGGrantAppRoles > 2025-10-31T08:57:55Z [Information] Making GET request to https://.bloodhoundenterprise.io/api/v2/assets/findings/AzureT0MGGrantAppRoles/title.md > 2025-10-31T08:57:55Z [Information] Response status code: 200 > 2025-10-31T08:57:56Z [Information] Making GET request to https://.bloodhoundenterprise.io/api/v2/assets/findings/AzureT0MGGrantAppRoles/short_description.md > 2025-10-31T08:57:56Z [Information] Response status code: 200 > 2025-10-31T08:57:56Z [Information] Making GET request to https://.bloodhoundenterprise.io/api/v2/assets/findings/AzureT0MGGrantAppRoles/short_remediation.md > 2025-10-31T08:57:57Z [Information] Response status code: 200 > 2025-10-31T08:57:57Z [Information] Making GET request to https://.bloodhoundenterprise.io/api/v2/assets/findings/AzureT0MGGrantAppRoles/long_remediation.md > 2025-10-31T08:57:57Z [Information] Response status code: 200 > ``` 6. Repeat this one-time manual process for each deployed function to ensure all functions are working correctly. ## Validate the integration Complete verification before operational use. **1. Verify connector resources** 1. In Azure Portal, open **Function App** and confirm your deployed app exists and all BloodHound functions are listed. ![Verify Function App](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image26.png?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=e7ee15cfc251e89b764c89bc5319aac6) 2. Open **Key Vault** and confirm the connector vault exists and includes the expected secrets. ![Verify Key Vault](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image27.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=6376ed0eabae9b3c5a09345f51ab4bc9) 3. Open **Data Collection Endpoints** and confirm the BloodHound endpoint exists. ![Verify Data Collection Endpoints](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image28.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=6ea75b971b08c9df95b976afefd749ac) 4. Open **Data Collection Rules** and confirm the BloodHound rules exist. ![Verify Data Collection Rules](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image29.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=0b1d97401c25232dd4d1b07ac7fe2f44) 5. Open your Log Analytics workspace and confirm these custom tables exist: * `BHEAttackPathsData_CL` * `BHEAttackPathsTimelineData_CL` * `BHEAuditLogsData_CL` * `BHEFindingTrendsData_CL` * `BHEPostureHistoryData_CL` * `BHETierZeroAssetsData_CL` ![Verify Custom Tables](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image30.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=a87f4bfd3378829149b8e69d6a330607) **2. Verify data connector ingestion** Complete these steps to start your Azure Function App and begin ingesting BloodHound Enterprise data into custom tables. 1. Open your **Function App** and start it from **Overview** if it is stopped. 2. Open your Log Analytics workspace and click **Logs**. 3. Verify that you can see custom logs. ![Verify Custom Logs](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image31.png?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=610fdd59f5b8320d8820edfecf013109) **3. Activate dashboards and analytics rules** 1. In Microsoft Sentinel, go to **Workbooks**. You must save each workbook before editing or operational use. ![Activate Dashboards](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image32.png?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=ba153ced0f7d3a4803c9bd6cd69406e0) 2. To save each workbook, double-click the workbook, then click **Save** in the modal that displays. ![Save Workbook](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image33.png?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=41f9b90bfe29fe006161980f731bc7c2) 3. Open each workbook to confirm it loads data correctly. If you see errors, review the function execution logs and ensure the data connector is ingesting data into the custom tables. ![Verify Workbook Data](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image34.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=1ada3ffc34443101e21a543fc6f96b19) **4. Verify analytics rules** 1. In the Sentinel workspace, navigate to **Configuration** > **Analytics** > **Rule templates**. ![Verify Analytics Rules](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image35.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=6ec78b0b37771819bb36307f1227bb84) 2. To generate incidents, create and save each **Analytics rule**. Select any rule to open the right-side panel, then click **Create rule**. ![Save Analytics Rule](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image36.png?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=b3f81409f6c1cb10efebffc270c1c4e2) 3. Click **Next: Set rule logic** and keep the default values. ![Set Rule Logic](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image37.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=86daf4e92ae48584526839f98d0e72bf) 4. Click **Next: Incident settings** and keep the default values. ![Incident Settings](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image38.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=791cc8700a4fcfef592eb669771770d2) 5. Click **Next: Automated response** and keep the default values. ![Automated Response](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image39.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=e1e46c34c42549ed37aa4621024943dc) 6. Click **Next: Review + Create** and keep the default values. ![Review + Create](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image40.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=e6440018f7972c70aadf4ec205197799) 7. Click **Save**. ![Save Analytics Rule](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image41.png?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=35b0c4efe5dcd1cb185f093239e45ab4) 8. Repeat this process for each **Analytics rule**. Incidents are generated only after the rules are created and saved. 9. To check incidents after rules are created, navigate to **Investigation & Responses** > **Incidents & Alerts** > **Incidents**. ![Incidents & Alerts](https://mintcdn.com/specterops/H2dG5-akDApF_BvS/images/integrations/microsoft/sentinel/image42.jpeg?fit=max\&auto=format\&n=H2dG5-akDApF_BvS\&q=85\&s=512bd49995afff6f996123dd0b07e7c9) ## Next steps Explore the pre-built workbooks to [visualize](/integrations/microsoft/sentinel/use) BloodHound Enterprise data and use the analytics rules to generate incidents for findings. # Use the Microsoft Sentinel Integration with BloodHound Enterprise Source: https://bloodhound.specterops.io/integrations/microsoft/sentinel/use View BloodHound Enterprise attack path risk, audit logs, posture trends, and critical asset exposure in Microsoft Sentinel dashboards and incidents. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Workbooks in Microsoft Sentinel provide interactive dashboards that help you review and investigate data. The BloodHound Enterprise integration includes workbooks that visualize attack path data, audit logs, posture trends, and Tier Zero asset exposure. You can also use Microsoft Sentinel's incident management capabilities to triage and track remediation of BloodHound Enterprise findings. > [!TIP] > > See the [Microsoft Sentinel documentation](https://learn.microsoft.com/en-us/azure/sentinel/) for more information. ## Dashboards Explore the following dashboards to review BloodHound Enterprise data in Microsoft Sentinel. ### Attack Path Overview Use this dashboard for high-level attack path trends across environments: * Total attack paths by environment * Exposure-oriented metrics such as expected compromise indicators * Tier distribution context * Environment filtering for focused analysis ### Attack Path Details Use this dashboard to investigate individual paths and prioritize remediation: * Timeline and state changes for path findings * Affected principals and related objects * Exposure and impact context * Remediation-linked context for triage ### Audit Logs Use this dashboard to monitor security-relevant operational changes: * Create/update/delete activity timeline * Actor and object context * Environment-level filtering ### Posture Use this dashboard to monitor posture and progress over time: * Posture trend metrics * Service/control health indicators * Environment-to-environment comparison ### Tier Zero Assets Use this dashboard to prioritize highest-impact exposure: * Tier Zero principal inventory * Exposure-oriented prioritization indicators * Relationship context for critical assets ## Work with incidents Analytics Rules generate incidents from BloodHound Enterprise findings in custom log tables. 1. In Microsoft Sentinel, open **Incidents**. 2. Filter by BloodHound-related product/source fields. 3. Triage, assign, and track remediation in your incident workflow. > [!TIP] > > Use incidents for operational ownership and dashboards for trend/coverage analysis. ## Multi-environment analysis Use environment filters across dashboards to compare business units, regions, or segmented environments. * View one environment in isolation. * Compare multiple environments side-by-side. * Reduce noise by excluding non-relevant environments. ## Data scope and freshness Dashboard and incident views reflect connector configuration choices: * Environment and finding-type selection * Polling cadence * Initial lookback window (`Lookup Days`) * Deduplication behavior favoring latest event state # API and Integrations Source: https://bloodhound.specterops.io/integrations/overview Leverage BloodHound's REST API and third-party integrations to extend functionality and maximize your security infrastructure investments. ## BloodHound API BloodHound Enterprise includes a REST API that allows you to programmatically interact with your BloodHound data and automate various tasks. > [card] [BloodHound JSON Formats](/integrations/bloodhound-api/json-formats) > [card] [Work With the BloodHound API](/integrations/bloodhound-api/working-with-api) > [card] [BloodHound Python SDK](https://github.com/SpecterOps/bloodhound-python-sdk) ## BloodHound Integrations SpecterOps is built on community. Our strategic integrations enable BloodHound Enterprise customers to extend identity Attack Path Management (The process of identifying, analyzing, and managing the Attack Paths that an adversary might exploit to reach high-value objects or compromise the network's security. BloodHound helps visualize and manage Attack Paths through Attack Path Management.) to proactively secure and manage their Active Directory, Entra ID, and hybrid environments and respond faster to threats. The sections below describe officially supported integrations, third-party integrations, and community-developed integrations. ### Supported integrations The following integrations are officially supported by SpecterOps. > [card] [Palo Alto XSOAR](/integrations/cortex-xsoar/configure) > > The BloodHound Enterprise integration for Cortex XSOAR lets you ingest and manage BloodHound Enterprise Attack Path findings in Cortex XSOAR as incidents. > > | | | > | - | - | > | **Supported actions** |
  • Automatically convert BloodHound Enterprise Attack Path findings into Cortex XSOAR incidents.
  • Attach remediation guidance and posture context to incidents.
  • Run playbooks and custom commands to analyze, triage, and remediate findings.
| > | **Common use cases** |
  • Automated incident creation with titles, descriptions, remediation guidance, impact/exposure metrics, severity, and domain/environment context.
  • Playbook linking per incident to run custom analysis commands.
| > | **Custom commands** |
  • Object ID lookup by name.
  • Asset information by object ID.
  • Path analysis between two nodes in the BloodHound graph.
| > | **Integration instructions** | [Configure the Cortex XSOAR integration](/integrations/cortex-xsoar/configure) | > [card] [Microsoft Sentinel](/integrations/microsoft/sentinel/configure) > > The Microsoft Sentinel integration enables you to manage and visualize BloodHound Enterprise Attack Path statistics within a Microsoft Sentinel workspace. > > | | | > | - | - | > | **Supported actions** |
  • Fetch Attack Path findings from BloodHound Enterprise.
  • Create an incident in Microsoft Sentinel for each finding.
  • Ingest and visualize posture statistics, audit logs, and Tier Zero assets in Microsoft Sentinel dashboards.
| > | **Common use cases** |
  • Automatically convert custom logs into Incidents within Sentinel based on BloodHound Enterprise findings data.
  • Empower security analysts to investigate and respond to potential security threats identified by BloodHound Enterprise.
  • Use Sentinel Workbooks to visualize and analyze BloodHound Enterprise data for a clear, actionable view of Attack Paths and potential vulnerabilities in Active Directory environments.
| > | **Integration instructions** | [Configure the Microsoft Sentinel integration](/integrations/microsoft/sentinel/configure) | > [card] [Google SecOps](/integrations/google-secops/configure) > > The BloodHound Enterprise Google Security Operations (SecOps) is an integration that automatically synchronizes Bloodhound Enterprise (BHE) Attack Path findings to SecOps cases for remediation tracking. This integration enables security teams to manage and track the remediation of Active Directory and Azure Attack Paths directly within their existing SecOps workflows. > > | | | > | - | - | > | **Supported actions** |
  • Automatic creation of cases from BHE findings.
  • Playbooks created to manage BHE-generated cases.
  • Customizable SecOps collections schedules.
  • Group related alerts under a single case.
  • Ability to investigate relevant asset information from BHE.
  • Verify Attack Paths exist between any two assets.
| > | **Common use cases** |
  • Enrich security cases with identity Attack Path context.
  • Prioritize alerts involving high-value identity assets.
  • Investigate whether an alerted asset is on a critical Attack Path.
  • Verify Attack Paths between two assets during incident response.
  • Consolidate related identity risk findings into a single investigation.
  • Improve coordination between SOC and Identity teams.
| > | **Integration instructions** | [Configure the Google SecOps integration](/integrations/google-secops/configure) | > [card] [Jira](/integrations/atlassian/jira/configure) > > The BloodHound Enterprise Jira integration is a Jira Cloud app built on Atlassian Forge that automatically synchronizes BloodHound Enterprise Attack Path findings to Jira issues for remediation tracking. This integration enables security teams to manage and track the remediation of Active Directory and Azure Attack Paths directly within Jira Software and Jira Service Management workflows. > > | | | > | - | - | > | **Supported actions** |
  • Automatically synchronize BloodHound Enterprise findings to Jira issues.
  • Map BloodHound Enterprise zones to Jira priorities.
  • Set due dates based on finding priority.
  • Filter by BloodHound Enterprise domains and zones for synchronization.
  • Prevent duplicate tickets with finding-aware deduplication.
  • Add direct Graph View links to BloodHound Enterprise finding details.
  • Close Jira tickets automatically after findings are remediated.
  • Support Jira Service Management request types and incidents.
| > | **Common use cases** |
  • Manage identity Attack Paths through existing Jira workflows.
  • Create remediation tickets for identity Attack Paths.
  • Track remediation against defined SLAs.
  • Route findings to the appropriate teams.
  • Provide investigation context within every ticket.
  • Close tickets automatically when findings are resolved.
  • Measure progress in reducing Attack Paths.
| > | **Integration instructions** | [Configure the Jira integration](/integrations/atlassian/jira/configure) | > [card] [Splunk SIEM](/integrations/splunk/install) > > The BHE Splunk SIEM App enables customers to ingest Path, Posture, and Impacted Principals data into Splunk. The app also includes pre-built dashboards and alerts for Exposure, Path Details, and Impacted Principals. > > | | | > | - | - | > | **Supported actions** |
  • Ability to ingest Attack Path Finding Details.
  • Pull information related to an asset from the API.
  • Use BloodHound Enterprise data to examine a path between two objects.
| > | **Common use cases** |
  • Use the dashboards to track and report on Active Directory and Azure Attack Paths in your environment and exposure over time.
  • Create alerts to detect when new Attack Paths emerge, or your exposure increases.
  • Enrich your SIEM with BloodHound Enterprise's Attack Path details.
| > | **Integration instructions** | [Integrate BloodHound Enterprise with Splunk](/integrations/splunk/siem/install) | > [card] [Splunk SOAR](https://splunkbase.splunk.com/app/7772) > > The BloodHound Enterprise Splunk SOAR integration includes the ability to pull findings into a SplunkSOAR environment, as well as to enrich alerts from other platforms via data from BloodHound Enterprise. > > | | | > | - | - | > | **Supported actions** | Pull findings from BloodHound Enterprise Attack Paths. | > | **Common use cases** |
  • Enrich existing alerts with BloodHound Enterprise Attack Path findings and object descriptions.
  • Receive alerts for increases to Attack Paths, tier zero assets, and domain exposure.
  • Enable defenders to see all Attack Path findings from BloodHound as Splunk SOAR events.
  • Leverage BloodHound Enterprise findings to remediate and remove Attack Paths.
| > | **Integration instructions** | [Integrate BloodHound Enterprise with Splunk SOAR](/integrations/splunk/soar/configure) | > | **FedRAMP** | Yes | > [card] [ServiceNow (SIR)](/integrations/service-now/security-incident-response/configure) > > The BloodHound Enterprise ServiceNow integration provides the ability to generate tickets to track and monitor vulnerabilities within environments, as identified by BloodHound Enterprise. > > | | | > | - | - | > | Supported actions |
  • Integration with ServiceNow's Security Incident Response (SIR) module.
  • Ability to generate tickets to track and monitor vulnerabilities within their environments, as identified by BloodHound Enterprise.
| > | Common use cases |
  • Create ticketing workflows for Attack Path resolution.
  • Monitor identity vulnerabilities over time.
  • Allow integration of BloodHound Enterprise findings and remediation tasks into existing ServiceNow SIR workflows.
| > | Integration instructions | [ServiceNow integration instructions]() | > | FedRAMP | Yes | > | Supplemental information | [YouTube video](https://www.youtube.com/watch?v=SsLqg7hSX8I) | > [card] [ServiceNow (VR)](/integrations/service-now/vulnerability-response/configure) > > The Vulnerability Response (VR) integration for BloodHound Enterprise enables organizations to seamlessly connect their BloodHound Enterprise tenant with ServiceNow's Vulnerability Response capabilities, providing automated vulnerable item creation and management based on Attack Path findings. > > | | | > | - | - | > | Supported actions |
  • Automatically import BloodHound Enterprise Attack Path findings.
  • Integrate with ServiceNow's Vulnerability Response (VR) framework.
  • Use a guided setup wizard for streamlined configuration.
  • Support multiple environments with configurable filtering.
  • Synchronize data with the BloodHound API in real time.
  • Visualize findings in ServiceNow's Vulnerability Manager Workspace.
  • Run scheduled and on-demand data imports.
| > | Common use cases |
  • Reduce attack surface by identifying critical Active Directory vulnerabilities.
  • Prioritize remediation based on exploitability.
  • Centralize security management within ServiceNow.
  • Automate vulnerability tracking and reporting.
  • Use Attack Path analysis to support remediation decisions.
| > | Integration instructions | [ServiceNow VR integration instructions](/integrations/service-now/vulnerability-response/configure) | ### Third-party integrations The following integrations are developed by third-party vendors and are not officially supported by SpecterOps. > [card] [Axonius](https://docs.axonius.com/docs/bloodhound) > > The Axonius integration enables Axonius users to fetch and catalog users and devices from BloodHound Enterprise, providing visibility into identity relationships and potential Attack Paths. > > | | | > | - | - | > | **Supported actions** | Fetch BloodHound Enterprise Attack Path Details:
  • All Tier Zero Assets
  • All Computer Admin Users
  • All Users with RDP Access
  • Assets by Attack Path
  • Only Enabled Users
| > | **Common use cases** |
  • Identify which identities hold administrative or privileged access rights within the environment.
  • Discover users who hold administrative or privileged access rights within the environment, and any associated devices where that user has admin rights.
  • Identify devices and assets that are within an Attack Path.
| > | **Integration instructions** | [Configure the Axonius adapter for BloodHound](https://docs.axonius.com/docs/bloodhound) | > [card] [Cisco Duo](https://duo.com/docs/sso-bloodhound-enterprise#configure-single-sign-on) > > Add two-factor authentication and flexible security policies to BloodHound Enterprise SAML 2.0 logins with Duo Single Sign-On. Our cloud-hosted SSO identity provider offers inline user enrollment, self-service device management, and support for a variety of authentication methods — such as passkeys and security keys, Duo Push, or Verified Duo Push — in the Universal Prompt. > > | | | > | - | - | > | **Supported actions** |
  • Duo SSO prompts users for two-factor authentication and performs endpoint assessment and verification before permitting access to BloodHound Enterprise.
  • Define policies that enforce unique controls for accessing BloodHound Enterprise.
| > | **Common use cases** | Provides an additional layer of security for users accessing the BloodHound Enterprise platform. | > | **Integration instructions** | [Configure single sign-on](https://duo.com/docs/sso-bloodhound-enterprise#configure-single-sign-on) | > | **FedRAMP** | Yes | > [card] [Quest On Demand Audit](https://support.quest.com/on-demand-audit/kb/4375854/how-to-integrate-on-demand-audit-with-specterops-bloodhound-enterprise) > > Integrating with SpecterOps BloodHound Enterprise helps you reduce the risk of attacks by enabling you to easily identify, prioritize, and eliminate the most vital avenues that attackers can exploit. > > | | | > | - | - | > | **Supported actions** |
  • Quest OnDemand Audit ingests BloodHound Enterprise's defined Tier Zero assets.
  • Quest OnDemand Audit ingests BloodHound Enterprise's Attack Path edge data.
| > | **Common use cases** |
  • Identify all critical Tier Zero assets via BloodHound Enterprise and automatically monitor them for suspicious activity through integration with OnDemand Audit.
  • Leverage OnDemand Audit's detailed user activity history to inspect BloodHound Enterprise's Attack Path edges before removing access to a path, ensuring there are no unexpected consequences to remediation.
  • Create alert-enabled searches for historical changes to Tier Zero objects to ensure real-time monitoring of critical assets.
| > | **Integration instructions** |
  • To integrate BloodHound Enterprise with Quest OnDemand Audit, use the link below.
  • [Quest OnDemand Audit integration instructions](https://support.quest.com/technical-documents/on-demand-audit/current/user-guide/6#TOPIC-1880809)
| > | **FedRAMP** | No | > | **Supplemental information** |
  • Built-in BloodHound Tier Zero asset searches.
  • Monitoring audit health status.
| ### Community integrations The following integrations are developed by the BloodHound community and are not officially supported by SpecterOps. > [card] [wineventhound](https://medium.com/@RantaSec/bloodhound-for-blue-teams-windows-event-id-4624-a259c76ee09e) > > by @RantaSec > [card] [FalconHound](https://github.com/FalconForceTeam/FalconHound) > > by @falconforceteam > [card] [ServiceHound](https://github.com/Eli4m/ServiceHound) > > by @Eli4m > [!NOTE] > > Please share your integrations with us in the [BloodHound Gang community Slack](/resources/community-support/getting-help). # Integrate BloodHound Enterprise with ServiceNow Security Incident Response Source: https://bloodhound.specterops.io/integrations/service-now/security-incident-response/configure Learn how to install and configure the integration to automate the creation of security incidents based on attack path findings. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) The [Security Incident Response (SIR)](https://store.servicenow.com/store/app/5400757f1b45a610a85b16db234bcb85) integration for BloodHound Enterprise supports the following use cases: * Create SIR ticketing workflows for BloodHound Enterprise attack path findings * Integrate BloodHound Enterprise attack path findings into existing ticketing workflows * Monitor identity vulnerabilities over time ## Prerequisites Before you begin the installation and configuration process, ensure the following prerequisites are met: * Admin access to a ServiceNow instance with the [Security Incident Response (SIR) module](https://www.servicenow.com/docs/r/security-management/security-incident-response/install-and-configure-sir.html) installed and configured * Access to the ServiceNow Store to install the BloodHound Enterprise app * Admin access to a BloodHound Enterprise tenant * A BloodHound Enterprise [non-personal API key/ID pair](/integrations/bloodhound-api/working-with-api#create-a-non-personal-api-key%2Fid-pair) with the **Auditor** role ## Install the application Installing the BloodHound Enterprise app on ServiceNow involves the following steps: **1. Log in to ServiceNow** 1. Log in to your ServiceNow instance as an admin. 2. Click **System Applications** > **All Available Applications** > **All**. **2. Search the ServiceNow Store** 1. In the search bar, enter *SpecterOps BloodHound* to find the app. 2. Select the app from the search results. **3. Install the app** 1. Click **Install** to install the app on your ServiceNow instance. 2. Follow the prompts to complete the installation. ## Create an application user The integration requires creating a user and assigning the **x\_spop_security_in.app_admin** role. **1. Create a new user** The integration runs on behalf of the user account that you create in this step. It should be a dedicated service account associated with the non-personal API key/ID pair you created in BloodHound Enterprise. 1. Click **All** > **User Administration** > **Users**. 2. Click **New**. 3. Enter required user details. 4. Click **Submit**. **2. Assign the required role** The user must have the **x\_spop_security_in.app_admin** role to perform necessary actions, such as creating and updating ServiceNow tickets. 1. In the **Roles** related list, click **Edit**. 2. In the **Collection** list, select the **x\_spop_security_in.app_admin** role and click **Add**. 3. Click **Save**. ![A view of the ServiceNow user interface showing the process of assigning the x_spop_security_in.app_admin role to a new service account user.](/images/integrations/service-now/sir/image30.png) ## Configure the application The integration provides a guided setup experience to connect to BloodHound Enterprise, filter attack path types, configure field mapping, and set the import schedule. Follow the steps below to complete the configuration. **Step 1** ### Change application scope Before starting the configuration, change the application scope to *Security Incident Response Integration with SpecterOps BloodHound* to ensure that you have access to all necessary components and configurations. 1. Click the (globe) icon in the top-right corner and select **Application Scope**. 2. In the search filter, enter *Security Incident Response Integration with SpecterOps BloodHound* and select it. ![A view of the ServiceNow user interface showing the process of changing the application scope to the SpecterOps BloodHound integration app.](/images/integrations/service-now/sir/image23.png) **Step 2** ### Connect to BloodHound Enterprise The first step in the guided setup is to connect to your BloodHound Enterprise tenant by providing the tenant URL and API credentials. 1. In the top-left corner of ServiceNow, click **All**. 2. In the search box, enter *Security Incident Response Integration with SpecterOps BloodHound* and select **Guided Setup**. ![A view of the ServiceNow user interface showing the process of navigating to the Guided Setup page for the SpecterOps BloodHound integration app.](/images/integrations/service-now/sir/image1.png) 3. Click **Get Started** in the *Connect to SpecterOps BloodHound* section to start the configuration process. ![A view of the ServiceNow user interface showing the guided setup for connecting to a BloodHound Enterprise tenant.](/images/integrations/service-now/sir/image33.png) 4. Click **Configure**. ![A view of the ServiceNow user interface showing the guided setup for connecting to a BloodHound Enterprise tenant.](/images/integrations/service-now/sir/image35.png) 5. Click **New** to add credentials. ![A view of the ServiceNow user interface showing the process of adding a new set of credentials for connecting to a BloodHound Enterprise tenant.](/images/integrations/service-now/sir/image9.png) 6. Enter your BloodHound Enterprise tenant URL, token key, and token ID and click **Submit**. The token key and ID refer to the non-personal API key/ID pair you created in BloodHound Enterprise. The tenant URL is the URL you use to access your BloodHound Enterprise tenant. ![A view of the ServiceNow user interface showing the form for entering BloodHound Enterprise tenant URL and API credentials.](/images/integrations/service-now/sir/image26.png) 7. Click the (close) icon. ![A view of the ServiceNow user interface showing the process of exiting the credentials form.](/images/integrations/service-now/sir/image18.png) 8. Click **Mark as Complete** to proceed to the next configuration step. ![A view of the ServiceNow user interface showing the process of marking the Connect to BloodHound Enterprise step as complete in the guided setup.](/images/integrations/service-now/sir/image37.png) **Step 3** ### Filter attack path types Next, configure filters to specify which attack path findings should create ServiceNow tickets. You can filter by environment and attack type to control the scope of findings that generate incidents. 1. Click **Get Started** in the *Filter Attack Path Types* section. ![A view of the ServiceNow user interface showing the guided setup for filtering attack path types for BloodHound Enterprise findings.](/images/integrations/service-now/sir/image17.png) 2. Click **Configure** to select environments. ![A view of the ServiceNow user interface showing the process of configuring attack path type filters for BloodHound Enterprise findings.](/images/integrations/service-now/sir/image21.png) 3. Click **New**. ![A view of the ServiceNow user interface showing the process of adding a new attack path type filter for BloodHound Enterprise findings.](/images/integrations/service-now/sir/image16.png) 4. Click the (lock) icon to select a single environment. ![A view of the ServiceNow user interface showing the process of selecting environments for attack path type filtering.](/images/integrations/service-now/sir/image8.png) > [!TIP] > > Alternatively, click the **Select All Environments** checkbox to indiscriminately select *all* environments. 5. After clicking the (lock) icon, click the (search) icon to display a list of available environments. ![A view of the ServiceNow user interface showing the process of selecting an environment for attack path type filtering.](/images/integrations/service-now/sir/image4.png) 6. Click an environment to select it. > [!NOTE] > > You must repeat steps 4-6 for each environment that you want to include. 7. After selecting all required environments, click **Submit**. ![A view of the ServiceNow user interface showing the process of submitting selected environments for attack path type filtering.](/images/integrations/service-now/sir/image3.png) 8. Click the (close) icon. 9. Click **Mark as Complete**. 10. Scroll down the page to the *Filter Configuration* section and click **Configure**. ![A view of the ServiceNow user interface showing the filter configuration options.](/images/integrations/service-now/sir/image29.png) 11. Click an environment to update the default configuration. ![A view of the ServiceNow user interface showing the process of updating filter configuration for selected environments.](/images/integrations/service-now/sir/image31.png) 12. Edit the fields as required. ![A view of the ServiceNow user interface showing the process of editing filter details.](/images/integrations/service-now/sir/image5.png) 13. Click the **Select All Attack Types** checkbox to update finding types. ![A view of the ServiceNow user interface showing the process of selecting all attack types.](/images/integrations/service-now/sir/image10.png) 14. Click **Update** to save the configuration. ![A view of the ServiceNow user interface showing the process of updating the filter configuration.](/images/integrations/service-now/sir/image20.png) 15. Click the (close) icon. 16. Click **Mark as Complete**. **Step 4** ### Configure field mapping Field mapping allows you to specify how BloodHound Enterprise attack path finding fields map to ServiceNow SIR ticket fields. You can use the default mapping or customize it as needed. 1. Click **Get Started** in the *SpecterOps to ServiceNow Field Mapping* section. ![A view of the ServiceNow user interface showing the process of getting started with field mapping.](https://mintcdn.com/specterops/kdWektpXPZuKIVCU/images/integrations/service-now/sir/image12.png?fit=max\&auto=format\&n=kdWektpXPZuKIVCU\&q=85\&s=f81a39b5c46bb36860ebc9e29463faa7) 2. Click **Configure** to review the mapping. Update it if necessary, or use the default mapping. ![A view of the ServiceNow user interface showing the default field mapping.](https://mintcdn.com/specterops/kdWektpXPZuKIVCU/images/integrations/service-now/sir/image25.png?fit=max\&auto=format\&n=kdWektpXPZuKIVCU\&q=85\&s=5bc657064683bd09b0a9fdb3f8de68ab) The following table describes the default field mapping: | **SpecterOps BloodHound Fields** | **ServiceNow SIR Fields** | | - | - | | id | correlation id | | composite risk | risk score | | description + remediation | description | | domain name + title + id | short description | | from principal | contact type | | server url | external url | 3. Click the (close) icon. 4. Click **Mark as Complete**. **Step 5** ### Configure import schedule The final step in the guided setup is to configure the import schedule to specify how often the integration should fetch attack path findings from BloodHound Enterprise and create ServiceNow tickets. 1. Click **Get Started** in the *Configure Import Schedule* section. ![A view of the ServiceNow user interface showing the guided setup for configuring the import schedule for fetching attack path findings from BloodHound Enterprise.](/images/integrations/service-now/sir/image32.png) 2. Click **Configure** to schedule an import. ![A view of the ServiceNow user interface showing the process of configuring the import schedule for fetching attack path findings from BloodHound Enterprise.](/images/integrations/service-now/sir/image19.png) 3. Click the **Run** dropdown menu and select one of the available options. ![A view of the ServiceNow user interface showing the process of configuring the import schedule for fetching attack path findings from BloodHound Enterprise.](/images/integrations/service-now/sir/image13.png) 4. Enter frequency details and click **Update**. > [!TIP] > > You can also click **Execute Now** to run the import immediately. 5. Click the (close) icon. 6. Click **Mark as Complete**. The configuration is now complete. The integration will start fetching attack path findings from BloodHound Enterprise based on the configured schedule and create ServiceNow tickets accordingly. ## Next steps [View and manage](/integrations/service-now/security-incident-response/use) SIR tickets created from BloodHound Enterprise attack path findings in ServiceNow. # Use Security Incident Response Integration with BloodHound Enterprise Source: https://bloodhound.specterops.io/integrations/service-now/security-incident-response/use Learn how to use the ServiceNow Security Incident Response integration to manage security incidents based on BloodHound Enterprise attack path findings. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) After [installation and configuration](/integrations/service-now/security-incident-response/configure) are complete, the integration begins fetching attack path findings from the BloodHound Enterprise API. The integration creates a Security Incident Response (SIR) ticket for each attack path finding. To view and manage security incidents created by the integration: **1. View the list of security incidents** 1. Log in to your ServiceNow instance. 2. Click **All** and enter `sn_si_incident.list` in the search bar to navigate to the list of security incidents. **2. View and manage a security incident** 1. Click a number to view attack path findings and remediation documentation in the incident details. ![A view of the ServiceNow user interface showing a list of security incidents created by the integration, with one incident selected to view details.](https://mintcdn.com/specterops/kdWektpXPZuKIVCU/images/integrations/service-now/sir/image2.png?fit=max\&auto=format\&n=kdWektpXPZuKIVCU\&q=85\&s=1489e53f265f991850a3c8d7748b8c7d) 2. Update incident fields as required. ![A view of the ServiceNow user interface showing the process of updating a security incident.](https://mintcdn.com/specterops/9mfE7C5EYMWJ0NdC/images/integrations/service-now/sir/image7.png?fit=max\&auto=format\&n=9mfE7C5EYMWJ0NdC\&q=85\&s=7d4c4decf6dcb723af4bc9fbe002be6e) For example, you can post comments in the **Work Notes** field. ![A view of the ServiceNow user interface showing the Work Notes field of a security incident.](https://mintcdn.com/specterops/9mfE7C5EYMWJ0NdC/images/integrations/service-now/sir/image36.png?fit=max\&auto=format\&n=9mfE7C5EYMWJ0NdC\&q=85\&s=ae12cb3e297dd0ad34921ac2ea651ed4) # Integrate BloodHound Enterprise with ServiceNow Vulnerability Response Source: https://bloodhound.specterops.io/integrations/service-now/vulnerability-response/configure Learn how to install and configure the integration to automate vulnerability management based on attack path findings. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) The Vulnerability Response (VR) integration for BloodHound Enterprise enables organizations to seamlessly connect their BloodHound Enterprise tenant with ServiceNow's Vulnerability Response capabilities, providing automated vulnerable item creation and management based on attack path findings. ## Prerequisites Before you begin the installation and configuration process, ensure the following prerequisites are met: | Type | Requirements | | - | - | | **System** |
  • Admin access to a ServiceNow instance (Paris release or later recommended) with the [Vulnerability Response (VR) module](https://www.servicenow.com/docs/r/xanadu/security-management/sem-install-and-configure.html) installed and configured
  • Admin access to a BloodHound Enterprise tenant
  • A BloodHound Enterprise [non-personal API key/ID pair](/integrations/bloodhound-api/working-with-api#create-a-non-personal-api-key%2Fid-pair) with the **Auditor** role
| | **Network** |
  • Network connectivity between the ServiceNow instance and BloodHound Enterprise API endpoints
  • Outbound HTTPS (port 443) access from ServiceNow to your BloodHound tenant
  • Proper firewall configurations to allow API communications
| | **Knowledge** |
  • Basic understanding of ServiceNow administration
  • Familiarity with the BloodHound Enterprise platform
  • Knowledge of API integrations and security best practices
| ## Install the ServiceNow app Installing the BloodHound Enterprise app on ServiceNow involves the following steps: **1. Log in to ServiceNow** 1. Log in to your ServiceNow instance as an admin. 2. Click **System Applications** > **All Available Applications** > **All**. **2. Search the ServiceNow Store** 1. In the search bar, enter *SpecterOps BloodHound* to find the app. 2. Select the app from the search results. **3. Install the app** 1. Click **Install** to install the app on your ServiceNow instance. 2. Follow the prompts to complete the installation. ## Create an application user The integration requires creating a user and assigning the **x\_spop_specterops.app_admin** role. **1. Create a new user** The integration runs on behalf of the user account that you create in this step. It should be a dedicated service account associated with the non-personal API key/ID pair you created in BloodHound Enterprise. 1. Click **All** > **User Administration** > **Users**. 2. Click **New**. 3. Enter required user details. 4. Click **Submit**. **2. Assign the required role** The user must have the **x\_spop_specterops.app_admin** role to perform necessary actions, such as creating and updating ServiceNow tickets. 1. In the **Roles** related list, click **Edit**. 2. In the **Collection** list, select the **x\_spop_specterops.app_admin** role and click **Add**. 3. Click **Save**. ![A view of the ServiceNow user interface showing the process of assigning the x_spop_specterops.app_admin role to a new service account user.](/images/integrations/service-now/vr/image2.png) ## Configure the application The integration provides a guided setup experience to connect your ServiceNow instance to BloodHound Enterprise, filter attack path types, and schedule imports. Follow the steps below to complete the configuration. **Step 1** ### Change application scope Before starting the configuration, change the application scope to *SpecterOps BloodHound VR Integration* to ensure that you have access to all necessary components and configurations. 1. Click the (globe) icon in the top-right corner and select **Application Scope**. 2. In the search filter, enter *SpecterOps BloodHound VR Integration* and select it. ![A view of the ServiceNow user interface showing the process of changing the application scope to the SpecterOps BloodHound integration app.](/images/integrations/service-now/vr/image3.jpeg) **Step 2** ### Connect to BloodHound Enterprise The first step in the guided setup is to connect to your BloodHound Enterprise tenant by providing the tenant URL and API credentials. 1. In the top-left corner of ServiceNow, click **All**. 2. In the search box, enter *SpecterOps BloodHound VR Integration* and select **Guided Setup V-R Integration**. ![A view of the ServiceNow user interface showing the process of navigating to the Guided Setup page for the SpecterOps BloodHound integration app.](/images/integrations/service-now/vr/image9.jpeg) 3. Click **Get Started** in the *Connect to SpecterOps BloodHound* section to start the configuration process. ![A view of the ServiceNow user interface showing the guided setup for connecting to a BloodHound Enterprise tenant.](/images/integrations/service-now/vr/image10.jpeg) 4. Click **Configure**. ![A view of the ServiceNow user interface showing the guided setup for connecting to a BloodHound Enterprise tenant.](/images/integrations/service-now/vr/image11.png) 5. Click **New** to add credentials. ![A view of the ServiceNow user interface showing the process of adding a new set of credentials for connecting to a BloodHound Enterprise tenant.](/images/integrations/service-now/vr/image12.png) 6. Enter your BloodHound Enterprise tenant URL, token key, and token ID and click **Submit**. The token key and ID refer to the non-personal API key/ID pair you created in BloodHound Enterprise. The tenant URL is the URL you use to access your BloodHound Enterprise tenant. ![A view of the ServiceNow user interface showing the form for entering BloodHound Enterprise tenant URL and API credentials.](/images/integrations/service-now/vr/image13.png) 7. Click the (close) icon. ![A view of the ServiceNow user interface showing the process of exiting the credentials form.](/images/integrations/service-now/vr/image14.png) 8. Click **Mark as Complete** to proceed to the next configuration step. ![A view of the ServiceNow user interface showing the process of marking the Connect to BloodHound Enterprise step as complete in the guided setup.](/images/integrations/service-now/vr/image15.jpeg) **Step 3** ### Filter attack path types Next, configure filters to specify which attack path findings should create ServiceNow tickets. You can filter by environment and attack type to control the scope of findings that generate incidents. 1. Click **Get Started** in the *Filter Attack Path Types* section. ![A view of the ServiceNow user interface showing the guided setup for filtering attack path types for BloodHound Enterprise findings.](/images/integrations/service-now/vr/image16.png) 2. Click **Configure** to select environments. ![A view of the ServiceNow user interface showing the process of configuring attack path type filters for BloodHound Enterprise findings.](/images/integrations/service-now/vr/image17.png) 3. Click **New**. ![A view of the ServiceNow user interface showing the process of adding a new attack path type filter for BloodHound Enterprise findings.](/images/integrations/service-now/vr/image18.png) 4. Click the (lock) icon to select a single environment. ![A view of the ServiceNow user interface showing the process of selecting environments for attack path type filtering.](/images/integrations/service-now/vr/image19.png) > [!TIP] > > Alternatively, click the **Select All Environments** checkbox to indiscriminately select *all* environments. 5. After clicking the (lock) icon, click the (search) icon to display a list of available environments. ![A view of the ServiceNow user interface showing the process of selecting an environment for attack path type filtering.](/images/integrations/service-now/vr/image20.png) 6. Click an environment to select it. > [!NOTE] > > You must repeat steps 4-6 for each environment that you want to include. 7. After selecting all required environments, click **Submit**. ![A view of the ServiceNow user interface showing the process of submitting selected environments for attack path type filtering.](/images/integrations/service-now/vr/image22.png) 8. Click the (close) icon. 9. Click **Mark as Complete**. 10. Scroll down the page to the *Filter Configuration* section and click **Configure**. ![A view of the ServiceNow user interface showing the filter configuration options.](/images/integrations/service-now/vr/image23.png) 11. Click an environment to update the default configuration. ![A view of the ServiceNow user interface showing the process of updating filter configuration for selected environments.](/images/integrations/service-now/vr/image24.png) 12. Edit the fields as required. ![A view of the ServiceNow user interface showing the process of editing filter details.](/images/integrations/service-now/vr/image25.png) 13. Click the **Select All Attack Types** checkbox to update finding types. ![A view of the ServiceNow user interface showing the process of selecting all attack types.](/images/integrations/service-now/vr/image26.png) 14. Click **Update** to save the configuration. ![A view of the ServiceNow user interface showing the process of updating the filter configuration.](/images/integrations/service-now/vr/image27.png) 15. Click the (close) icon. 16. Click **Mark as Complete**. **Step 4** ### Configure import schedule The final step in the guided setup is to configure the import schedule to specify how often the integration should fetch attack path findings from BloodHound Enterprise and create ServiceNow tickets. 1. Click **Get Started** in the *Configure Import Schedule* section. ![A view of the ServiceNow user interface showing the guided setup for configuring the import schedule for fetching attack path findings from BloodHound Enterprise.](/images/integrations/service-now/vr/image28.jpeg) 2. Click **Configure** to schedule an import. ![A view of the ServiceNow user interface showing the process of configuring the import schedule for fetching attack path findings from BloodHound Enterprise.](/images/integrations/service-now/vr/image29.jpeg) 3. Click the **Run** dropdown menu and select one of the available options. ![A view of the ServiceNow user interface showing the process of configuring the import schedule for fetching attack path findings from BloodHound Enterprise.](/images/integrations/service-now/vr/image30.jpeg) 4. Enter frequency details and click **Update**. > [!TIP] > > You can also click **Execute Now** to run the import immediately. 5. Click the (close) icon. 6. Click **Mark as Complete**. The configuration is now complete. The integration will start fetching attack path findings from BloodHound Enterprise based on the configured schedule and create ServiceNow tickets accordingly. ## Next steps Learn [how to use](/integrations/service-now/vulnerability-response/use) the integration to view attack path data from BloodHound Enterprise in ServiceNow's Vulnerability Manager Workspace. # Troubleshoot Common Issues Source: https://bloodhound.specterops.io/integrations/service-now/vulnerability-response/troubleshoot Learn how to troubleshoot common installation, configuration, and performance issues with the Vulnerability Response Integration for ServiceNow. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) ## Installation issues Installation issues can arise due to various factors such as compatibility problems, insufficient permissions, or system resource limitations. Use the following troubleshooting steps to resolve common installation issues. > [accordion] Application fails to install from ServiceNow Store > > * Verify ServiceNow instance compatibility > * Check system logs for specific error messages > * Ensure adequate system resources are available > * Contact ServiceNow support if issues persist > [accordion] Missing application modules after installation > > * Verify installation completed successfully > * Check application scope settings > * Refresh browser cache and retry > * Re-install application if necessary ## Configuration issues Configuration issues can lead to failed API connections, data synchronization problems, or performance degradation. Use the following troubleshooting steps to resolve common configuration issues. ### API connection problems > [accordion] Unable to connect to SpecterOps BloodHound API > > * Verify API credentials (Token ID and Key) > * Check network connectivity and firewall rules > * Validate API endpoint URLs > * Test connectivity using external tools > [accordion] Authentication failures during API calls > > * Regenerate API tokens in BloodHound portal > * Verify token permissions and access rights > * Check token expiration dates > * Update credentials in ServiceNow configuration ### Data synchronization issues > [accordion] No data appearing in ServiceNow after configuration > > * Verify scheduled import jobs are running > * Check data filter configurations > * Validate environment selections > * Review system logs for import errors > [accordion] Incomplete or inconsistent data synchronization > > * Check API rate limiting settings > * Verify data mapping configurations > * Review network stability during sync operations > * Adjust import schedules if necessary ## Performance issues Performance issues can arise due to factors such as large data volumes, inefficient queries, or resource constraints. Use the following troubleshooting steps to optimize performance. ### Slow data loading > [accordion] Dashboard and workspace loading slowly > > * Optimize database queries > * Implement data caching strategies > * Review system resource utilization > * Consider data archiving for old records > [accordion] API timeouts during data import > > * Increase timeout settings > * Implement data pagination > * Schedule imports during low-traffic periods > * Optimize data filtering to reduce payload size # Use the Vulnerability Response Integration with BloodHound Enterprise Source: https://bloodhound.specterops.io/integrations/service-now/vulnerability-response/use Learn how to navigate the Vulnerability Manager Workspace to see attack path data from BloodHound Enterprise. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) The SpecterOps BloodHound Vulnerability Response Integration for ServiceNow provides a powerful solution for automating vulnerability management and remediation workflows based on attack path analysis. After [installation and configuration](/integrations/service-now/vulnerability-response/configure) is complete, you can start using the integration to view attack path data in ServiceNow's Vulnerability Manager Workspace. This section provides an overview of how to access and navigate the workspace to see the collected data from BloodHound Enterprise. > [!NOTE] > > See the ServiceNow [documentation](https://www.servicenow.com/docs/r/xanadu/security-management/vulnerability-response/vuln-landing-page.html) for more information about using the Vulnerability Manager Workspace. To access the Vulnerability Manager Workspace and view BloodHound data: **1. View the Vulnerability Manager Workspace** 1. Log into your ServiceNow instance. 2. Click **All** and enter *Vulnerability Manager Workspace* in the search bar and select it. ![A view of the ServiceNow interface showing the All menu and search bar with Vulnerability Manager Workspace entered](https://mintcdn.com/specterops/GHpimWrlrT3_S3F0/images/integrations/service-now/vr/image32.jpeg?fit=max\&auto=format\&n=GHpimWrlrT3_S3F0\&q=85\&s=456de8a779ecaa65cbc1a0387a678cd3) **2. Navigate the workspace to see BloodHound data** 1. Under the **View by** dropdown, select **All**. ![A view of the ServiceNow interface showing the View by dropdown with All selected](https://mintcdn.com/specterops/GHpimWrlrT3_S3F0/images/integrations/service-now/vr/image33.jpeg?fit=max\&auto=format\&n=GHpimWrlrT3_S3F0\&q=85\&s=dbe950d6e2849eef66614cade47943af) 2. Scroll down and select **BloodHound Enterprise**. ![A view of the ServiceNow interface showing the BloodHound Enterprise option selected](https://mintcdn.com/specterops/GHpimWrlrT3_S3F0/images/integrations/service-now/vr/image34.png?fit=max\&auto=format\&n=GHpimWrlrT3_S3F0\&q=85\&s=9de5981ef04b0793a42da018217e2e59) The following visualization shows the collected data in a graphical format. ![A view of the ServiceNow interface showing the graphical visualization of BloodHound data](https://mintcdn.com/specterops/GHpimWrlrT3_S3F0/images/integrations/service-now/vr/image35.png?fit=max\&auto=format\&n=GHpimWrlrT3_S3F0\&q=85\&s=f7495c45778747ca4ce5e19c256aa72d) ## Next steps After successful implementation and initial use of the integration, consider the following next steps to maximize value: 1. **User training**: Provide comprehensive training to security teams and ServiceNow users 2. **Process integration**: Integrate the solution with existing security processes and workflows 3. **Performance optimization**: Monitor and optimize performance based on usage patterns 4. **Regular updates**: Stay current with application updates and new features 5. **Expansion**: Consider expanding integration to additional environments and use cases ## Maintenance and support Ongoing maintenance and support are critical for ensuring the long-term success of the integration. Consider the following best practices: * **Regular health checks**: Schedule periodic reviews of integration health and performance * **Update management**: Plan for regular application and system updates * **Documentation updates**: Maintain current documentation as configurations change * **User feedback**: Collect and act on user feedback for continuous improvement # Integrate BloodHound Enterprise with Splunk SIEM Source: https://bloodhound.specterops.io/integrations/splunk/siem/install Learn how to install and configure the BloodHound Enterprise Splunk app to ingest BloodHound Enterprise data into Splunk. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) The [BloodHound Enterprise Splunk app](https://splunkbase.splunk.com/app/7818) ingests your BloodHound Enterprise data into Splunk. * Use the dashboards to track the Active Directory and Azure attack paths of your environment * Create alerts to detect when new attack paths emerge or exposure increases * Enrich your security information and event management (SIEM) data with information about the attack paths to and from principals in your environment ## Prerequisites Before you begin the installation and configuration process, ensure the following prerequisites are met: * Splunk instance (version 9.0.1 or later) and an admin account * BloodHound Enterprise tenant * BloodHound Enterprise [non-personal API key/ID pair](/integrations/bloodhound-api/working-with-api#create-a-non-personal-api-key%2Fid-pair) with the **Auditor** role ## Install the app Installing the BloodHound Enterprise Splunk app involves the following steps: **1. Navigate to Splunk app management** 1. Log in to Splunk Enterprise as an admin. 2. Click **Apps** > **Manage apps**. **2. Install the BloodHound Enterprise Splunk app** Use one of the following methods to install the BloodHound Enterprise Splunk app: > [tab] Splunkbase > > Install directly from Splunkbase: > > 1. Click **Browse More Apps**. > 2. Search for *BloodHound Enterprise*. > 3. Click **Install** > 4. Enter your Splunkbase credentials to authorize the download when prompted. > [tab] Downloaded package > > Install from a downloaded package: > > 1. Download the BloodHound Enterprise Splunk app package from [Splunkbase](https://splunkbase.splunk.com/app/7818). > 2. Click **Install App from File**. > 3. Select the downloaded package and click **Upload**. **3. Restart Splunk** After installing the app, restart your Splunk instance to apply the changes. > [!TIP] > > See [Splunk's documentation](https://help.splunk.com/en/splunk-enterprise/administer/admin-manual/9.0/welcome-to-splunk-enterprise-administration/start-splunk-enterprise-and-perform-initial-tasks/start-and-stop-splunk-enterprise) for more information. ## Configure the app (required) This section describes the minimum required configuration steps to get the BloodHound Enterprise Splunk app up and running. It involves the following steps: 1. Configure a Splunk index 2. Configure Splunk app API credentials 3. Configure Splunk data inputs > [!NOTE] > > Optional configurations are available in the [Configure the Splunk app (optional)](#configure-the-app-optional) section. **1. Configure a Splunk index** Create a dedicated index for the BloodHound Enterprise Splunk app data: 1. Click **Settings** > **Indexes** > **New Index**. 2. In the **Index Name** field, enter `bhe-splunk-app`. 3. In the **Data Integrity Check** field, select **Enabled**. 4. In the **App** field, select **BloodHound Enterprise**. 5. Click **Save**. ![A view of the Splunk 'New Index' configuration page showing the fields filled out for creating the 'bhe-splunk-app' index.](https://mintcdn.com/specterops/1w44dPwHX0hJEUPb/images/integrations/splunk/siem/new-index-config.png?fit=max\&auto=format\&n=1w44dPwHX0hJEUPb\&q=85\&s=3426d9f94136f09847b9ad1d432e6892) **2. Configure Splunk app API credentials** Configure the BloodHound Enterprise Splunk app with your BloodHound Enterprise API credentials. > [!NOTE] > > We recommend a [non-personal API key/ID pair](/integrations/bloodhound-api/working-with-api#create-a-non-personal-api-key%2Fid-pair) with the **Auditor** role for the Splunk integration. 1. Click **Apps** > **Manage Apps**. 2. Filter for the BloodHound Enterprise Splunk app and click on it. 3. Click the **Administration** drop-down menu and select **Configuration**. 4. Click **Add** to open the **Add Account** screen. 5. Complete the configuration fields: | Field | Description | | - | - | | **Account Name** | Unique name to identify the BloodHound Enterprise account in Splunk | | **Tenant Domain** | Your BloodHound Enterprise tenant (e.g., `https://mydomain.bloodhoundenterprise.io`) | | **Token ID** | Token ID associated with the BloodHound Enterprise account | | **Token key** | Token key associated with the BloodHound Enterprise account | 6. Click **Save** to apply the configuration. ![A view of the Splunk 'Add Account' page showing the fields configuring the app's API credentials.](https://mintcdn.com/specterops/1w44dPwHX0hJEUPb/images/integrations/splunk/siem/add-account.png?fit=max\&auto=format\&n=1w44dPwHX0hJEUPb\&q=85\&s=541d5abc990fd02caf7a8df80247dbc4) **3. Configure data inputs** Data inputs define what data the BloodHound Enterprise Splunk app collects from the BloodHound Enterprise API. > [!TIP] > > You can create multiple inputs of the same type, each with different configurations (e.g., different BloodHound Enterprise accounts, indices, and collection intervals). 1. Click **Apps** > **Manage Apps**. 2. Filter for the BloodHound Enterprise Splunk app and click on it. 3. Click the **Administration** drop-down menu and select **Inputs**. 4. Click **Create New Input**. 5. Select an input type from the drop-down menu. The BloodHound Enterprise Splunk app supports the following input types:
Input type Description
**Attack Paths** Retrieves a list of attack paths from the BloodHound Enterprise API and a list of various findings across a given time range.
**Audit Logs** Retrieves a list of audit logs from the BloodHound Enterprise API.
  • Requires the API user to have either the **Administrator** or **Auditor** role in BHE.
  • You can set the "Historical Polling Days" field to retrieve logs from the past N days, starting from the current date.
  • After the app fetches all logs for the specified period, the input continues polling only the latest audit logs.
  • If you need logs from a different time range, you can create a new input and fetch them separately.
**Tier Zero Assets** Ingests data for all asset members that belong to the Tier Zero privilege zone.
**Posture Statistics** Retrieves a history of statistics stored in the database using the BloodHound Enterprise API.
6. Complete the configuration fields for the selected input type. The following table describes fields that are common across all input types: | Field | Description | | - | - | | **Name** | Unique name identifying the input | | **Interval** | Interval (in seconds) at which the input runs | | **Index** | Index where the BloodHound Enterprise data is stored (`bhe-splunk-app`). You must clear the `default` value and search for the correct index. | | **Bloodhound Account** | BloodHound Enterprise account name (configured in Splunk) that will be used to fetch the data | 7. Click **Add** to create the input. ![A view of the Splunk 'Create New Input' configuration page showing the fields filled out for creating a new input.](https://mintcdn.com/specterops/1w44dPwHX0hJEUPb/images/integrations/splunk/siem/input-config.png?fit=max\&auto=format\&n=1w44dPwHX0hJEUPb\&q=85\&s=bf5e9f6b72d3f7cb1e1a8991e20270ac) Repeat the above steps to create additional inputs as needed. Data will now begin flowing into the environment. You can monitor this progress through Splunk itself with the following query: ```spl theme={null} index=_internal source="*splunkd.log" "BHE " ``` ## Configure the app (optional) This section describes optional configuration options for the BloodHound Enterprise Splunk app, including: 1. Configure a Splunk search macro 2. Configure a Splunk proxy 3. Configure Splunk logging **1. Configure search macro** The BloodHound Enterprise Splunk app includes a [search macro](https://help.splunk.com/en/splunk-enterprise/manage-knowledge-objects/knowledge-management-manual/9.4/search-macros/use-search-macros-in-searches) (`bhe_index`) that points to the default index where Splunk stores BloodHound Enterprise data (`bhe-splunk-app`). ![A view of the Splunk 'Search Macros' page showing the default 'bhe_index' macro.](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/siem/search-macro.png?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=462715ade7e62760c1efbd8d883f3219) To view or modify the search macro: 1. Click **Settings** > **Advanced search**. 2. Click **Search macros**. 3. Filter for `bhe_index`. If you used a different index name, edit the macro **Definition** field to match that name. ```spl theme={null} index=my_custom_bhe_index ``` If you maintain separate indexes per input type, modify the macro definition accordingly. For example: ```spl theme={null} index=attack_path_index OR index=audit_log_index OR index=posture_stats_index ``` **2. Configure a proxy** Splunk allows you to configure a proxy to route traffic through an intermediary server. This might be useful for network security and compliance requirements. 1. Click **Apps** > **Manage Apps**. 2. Filter for the BloodHound Enterprise Splunk app and click on it. 3. Click the **Administration** drop-down menu and select **Configuration**. 4. Click the **Proxy Settings** tab. 5. Complete the configuration fields: | Field | Description | | - | - | | **Enable** | Checkbox to enable or disable the proxy configuration | | **Proxy Type** | Drop-down to choose the type of proxy (http, socks4, socks5) | | **Host** | Enter the proxy hostname or IP address | | **Port** | Specify the port number (e.g., 8080) | | **Username** | If authentication is required, enter the username | | **Password** | If authentication is required, enter the corresponding password | 6. Click **Save** to apply the proxy settings. 7. Restart Splunk. > [!TIP] > > See [Splunk's documentation](https://help.splunk.com/en/splunk-enterprise/administer/admin-manual/9.0/welcome-to-splunk-enterprise-administration/start-splunk-enterprise-and-perform-initial-tasks/start-and-stop-splunk-enterprise) for more information. **3. Configure logging** You can configure logging settings for the BloodHound Enterprise Splunk app to help with troubleshooting and monitoring. 1. Click **Apps** > **Manage Apps**. 2. Filter for the BloodHound Enterprise Splunk app and click on it. 3. Click the **Administration** drop-down menu and select **Configuration**. 4. Click the **Logging** tab. 5. Select one of the following options from the **Log level** drop-down menu: | Log level | Description | | - | - | | **DEBUG** | Most verbose; use for troubleshooting | | **INFO** | Standard logs (default) | | **WARNING** | Warnings only | | **ERROR** | Errors only | 6. Click **Save** to apply the changes. The BloodHound Enterprise Splunk app writes logs to: ```text theme={null} $SPLUNK_HOME/var/log/splunk/ta_bloodhound_enterprise_.log ``` You can search logs in Splunk using: ```spl theme={null} index="_internal" sourcetype="ta_bloodhound_enterprise:log" ``` Use the `tail` command to monitor logs in real-time: ```bash theme={null} tail -f $SPLUNK_HOME/var/log/splunk/ta_bloodhound_enterprise_.log ``` ## Monitor and troubleshoot The **BHE Integration Health** dashboard is designed to help you monitor and troubleshoot errors related to the BloodHound Enterprise Splunk app. This dashboard provides real-time insights into the system failures, allowing you to quickly identify and resolve issues. It retrieves and displays error logs with the following Splunk query: ```spl theme={null} index=bhe-splunk-app sourcetype=BHE:error ``` > [!NOTE] > > This dashboard does not provide filters. Here are some recommendations for using the **BHE Integration Health** dashboard to troubleshoot issues: * Identify the function causing the error in the Detailed Error Logs table * Look for recurring errors in Error Summary and Top Error Functions * Apply the relevant steps above based on the error type * If issues persist, inspect Splunk internal logs > [!NOTE] > > See [Troubleshooting](/integrations/splunk/siem/troubleshoot) for common issues and resolutions. To access the **BHE Integration Health** Dashboard: 1. Log in to Splunk Enterprise as an admin. 2. Click **Apps** > **Manage apps**. 3. Filter for the BloodHound Enterprise Splunk app and click on it. 4. Click the **Administration** drop-down menu and select **BHE Integration Health Dashboard**. ### Error Trend Over Time This panel shows which functions are generating the most errors in the BloodHound Enterprise Splunk app. ![A view of the Error Trend Over Time panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/1w44dPwHX0hJEUPb/images/integrations/splunk/siem/error-trend-over-time.png?fit=max\&auto=format\&n=1w44dPwHX0hJEUPb\&q=85\&s=7b7f15f2efd2d73ae24bfe323b5b8920) ### Errors by Function This panel shows a chart of errors (by function) generating errors in the BloodHound Enterprise Splunk app. ![A view of the Errors by Function panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/1w44dPwHX0hJEUPb/images/integrations/splunk/siem/errors-by-function.png?fit=max\&auto=format\&n=1w44dPwHX0hJEUPb\&q=85\&s=1618d61758d16599634b7cf40e175031) ### Top 10 Frequent Errors This panel shows a chart of the top ten most frequent error messages occurring in the BloodHound Enterprise Splunk app. ![A view of the Top 10 Frequent Errors panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/siem/top-10-frequent-errors.png?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=d7bf7d2c43026f2b16da5bbb1a23ef5e) ### Raw Error Logs This panel provides a detailed table of raw error logs generated by the BloodHound Enterprise, including timestamps, function names, and error messages. ![A view of the Raw Error Logs panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/siem/raw-error-logs.png?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=0b80ade43337acb21eac1cf9c5ebf59d) # Troubleshoot the BloodHound Enterprise Splunk app Source: https://bloodhound.specterops.io/integrations/splunk/siem/troubleshoot Learn how to troubleshoot common issues with the BloodHound Enterprise Splunk app using the BHE Integration Health dashboard. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) This page covers common errors you may encounter when using the BloodHound Enterprise Splunk app, their possible causes, and steps to resolve them. > [!TIP] > > The app includes a built-in **BHE Integration Health** dashboard that you can use to monitor the status of the integration and troubleshoot common issues. See the [BHE Integration Health](/integrations/splunk/siem/install#monitor-and-troubleshoot) section in the installation guide for details about accessing and using the dashboard. ## List index out of range * Causes: * API response does not contain the expected structure * Code accesses an empty list without validation * Steps: * Identify the function in the error log table * Review recent API changes that could affect response shape * Add safe checks before indexing lists (e.g., verify length > 0) ## API authentication (401 Unauthorized) * Causes: * Expired or invalid API token * Incorrect credentials in the BHE App configuration * Steps: * Verify the API token value and expiry * Confirm correct credentials in the BHE App settings * If using OAuth, refresh the access token and restart the app ## Connectivity issues (Timeout/500) * Causes: * Network problems between Splunk and the BHE API * API service downtime or high latency * Steps: * Test connectivity with `ping` or `curl` from the Splunk host * Verify the BHE API endpoint is reachable from Splunk * Check provider status or maintenance notices ## Proxy errors Example error: ``` HTTPSConnectionPool(host='demo.bloodhoundenterprise.io', port=443): Max retries exceeded with url: /api/v2/posture-stats (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 113] No route to host'))) ``` * Causes: * Incorrect proxy settings in Splunk * Proxy server unreachable or misconfigured * Steps: * Verify Splunk proxy settings match your network configuration * Check the proxy server status and reachability from Splunk * Test connectivity with `curl -x https://demo.bloodhoundenterprise.io` # Use the BloodHound Enterprise Splunk app Source: https://bloodhound.specterops.io/integrations/splunk/siem/use Learn how to use the BloodHound Enterprise Splunk app to visualize and analyze BloodHound Enterprise data within Splunk. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) The BloodHound Enterprise Splunk app provides several dashboards that allow you to gain insights into your environments. These dashboards visualize data ingested from various BloodHound Enterprise data inputs, including posture statistics, attack paths, audit logs, and tier zero assets. > [!TIP] > > You configure the [data inputs](/integrations/splunk/siem/install#configure-the-app-required) for these dashboards during the installation and configuration of the BloodHound Enterprise Splunk app. Each dashboard offers filtering options to help you analyze data based on different parameters such as BloodHound Enterprise tenant, domain, and time range. Dashboards also provide standard Splunk controls for managing dashboards and visualizations. See the Splunk [documentation](https://docs.splunk.com/Documentation/Splunk/latest/Viz/Dashboards) for more information. ## Dashboard Summary Use this overview to find the right dashboard quickly. Detailed panels and filters are documented in each subsection below. | Dashboard | Purpose | Data Input | | - | - | - | | Posture History | Monitor posture trends (exposure, findings, attack paths, Tier Zero assets) over time for selected tenants and environments | Posture Statistics | | Attack Paths | Analyze attack paths across domains, including principals involved, exposure levels, severity, and associated findings | Attack Paths | | Audit Logs | Filter and analyze administrative and system audit events collected by BloodHound Enterprise | Audit Logs | | Tier Zero Assets | Inventory Tier Zero assets across domains and analyze their distribution and details | Tier Zero Assets | ## Posture History The **Posture History** dashboard helps you monitor [posture](/analyze-data/findings/posture) trends over time for your BloodHound Enterprise tenants and environments. It provides insights about trends in exposure levels, findings, attack paths, and Tier Zero assets. All panels in this dashboard use data from the **Posture Statistics** data input and share the following filters: * BloodHound Tenant * Environment * Time Range The following sections describe each panel on this dashboard. ### Exposure This panel shows the trend (by percentage) of exposure over time for the selected BloodHound tenant(s) and environment(s) within a specified time range. ![A view of the Posture History Exposure panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/siem/posture-exposure-percentage.png?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=2adf59126950e370f8dacc45b0c391b4) ### Findings This panel shows the trend (by count) of posture findings over time for the selected BloodHound tenant(s) and environment(s) within a specified time range. ![A view of the Posture History Findings panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/siem/posture-findings.png?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=2400688a410cfddc7d0bb6308400ae0c) ### Attack Path This panel shows the trend (by count) of critical attack paths over time for the selected BloodHound tenant(s) and environment(s) within a specified time range. ![A view of the Posture History Attack Path panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/siem/posture-attack-path.png?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=31ec0262e48816f303e8916da9397dc2) ### Assets This panel shows the trend (by count) of Tier Zero assets over time for the selected BloodHound tenant(s) and environment(s) within a specified time range. ![A view of the Posture History Assets panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/siem/posture-assets.png?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=3e673a86f4dabd7a822a1b3ed526dd54) ## Attack Paths The **Attack Paths** dashboards allows you to analyze attack paths identified by BloodHound Enterprise across your configured domains. It provides detailed information about principals that can compromise the Tier Zero Privilege Zone, their exposure levels, severity, and associated findings. ### Overview This dashboard summarizes attack path findings (by count, severity, and frequency) across selected BloodHound tenant(s) and environment(s) within a specified time range. All panels in this dashboard use data from the **Attack Paths** data input and share the following filters: * BloodHound Tenant * Environment * Severity * Time Range #### Total Domain Wise Attack Paths per Domain This panel shows the total count of attack paths (by domain) identified in the selected BloodHound tenant(s) and environment(s) within a specified time range. ![A view of the Attack Paths Total Domain Wise Attack Paths per Domain panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/1w44dPwHX0hJEUPb/images/integrations/splunk/siem/attack-paths-total.png?fit=max\&auto=format\&n=1w44dPwHX0hJEUPb\&q=85\&s=f90136c58f548545453f3aae6d73100c) #### Severity Breakdown This panel shows the distribution of findings (by severity) for the selected BloodHound tenant(s) and environment(s) within a specified time range. ![A view of the Attack Paths Severity Breakdown panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/1w44dPwHX0hJEUPb/images/integrations/splunk/siem/attack-paths-severity.png?fit=max\&auto=format\&n=1w44dPwHX0hJEUPb\&q=85\&s=34b7ff21fa1fc81a3d1d85b71c462657) #### Top 5 Non-Tier Zero Principals Involved This panel shows the top five non-tier Zero principals most frequently involved in attack path findings for the selected BloodHound tenant(s) and environment(s) within a specified time range. ![A view of the Attack Paths Top 5 Non-Tier Zero Principals Involved panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/1w44dPwHX0hJEUPb/images/integrations/splunk/siem/attack-paths-top-principals.png?fit=max\&auto=format\&n=1w44dPwHX0hJEUPb\&q=85\&s=19307011a9da7df5f19f35e8f352e2ff) #### Top 5 Most Common Findings This panel shows the top five most common finding types (by frequency) for the selected BloodHound tenant(s) and environment(s) within a specified time range. ![A view of the Attack Paths Top 5 Most Common Findings panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/1w44dPwHX0hJEUPb/images/integrations/splunk/siem/attack-paths-top-findings-common.png?fit=max\&auto=format\&n=1w44dPwHX0hJEUPb\&q=85\&s=7bb08d8f9262f4ab3bf8ff0fd268e5cf) #### Top 5 Most Common Findings Per Environment This panel shows the top five most common finding types (by frequency) per environment for the selected BloodHound tenant(s) and environment(s) within a specified time range. ![A view of the Attack Paths Top 5 Most Common Findings Per Environment panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/1w44dPwHX0hJEUPb/images/integrations/splunk/siem/attack-paths-top-findings-environment.png?fit=max\&auto=format\&n=1w44dPwHX0hJEUPb\&q=85\&s=e22767107c61943bfd9c07518c6e67a5) #### Top 10 Attack Paths by Exposure This panel shows the top ten attack paths (by exposure percentage) for the selected BloodHound tenant(s) and environment(s) within a specified time range. ![A view of the Attack Paths Top 10 Attack Paths by Exposure panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/1w44dPwHX0hJEUPb/images/integrations/splunk/siem/attack-paths-top-ten.png?fit=max\&auto=format\&n=1w44dPwHX0hJEUPb\&q=85\&s=d34cbd645f81b6fe5563f2fbdaae135d) > [!NOTE] > > Details also include links to BloodHound Enterprise remediation documentation. ### Details This dashboard provides more granular details about specific attack paths identified by BloodHound Enterprise. It allows you to investigate principals involved in attack paths, their exposure levels, and associated findings. All panels in this dashboard use data from the **Attack Paths** data input and share the following filters: * BloodHound Tenant * Environment * Attack Paths * Severity * Time Range #### Principals This panel shows all principals based on the selected filters. It provides the following detailed information about each principal: | | | | - | - | | Non-Tier Zero Principal | Impact Count | | Tier Zero Principal | SAM Account Name | | Display Name | Sensitive | | Finding Name | Last Logon | | Distinguished Name | Last Logon Timestamp | | Severity Level | Created Timestamp | | Impact Percentage | First Seen | | Last Updated | | ![A view of the Attack Paths Details Principals panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/1w44dPwHX0hJEUPb/images/integrations/splunk/siem/attack-path-details-principals.png?fit=max\&auto=format\&n=1w44dPwHX0hJEUPb\&q=85\&s=eb74729ce941e14713d5ab96c3fb2b09) #### Maximum Exposure Percentage This panel shows the highest exposure (by percentage) for the specified filters. ![A view of the Attack Paths Details Maximum Exposure Percentage panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/1w44dPwHX0hJEUPb/images/integrations/splunk/siem/attack-path-details-max-exposure.png?fit=max\&auto=format\&n=1w44dPwHX0hJEUPb\&q=85\&s=d657b13502dfe274b0afd62b81226d54) #### Total Number of Findings This panel shows the total number of findings (by count) for the specified filters. ![A view of the Attack Paths Details Total Number of Findings panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/1w44dPwHX0hJEUPb/images/integrations/splunk/siem/attack-path-details-total-findings.png?fit=max\&auto=format\&n=1w44dPwHX0hJEUPb\&q=85\&s=62412db16683638dad0d9cf6618abab5) ### Finding Trends This dashboard provides trend analysis of attack path findings over time. It helps you understand how the exposure and frequency of findings change over time for selected BloodHound tenant(s) and environment(s) within a specified time range. All panels in this dashboard use data from the **Attack Paths** data input and share the following filters: * BloodHound Tenant * Environment * Category * Time Period #### Attack Path Trends This panel shows the trend (by category) of attack paths over time for the selected BloodHound tenant(s) and environment(s) within a specified time range. Categories include: * Tier Zero * Kerberos * AD Certificate Services * Relay attacks * Least privilege * Entra ID * Hybrid * Microsoft Graph * Azure Resource Manager ![A view of the Attack Paths Finding Trends panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/1w44dPwHX0hJEUPb/images/integrations/splunk/siem/attack-paths-finding-trends.png?fit=max\&auto=format\&n=1w44dPwHX0hJEUPb\&q=85\&s=a540649124b3b01816d4eeddb211447e) ## Audit Logs This dashboard allows you to filter and analyze administrative and system audit events collected by BloodHound Enterprise. All panels in this dashboard use data from the **Audit Logs** data input and share the following filters: * BloodHound Tenant * Event Type * Actor Name * Time Range The audit log table provides the following information about each event: | | | | - | - | | ID | Created At | | Actor ID | Actor Name | | Actor Email | Action (event type) | | Fields | Request ID | | Source IP address | Commit ID | | Status | | ![A view of the Audit Logs dashboard in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/1w44dPwHX0hJEUPb/images/integrations/splunk/siem/audit-logs.png?fit=max\&auto=format\&n=1w44dPwHX0hJEUPb\&q=85\&s=75b1334189f4230a364359e9b4f955a1) > [!TIP] > > Clicking on any row in the Audit Logs table will open a detailed view of the selected audit event, providing additional context and information. ## Tier Zero Assets This dashboard provides an inventory of Tier Zero assets identified by BloodHound Enterprise across your configured domains. It helps you analyze the distribution and details of Tier Zero assets. All panels in this dashboard use data from the **Tier Zero Assets** data input and share the following filters: * BloodHound Tenant * Environment * Type ### Tier Zero Assets List This panel provides a detailed listing of Tier Zero assets across your configured domains. It includes the following information about each asset: * Name * Environment * Type * Object ID ![A view of the Tier Zero Assets List panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/siem/tier-zero-assets-list.png?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=556f7a7d06dae80e9d29964b4e1d6332) ### Tier Zero Assets Distribution By Environment This panel shows how Tier Zero assets are distributed across the selected BloodHound tenant(s), environment(s), and asset type(s). ![A view of the Tier Zero Assets Distribution By Environment panel in the BloodHound Enterprise Splunk app](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/siem/tier-zero-assets-distribution.png?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=c1527ee76fa7f7db0535f59acd1c676b) ## Search See the Splunk [documentation](https://help.splunk.com/en/splunk-enterprise/search/search-manual/10.0/search-overview/get-started-with-search) for details about using Splunk Search to create custom queries and visualizations based on BloodHound Enterprise data. ## Administration See [install and configure](/integrations/splunk/siem/install) the BloodHound Enterprise Splunk app for details about configuring data inputs and other administrative tasks. # Integrate BloodHound Enterprise with Splunk SOAR Source: https://bloodhound.specterops.io/integrations/splunk/soar/configure Learn how to install and configure the BloodHound Enterprise Splunk SOAR app to ingest attack path findings into Splunk SOAR. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Splunk SOAR (formerly Phantom) helps security teams orchestrate tools and automate response workflows. This guide focuses on installing and configuring the BloodHound Enterprise app in Splunk SOAR. > [!NOTE] > > For platform concepts, terminology, and product capabilities, see the [Splunk SOAR documentation](https://help.splunk.com/en/splunk-soar). The [BloodHound Enterprise for Splunk SOAR app](https://splunkbase.splunk.com/app/7772) allows you to view attack path findings from BloodHound Enterprise within the Splunk SOAR platform. This integration enables security teams to monitor and respond to potential attack paths in real-time using Splunk SOAR's automation capabilities. Integrating BloodHound with Splunk SOAR provides the following advantages: * **Get real-time visibility into attack path findings**: View BloodHound Enterprise findings in Splunk SOAR as they are detected. * **Automate response playbooks from BloodHound detections**: Trigger investigation and containment workflows automatically when BloodHound Enterprise identifies a risk. * **Reduce manual triage and improve consistency**: Standardize repeatable response actions across your existing security tooling. * **Accelerate mitigation of privilege escalation risks**: Use automated tasks to respond to high-impact identity threats faster. ## Prerequisites Before you begin the installation and configuration process, ensure the following prerequisites are met: * Admin access to a Splunk SOAR instance * Access to a BloodHound Enterprise tenant * BloodHound Enterprise [non-personal API key/ID pair](/integrations/bloodhound-api/working-with-api#create-a-non-personal-api-key%2Fid-pair) with the **Auditor** role ## Install the app Installing the BloodHound Enterprise for Splunk SOAR app involves the following steps: **1. Navigate to Splunk SOAR** 1. Log in to your Splunk SOAR instance as an admin. 2. Click on the **Home** dropdown in the top-left corner and select **Apps**. ![Splunk SOAR home dropdown with Apps option highlighted](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/soar/image10.jpeg?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=74c9a3298d513e9a7edd653a92e69867) **2. Install the app in Splunk SOAR** 1. Enter *BloodHound* in the app search box. ![Splunk SOAR app search box](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/soar/image11.jpeg?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=76f9b7d479e223e77514175bacf39f7f) 2. Click **Install**. ![Splunk SOAR install app confirmation](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/soar/image12.jpeg?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=3c00dbe73f78008394437d7e31648149) After installing the app, you can see it in the **Unconfigured Apps** section. ![Splunk SOAR unconfigured apps section](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/soar/image13.jpeg?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=2e3af708e1c912d915de0bcc31b44f4b) ## Configure the app After installing the BloodHound Enterprise for Splunk SOAR app, you need to configure it to connect to your BloodHound Enterprise tenant and start ingesting attack path findings. The configuration process involves the following steps: **1. Navigate to app configuration** On the **Unconfigured Apps** page, click **Configure New Asset** for the BloodHound Enterprise app. ![Splunk SOAR unconfigured apps section with Configure New Asset](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/soar/image14.jpeg?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=e32e692bb6963d5ef69f3ecd0c86321b) **2. Enter asset details** 1. Enter the **Asset name** and the **Asset description**. ![Splunk SOAR BloodHound Enterprise app details page with Configure button highlighted](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/soar/image15.png?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=acd84553c7d0cab54dbc8bb47da6cd72) 2. Click **Save**. **3. Configure API credentials** 1. Click **Asset Settings** to set up the connection to BloodHound Enterprise. 2. Enter the following details: | Field | Description | | - | - | | **BloodHound Enterprise Domain** | The URL you use to access your BloodHound Enterprise tenant | | **Token Key** | The token key from your BloodHound Enterprise non-personal API key/ID pair | | **Token ID** | The token ID from your BloodHound Enterprise non-personal API key/ID pair | ![Splunk SOAR BloodHound Enterprise app asset settings page for API credentials configuration with BloodHound Enterprise Domain, Token Key, and Token ID fields](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/soar/image16.jpeg?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=570ea50a329d4384a5cf14c909891d8e) 3. Click **Save**. **4. Configure data ingestion** 1. Click **Ingest Settings** to set up how the app ingests data from BloodHound Enterprise. 2. Configure the following settings: | Field | Description | | - | - | | **Label to apply to objects from this source** | Select **events** to label ingested data as events in Splunk SOAR | | **Select a polling interval or schedule to configure polling on this asset** | Choose how often the app should poll BloodHound Enterprise for new findings. For testing, you can select **Off** and use manual polling. | ![Splunk SOAR ingest settings page with Label to apply to objects from this source and Select a polling interval or schedule to configure polling on this asset fields highlighted](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/soar/image17.jpeg?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=b2fe39638edee6de2f0a0779f0e82b6b) 3. Click **Save**. **5. Test connectivity** Go back to **Asset Settings** and click **Test Connectivity** to verify the configuration. ![Splunk SOAR test connectivity page](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/soar/image18.jpeg?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=d2fda7bc5df73f799dbebee52e02e0a2) If the configuration is correct, Splunk SOAR confirms that the app is connected successfully, as shown in the following image. ![Splunk SOAR successful connectivity confirmation](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/soar/image19.jpeg?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=b0a7867d939e384d8b233a61708bed93) **6. Ingest data** If you set the polling interval to **Off** for testing, you can manually poll for events to start ingesting data from BloodHound Enterprise. 1. Click **Ingest Settings**. 2. Enter the following values: | Field | Description | | - | - | | **Maximum containers** | The maximum number of containers (event groupings) to ingest per polling cycle. | | **Maximum artifacts** | The maximum number of artifacts (individual data items) to ingest per polling cycle. | > [!NOTE] > > See the [Splunk SOAR documentation](https://help.splunk.com/en/splunk-soar) for more information about these settings. 3. Click **Poll Now**. ![Splunk SOAR poll now option](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/soar/image20.png?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=6c8a409ea83b370cddb19e8d22d4c74e) After polling completes, confirm that containers and artifacts were added successfully, as shown below. ![Splunk SOAR successful data ingestion confirmation](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/soar/image21.jpeg?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=09749064c0a45f14da4c0284935b048b) 4. Click **Close**. ## Next steps The configuration is now complete. You can [view attack path findings](/integrations/splunk/soar/use) from BloodHound Enterprise in Splunk SOAR and use them to trigger automated response playbooks. # Use the Splunk SOAR integration for BloodHound Enterprise Source: https://bloodhound.specterops.io/integrations/splunk/soar/use Learn how to use the BloodHound Enterprise Splunk SOAR app to view attack path findings in Splunk SOAR. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) After installation and configuration are complete, you can view attack path findings from BloodHound Enterprise in Splunk SOAR. This allows you to monitor potential attack paths in real-time and trigger automated response playbooks based on BloodHound Enterprise detections. To view attack path findings from BloodHound Enterprise in Splunk SOAR: 1. Log in to your Splunk SOAR instance. 2. Click the **Events** tab to view all polled events. ![Splunk SOAR events view showing BloodHound Enterprise findings](https://mintcdn.com/specterops/HbCgAIdv_OAN1gyR/images/integrations/splunk/soar/image22.png?fit=max\&auto=format\&n=HbCgAIdv_OAN1gyR\&q=85\&s=a7c92f01d25ef7c7551430f76cbfe10b) > [!NOTE] > > See the [Splunk SOAR documentation](https://help.splunk.com/en/splunk-soar/soar-cloud/use-soar-cloud/introduction/about-splunk-soar-cloud) for more information about working with events. # Configure ETAC Source: https://bloodhound.specterops.io/manage-bloodhound/auth/environment-targeted-access-control Configure Environment Targeted Access Control to limit user access by environment. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Environment Targeted Access Control (ETAC) helps you apply least-privilege access in BloodHound Enterprise. Use ETAC to limit which environments **User** and **Read-only** user roles can access. > [!NOTE] > > This is a SpecterOps-managed feature. If it is not enabled in your environment, contact your account team for assistance. ## How ETAC works ETAC adds environment scoping to the baseline permissions granted by the assigned role. This can be useful for large, complex environments where users only need access to a subset of environments to perform their work. * ETAC is a premium add-on and may not be available in every tenant. * ETAC applies to **User** and **Read-only** roles only. ETAC settings appear when you create or edit a user with one of those roles. * If you do not select any environments, the user has no environment access by default. * If you select specific environments, the user can access data for those environments only. > [!NOTE] > > Roles still define the baseline [permissions](/manage-bloodhound/auth/users-and-roles#user-role-definitions) that control which actions a user can perform. ETAC further limits which environments those actions apply to. ## What users experience After you save ETAC settings, scoped users see only the data and navigation options allowed by both their role and ETAC configuration. * On the **Attack Paths** and **Posture** pages, users can see data from authorized environments only. Filters do not include unauthorized environments. * On the **Explore** page, users can access data from assigned environments only. If a search returns results from unauthorized environments, the graph still represents the full result set, but nodes and edges from unauthorized environments are hidden, and a message indicates that role-based access filtering is applied. ![A view of the graph on the Explore page with ETAC filtering applied, showing hidden objects from unauthorized environments](https://mintcdn.com/specterops/9RVoey6peB1N9pPC/images/manage/etac-hidden-objects.png?fit=max\&auto=format\&n=9RVoey6peB1N9pPC\&q=85\&s=0d765a3c39ed2a0811e47b970b04c82b) * On the **Zone Builder** page, a *Permission Denied!* message can appear for ETAC users even when they have authorized environment access, depending on their role permissions and ETAC scope. When access is allowed, users can view objects from their authorized environments only; available actions still depend on role permissions. * Access to all other pages is unaffected, but the baseline [permissions](/manage-bloodhound/auth/users-and-roles#user-role-definitions) of the assigned role still apply. ## Configure ETAC for a user Use the create or edit user workflow to configure ETAC for an eligible role and assign environments. **1. Open the Manage Users page** In the left menu, click **Administration** > **Manage Users**. **2. Create or edit a user** To create a new user, click **Create User**. To edit an existing user, click the hamburger menu next to the user record in the list and select **Update User**. **3. Assign an eligible role** In the **Role** field, select **User** or **Read-only**. When you select an eligible role, the ETAC options display in a new section beside the **Add/Edit User** form. ![A view of the ETAC controls in the create/edit user workflow](https://mintcdn.com/specterops/9RVoey6peB1N9pPC/images/manage/etac-controls.png?fit=max\&auto=format\&n=9RVoey6peB1N9pPC\&q=85\&s=80a285e148ae4860b5f16d113eeb9857) **4. Review the default ETAC state** By default, no environments are selected, which means a user in this state has no environment access and cannot use the following pages until you select environments and save the user record: * **Attack Paths**: The user sees no data and cannot use filters. * **Explore**: The user can open the page, but sees a *Role-based access filtering applied* message and cannot see data. * **Posture**: The user can open the page, but cannot see data or use filters. * **Zone Builder**: The user can open the page, but may receive a *Permission Denied!* message. Users can view objects from their authorized environments only; available actions still depend on role permissions. **5. Select environments manually** Choose one or more environments from the list to grant user access to the data in those environments only. > [!TIP] > > Use the search box to filter the list when you need to find a specific environment quickly. **6. Save the user changes** Click **Save** to create or update the user record. The user can access only the environments and pages allowed by the saved configuration. # Enable/Disable Multi-Factor Authentication Source: https://bloodhound.specterops.io/manage-bloodhound/auth/mfa ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) ## Purpose This article describes how to enable/disable Multi-Factor Authentication (MFA) for a BloodHound user configured for built-in authentication. ## Process 1. Log into your BloodHound tenant. 2. In the top right, click settings  **My Profile** ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-2-2.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=73f45417f345a9286fa57c890ab01509) 3. Toggle the Multi-Factor Authentication switch ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-2-3.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=dd6d22e937007c1afa36ecab42027d27) 4. Continue in one of the two headings below: * Enabling MFA * Disabling MFA ### **Enabling MFA** 1. In the pop-up, confirm your user's password and click on **Next** ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-4.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=c9cf05bff07197b347a55ccb99d91fc6) 2. Scan the QR code with your multi-factor authentication application, enter the 6-digit one-time password, and click **Next** ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-5.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=eea5e105b925cf677258ca2803e3e76e) 3. Multi-factor authentication is now enabled, click **Close** ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-6.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=1fdfec8dabfe76b6c1d595feb18a5a07) ### **Disabling MFA** 1. In the pop-up, confirm your user's password and click on **Disable Multi-Factor Authentication** ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-7.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=e2d042aeb3cd79b09d4626655d4a3207) 2. Multi-factor authentication is now disabled ## Outcome If enabling MFA, next time you log in, you'll need to use both your password and authentication code. If you lose your authentication code device, you'll need to contact an Administrator of your BloodHound tenant who can reset your MFA configuration. ![](https://mintcdn.com/specterops/3L2OuEwvAIHzUPXm/assets/image-2-8.png?fit=max\&auto=format\&n=3L2OuEwvAIHzUPXm\&q=85\&s=6bf5093a4ba80a6f068b2c3c6b89b00d) # OIDC in BloodHound Source: https://bloodhound.specterops.io/manage-bloodhound/auth/oidc BloodHound supports OIDC for Single Sign On to authenticate users to your tenant environment. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) You can configure multiple SSO providers within your tenant if necessary. This page provides the overall steps to configure an OIDC provider within BloodHound. > [!NOTE] > > Entra ID is not currently supported with BloodHound's OIDC implementation. Use the [SAML configuration](/manage-bloodhound/auth/saml-entra-id) instead. ## Order of Operations You must configure OIDC in BloodHound in the following order: 1. Determine the Identity Provider (IDP) name you will use for the OIDC configuration. The same value must be configured in both the IDP and BloodHound. The BloodHound callback URL will include this value. 2. Configure the IDP for BloodHound. See the [Configure Okta](/manage-bloodhound/auth/oidc-okta) guide for configuring Okta as your OIDC provider. 3. Create the OIDC configuration in BloodHound. 4. Create new users or modify existing users using the UI or via the newly created OIDC provider. > [!WARNING] > > OIDC users must have an email address that is **unique** across all authentication methods (built-in, OIDC, SAML). Account creation fails if a duplicate email is detected. > > ![A view of the error message shown when attempting to create a user with a duplicate email address.](https://mintcdn.com/specterops/NGsFbT_FAx51IRIW/images/sso/create_user_fail_email.png?fit=max\&auto=format\&n=NGsFbT_FAx51IRIW\&q=85\&s=2f0017b783b1cf8e922cc5eeeb84d084) ## User Role Mapping First name, last name, and email are populated when the correct key/value pairs are provided in the OIDC assertion payload. > [!WARNING] > > If omitted, fields default to the user's email. A role is applied when the role attribute/claim key is present and its value is a properly formatted BloodHound role. Role values use the prefix `bh-` and are written in kebab-case. See [Administer Users and Roles](/manage-bloodhound/auth/users-and-roles) for capabilities and scopes. | **Role** | **Key Value** | | - | - | | Administrator | bh-administrator | | Power User | bh-power-user | | Auditor | bh-auditor | | User | bh-user | | Read Only | bh-read-only | | Upload Only | bh-upload-only | > [!NOTE] > > Only one role can be passed per user. If multiple roles are provided, BloodHound ignores them and applies the provider's default role. ## BloodHound Icons If your IDP supports custom icons for configured applications, please feel free to use the logos below: * [Enterprise Dark-colored icon](https://raw.githubusercontent.com/SpecterOps/BloodHound-docs/main/docs/logo/BHE_PurpleField.png) * [Enterprise Light-colored icon](https://raw.githubusercontent.com/SpecterOps/BloodHound-docs/main/docs/logo/BHE_WhiteField.png) * [BHCE Dark-colored icon](https://raw.githubusercontent.com/SpecterOps/BloodHound-docs/main/docs/logo/BHCE_RedField.png) * [BHCE Light-colored icon](https://raw.githubusercontent.com/SpecterOps/BloodHound-docs/main/docs/logo/BHCE_WhiteField.png) ## Configure BloodHound Ensure you have configured an IDP for BloodHound as described in **Order of Operations** before proceeding. **1. Open the SSO Configuration page** > [!NOTE] > > You must be logged in as an Administrator to perform this action. In the left menu, click **Administration** > **Authentication** > **SSO Configuration**. **2. Select a provider type** Click **Create Provider** > **OIDC Provider**. ![A view of the SSO Configuration page with the Create Provider button highlighted.](https://mintcdn.com/specterops/NGsFbT_FAx51IRIW/images/sso/create_provider.png?fit=max\&auto=format\&n=NGsFbT_FAx51IRIW\&q=85\&s=b3ffad66b779780578edf6c77d2cdb16) **3. Enter provider details** Enter the **OIDC** provider details. | Field | Auth Type | Description | | - | - | - | | **Provider Name** | OIDC and SAML | Name of the SAML or OIDC application in your identity provider; must match exactly | | **Client ID** | OIDC only | Client identifier issued by the identity provider | | **Issuer** | OIDC only | Issuer URL from the identity provider | | **Metadata File** | SAML only | SAML metadata XML from the identity provider | | **Default Role** | OIDC and SAML | Role applied when the OIDC provider does not supply one | **4. Save the configuration** Click **Submit**. ### Create new users on login Enabling this option has BloodHound create a new user on the first login with SSO (Just-In-Time). BloodHound assigns the role in the role claim only when **Allow IDP to modify roles** is enabled and the assertion includes exactly one valid BloodHound role. Otherwise, BloodHound assigns the default role. > [!WARNING] > > User names (first and last) are only written when the user is first created and will not be updated on subsequent logins. If users are initially created with incorrect names (e.g., email address in the first name field), you must either manually update each user in BloodHound or delete and recreate the user accounts. ### Allow IDP to modify roles Enabling this option allows the SSO provider to modify user roles. This is accomplished by updating the role claim associated with the user account. The role will be updated on the next login. > [!NOTE] > > Only one role can be passed per user. If multiple roles are provided, BloodHound ignores them and applies the provider's default role. To have this take effect immediately, disable then re-enable the user to invalidate current sessions and force a fresh login. See [User Role Mapping](#user-role-mapping) for role claim reference. BloodHound will provide the URLs related to this new OIDC provider integration. Please take a moment to verify that the **callback URL** matches the **Single sign on URL** specified in the OIDC application integration page during setup of the OIDC integration. ## Configure Users By default, all users utilize a username and password via the built-in authentication service. When [creating or modifying a user](/manage-bloodhound/auth/users-and-roles), you can change this setting. When creating a new OIDC user, ensure the OIDC user does not share an email address with any other users (across all authentication methods). **1. Open the Manage Users page** > [!NOTE] > > You must be logged in as an Administrator to perform this action. In the left menu, click **Administration** > Users > **Manage Users**. **2. Locate a user** Locate the user you want to configure with authentication, click the hamburger menu button on the right side of the row, then **Update User**. ![A view of the Manage Users page with the hamburger menu button highlighted for a user.](https://mintcdn.com/specterops/NGsFbT_FAx51IRIW/images/sso/user_hamburger.png?fit=max\&auto=format\&n=NGsFbT_FAx51IRIW\&q=85\&s=efc7f462fe68f224d138e35a09294e1d) **3. Configure the user for SSO authentication** In the **Update User** dialog, select the **Single Sign-On** authentication method, then select the appropriate SSO provider. ![A view of the Update User dialog with the Single Sign-On authentication method selected.](https://mintcdn.com/specterops/NGsFbT_FAx51IRIW/images/sso/update_user_no_provision.png?fit=max\&auto=format\&n=NGsFbT_FAx51IRIW\&q=85\&s=04e32ae965927a6345559ad370fcd658) * When Provisioning is enabled without the Modify Role option, a user's role may be updated manually after creation. * If both Provisioning and Modify Role are enabled, role updates must come through the SSO provider (manual updates in BloodHound are disabled). ![A view of the Update User dialog with the Single Sign-On authentication method selected and provisioning enabled.](https://mintcdn.com/specterops/NGsFbT_FAx51IRIW/images/sso/update_user_with_provision.png?fit=max\&auto=format\&n=NGsFbT_FAx51IRIW\&q=85\&s=0d298ad2ad881cc5b6911d5442dfccf2) **4. Save the user configuration** Click **Save**. # OIDC: Okta Configuration Source: https://bloodhound.specterops.io/manage-bloodhound/auth/oidc-okta This document provides instructions for creating an application within Okta for compatibility with BloodHound Enterprise. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) > [!TIP] > > See [OIDC in BloodHound](/manage-bloodhound/auth/oidc) for order of operations, general OIDC setup, and user configuration in BloodHound. ## Create an Okta application To create an Okta application for BloodHound, complete the following steps: **1. Create a new Okta application** Follow the [Okta documentation](https://help.okta.com/oie/en-us/content/topics/apps/apps_app_integration_wizard_oidc.htm) to create a new application. > [!NOTE] > > Set your application type to **Native**. **2. Configure the Okta application** When configuring the Okta application, use the following settings: | Field | Value | | - | - | | **Login redirect** | `https://{domainname}/api/v2/sso/{chosenProviderName}/callback` **Example**: `https://test.bloodhoundenterprise.io/api/v2/sso/bhestandard/callback` | | **Logout redirect** | `https://{domainname}/` **Example**: `https://test.bloodhoundenterprise.io/` | > [!TIP] > > Note the following values: > > * **Client ID** > * **Issuer URL** > > You'll use the **Client ID** from the Okta *Client Credentials* and the **Issuer URL** from the Okta *Authorization Server* when you [configure BloodHound](/manage-bloodhound/auth/oidc#configure-bloodhound). **3. Create custom claims** If you want to map additional user attributes (first name, last name, role) from Okta to BloodHound, you must create [custom claims](https://help.okta.com/oie/en-us/content/topics/apps/federated-claims-overview.htm) in Okta. Go to **Security** > **API** > **Authorization Servers** > **Claims** and create the following claims: > [tab] First name > > | Field | Setting | > | - | - | > | **Name** | first_name | > | **Include in token type** | ID Token → Always | > | **Value type** | Expression | > | **Value** | `user.firstName` | > | **Include in** | Any scope (or Profile) | > [tab] Last name > > | Field | Setting | > | - | - | > | **Name** | last_name | > | **Include in token type** | ID Token → Always | > | **Value type** | Expression | > | **Value** | `user.lastName` | > | **Include in** | Any scope (or Profile) | > [tab] Role > > | Field | Setting | > | - | - | > | **Name** | roles | > | **Include in token type** | ID Token → Always | > | **Value type** | Groups | > | **Filter** | Starts with --> `bh-` | > | **Include in** | Any scope (or Profile) | # Authentication and Authorization Source: https://bloodhound.specterops.io/manage-bloodhound/auth/overview Create and administer users of BloodHound using built-in authentication or SAML. > [card] [Administering users and roles](/manage-bloodhound/auth/users-and-roles) > [card] [Configure ETAC](/manage-bloodhound/auth/environment-targeted-access-control) > [card] [Enable/Disable MFA](/manage-bloodhound/auth/mfa) > [card] [OIDC in BloodHound](/manage-bloodhound/auth/oidc) > [card] [SAML in BloodHound](/manage-bloodhound/auth/saml) > [card] [SAML: ADFS Configuration](/manage-bloodhound/auth/saml-adfs) > [card] [SAML: Auth0 Configuration](/manage-bloodhound/auth/saml-auth0) > [card] [SAML: Entra ID Configuration](/manage-bloodhound/auth/saml-entra-id) > [card] [SAML: Google IDP Configuration](/manage-bloodhound/auth/saml-google) > [card] [SAML: Okta Configuration](/manage-bloodhound/auth/saml-okta) # SAML in BloodHound Source: https://bloodhound.specterops.io/manage-bloodhound/auth/saml BloodHound supports SAML 2.0 for Single Sign On to authenticate users to your tenant environment. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) You may configure multiple SAML providers within your tenant if necessary. This page provides the overall steps to configure a SAML provider within BloodHound. We have provided walkthroughs for creating the configuration within the provider for your convenience. ## Order of Operations You must configure SAML in BloodHound in the following order: 1. Determine the Identity Provider (IDP) you will utilize for the SAML configuration. The same value must be configured in both the IDP and BloodHound. The BloodHound Assertion Consumer Service (ACS) URL will include this value. 2. Configure the IDP for BloodHound. You can follow one of the guides below based on your IDP: * [SAML: Active Directory Federation Services (ADFS) Configuration](/manage-bloodhound/auth/saml-adfs) * [SAML: Auth0 Configuration](/manage-bloodhound/auth/saml-auth0) * [SAML: Entra ID Configuration](/manage-bloodhound/auth/saml-entra-id) * [SAML: Google IDP Configuration](/manage-bloodhound/auth/saml-google) * [SAML: Okta Configuration](/manage-bloodhound/auth/saml-okta) 3. Create the SAML Configuration in BloodHound. > [!NOTE] > > Automatic user creation does not limit who can authenticate. Configure your identity provider to issue SAML assertions only to users who require BloodHound access. > > For Entra ID, set **Assignment required?** to **Yes** and assign only the required users and groups. See [SAML: Entra ID Configuration](/manage-bloodhound/auth/saml-entra-id). 4. [Create new users or modify existing users](/manage-bloodhound/auth/users-and-roles) using the UI or via the newly created SAML provider. > [!WARNING] > > SAML users must have an email address that is **unique** across all authentication methods (built-in, OIDC, SAML). Account creation fails if a duplicate email is detected. > > ![A view of the error message shown when attempting to create a user with a duplicate email address.](https://mintcdn.com/specterops/NGsFbT_FAx51IRIW/images/sso/create_user_fail_email.png?fit=max\&auto=format\&n=NGsFbT_FAx51IRIW\&q=85\&s=2f0017b783b1cf8e922cc5eeeb84d084) ## SAML Attribute Quick Reference | **Data Type** | **Value** | | - | - | | **IDP Name Format** | urn:oasis:names:tc:SAML:2.0:attrname-format:uri | | **Required SAML Attributes** | Either of the following will map to the user's email address in BloodHound: `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress` *urn:oid:0.9.2342.19200300.100.1.3* | | **Optional SAML Attributes** | The following will map to the user's first name in BloodHound: `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name` | | - | The following will map to the user's last name in BloodHound: `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname` | | - | The following will map to the user role in BloodHound: `http://schemas.microsoft.com/ws/2008/06/identity/claims/role` | ## User Role Mapping First name, last name, and email are populated when the correct key/value pairs are provided in the SAML assertion payload. > [!WARNING] > > If omitted, fields default to the user's email. A role is applied when the role attribute/claim key is present and its value is a properly formatted BloodHound role. Role values use the prefix `bh-` and are written in kebab-case. See [Administer Users and Roles](/manage-bloodhound/auth/users-and-roles) for capabilities and scopes. | **Role** | **Key Value** | | - | - | | Administrator | bh-administrator | | Power User | bh-power-user | | Auditor | bh-auditor | | User | bh-user | | Read Only | bh-read-only | | Upload Only | bh-upload-only | > [!NOTE] > > Only one role can be passed per user. If multiple roles are provided, BloodHound ignores them and applies the provider's default role. ## BloodHound Icons If your IDP supports custom icons for configured applications, please feel free to use the logos below: * [Enterprise Dark-colored icon](https://raw.githubusercontent.com/SpecterOps/BloodHound-docs/main/docs/logo/BHE_PurpleField.png) * [Enterprise Light-colored icon](https://raw.githubusercontent.com/SpecterOps/BloodHound-docs/main/docs/logo/BHE_WhiteField.png) * [BHCE Dark-colored icon](https://raw.githubusercontent.com/SpecterOps/BloodHound-docs/main/docs/logo/BHCE_RedField.png) * [BHCE Light-colored icon](https://raw.githubusercontent.com/SpecterOps/BloodHound-docs/main/docs/logo/BHCE_WhiteField.png) ## Configure BloodHound Ensure you have configured an IDP for BloodHound as described in **Order of Operations** before proceeding. **1. Open the SSO Configuration page** > [!NOTE] > > You must be logged in as an Administrator to perform this action. In the left menu, click **Administration** > **Authentication** > **SSO Configuration**. **2. Select a provider type** Click **Create Provider** > **SAML Provider**. ![A view of the SSO Configuration page with the Create Provider button highlighted.](https://mintcdn.com/specterops/NGsFbT_FAx51IRIW/images/sso/create_provider.png?fit=max\&auto=format\&n=NGsFbT_FAx51IRIW\&q=85\&s=b3ffad66b779780578edf6c77d2cdb16) **3. Enter provider details** Enter the **SAML** provider details. | Field | Auth Type | Description | | - | - | - | | **Provider Name** | OIDC and SAML | Name of the SAML or OIDC application in your identity provider; must match exactly | | **Client ID** | OIDC only | Client identifier issued by the identity provider | | **Issuer** | OIDC only | Issuer URL from the identity provider | | **Metadata File** | SAML only | SAML metadata XML from the identity provider | | **Default Role** | OIDC and SAML | Role applied when the SAML provider does not supply one | **4. Save the configuration** Click **Submit**. ### Create new users on login Enabling this option has BloodHound create a new user on the first login with SSO (Just-In-Time). BloodHound assigns the role in the role claim only when **Allow IDP to modify roles** is enabled and the assertion includes exactly one valid BloodHound role. Otherwise, BloodHound assigns the default role. > [!WARNING] > > User names (first and last) are only written when the user is first created and will not be updated on subsequent logins. If users are initially created with incorrect names (e.g., email address in the first name field), you must either manually update each user in BloodHound or delete and recreate the user accounts. ### Allow IDP to modify roles Enabling this option allows the SSO provider to modify user roles. This is accomplished by updating the role claim associated with the user account. The role will be updated on the next login. > [!NOTE] > > Only one role can be passed per user. If multiple roles are provided, BloodHound ignores them and applies the provider's default role. To have this take effect immediately, disable then re-enable the user to invalidate current sessions and force a fresh login. See [User Role Mapping](#user-role-mapping) for role claim reference. BloodHound will provide the URLs related to this new SAML provider integration. Please take a moment to verify that the **ACS URL** matches the **Single sign on URL** specified in the SAML application integration page during setup of the SAML integration. ## Configure Users By default, all users utilize a username and password via the built-in authentication service. When [creating or modifying a user](/manage-bloodhound/auth/users-and-roles), you can change this setting. When creating a new SAML user, ensure the SAML user does not share an email address with any other users (across all authentication methods). **1. Open the Manage Users page** > [!NOTE] > > You must be logged in as an Administrator to perform this action. In the left menu, click **Administration** > Users > **Manage Users**. **2. Locate a user** Locate the user you want to configure with authentication, click the hamburger menu button on the right side of the row, then **Update User**. ![A view of the Manage Users page with the hamburger menu button highlighted for a user.](https://mintcdn.com/specterops/NGsFbT_FAx51IRIW/images/sso/user_hamburger.png?fit=max\&auto=format\&n=NGsFbT_FAx51IRIW\&q=85\&s=efc7f462fe68f224d138e35a09294e1d) **3. Configure the user for SSO authentication** In the **Update User** dialog, select the **Single Sign-On** authentication method, then select the appropriate SSO provider. ![A view of the Update User dialog with the Single Sign-On authentication method selected.](https://mintcdn.com/specterops/NGsFbT_FAx51IRIW/images/sso/update_user_no_provision.png?fit=max\&auto=format\&n=NGsFbT_FAx51IRIW\&q=85\&s=04e32ae965927a6345559ad370fcd658) * When Provisioning is enabled without the Modify Role option, a user's role may be updated manually after creation. * If both Provisioning and Modify Role are enabled, role updates must come through the SSO provider (manual updates in BloodHound are disabled). ![A view of the Update User dialog with the Single Sign-On authentication method selected and provisioning enabled.](https://mintcdn.com/specterops/NGsFbT_FAx51IRIW/images/sso/update_user_with_provision.png?fit=max\&auto=format\&n=NGsFbT_FAx51IRIW\&q=85\&s=0d298ad2ad881cc5b6911d5442dfccf2) **4. Save the user configuration** Click **Save**. # SAML: ADFS Configuration Source: https://bloodhound.specterops.io/manage-bloodhound/auth/saml-adfs This document provides instructions for creating an application within ADFS for compatibility with BloodHound Enterprise. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) > [!TIP] > > See [SAML in BloodHound](/manage-bloodhound/auth/saml) for order of operations, general SAML setup, and user configuration in BloodHound. ## Create an Application 1. In the AD FS management console, right-click on Relaying Party Trust and click “Add Relaying Party Trust”. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-2-25.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=a82a153aed0d0a22748b7d69a4bffebd) 2. Choose “Claims aware” and click “Start”. ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-2-26.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=7c6e0079d7bff7de1440274b4a7f531e) 3. Insert the metadata URL based on your chosen name and click “Next.” ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-2-27.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=f7beac048d4112f82db95654aa18a7fe) 4. Enter the preferred display name and click “Next.” ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-2-28.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=f01be1f95331a1d8b55f3f1ce8817fb8) 5. Choose the desired Access Control Policy. (Note that access and permissions are configured within BloodHound Enterprise). ![](https://mintcdn.com/specterops/xhId2ad7n1mFRAEQ/assets/image-2-29.png?fit=max\&auto=format\&n=xhId2ad7n1mFRAEQ\&q=85\&s=d40545f9678e69d3e6084790a0811489) 6. Review the information presented and click “Next”. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-30.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=af47f2b789f86ad1242e17d3884488de) 7. Leave the “Configure claims issuance policy for this application” box checked and click “Close”. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-31.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=77b1e230ca3519fd72ac36976ac59d62) ## Complete SAML Integration Configuration 1. On the “Edit Claim Issuance Policy” dialog box, click “Add Rule…”. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-32.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=5f28c751ff8fd2b36792a72246ae1e0c) 2. Choose “Send LDAP Attributes as Claims” and click “Next. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-33.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=0448972323cd67e36665438ffa9c1c2b) 3. Fill out the following and click “Finish”. LDAP Attribute: E-Mail-Addresses Outgoing Claim Type : E-Mail Address ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-34.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=9c4d2f47318f0f76e43bc9a185faade4) 4. Click “Add Rule” to add another claim rule. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-35.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=282a26366668c005105ce152c365ab28) 5. Choose “Transform and Incoming Claim” and click “Next”. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-36.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=7082a1b42189a03f28acf69305ad7b64) 6. Fill out the following and click “Finish”. Incoming claim type: E-Mail Address Outgoing claim type: Name ID Outgoing name ID format: Email Choose “Pass through all claim values” ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-37.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=dd1efe7300ce0642682c900a5638ec50) 7. Click “Apply”. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-38.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=a0e8b048486dda555ac42274d7618f2b) 8. Download the metadata file provided by your ADFS environment. By default, this is hosted at: [https://YOURDOMAIN/federationmetadata/2007-06/federationmetadata.xml](https://YOURDOMAIN/federationmetadata/2007-06/federationmetadata.xml) 9. Follow the instructions at [SAML in BloodHound Enterprise](/manage-bloodhound/auth/saml) to create the SAML provider in BloodHound Enterprise. # SAML: Auth0 Configuration Source: https://bloodhound.specterops.io/manage-bloodhound/auth/saml-auth0 This document provides instructions for creating an application within Auth0 for compatibility with BloodHound Enterprise. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) > [!TIP] > > See [SAML in BloodHound](/manage-bloodhound/auth/saml) for order of operations, general SAML setup, and user configuration in BloodHound. ## Create an Auth0 Application 1. Create an authentication application for BloodHound Enterprise in Auth0. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-39.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=d60e91f306544feaba02a178251ab984) 2. Assign a recognizable name to the application and select the integration option for "Regular Web Application." ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-40.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=2659f6fbf40f7bdb7902785db7efd46f) 3. After the creation of the application in Auth0 you should see the application details page. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-41.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=d3dc016d3bf0f3f61d763d3366679554) 4. Click on the "Addons" tab. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-42.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=04a0b3a18bb3ff66bbfbd381d0f40298) 5. Enable the "SAML2 Webapp" toggle and download the Identify Provider Metadata file. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-43.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=b55a7ffd1e60f80e07f3490a76d9050d) 6. Follow the instructions at [SAML in BloodHound Enterprise](/manage-bloodhound/auth/saml) to create the SAML provider in BloodHound Enterprise. # SAML: Entra ID Configuration Source: https://bloodhound.specterops.io/manage-bloodhound/auth/saml-entra-id This document provides instructions for creating an application within Entra ID for compatibility with BloodHound Enterprise. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) > [!TIP] > > See [SAML in BloodHound](/manage-bloodhound/auth/saml) for order of operations, general SAML setup, and user configuration in BloodHound. ## Create an Enterprise Application 1. Login to Azure at [https://portal.azure.com](https://portal.azure.com) 2. Navigate to the **Enterprise Applications** section of Entra ID. ![Enterprise Applications section in Entra ID](https://mintcdn.com/specterops/agWhkV3VIPaUTvY8/images/sso/saml-entra/image-2-44.png?fit=max\&auto=format\&n=agWhkV3VIPaUTvY8\&q=85\&s=773a3ef4d5f59f18bc4ef87b3939adb4) 3. Click **New Application**. ![New Application button in Entra ID Enterprise Applications](https://mintcdn.com/specterops/agWhkV3VIPaUTvY8/images/sso/saml-entra/image-2-46.png?fit=max\&auto=format\&n=agWhkV3VIPaUTvY8\&q=85\&s=3f5af1eb43615cbaf9d9a63983f285cf) 4. Click **Create your own application**. ![Create your own application option in Entra ID](https://mintcdn.com/specterops/agWhkV3VIPaUTvY8/images/sso/saml-entra/image-2-47.png?fit=max\&auto=format\&n=agWhkV3VIPaUTvY8\&q=85\&s=b9139a18bc903abe91aaaff19bf6a1c7) 5. Provide a name for your application and click **Create**. ![Application name field and Create button in Entra ID](https://mintcdn.com/specterops/agWhkV3VIPaUTvY8/images/sso/saml-entra/image-2-48.png?fit=max\&auto=format\&n=agWhkV3VIPaUTvY8\&q=85\&s=465d11a638c4fb1a2da4aaf8d0c9baf5) ## Configure Single Sign-On Settings 1. Your browser should redirect you to your newly created application. Click on **Single sign-on**. ![Single sign-on menu item for the newly created application](https://mintcdn.com/specterops/agWhkV3VIPaUTvY8/images/sso/saml-entra/image-2-49.png?fit=max\&auto=format\&n=agWhkV3VIPaUTvY8\&q=85\&s=8896f84d24c914e5750f62691867c92d) 2. Click on **SAML**. ![SAML single sign-on option in Entra ID](https://mintcdn.com/specterops/agWhkV3VIPaUTvY8/images/sso/saml-entra/image-2-50.png?fit=max\&auto=format\&n=agWhkV3VIPaUTvY8\&q=85\&s=ac158fc543ca8536967a87de2a4e9a39) 3. Click **Edit** under the Basic SAML Configuration section. ![Edit button in the Basic SAML Configuration section](https://mintcdn.com/specterops/agWhkV3VIPaUTvY8/images/sso/saml-entra/image-2-51.png?fit=max\&auto=format\&n=agWhkV3VIPaUTvY8\&q=85\&s=5d7e571444fc80dbf263f972b9255cb1) 4. Configure SAML. The following screenshot shows the tenant codename is "demo" and the provider name is "entra". ![Basic SAML Configuration fields with tenant codename and provider name entered](https://mintcdn.com/specterops/agWhkV3VIPaUTvY8/images/sso/saml-entra/image-2-52.png?fit=max\&auto=format\&n=agWhkV3VIPaUTvY8\&q=85\&s=9daefaf3c1105a55d36ebd4fa1c78bc9) 5. Azure will inform you the settings have saved successfully. ![Azure confirmation message that SAML settings saved successfully](https://mintcdn.com/specterops/agWhkV3VIPaUTvY8/images/sso/saml-entra/image-2-53.png?fit=max\&auto=format\&n=agWhkV3VIPaUTvY8\&q=85\&s=0d1820d2e7ff2859ea708866f46852ef) 6. Click the **X** to close the dialog. ![Close button on the SAML configuration dialog](https://mintcdn.com/specterops/agWhkV3VIPaUTvY8/images/sso/saml-entra/image-2-54.png?fit=max\&auto=format\&n=agWhkV3VIPaUTvY8\&q=85\&s=ea70bec2fa129f1891c04a5f27e2c779) 7. Scroll down to the **SAML Certificates** section and download the **Metadata XML**. ![SAML Certificates section with Metadata XML download link](https://mintcdn.com/specterops/agWhkV3VIPaUTvY8/images/sso/saml-entra/image-2-55.png?fit=max\&auto=format\&n=agWhkV3VIPaUTvY8\&q=85\&s=75a5e7228ddb99f8e6ef74af7d44f112) ## Restrict Access to BloodHound Configure Entra ID assignments before you enable automatic user creation in BloodHound. This ensures that only the users and groups you select can authenticate and be provisioned. 1. In the application navigation menu, click **Manage** > **Properties**. 2. Set **Assignment required?** to **Yes**, then click **Save**. > [!NOTE] > > **Assignment required?** defaults to **No**. When it is set to **No**, any authenticated user in the Entra ID tenant can sign in to the application, even if they are not assigned. > > If automatic user creation is enabled in BloodHound, those users can be provisioned with the configured default role. 3. In the application navigation menu, click **Manage** > **Users and groups**. Assign the groups and users that you want to grant access to BloodHound. ![Users and Groups section for assigning application access](https://mintcdn.com/specterops/agWhkV3VIPaUTvY8/images/sso/saml-entra/image-2-56.png?fit=max\&auto=format\&n=agWhkV3VIPaUTvY8\&q=85\&s=8ac8cbc5381e36942135edc8f835aad0) 4. Use the downloaded `metadata.xml` file and follow the instructions at [SAML in BloodHound Enterprise](/manage-bloodhound/auth/saml) to create the SAML configuration in BloodHound. ## Troubleshooting Verify your attributes and claims use a proper schema in the claim name, and that you have a properly mapped claim for "user.mail" as in the example below. An indicator that this is necessary is when an authentication attempt returns the response: "*assertion does not meet requirements for user lookup*". ![Claim mapping example showing the user.mail attribute properly configured](https://mintcdn.com/specterops/agWhkV3VIPaUTvY8/images/sso/saml-entra/image-2-57.png?fit=max\&auto=format\&n=agWhkV3VIPaUTvY8\&q=85\&s=fc65ac6a7b83e8a4b72f867265563656) # SAML: Google IDP Configuration Source: https://bloodhound.specterops.io/manage-bloodhound/auth/saml-google This document provides instructions for creating an application within Google for compatibility with BloodHound Enterprise. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) > [!TIP] > > See [SAML in BloodHound](/manage-bloodhound/auth/saml) for order of operations, general SAML setup, and user configuration in BloodHound. ## Create a Google Application 1. On the Admin Console for Google Workspaces, use the left navigation bar and go to Apps -> Web and Mobile Apps ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-58.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=fbc5bd6ee4db57cedbc909907bdc570a) 2. Select “Add App” -> Add Custom SAML app ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-59.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=6773aba463d37cbd20ac9416637e493a) 3. Give the app an appropriate name, such as BloodHound Enterprise. Optionally, add an icon and description. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-60.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=2c9411f531b0009fb30a9830f23c4506) 4. On the next screen, download the metadata file and continue. 5. Enter the ACS URL and Entity ID as provided in the BloodHound Enterprise console: ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-61.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=f976bda21f915cabe30db889a733b3f5) 6. On the next screen, it is required to send the email attribute to BloodHound. BloodHound will accept either of the following values as the “App Attributes”: * [http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress](http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress) * urn:oid:0.9.2342.19200300.100.1.3 ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-62.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=eb69f55502424e1a68f16bd5b70a9568) 7. Follow the instructions at [SAML in BloodHound Enterprise](/manage-bloodhound/auth/saml) to create the SAML provider in BloodHound Enterprise. # SAML: Okta Configuration Source: https://bloodhound.specterops.io/manage-bloodhound/auth/saml-okta This document provides instructions for creating an application within Okta for compatibility with BloodHound Enterprise. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) > [!TIP] > > See [SAML in BloodHound](/manage-bloodhound/auth/saml) for order of operations, general SAML setup, and user configuration in BloodHound. ## Create an Okta Application 1. Navigate to the organization applications page and create a new SAML application integration. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-63.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=e9f7a2339dccb59760aaf6454789515c) 2. Give the application a name and an icon if desired. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-64.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=a6c874ef505f42aa11891ea2a62ad790) 3. Once finished, click next to begin setting the SAML configuration for this application. ## Okta SAML Settings The following SAML settings are required for Okta to integrate with BloodHound Enterprise: | **SAML Setting** | **Value** | | - | - | | **Name ID format** | EmailAddress | | **Application username** | Email | ## Okta Attribute Statements The following attribute settings are required for Okta to integrate with BloodHound Enterprise: | | | | | - | - | - | | **Name** | **Name Format** | **Value** | | [http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress](http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress) | URI Reference | user.email | Complete SAML Integration Configuration 1. Once all the information is entered, your screen should look similar to the example below. Once confirmed, click next to continue. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-65.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=a49b6b1c4bed6e9edbc73da491339855) 2. Complete creation of the SAML integration with the following options below: ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-66.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=d62cf9e5e1be545b49569cd64f23c0e8) 3. Once completed you should now see the application home page. You may then click on **View Setup Instructions** to view the integration setup details. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-67.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=19677f9ee232f79dc858e5dda1f5a9c8) 4. Copy the metadata provided by Okta and save it into a metadata.xml file. **ATTENTION FIREFOX USERS:** FireFox may prepend an additional heading to the metadata.xml file, resulting in an error creating the SAML integration within BloodHound Enterprise. If your extracted metadata.xml looks like the following, delete line 1 try again. See [https://support.mozilla.org/en-US/questions/1387904](https://support.mozilla.org/en-US/questions/1387904) for more details. ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-68.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=5260def2217e30454e69f1b7801296b5) 5. Follow the instructions at [SAML in BloodHound Enterprise](/manage-bloodhound/auth/saml) to create the SAML provider in BloodHound Enterprise. # Administer Users and Roles Source: https://bloodhound.specterops.io/manage-bloodhound/auth/users-and-roles ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) ## Purpose This article provides a summary of assignable roles that are available when creating new users in BloodHound. ## Creating users Users are created through **Settings ** **Administration ** **Manage Users**, and clicking the button **Create User**. The following properties must be set on each user: | **Property** | **Description** | | - | - | | Email Address | Text field for the user's email address. | | Principal Name | Text field for the username used for logging into BloodHound. Can be the same as email address. | | First Name | Text field for the user's first name. | | Last Name | Text field for the user's first name. | | Authentication Method | Drop-down selection for one of the available authentication methods to be used for the user. \* Username / Password - Built-in authentication via username and password, supports TOTP-based multifactor authentication. \* SAML - SAML 2.0-based Single-Sign-On as described in [SAML in BloodHound Enterprise](/manage-bloodhound/auth/saml). | | Initial Password | Text field for the user's initial password. | | Force Password Reset? | Selecting this check box forces the user to reset their password on the next logon. Must comply with password requirements: \* At least 12 characters long \* Contain at least 1 lowercase character, 1 uppercase character, 1 number and 1 special character (!@#\$%^&\*) | | Role | Drop-down selection for one the available roles. | ## User Role Definitions BloodHound offers multiple roles for access control. Each user must be assigned one role. In BloodHound Enterprise, [Environment Targeted Access Control (ETAC)](/manage-bloodhound/auth/environment-targeted-access-control) can further limit which environments **User** and **Read-only** roles can access. ETAC does not change the baseline permissions in the role matrix below. Instead, it limits which environments those permissions apply to. For OpenGraph extensions, BloodHound separates read and write permissions. Users without permission to upload or delete extension schemas can still view extension content that their role allows, but the **Upload** and **Delete** extension buttons remain disabled. > [!TIP] > > Scroll right to view the full table of permissions for each role. | | **Administrator** | **Power User** | **Auditor** | **User** | **Read-only** | **Upload-only** | | - | :-: | :-: | :-: | :-: | :-: | :-: | | **Tenant Administration** | | | | | | | Add, Remove, Modify users | | - | - | - | - | - | | View users | | - | | - | - | - | | Add, Remove all API keys | | - | - | - | - | - | | View all API keys | | - | | - | - | - | | Add, Remove, View owned API keys | | | | | | - | | Add, Remove SAML provider configurations | | - | - | - | - | - | | View SAML provider configurations | | - | | - | - | - | | Clear the BloodHound database | | - | - | - | - | - | | View audit log | | - | | - | - | - | | Configure ETAC settings \[BHE] | | - | - | - | - | - | | Upload and delete OpenGraph extension schemas | | - | - | - | - | - | | View OpenGraph extensions, findings, and edges | | | | | | - | | **Attack Path Analysis** | | | | | | | View any available tenant data, including active Attack Paths \[BHE], and explore the Graph | | | | | | - | | Create, Edit, Delete, Share owned Saved Cypher Queries | | | - | | - | - | | Accept Attack Path Impacted Principals \[BHE] | | | - | - | - | - | | Modify Tier Zero / High-Value Members | | | - | - | - | - | | Add, Edit, Remove Privilege Zones, Labels, and Selectors | | | - | - | - | - | | Approve and Revoke certification of Privilege Zone members | | | - | - | - | - | | View, Search, and Filter Privilege Zones Certification Queue | | | | - | - | - | | View, Search, and Filter Privilege Zones History Log | | | | | | - | | **Collector Clients and File Ingest** | | | | | | | Download collector installation packages | | | | | | | | View collector client details \[BHE] | | | | | - | - | | View and Filter Finished Jobs Log and job details panel | | | | - | - | - | | Run collector client on-demand scan \[BHE] | | | - | - | - | - | | Add, modify, and remove a collector client \[BHE] | | | - | - | - | - | | Regenerate collector client credentials \[BHE] | | | - | - | - | - | | Request, download, and delete collector support bundles \[BHE] | | - | - | - | - | - | | File Ingest | | | | - | - | | # BloodHound Configuration Supplement Source: https://bloodhound.specterops.io/manage-bloodhound/bh-config This page provides example configuration details for BloodHound and BloodHound Enterprise ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) # Configuration Elements Configuration elements with a `.` in their name are part of a nested JSON configuration block: `tls.cert_file` translates to the following JSON structure: ```json theme={null} { "tls": { "cert_file": "/path/to/cert" } } ``` ## version Version of the configuration file. This is useful for detecting when new, breaking configuration changes occur. ## bind_addr Bind address for the API. Example: `:` ## slow_query_threshold Threshold in milliseconds for caching queries. ## max_graphdb_cache_size Number of cache items for graph queries. ## max_api_cache_size Number of cache items for API utilities. ## metrics_port Bind address for the tool and metric API. **This port is sensitive and access must be guarded!** Example: `:` ## root_url External facing HTTP URL that represents the root path for the application. Example: `http://localhost/` ## work_dir Local directory for storing work files and temporary ingest artifacts. Example: `/opt/bhe/work` ## log_level Default log level for the application. This parameter may be set to one of the following values: * `"DEBUG"` * `"INFO"` * `"ERROR"` ## log_path If not empty, enables the application to record logs to the provided file along with std out. ## tls TLS configuration to start the BloodHound API using HTTPS. > [!TIP] > > For a step-by-step example on BloodHound Community Edition, see [Enable Transport Layer Security (TLS)](/get-started/custom-installation#enable-transport-layer-security-tls) in the custom installation guide. ### tls.cert_file Path to the TLS certificate file. ### tls.key_file Path to the TLS certificate signing key. ## graph_driver Determines the driver to use when accessing the graph database. This parameter may be set to one of the following values: * `"neo4j"` * `"pg"` ## database ### database.connection Primary database connection URL. This URL must be specified in one of the following formats: * `"postgresql://user:password@host:port/db_name"` ## neo4j ### neo4j.connection Graph database connection URL when Neo4j is enabled. This URL must be specified in one of the following formats: * `"neo4j://user:password@host:port/db_name"` ## crypto Cryptographic configuration settings. ### crypto.jwt JWT configuration settings. ### crypto.jwt.signing_key Base64 encoded byte array for signing key for user session JWTs. This value **must be 32 bytes** in length when decoded as the JWT signing method used by the API is `HMAC-SHA2-256`. ### crypto.argon2 Argon2 cryptographic settings for password enabled authentication. ### crypto.argon2.memory_kibibytes Amount of memory the Argon2 password hash function should utilize. See the [recommended parameters](https://www.password-hashing.net/argon2-specs.pdf) section of the Argon2 specification for further information about this value. ### crypto.argon2.num_iterations Number of iterations the Argon2 password hash function should execute. See the [recommended parameters](https://www.password-hashing.net/argon2-specs.pdf) section of the Argon2 specification for further information about this value. ### crypto.argon2.num_threads Number of threads the Argon2 password hash function should utilize during digest. See the [recommended parameters](https://www.password-hashing.net/argon2-specs.pdf) section of the Argon2 specification for further information about this value. ## saml ### saml.sp_cert Certificate that the API instance should use when presenting as a SAML Service Provider. ### saml.sp_key Private RSA key that the API instance should use when presenting as a SAML Service Provider. ### saml.sp_ca_chain Certificate chain that contains the signing authority for the certificate and private key the API instance should use when presenting as a SAML Service Provider. ## default_admin Default admin user configuration details. This configuration drives the creation of the first user that may log in and finish setting up the BloodHound instance. ### default_admin.principal_name Principal name of the default admin user. `Deprecated` ### default_admin.password Initial password for the default admin user. ### default_admin.email_address Email address for the default admin user. ### default_admin.first_name First name for the default admin user. ### default_admin.last_name Last name for the default admin user. ### default_admin.expire_now Expires the default admin user's initial password, requiring a password reset on first logon. This parameter may be set to one of the following values: * `true` * `false` ## collectors_bucket_url Collector bucket URL for collectors sourced upstream. `For BloodHound Enterprise internal use only.` ## collectors_base_path Collector base path for collectors sourced upstream. `For BloodHound Enterprise internal use only.` ## datapipe_interval Interval in seconds that the service will wait before checking for new data. ## enable_startup_wait_period Enables a startup wait period that defers ingest and analysis until a given amount of time. This parameter may be set to one of the following values: * `true` * `false` ## enable_api_logging Enables API HTTP request logging. This parameter may be set to one of the following values: * `true` * `false` ## enable_cypher_mutations Enables graph database mutations via the cypher search endpoint. This parameter may be set to one of the following values: * `true` * `false` ## disable_analysis Disables graph data analysis. This parameter may be set to one of the following values: * `true` * `false` ## disable_cypher_complexity_limit Disables cypher complexity limiting. This parameter may be set to one of the following values: * `true` * `false` ## disable_ingest Disables graph data ingest. This parameter may be set to one of the following values: * `true` * `false` ## disable_migrations Disables database migrations. This parameter may be set to one of the following values: * `true` * `false` ## graph_query_memory_limit Graph query memory limit in gigabytes. ## fedramp_eula_text Text to display for the alternative FedRAMP EULA acceptance page. ## enable_text_logger Enables text output instead of JSON output for the API log. This parameter may be set to one of the following values: * `true` * `false` ## recreate_default_admin Allow recreating the default admin account to help with lockouts/loading database dumps. This parameter may be set to one of the following values: * `true` * `false` ## force_download_embedded_collectors Forces Bloodhound users to download the collectors that are embedded in the container. BHCE only allows for downloading embedded collectors. This parameter may be set to the following values: * `true` * `false` ## enable_user_analytics Enables SpecterOps to gather analytics on user activity to help enhance the product. This parameter may be set to the following values: * `true` * `false` # OS Environment Config Format An operator may set any option via an environment variable by prefixing it with `bhe_` and replacing dots (`.`) with underscores (`_`): ```bash theme={null} export bhe_bind_addr="192.168.100.100" export bhe_root_url="https://example.com" export bhe_database_connection="postgres://bhe:weneedbetterpasswords@localhost:5432/bhe" export bhe_neo4j_connection="neo4j://bhe:weneedbetterpasswords@localhost:7687/bhe" bhapi ``` # Example JSON Configuration An operator may use the below example to author a JSON configuration: ```json theme={null} { "version": 1, "bind_addr": "0.0.0.0:8080", "root_url": "http://0.0.0.0:8080/", "work_dir": "/opt/bhe_work", "log_level": "INFO", "log_path": "", "tls": { "cert_file": "", "key_file": "" }, "graph_driver": "pg", "database": { "connection": "postgresql://bhe:bhe4eva@localhost/bhe" }, "default_admin": { "principal_name": "admin", "password": "admin", "email_address": "admin@example.com", "first_name": "Initial", "last_name": "Admin", "expire_now": true }, "crypto": { "jwt": { "signing_key": "" }, "argon2": { "memory_kibibytes": 1048576, "num_iterations": 4, "num_threads": 4 } }, "saml": { "sp_cert": "CERT CONTENT", "sp_key": "-----BEGIN PRIVATE KEY-----\nKEY CONTENT\n-----END PRIVATE KEY-----" }, "graph_query_memory_limit": 2, "force_download_embedded_collectors": false, "enable_user_analytics": false } ``` # BloodHound Shortcuts Source: https://bloodhound.specterops.io/manage-bloodhound/bh-shortcuts List of the keyboard shortcuts available in BloodHound ## Global shortcuts | Command | Action | | - | - | | Alt/Option + \[1-8] | Navigate sidebar pages | | Alt/Option + H | Launch keyboard shortcuts list | | Alt/Option + D | Navigate to Documentation | | Alt/Option + U | Launch File Upload dialog | | Alt/Option + M | Toggle Dark Mode | ## Explore page | Command | Action | | - | - | | Alt/Option + / | Jump to Node Search | | Alt/Option + P | Jump to Pathfinding | | Alt/Option + C | Jump to Query Editor | | Alt/Option + S | Save Current Query | | Alt/Option + R | Run Current Cypher Query | | Alt/Option + Shift + / | Search Current Nodes | | Alt/Option + T | Toggle Table View | | Alt/Option + I | Toggle Node Info Panel | | Alt/Option + G | Reset Graph View | ## Attack Paths page ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) | Command | Action | | - | - | | Alt/Option + R | Reset to Default View | | Alt/Option + K | Jump to Next Finding | | Alt/Option + J | Jump to Previous Finding | | Alt/Option + E | Jump to Environment Selector | ## Posture page ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) | Command | Action | | - | - | | Alt/Option + E | Jump to Environment Selector | | Alt/Option + Z | Jump to Zone Selector | | Alt/Option + / | Filter Table Data | # BloodHound Enterprise NIST CSF v1.1 Compliance Resource Source: https://bloodhound.specterops.io/manage-bloodhound/compliance-framework/nist-csf-v1-1 The Following information is meant to provide a more detailed and in-depth view of compliance items that BloodHound Enterprise can provide coverage for. ## Identify (ID) Asset Management (ID.AM) The devices and systems that enable the organization to achieve business purposes are identified and managed consistent with their relative importance to the organizational objectives the organization’s risk strategy. ### ID.AM-1 #### Requirement Physical Devices and systems within the organization are inventoried. #### Solution BloodHound Enterprise collects information on all physical systems operating within a Windows Active Directory environment/Azure Environment. BloodHound Enterprise monitors the addition/removal of physical assets connecting to the organizations environment. ###### **References** CIS CSC 1 COBIT 5 BAI09.01, BAI09.02 ISA 62443-2-1:2009 4.2.3.4 ISA 62443-3-3:2013 SR 7.8 ISO/IEC 27001:2013 A.8.1.1, A.8.1.2 NIST SP 800-53 Rev. 4 CM-8, PM-5 ### ID.AM-2 #### Requirement Inventory of Software, Services, and Systems managed by the organization are maintained. #### Solution BloodHound Enterprise collects information on all Systems in a domain that are connected to the organizations Active Directory/Azure Environment. BloodHound Enterprise monitors the environment for the addition/removal of systems from the organizations environment. ###### **References** CIS CSC 2 COBIT 5 BAI09.01, BAI09.02, BAI09.05 ISA 62443-2-1:2009 4.2.3.4 ISA 62443-3-3:2013 SR 7.8 ISO/IEC 27001:2013 A.8.1.1, A.8.1.2, A.12.5.1 NIST SP 800-53 Rev. 4 CM-8, PM-5 ### ID.AM-5 #### Requirement Resources are prioritized based on their classification, criticality, and business value. #### Solution BloodHound Enterprise allows organizations to assign assets to Tier Zero (T0) based on the organizations classification, criticality, and business value. Prioritized resources are audited and accounted for during BloodHound Enterprise collection scans. ###### **References** CIS CSC 13, 14 COBIT 5 APO03.03, APO03.04, APO12.01, BAI04.02, BAI09.02 ISA 62443-2-1:2009 4.2.3.6 ISO/IEC 27001:2013 A.8.2.1 NIST SP 800-53 Rev. 4 CP-2, RA-2, SA-14, SC-6 ## Identity(ID)Risk Assessment(ID.RA) The organization understands the cybersecurity risk to organizational operations (including mission, functions, image, or reputation), organizational assets, and individuals. ### ID.RA-1 #### Requirement Asset vulnerabilities are identified and documented. #### Solution BloodHound Enterprise analyzes the Active Directory/Azure environment for identity attack paths that potentially impact an organizations security posture. All Identity vulnerabilities are identified during BloodHound collection activities and presented in the reporting dashboard with additional information to support documenting threats. ###### **References** CIS CSC 4 COBIT 5 APO12.01, APO12.02, APO12.03, APO12.04, DSS05.01, DSS05.02 ISA 62443-2-1:2009 4.2.3, 4.2.3.7, 4.2.3.9, 4.2.3.12 ISO/IEC 27001:2013 A.12.6.1, A.18.2.3 NIST SP 800-53 Rev. 4 CA-2, CA-7, CA-8, RA-3, RA-5, SA-5, SA-11, SI-2, SI-4, SI-5 ### ID.RA-3 #### Requirement Threats, both internal and external, are identified and documented. #### Solution BloodHound Enterprise analyzes the Active Directory/Azure environment for identity attack paths that potentially impact an organizations security posture. All Identity threat vectors are identified during BloodHound collection activities and presented in the reporting dashboard with additional information to support documenting threats. ###### **References** CIS CSC 4 COBIT 5 APO12.01, APO12.02, APO12.03, APO12.04 ISA 62443-2-1:2009 4.2.3, 4.2.3.9, 4.2.3.12 ISO/IEC 27001:2013 Clause 6.1.2 NIST SP 800-53 Rev. 4 RA-3, SI-5, PM-12, PM-16 ### ID.RA-5 #### Requirement Threats, vulnerabilities, likelihoods, and impacts are used to determine risk #### Solution BloodHound Enterprise analyzes the organizational environment for identity attack path vectors and assigns a quantifiable risk metric and category to each detected identity attack path. The assigned risk metric is calculated by determining what percentage of the environment could be impacted by a specific identity vulnerability which will be quantified as percentage and assigned a criticality rating. ###### **References** CIS CSC 4 COBIT 5 APO12.02 ISO/IEC 27001:2013 A.12.6.1 NIST SP 800-53 Rev. 4 RA-2, RA-3, PM-16 ## Protect(PR) Identity Management, Authentication, and Access Control (PR.AC) Access to physical and logical assets and associated facilities is limited to authorized users, processes, and devices, and is managed consistent with the assessed risk of unauthorized access to authorized activities and transactions. ### PR.AC-4 #### Requirement Employ the principal of least privilege, allowing only authorized access for users (or processing on the behalf of users) that necessary to accomplish assigned organizational tasks. #### Solution BloodHound Enterprise audits and reports the health of organizational privilege access models and identifies potential vulnerable attack paths and misconfigurations within the privilege access architecture scheme. ###### **References** CIS CSC, 16 COBIT 5 DSS05.04, DSS05.05, DSS05.07, DSS06.03 ISA 62443-2-1:2009 4.3.3.2.2, 4.3.3.5.2, 4.3.3.7.2, 4.3.3.7.4 ISA 62443-3-3:2013 SR 1.1, SR 1.2, SR 1.4, SR 1.5, SR 1.9, SR 2.1 ISO/IEC 27001:2013, A.7.1.1, A.9.2.1 NIST SP 800-53 Rev. 4 AC-1, AC-2, AC-3, AC-16, AC-19, AC-24, IA-1, IA-2, IA-4, IA-5, IA-8, PE-2, PS-3 ## Protect(PR) Information Protection, Processes, and Procedures(PR.IP) Security policies (that address purpose, scope, roles, responsibilities, management commitment, and coordination among organizational entities), processes, and procedures are maintained and used to manage protection of information systems and assets. ### PR.IP-1 #### Requirement A baseline configuration of information technology/industrial control systems is created and maintained incorporating security principles. #### Solution BloodHound Enterprise collects information on all physical systems operating within a Windows Active Directory environment/Azure Environment. BloodHound Enterprise establishes an initial baseline for the environment during setup and maintains that baseline with periodic scheduled and on-demand environment scans. ###### **References** CIS CSC 3, 9, 11 COBIT 5 BAI10.01, BAI10.02, BAI10.03, BAI10.05 ISA 62443-2-1:2009 4.3.4.3.2, 4.3.4.3.3 ISA 62443-3-3:2013 SR 7.6 ISO/IEC 27001:2013 A.12.1.2, A.12.5.1, A.12.6.2, A.14.2.2, A.14.2.3, A.14.2.4 NIST SP 800-53 Rev. 4 CM-2, CM-3, CM-4, CM- 5, CM-6, CM-7, CM-9, SA-10 ## Detect(DE) Anomalies and Events (DE.AE) Anomalous activity is detected and the potential impact of events is understood. ### DE.AE-1 #### Requirement A baseline of network operations and expected data flows for users and systems is established and managed. #### Solution BloodHound Enterprise collects information on all physical systems and Active Directory/Azure users operating within a Windows Active Directory environment/Azure Environment. BloodHound Enterprises configurable scan options allows organizations to establish and monitor their organizational baseline of systems, users, and groups. ###### **References** CIS CSC 1, 4, 6, 12, 13, 15, 16 COBIT 5 DSS03.01 ISA 62443-2-1:2009 4.4.3.3 ISO/IEC 27001:2013 A.12.1.1, A.12.1.2, A.13.1.1, A.13.1.2 NIST SP 800-53 Rev. 4 AC-4, CA-3, CM-2, SI-4 ### DE.AE-2 #### Requirement Detected events are analyzed to understand attack targets and methods. #### Solution BloodHound Enterprise reports identity attack paths and assigns a risk exposure severity rating to each vector based on the percentage of the organizations environment that is exposed to risk. Additional information pertaining to specific events is included in the BloodHound Enterprise GUI. ###### **References** CIS CSC 3, 6, 13, 15 COBIT 5 DSS05.07 ISA 62443-2-1:2009 4.3.4.5.6, 4.3.4.5.7, 4.3.4.5.8 ISA 62443-3-3:2013 SR 2.8, SR 2.9, SR 2.10, SR 2.11, SR 2.12, SR 3.9, SR 6.1, SR 6.2 ISO/IEC 27001:2013 A.12.4.1, A.16.1.1, A.16.1.4 NIST SP 800-53 Rev. 4 AU-6, CA-7, IR-4, SI-4 ### DE.AE-3 #### Requirement Event data is collected and correlated from multiple sources and sensors. #### Solution BloodHound Enterprise's Identity Attack Path solution provides unique graph based representations of the logical relationships that may be vulnerable to identity attacks. The information provided by BloodHound Enterprise can be used in combination with other defense appliance output and correlated to assist in satisfying this requirement. ###### **References** CIS CSC 1, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16 COBIT 5 BAI08.02 ISA 62443-3-3:2013 SR 6.1 ISO/IEC 27001:2013 A.12.4.1, A.16.1.7 NIST SP 800-53 Rev. 4 AU-6, CA-7, IR-4, IR-5, IR-8, SI-4 ### DE.AE-4 #### Requirement Impact of events is determined. #### Solution BloodHound Enterprise will assign a severity rating category and exposure percentage for all identified attack paths within an organizations Active Directory/Azure environment. ###### **References** CIS CSC 4, 6 COBIT 5 APO12.06, DSS03.01 ISO/IEC 27001:2013 A.16.1.4 NIST SP 800-53 Rev. 4 CP-2, IR-4, RA-3, SI-4 ### DE.AE-5 #### Requirement Incident alert thresholds are established. #### Solution BloodHound Enterprise allows Tier Zero to be defined per the needs of the organization in order to correctly define the individual organizations Tier Zero asset group. The Analysis feature will enumerate all detectable identity attack paths and assign and risk exposure rating to each vulnerable identity/asset/object allowing for the establishment of organizational incident alert thresholds. ###### **References** CIS CSC 6, 19 COBIT 5 APO12.06, DSS03.01 ISA 62443-2-1:2009 4.2.3.10 ISO/IEC 27001:2013 A.16.1.4 NIST SP 800-53 Rev. 4 IR-4, IR-5, IR-8 ## Detect(DE) Security Continuous Monitoring(DE.CM) The information system and assets are monitored to identify cybersecurity events and verify the effectiveness of protective measures. ### DE.CM-1 #### Requirement The network is monitored to detect potential cybersecurity events #### Solution BloodHound Enterprise scheduled and on-demand collection scans will gather information in accordance with organizational security policy and report all identity attack path vulnerabilities and misconfigurations found during scan and data analysis actions. ###### **References** CIS CSC 1, 7, 8, 12, 13, 15, 16 COBIT 5 DSS01.03, DSS03.05, DSS05.07 ISA 62443-3-3:2013 SR 6.2 NIST SP 800-53 Rev. 4 AC-2, AU-12, CA-7, CM-3, SC-5, SC-7, SI-4 ### DE.CM-8 #### Requirement Vulnerability Scans are performed. #### Solution BloodHound Enterprise scheduled and on-demand collection scans will gather information in accordance with organizational security policy and report all identity attack path vulnerabilities found during scan and data analysis actions. ###### **References** CIS CSC 4, 20 COBIT 5 BAI03.10, DSS05.01 ISA 62443-2-1:2009 4.2.3.1, 4.2.3.7 ISO/IEC 27001:2013 A.12.6.1 NIST SP 800-53 Rev. 4 RA-5 ## Respond(RS)Analysis(RS.AN) Analysis is conducted to ensure effective response and support recovery activities. ### RS.AN-1 #### Requirement Notifications from detection systems are investigated. #### Solution BloodHound Enterprise includes configurable notifications highlight anomalous identity behavior and group relationships within the organizational environment. Notifications in conjunction with information dashboard supports the rapid identification and mitigation of identity attack paths that can contribute to satisfying this control. ###### **References** CIS CSC 4, 6, 8, 19 COBIT 5 DSS02.04, DSS02.07 ISA 62443-2-1:2009 4.3.4.5.6, 4.3.4.5.7, 4.3.4.5.8 ISA 62443-3-3:2013 SR 6.1 ISO/IEC 27001:2013 A.12.4.1, A.12.4.3, A.16.1.5 NIST SP 800-53 Rev. 4 AU-6, CA-7, IR-4, IR-5, PE-6, SI-4 ### RS.AN-2 #### Requirement The impact of the incident is understood. #### Solution BloodHound Enterprise detects and assigns risk categories based on the percentage of the organizations environment that is exposed to an identity attack path. Risk categories reflect the percentage of assets within the organizational environment that are vulnerable, aiding analysis in determining the impact of an incident. ###### **References** COBIT 5 DSS02.02 ISA 62443-2-1:2009 4.3.4.5.6, 4.3.4.5.7, 4.3.4.5.8 ISO/IEC 27001:2013 A.16.1.4, A.16.1.6 NIST SP 800-53 Rev. 4 CP-2, IR-4 ## Respond(RS)Mitigations(RS.MI) Activities are performed to prevent expansion of an event, mitigate its effects, and resolve the incident. ### RS.MI-2 #### Requirement Incidents are mitigated. #### Solution BloodHound Enterprise provides remediation guidance related to scan findings to mitigate the impact of organizational identity attack path exposure. ###### **References** CIS CSC 4, 19 COBIT 5 APO12.06 ISA 62443-2-1:2009 4.3.4.5.6, 4.3.4.5.10 ISO/IEC 27001:2013 A.12.2.1, A.16.1.5 NIST SP 800-53 Rev. 4 IR-4 # BloodHound Enterprise NIST CSF v2 Compliance Resource Source: https://bloodhound.specterops.io/manage-bloodhound/compliance-framework/nist-csf-v2 The Following information is meant to provide a more detailed and in-depth view of compliance items that BloodHound Enterprise can provide coverage for. ## Identify(ID)Asset Management(ID.AM) Assets (e.g., data, hardware, software, systems, facilities, services, people) that enable the organization to achieve business purposes are identified and managed consistent with their relative importance to organizational objectives and the organization’s risk strategy ### ID.AM-01 ##### Requirement Inventories of hardware managed by the organization are maintained. ##### Solution BloodHound Enterprise collects information on all physical systems operating within a Windows Active Directory environment/Azure Environment. BloodHound Enterprise monitors the addition/removal of physical assets connecting to the organizations environment. ##### **References/Previous Versions** NIST Cybersecurity Framework v1.1: ID.AM-1: Physical devices and systems within the organization are inventoried ### ID.AM-02[](#ID.AM-02) ##### Requirement Inventories of software, services, and systems managed by the organization are maintained ##### Solution BloodHound Enterprise collects information on all Systems in a domain that are connected to the organizations Active Directory/Azure Environment. BloodHound Enterprise monitors the environment for the addition/removal of systems from the organizations environment. ##### **References** NIST Cybersecurity Framework v1.1: ID.AM-2: Software platforms and applications within the organization are inventoried ### ID.AM-05 ##### Requirement Assets are prioritized based on classification, criticality, resources, and impact on the mission ##### Solution BloodHound Enterprise allows organizations to assign assets to Tier Zero (T0) based on the organizations classification, criticality, and business value. Prioritized resources are audited and accounted for during BloodHound Enterprise collection scans. ##### **References** NIST Cybersecurity Framework v1.1: ID.AM-5: Resources (e.g., hardware, devices, data, time, personnel, and software) are prioritized based on their classification, criticality, and business value ## Identity(ID)Risk Assessment(ID.RA) The organization understands the cybersecurity risk to organizational operations (including mission, functions, image, or reputation), organizational assets, and individuals. ### ID.RA-01 ##### Requirement Vulnerabilities in assets are identified, validated, and recorded ##### Solution BloodHound Enterprise analyzes the Active Directory/Azure environment for identity attack paths that potentially impact an organizations security posture. All Identity vulnerabilities are identified during BloodHound collection activities and presented in the reporting dashboard with additional information to support documenting threats. ##### **References** NIST Cybersecurity Framework v1.1: ID.RA-1: Asset vulnerabilities are identified and documented ### ID.RA-03 ##### Requirement Internal and external threats to the organization are identified and recorded. ##### Solution BloodHound Enterprise analyzes the Active Directory/Azure environment for identity attack paths that potentially impact an organizations security posture. All Identity threat vectors are identified during BloodHound collection activities and presented in the reporting dashboard with additional information to support documenting threats. ##### **References** NIST Cybersecurity Framework v1.1: ID.RA-3: Threats, both internal and external, are identified and documented ### ID.RA-05 ##### Requirement Threats, vulnerabilities, likelihoods, and impacts are used to understand inherent risk and inform risk response prioritization. ##### Solution BloodHound Enterprise analyzes the organizational environment for identity attack path vectors and assigns a quantifiable risk metric and category to each detected identity attack path. The assigned risk metric is calculated by determining what percentage of the environment could be impacted by a specific identity vulnerability which will be quantified as percentage and assigned a criticality rating. ##### **References** NIST Cybersecurity Framework v1.1: ID.RA-5: Threats, vulnerabilities, likelihoods, and impacts are used to determine risk ## Protect(PR) Identity Management, Authentication, and Access Control (PR.AA) Access to physical and logical assets and associated facilities is limited to authorized users, processes, and devices, and is managed consistent with the assessed risk of unauthorized access to authorized activities and transactions. ### PR.AA-5 #### Requirement Access permissions, entitlements, and authorizations are defined in a policy, managed, enforced, and reviewed, and incorporate the principles of least privilege and separation of duties #### Solution BloodHound Enterprise audits and reports the health of organizational privilege access models and identifies potential vulnerable attack paths and misconfigurations within the privilege access architecture scheme. ##### **References** NIST Cybersecurity Framework v1.1: PR.AC-1: Identities and credentials are issued, managed, verified, revoked, and audited for authorized devices, users and processes NIST Cybersecurity Framework v1.1: PR.AC-3: Remote access is managed NIST Cybersecurity Framework v1.1: PR.AC-4: Access permissions and authorizations are managed, incorporating the principles of least privilege and separation of duties. CSC v8 : 3.3, 6.8 ## Protect(PR) Platform Security(PR.PS) The hardware, software (e.g., firmware, operating systems, applications), and services of physical and virtual platforms are managed consistent with the organization’s risk strategy to protect their confidentiality, integrity, and availability ### PR.PS-01 #### Requirement Configuration management practices are established and applied #### Solution BloodHound Enterprise’s data collection activities gathers and audits asset configurations for identity attack path analysis. The collected data can be used to validate configuration architecture throughout the Active Directory/Azure environment. BloodHound Enterprise automatically highlights misconfigurations in your environment and assigns them a quantifiable risk metric and criticality rating based on the level of exposure detected. ##### **References** NIST Cybersecurity Framework v1.1: PR.IP-1: A baseline configuration of information technology/industrial control systems is created and maintained incorporating security principles (e.g. concept of least functionality) NIST Cybersecurity Framework v1.1: PR.IP-3: Configuration change control processes are in place NIST Cybersecurity Framework v1.1: PR.PT-2: Removable media is protected and its use restricted according to policy NIST Cybersecurity Framework v1.1: PR.PT-3: The principle of least functionality is incorporated by configuring systems to provide only essential capabilities CSC v8: 4.1, 4.2 ## Detect(PR) Adverse Event Analysis(DE.AE) Anomalies, indicators of compromise, and other potentially adverse events are analyzed to characterize the events and detect cybersecurity incidents ### DE.AE-02 #### Requirement Potentially adverse events are analyzed to better understand associated activities #### Solution BloodHound Enterprise reports identity attack paths and assigns a risk exposure severity rating to each vector based on the percentage of the organizations environment that is exposed to risk. Additional information pertaining to specific events is included in the BloodHound Enterprise GUI. ##### **References** NIST Cybersecurity Framework v1.1: DE.AE-2: Detected events are analyzed to understand attack targets and methods CSC v8: 8.11 ### DE.AE-04 #### Requirement The estimated impact and scope of adverse events are understood. #### Solution BloodHound Enterprise reports identity attack paths and assigns a risk exposure severity rating to each vector based on the percentage of the organizations environment that is exposed to risk. Additional information pertaining to specific events is included in the BloodHound Enterprise GUI. ##### **References** NIST Cybersecurity Framework v1.1: DE.AE-4: Impact of events is determined ### DE.AE-08 #### Requirement Incidents are declared when adverse events meet the defined incident criteria. #### Solution BloodHound Enterprise allows Tier Zero to be defined per the needs of the organization in order to correctly define the individual organizations Tier Zero asset group. During analysis, BloodHound Enterprise will enumerate all detectable identity attack paths and assign and risk exposure rating to each vulnerable identity/asset/object allowing for the establishment of organizational incident alert thresholds and aid in the definition of incident alert criteria. ##### **References** NIST Cybersecurity Framework v1.1: DE.AE-5: Incident alert thresholds are established. ## Detect(DE) Adverse Event Analysis(DE.CM) Assets are monitored to find anomalies, indicators of compromise, and other potentially adverse events. ### DE.CM-01 #### Requirement Networks and network services are monitored to find potentially adverse events. #### Solution BloodHound Enterprise collects information on all physical systems and Active Directory/Azure users operating within a Windows Active Directory environment/Azure Environment. BloodHound Enterprises configurable scan options allows organizations to establish and monitor their organizational baseline of systems, users, and groups and monitor that baseline via the reporting dashboard to identify adverse and unsafe events. ##### **References** NIST Cybersecurity Framework v2.0: DE.CM-01: Networks and network services are monitored to find potentially adverse events ### DE.CM-09 #### Requirement Computing hardware and software, runtime environments, and their data are monitored to find potentially adverse events #### Solution BloodHound Enterprise collects information on all Active Directory/Azure systems operating within a Windows Active Directory environment/Azure Environment. BloodHound Enterprise monitors the various assets for trust violations and other identity based events. ##### **References** Subcategory is new to this version of the framework and incorporates the following items from the previous version: PR.DS-6: Integrity checking mechanisms are used to verify software, firmware, and information integrity PR.DS-8: Integrity checking mechanisms are used to verify hardware integrity DE.CM-4: Malicious code is detected DE.CM-5: Unauthorized mobile code is detected DE.CM-7: Monitoring for unauthorized personnel, connections, devices, and software is performed. ## Risk(RS) Incident Analysis(RS.AN) Assets are monitored to find anomalies, indicators of compromise, and other potentially adverse events. ### RS.AN-03 #### Requirement Analysis is performed to establish what has taken place during an incident and the root cause of the incident. #### Solution BloodHound Enterprise collects information on all physical systems and Active Directory/Azure users operating within a Windows Active Directory environment/Azure Environment. BloodHound Enterprises configurable scan options and reporting features provide insights for determining the impact of an incident and understanding the root cause. ##### **References** NIST Cybersecurity Framework v1.1: RS.AN-3: Forensics are performed ### RS.AN-08 #### Requirement An incident’s magnitude is estimated and validated #### Solution BloodHound Enterprise will audit all identities and objects within your AD environment/Azure environment and provide risk metrics quantifying exposure to identity vulnerabilities as part of your incident validation and estimation activities. ##### **References** NIST Special Publication 800-53 Revision 5: IR-4, IR-8, RA-3. RA-7 ## Risk(RS) Incident Mitigation(RS.MI) Assets are monitored to find anomalies, indicators of compromise, and other potentially adverse events and remediation guidance is provided to mitigate incidents when risk is detected. ### RS.MI-02 #### Requirement Mitigation is performed to restore what has taken place during an incident and address root cause of the incident. #### Solution BloodHound Enterprise collects information on all physical systems and Active Directory/Azure users operating within a Windows Active Directory environment/Azure Environment. BloodHound Enterprises configurable scan options and reporting features provide insights for determining the impact of an incident and understanding the root cause. BloodHound Enterprise provides actionable remediation guidance which enables analysts and responders to proactively prevent and mitigate incidents as they are discovered. ##### **References** NIST Cybersecurity Framework v1.1: RS.AN-3: Forensics are performed # BloodHound Enterprise NIST SP 800-171 Compliance Resource Source: https://bloodhound.specterops.io/manage-bloodhound/compliance-framework/nist-sp-800-171 The Following information is meant to provide a more detailed and in-depth view of compliance items that BloodHound Enterprise can assist in providing coverage for. ## 3.1 - ACCESS CONTROL ### 3.1.1 #### Basic Requirement Limit system access to authorized users, processes acting on behalf of authorized users, and devices (including other systems). **3.1.1 Discussion** Access control policies (e.g., identity- or role-based policies, control matrices, and cryptography) control access between active entities or subjects (i.e., users or processes acting on behalf of users) and passive entities or objects (e.g., devices, files, records, and domains) in systems. Access enforcement mechanisms can be employed at the application and service level to provide increased information security. Other systems include systems internal and external to the organization. This requirement focuses on account management for systems and applications. The definition of and enforcement of access authorizations, other than those determined by account type (e.g., privileged verses non-privileged) are addressed in requirement 3.1.2. #### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access levels and validate access permissions. ### 3.1.2 #### Basic Requirement Limit system access to the types of transactions and functions that authorized users are permitted to execute. **3.1.2 Discussion** Organizations may choose to define access privileges or other attributes by account, by type of account, or a combination of both. System account types include individual, shared, group, system, anonymous, guest, emergency, developer, manufacturer, vendor, and temporary. Other attributes required for authorizing access include restrictions on time-of-day, day-of-week, and point-of- origin. In defining other account attributes, organizations consider system-related requirements (e.g., system upgrades scheduled maintenance,) and mission or business requirements, (e.g., time zone differences, customer requirements, remote access to support travel requirements). #### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access levels and validate access permissions. ### 3.1.5 #### Basic Requirement Employ the principle of least privilege, including for specific security functions and privileged accounts. **3.1.5 Discussion** Organizations employ the principle of least privilege for specific duties and authorized accesses for users and processes. The principle of least privilege is applied with the goal of authorized privileges no higher than necessary to accomplish required organizational missions or business functions. Organizations consider the creation of additional processes, roles, and system accounts as necessary, to achieve least privilege. Organizations also apply least privilege to the development, implementation, and operation of organizational systems. Security functions include establishing system accounts, setting events to be logged, setting intrusion detection parameters, and configuring access authorizations (i.e., permissions, privileges). Privileged accounts, including super user accounts, are typically described as system administrator for various types of commercial off-the-shelf operating systems. Restricting privileged accounts to specific personnel or roles prevents day-to-day users from having access to privileged information or functions. Organizations may differentiate in the application of this requirement between allowed privileges for local accounts and for domain accounts provided organizations retain the ability to control system configurations for key security parameters and as otherwise necessary to sufficiently mitigate risk. #### Solution BloodHound Enterprise audits and reports the health of organizational privilege access models and identifies potential vulnerable attack paths and misconfigurations within the privilege access architecture scheme. ### 3.1.6 #### Basic Requirement Use non-privileged accounts or roles when accessing non-security functions. **3.1.6 Discussion** This requirement limits exposure when operating from within privileged accounts or roles. The inclusion of roles addresses situations where organizations implement access control policies such as role-based access control and where a change of role provides the same degree of assurance in the change of access authorizations for the user and all processes acting on behalf of the user as would be provided by a change between a privileged and non-privileged account. #### Solution BloodHound Enterprise audits and reports the health of organizational privilege access models and identifies potential vulnerable attack paths and misconfigurations within the privilege access architecture scheme. ### 3.1.7 #### Basic Requirement Prevent non-privileged users from executing privileged functions and capture the execution of such functions in audit logs. **3.1.7 Discussion** Privileged functions include establishing system accounts, performing system integrity checks, conducting patching operations, or administering cryptographic key management activities. Non- privileged users are individuals that do not possess appropriate authorizations. Circumventing intrusion detection and prevention mechanisms or malicious code protection mechanisms are examples of privileged functions that require protection from non-privileged users. Note that this requirement represents a condition to be achieved by the definition of authorized privileges in 3.1.2. #### Solution BloodHound Enterprise audits and reports the health of organizational privilege access models and identifies potential vulnerable attack paths and misconfigurations within the privilege access architecture scheme when used in conjunction with external logging solutions to satisfy this requirement. ## 3.3 - AUDIT AND ACCOUNTABILITY ### 3.3.1 #### Basic Requirement Create and retain system audit logs and records to the extent needed to enable the monitoring, analysis, investigation, and reporting of unlawful or unauthorized system activity. **3.3.1 Discussion** An event is any observable occurrence in a system, which includes unlawful or unauthorized system activity. Organizations identify event types for which a logging functionality is needed as those events which are significant and relevant to the security of systems and the environments in which those systems operate to meet specific and ongoing auditing needs. Event types can include password changes, failed logons or failed accesses related to systems, administrative privilege usage, or third-party credential usage. In determining event types that require logging, organizations consider the monitoring and auditing appropriate for each of the CUI security requirements. Monitoring and auditing requirements can be balanced with other system needs. For example, organizations may determine that systems must have the capability to log every file access both successful and unsuccessful, but not activate that capability except for specific circumstances due to the potential burden on system performance. Audit records can be generated at various levels of abstraction, including at the packet level as information traverses the network. Selecting the appropriate level of abstraction is a critical aspect of an audit logging capability and can facilitate the identification of root causes to problems. Organizations consider in the definition of event types, the logging necessary to cover related events such as the steps in distributed, transaction-based processes (e.g., processes that are distributed across multiple organizations) and actions that occur in service-oriented or cloud- based architectures. Audit record content that may be necessary to satisfy this requirement includes time stamps, source and destination addresses, user or process identifiers, event descriptions, success or fail indications, filenames involved, and access control or flow control rules invoked. Event outcomes can include indicators of event success or failure and event-specific results (e.g., the security state of the system after the event occurred). Detailed information that organizations may consider in audit records includes full text recording of privileged commands or the individual identities of group account users. Organizations consider limiting the additional audit log information to only that information explicitly needed for specific audit requirements. This facilitates the use of audit trails and audit logs by not including information that could potentially be misleading or could make it more difficult to locate information of interest. Audit logs are reviewed and analyzed as often as needed to provide important information to organizations to facilitate risk-based decision making. \[SP 800-92] provides guidance on security log management. #### Solution BloodHound Enterprise audits and reports the health of organizational privilege access models and identifies potential vulnerable attack paths and misconfigurations within the privilege access architecture scheme when used in conjunction with external logging solutions to satisfy this requirement. ### 3.3.2 #### Basic Requirement Ensure that the actions of individual system users can be uniquely traced to those users, so they can be held accountable for their actions. **3.3.2 Discussion** This requirement ensures that the contents of the audit record include the information needed to link the audit event to the actions of an individual to the extent feasible. Organizations consider logging for traceability including results from monitoring of account usage, remote access, wireless connectivity, mobile device connection, communications at system boundaries, configuration settings, physical access, nonlocal maintenance, use of maintenance tools, temperature and humidity, equipment delivery and removal, system component inventory, use of mobile code, and use of Voice over Internet Protocol (VoIP). #### Solution BloodHound Enterprise collects and analyses information on all objects with in the Active Directory/Azure environment. Collected data can be used to examine the scope of access that individual network users are granted. When used with native system logs, BloodHound Enterprise can aid in activity attribution and auditing. ### 3.3.5 #### Basic Requirement Correlate audit record review, analysis, and reporting processes for investigation and response to indications of unlawful, unauthorized, suspicious, or unusual activity **3.3.5 Discussion** Correlating audit record review, analysis, and reporting processes helps to ensure that they do not operate independently, but rather collectively. Regarding the assessment of a given organizational system, the requirement is agnostic as to whether this correlation is applied at the system level or at the organization level across all systems. #### Solution BloodHound Enterprise detects and assigns risk categories based on the percentage of the organizations environment that is exposed to an identity attack path. Risk categories reflect the percentage of assets within the organizational environment that are vulnerable, aiding analysis in determining the impact of an incident. Impact scores, scope of access, and native system logs can be used as compensating controls to satisfy this requirement. ## 3.4 - CONFIGURATION MANAGEMENT ### 3.4.1 #### Basic Requirement Establish and maintain baseline configurations and inventories of organizational systems (including hardware, software, firmware, and documentation) throughout the respective system development life cycles **3.4.1 Discussion** Baseline configurations are documented, formally reviewed, and agreed-upon specifications for systems or configuration items within those systems. Baseline configurations serve as a basis for future builds, releases, and changes to systems. Baseline configurations include information about system components (e.g., standard software packages installed on workstations, notebook computers, servers, network components, or mobile devices; current version numbers and update and patch information on operating systems and applications; and configuration settings and parameters), network topology, and the logical placement of those components within the system architecture. Baseline configurations of systems also reflect the current enterprise architecture. Maintaining effective baseline configurations requires creating new baselines as organizational systems change over time. Baseline configuration maintenance includes reviewing and updating the baseline configuration when changes are made based on security risks and deviations from the established baseline configuration Organizations can implement centralized system component inventories that include components from multiple organizational systems. In such situations, organizations ensure that the resulting inventories include system-specific information required for proper component accountability (e.g., system association, system owner). Information deemed necessary for effective accountability of system components includes hardware inventory specifications, software license information, software version numbers, component owners, and for networked components or devices, machine names and network addresses. Inventory specifications include manufacturer, device type, model, serial number, and physical location. \[SP 800-128] provides guidance on security-focused configuration management. #### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound Enterprise’s initial collection and scheduled collections can be used to establish and monitor your organizations identity baseline. ### 3.4.5 #### Basic Requirement Define, document, approve, and enforce physical and logical access restrictions associated with changes to organizational systems **3.4.5 Discussion** Any changes to the hardware, software, or firmware components of systems can potentially have significant effects on the overall security of the systems. Therefore, organizations permit only qualified and authorized individuals to access systems for purposes of initiating changes, including upgrades and modifications. Access restrictions for change also include software libraries. Access restrictions include physical and logical access control requirements, workflow automation, media libraries, abstract layers (e.g., changes implemented into external interfaces rather than directly into systems), and change windows (e.g., changes occur only during certain specified times). In addition to security concerns, commonly-accepted due diligence for configuration management includes access restrictions as an essential part in ensuring the ability to effectively manage the configuration. \[SP 800-128] provides guidance on configuration change control. #### Solution BloodHound Enterprise collects information on all systems, users, and objects in a domain that are connected to the organizations Active Directory/Azure Environment. BloodHound Enterprise monitors the environment for the addition/removal of systems from the organizations environment. ### 3.4.6 #### Basic Requirement Employ the principle of least functionality by configuring organizational systems to provide only essential capabilities **3.4.6 Discussion** Systems can provide a wide variety of functions and services. Some of the functions and services routinely provided by default, may not be necessary to support essential organizational missions, functions, or operations. It is sometimes convenient to provide multiple services from single system components. However, doing so increases risk over limiting the services provided by any one component. Where feasible, organizations limit component functionality to a single function per component. Organizations review functions and services provided by systems or components of systems, to determine which functions and services are candidates for elimination. Organizations disable unused or unnecessary physical and logical ports and protocols to prevent unauthorized connection of devices, transfer of information, and tunneling. Organizations can utilize network scanning tools, intrusion detection and prevention systems, and end-point protections such as firewalls and host-based intrusion detection systems to identify and prevent the use of prohibited functions, ports, protocols, and services #### Solution BloodHound Enterprise audits and reports the health of organizational privilege access models and identifies potential vulnerable attack paths and misconfigurations within the privilege access architecture scheme. ## 3.6 - INCIDENT RESPONSE ### 3.6.1 #### Basic Requirement Establish an operational incident-handling capability for organizational systems that includes preparation, detection, analysis, containment, recovery, and user response activities **3.6.1 Discussion** Organizations recognize that incident handling capability is dependent on the capabilities of organizational systems and the mission/business processes being supported by those systems. Organizations consider incident handling as part of the definition, design, and development of mission/business processes and systems. Incident-related information can be obtained from a variety of sources including audit monitoring, network monitoring, physical access monitoring, user and administrator reports, and reported supply chain events. Effective incident handling capability includes coordination among many organizational entities including mission/business owners, system owners, authorizing officials, human resources offices, physical and personnel security offices, legal departments, operations personnel, procurement offices, and the risk executive. As part of user response activities, incident response training is provided by organizations and is linked directly to the assigned roles and responsibilities of organizational personnel to ensure that the appropriate content and level of detail is included in such training. For example, regular users may only need to know who to call or how to recognize an incident on the system; system administrators may require additional training on how to handle or remediate incidents; and incident responders may receive more specific training on forensics, reporting, system recovery, and restoration. Incident response training includes user training in the identification/reporting of suspicious activities from external and internal sources. User response activities also includes incident response assistance which may consist of help desk support, assistance groups, and access to forensics services or consumer redress services, when required. \[SP 800-61] provides guidance on incident handling. \[SP 800-86] and \[SP 800-101] provide guidance on integrating forensic techniques into incident response. \[SP 800-161] provides guidance on supply chain risk managemen #### Solution BloodHound Enterprise provides visibility into the logical relationships and access scope for an organizational Active Directory/Azure environments. Proactively monitoring the organizational environment in conjunction with native security tools contributes to satisfying this requirement. ### 3.6.2 #### Basic Requirement Track, document, and report incidents to designated officials and/or authorities both internal and external to the organization. **3.6.2 Discussion** Tracking and documenting system security incidents includes maintaining records about each incident, the status of the incident, and other pertinent information necessary for forensics, evaluating incident details, trends, and handling. Incident information can be obtained from a variety of sources including incident reports, incident response teams, audit monitoring, network monitoring, physical access monitoring, and user/administrator reports. Reporting incidents addresses specific incident reporting requirements within an organization and the formal incident reporting requirements for the organization. Suspected security incidents may also be reported and include the receipt of suspicious email communications that can potentially contain malicious code. The types of security incidents reported, the content and timeliness of the reports, and the designated reporting authorities reflect applicable laws, Executive Orders, directives, regulations, and policies. \[SP 800-61] provides guidance on incident handling. #### Solution BloodHound Enterprise provides visibility into the logical relationships and access scope for an organizational Active Directory/Azure environments. Proactively monitoring the organizational environment in conjunction with native security tools contributes to satisfying this requirement. ## 3.11 - RISK ASSESSMENT ### 3.11.1 #### Basic Requirement Periodically assess the risk to organizational operations (including mission, functions, image, or reputation), organizational assets, and individuals, resulting from the operation of organizational systems and the associated processing, storage, or transmission of CUI. **3.11.1 Discussion** Clearly defined system boundaries are a prerequisite for effective risk assessments. Such risk assessments consider threats, vulnerabilities, likelihood, and impact to organizational operations, organizational assets, and individuals based on the operation and use of organizational systems. Risk assessments also consider risk from external parties (e.g., service providers, contractors operating systems on behalf of the organization, individuals accessing organizational systems, outsourcing entities). Risk assessments, either formal or informal, can be conducted at the organization level, the mission or business process level, or the system level, and at any phase in the system development life cycle. \[SP 800-30] provides guidance on conducting risk assessments. #### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound Enterprise’s scheduled collection feature is designed to continuously monitor your environment for Tier Zero risk exposure. ### 3.11.2 #### Basic Requirement Scan for vulnerabilities in organizational systems and applications periodically and when new vulnerabilities affecting those systems and applications are identified. **3.11.2 Discussion** Organizations determine the required vulnerability scanning for all system components, ensuring that potential sources of vulnerabilities such as networked printers, scanners, and copiers are not overlooked. The vulnerabilities to be scanned are readily updated as new vulnerabilities are discovered, announced, and scanning methods developed. This process ensures that potential vulnerabilities in the system are identified and addressed as quickly as possible. Vulnerability analyses for custom software applications may require additional approaches such as static analysis, dynamic analysis, binary analysis, or a hybrid of the three approaches. Organizations can employ these analysis approaches in source code reviews and in a variety of tools (e.g., static analysis tools, web-based application scanners, binary analyzers) and in source code reviews. Vulnerability scanning includes: scanning for patch levels; scanning for functions, ports, protocols, and services that should not be accessible to users or devices; and scanning for improperly configured or incorrectly operating information flow control mechanisms. To facilitate interoperability, organizations consider using products that are Security Content Automated Protocol (SCAP)-validated, scanning tools that express vulnerabilities in the Common Vulnerabilities and Exposures (CVE) naming convention, and that employ the Open Vulnerability Assessment Language (OVAL) to determine the presence of system vulnerabilities. Sources for vulnerability information include the Common Weakness Enumeration (CWE) listing and the National Vulnerability Database (NVD). Security assessments, such as red team exercises, provide additional sources of potential vulnerabilities for which to scan. Organizations also consider using scanning tools that express vulnerability impact by the Common Vulnerability Scoring System (CVSS). In certain situations, the nature of the vulnerability scanning may be more intrusive or the system component that is the subject of the scanning may contain highly sensitive information. Privileged access authorization to selected system components facilitates thorough vulnerability scanning and protects the sensitive nature of such scanning. \[SP 800-40] provides guidance on vulnerability management. #### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound Enterprise’s scheduled collection feature is designed to continuously monitor your environment for Tier Zero risk exposure. ### 3.11.3 #### Requirement Remediate vulnerabilities in accordance with risk assessments. **3.11.3 Discussion** Vulnerabilities discovered, for example, via the scanning conducted in response to 3.11.2, are remediated with consideration of the related assessment of risk. The consideration of risk influences the prioritization of remediation efforts and the level of effort to be expended in the remediation for specific vulnerabilities. #### Solution BloodHound Enterprise provides remediation guidance related to scan findings to mitigate the impact of organizational identity attack path exposure. ## 3.12 - SECURITY ASSESSMENT ### 3.12.1 #### Basic Requirement Periodically assess the security controls in organizational systems to determine if the controls are effective in their application. **3.12.1 Discussion** Organizations assess security controls in organizational systems and the environments in which those systems operate as part of the system development life cycle. Security controls are the safeguards or countermeasures organizations implement to satisfy security requirements. By assessing the implemented security controls, organizations determine if the security safeguards or countermeasures are in place and operating as intended. Security control assessments ensure that information security is built into organizational systems; identify weaknesses and deficiencies early in the development process; provide essential information needed to make risk-based decisions; and ensure compliance to vulnerability mitigation procedures. Assessments are conducted on the implemented security controls as documented in system security plans. Security assessment reports document assessment results in sufficient detail as deemed necessary by organizations, to determine the accuracy and completeness of the reports and whether the security controls are implemented correctly, operating as intended, and producing the desired outcome with respect to meeting security requirements. Security assessment results are provided to the individuals or roles appropriate for the types of assessments being conducted. Organizations ensure that security assessment results are current, relevant to the determination of security control effectiveness, and obtained with the appropriate level of assessor independence. Organizations can choose to use other types of assessment activities such as vulnerability scanning and system monitoring to maintain the security posture of systems during the system life cycle. \[SP 800-53] provides guidance on security and privacy controls for systems and organizations. \[SP 800-53A] provides guidance on developing security assessment plans and conducting assessments. #### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound Enterprise’s scheduled collection feature is designed to continuously monitor your environment for Tier Zero risk exposure. BloodHound Enterprise’s reporting feature can be used to asses the effectiveness identity and access control systems. ### 3.12.2 #### Basic Requirement Develop and implement plans of action designed to correct deficiencies and reduce or eliminate vulnerabilities in organizational systems. **3.12.2 Discussion** The plan of action is a key document in the information security program. Organizations develop plans of action that describe how any unimplemented security requirements will be met and how any planned mitigations will be implemented. Organizations can document the system security plan and plan of action as separate or combined documents and in any chosen format. Federal agencies may consider the submitted system security plans and plans of action as critical inputs to an overall risk management decision to process, store, or transmit CUI on a system hosted by a nonfederal organization and whether it is advisable to pursue an agreement or contract with the nonfederal organization. \[NIST CUI] provides supplemental material for Special Publication 800-171 including templates for plans of action. #### Solution BloodHound Enterprise provides remediation guidance related to scan findings to mitigate the impact of organizational identity attack path exposure. Findings are given a criticality rating based on identity exposure contributing to the prioritization of remedial actions when executing a response plan. ### 3.12.3 #### Basic Requirement Monitor security controls on an ongoing basis to ensure the continued effectiveness of the controls. **3.12.3 Discussion** Continuous monitoring programs facilitate ongoing awareness of threats, vulnerabilities, and information security to support organizational risk management decisions. The terms continuous and ongoing imply that organizations assess and analyze security controls and information security-related risks at a frequency sufficient to support risk-based decisions. The results of continuous monitoring programs generate appropriate risk response actions by organizations. Providing access to security information on a continuing basis through reports or dashboards gives organizational officials the capability to make effective and timely risk management decisions. Automation supports more frequent updates to hardware, software, firmware inventories, and other system information. Effectiveness is further enhanced when continuous monitoring outputs are formatted to provide information that is specific, measurable, actionable, relevant, and timely. Monitoring requirements, including the need for specific monitoring, may also be referenced in other requirements. \[SP 800-137] provides guidance on continuous monitoring. #### Solution BloodHound Enterprise scheduled and on-demand collection scans will gather information in accordance with organizational security policy and report all identity attack path vulnerabilities and misconfigurations found during scan and data analysis actions ## 3.14 - SYSTEM AND INFORMATION INTEGRITY ### 3.14.1 #### Basic Requirement Identify, report, and correct system flaws in a timely manner. **3.14.1 Discussion** Organizations identify systems that are affected by announced software and firmware flaws including potential vulnerabilities resulting from those flaws and report this information to designated personnel with information security responsibilities. Security-relevant updates include patches, service packs, hot fixes, and anti-virus signatures. Organizations address flaws discovered during security assessments, continuous monitoring, incident response activities, and system error handling. Organizations can take advantage of available resources such as the Common Weakness Enumeration (CWE) database or Common Vulnerabilities and Exposures (CVE) database in remediating flaws discovered in organizational systems. Organization-defined time periods for updating security-relevant software and firmware may vary based on a variety of factors including the criticality of the update (i.e., severity of the vulnerability related to the discovered flaw). Some types of flaw remediation may require more testing than other types of remediation. \[SP 800-40] provides guidance on patch management technologies. #### Solution BloodHound Enterprise scheduled and on-demand collection scans will gather information in accordance with organizational security policy and report all identity attack path vulnerabilities and misconfigurations found during scan and data analysis actions. ### 3.14.2 #### Basic Requirement Provide protection from malicious code at designated locations within organizational systems. **3.14.2 Discussion** Designated locations include system entry and exit points which may include firewalls, remote- access servers, workstations, electronic mail servers, web servers, proxy servers, notebook computers, and mobile devices. Malicious code includes viruses, worms, Trojan horses, and spyware. Malicious code can be encoded in various formats (e.g., UUENCODE, Unicode), contained within compressed or hidden files, or hidden in files using techniques such as steganography. Malicious code can be inserted into systems in a variety of ways including web accesses, electronic mail, electronic mail attachments, and portable storage devices. Malicious code insertions occur through the exploitation of system vulnerabilities. Malicious code protection mechanisms include anti-virus signature definitions and reputation- based technologies. A variety of technologies and methods exist to limit or eliminate the effects of malicious code. Pervasive configuration management and comprehensive software integrity controls may be effective in preventing execution of unauthorized code. In addition to commercial off-the-shelf software, malicious code may also be present in custom-built software. This could include logic bombs, back doors, and other types of cyber-attacks that could affect organizational missions/business functions. Traditional malicious code protection mechanisms cannot always detect such code. In these situations, organizations rely instead on other safeguards including secure coding practices, configuration management and control, trusted procurement processes, and monitoring practices to help ensure that software does not perform functions other than the functions intended. \[SP 800-83] provides guidance on malware incident prevention. #### Solution BloodHound Enterprise scheduled and on-demand collection scans will gather information in accordance with organizational security policy and report all identity attack path vulnerabilities and misconfigurations found during scan and data analysis actions. BloodHound Enterprise can be configured to monitor organizational specific assets and provide proactive risk assessment with associated assets as part of scheduled collection scans to satisfy this requirement. # BloodHound Enterprise NIST SP 800-53 Rev.8 Compliance Resource Source: https://bloodhound.specterops.io/manage-bloodhound/compliance-framework/nist-sp-800-53 The Following information is meant to provide a more detailed and in-depth view of compliance items that BloodHound Enterprise can provide coverage for. ## AC-2 - Account Management ### Summary Accounts are assigned, managed, and maintained in accordance with organizational policy ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit and verify access levels for users and groups throughout the enterprise. Related Controls: IA-1, PM-9, PM-24, PS-8, SI-12. **References** OMB A-130, SP 800-12, SP 800-30, SP 800-39, SP 800-100, IR 7874 ## AC-3 - Access Enforcement ### Summary Enforce approved authorizations for logical access to information and system resources in accordance with applicable access control policies. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access levels and validate access enforcement controls. #### **References** OMB A-130, SP 800-12, SP 800-30, SP 800-39, SP 800-100, IR 7874 ## AC-4 - Information Flow Enforcement ### Summary Enforce approved authorizations for controlling the flow of information within the system and between connected systems based on organization-defined information flow control policies. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. The logical relationships between AD/Azure objects and Tier Zero assets aid in validating information flow enforcement architecture. #### **References** SP 800-12, SP 800-30, SP 800-39 ## CA-2 - Security Assessments ### Summary Security Assessments, mandates regular evaluations of security controls within a system to verify their effectiveness and correct implementation. These assessments, which should occur periodically and after significant system changes, involve examining documentation, interviewing personnel, and technical testing. The findings must be documented and reviewed by organizational officials to guide corrective actions. Additionally, independent assessments by external parties are recommended to ensure an unbiased perspective on the security posture. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. Dashboard and reporting features in BloodHound Enterprise provide continuous evaluation of relationships in your environment and provide actionable data in support of organizational security assessment activities and policies. #### **References** SP 800-12, SP 800-30, SP 800-39 ## CA-3 - System Interconnections ### Summary System Interconnections, requires the management, approval, and monitoring of connections between different systems. This control emphasizes establishing and documenting agreements for interfacing systems, assessing security risks associated with these interconnections, and ensuring compliance with relevant security requirements. Organizations must maintain an inventory of all interconnections and regularly review and update the security controls associated with them to mitigate any potential security risks ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound Enterprises dashboard and reports both illustrate the logical system interconnections within the environment and evaluates and reports any discovered risk. #### **References** SP 800-12, SP 800-30, SP 800-39 ## CA-7 - Continuous Monitoring ### Summary Continuous Monitoring, mandates the establishment of a continuous monitoring strategy to maintain the security of systems and environments. This strategy should include defining the frequency and scope of monitoring to ensure ongoing awareness of security controls' effectiveness. Organizations are required to deploy automated tools to support real-time analysis and reporting of security alerts. The results of continuous monitoring must be reviewed and used to respond to risks in a timely manner. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound Enterprise’s scheduled collection feature is designed to continuously monitor your environment for Tier Zero risk exposure. #### **References** SP 800-12, SP 800-30, SP 800-39 ## CA-8-Penetration Testing ### Summary Penetration Testing, involves conducting simulated attacks on systems to identify vulnerabilities and assess the effectiveness of existing security controls. This control requires organizations to plan and execute regular penetration testing based on documented procedures that define the scope, testing methods, and evaluation criteria. The results should be analyzed to determine system weaknesses and develop strategies for mitigation. Regular updates and improvements to the security posture are essential following these tests. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound enterprise will assign a risk metric, represented as exposure to tier 0 assets, and report the overall level of exposure present in an environment. BloodHound Enterprise provides actionable intelligence on the risks present in your environment which can both aid penetration test assessment functions and activities. #### **References** SP 800-12, SP 800-30, SP 800-39 ## CM-2-Baseline Configuration ### Summary Baseline Configuration, mandates the development, documentation, and maintenance of a baseline configuration for organizational systems. This baseline serves as a standard for proper system configuration and includes information on system components, security controls, and user-accessible functions. Organizations are required to review and update the baseline regularly, ensuring that any deviations are authorized, documented, and justified. This control is crucial for maintaining the integrity and security of system configurations over time. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound Enterprise’s initial collection and scheduled collections can be used to establish and monitor your organizations identity baseline. #### **References** SP 800-12, SP 800-30, SP 800-39 ## CM-8-Information System Component Inventory ### Summary Information System Component Inventory, requires organizations to maintain an accurate, up-to-date inventory of all system components that are within the authorization boundary of the information systems. This inventory should include details like the component's identification, version, and configuration. The control emphasizes the need to verify the presence of authorized components and detect unauthorized components to ensure the integrity of the system. Regular reviews and updates of the inventory are mandatory to reflect changes due to system modifications or upgrades. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound enterprise will assign a risk metric, represented as exposure to tier 0 assets, and report the overall level of exposure present in an environment. #### **References** SP 800-12, SP 800-30, SP 800-39 ## CP-2-Contingency Plan ### Summary Contingency Plan, requires organizations to develop, document, and implement plans to recover and restore organizational IT system functionalities in the event of a disruption, compromise, or failure. The contingency plans must be coordinated with organizational emergency plans, regularly reviewed and updated, and communicated to relevant personnel. Organizations must also test the plans to ensure they are effective and feasible, using tests that reflect realistic conditions to identify potential weaknesses in the plans. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound enterprise will assign a risk metric, represented as exposure to tier 0 assets, and inform the development of organizational contingency plans. #### **References** SP 800-12, SP 800-30, SP 800-39 ## IA-1-Identification and Authentication ### Summary Identification and Authentication Policy and Procedures, mandates that organizations develop, document, and maintain an identification and authentication policy that includes procedures to manage and control user identification and authentication mechanisms. This policy should align with the organization's security requirements and include details on how identity and authentication systems are implemented and managed. The control also emphasizes the need for ongoing updates and dissemination of the policy to ensure it remains effective and relevant to current security challenges. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound enterprise will assign a risk metric, represented as exposure to tier 0 assets, and report the overall level of exposure present in an environment. #### **References** SP 800-12, SP 800-30, SP 800-39 ## IA-2-Identification and Authentication (Organizational Users) ### Summary Identification and Authentication (Organizational Users), requires that the identity of organizational users is verified before granting access to organizational information systems. This control involves establishing and managing unique user IDs, employing robust authentication processes (like passwords, tokens, or biometric data), and ensuring that authentication mechanisms meet the required security strength levels. Additionally, the control mandates periodic updates and reviews of the authentication mechanisms to adapt to emerging threats and ensure the security of user access. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound enterprise will assign a risk metric, represented as exposure to tier 0 assets, and report the overall level of exposure present in an environment. #### **References** SP 800-12, SP 800-30, SP 800-39 ## IA-4-Identifier Management ### Summary Identifier Management, requires the management of user identifiers by ensuring they are uniquely assigned to individual users. This control requires organizations to establish a system for managing identifiers that includes issuing, maintaining, and revoking identifiers as needed. It also emphasizes the need to protect identifier information to prevent misuse or unauthorized access. Regular audits are required to ensure that identifiers are not shared and are disabled or removed when no longer associated with an active user account. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound enterprise will assign a risk metric, represented as exposure to tier 0 assets, and report the overall level of exposure present in an environment and highlight instances of misconfigured identities. #### **References** SP 800-12, SP 800-30, SP 800-39 ## IA-8-Identification and Authentication ### Summary Identification and Authentication (Non-Organizational Users), focuses on ensuring that non-organizational users (such as contractors, customers, or partners) are uniquely identified and authenticated before accessing organizational information systems. This control requires organizations to implement measures that are consistent with the risk associated with such external users. It involves establishing terms and conditions for non-organizational user access, using robust authentication mechanisms, and monitoring and controlling these authentication processes to mitigate potential security risks effectively. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound enterprise will assign a risk metric, represented as exposure to tier 0 assets, and report the overall level of exposure present in an environment. #### **References** SP 800-12, SP 800-30, SP 800-39 ## IR-5-Incident Monitoring ### Summary Incident Monitoring, requires organizations to establish and maintain the capability to detect, analyze, and respond to information security incidents in real time. This control involves the continuous monitoring of information system activity to identify occurrences that may indicate a security incident. Organizations must also implement effective communication channels that allow for timely dissemination of incident information. The control emphasizes the need for maintaining historical incident data to support after-action reviews and to improve incident response effectiveness and prevention strategies. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound enterprise will assign a risk metric, represented as exposure to tier 0 assets, and report the overall level of exposure present in an environment. #### **References** SP 800-12, SP 800-30, SP 800-39 ## PM-5-Information System Inventory ### Summary Information System Inventory, requires organizations to develop, document, maintain, and review an inventory of information systems that includes all components within the authorization boundary. This inventory should capture the interfaces between systems (both internal and external), the data classification associated with the systems, and the organizational responsible entities. The control emphasizes the importance of keeping the inventory current to support effective risk management and security decision-making processes. Regular updates and validations of the inventory ensure accuracy and completeness in reflecting system changes. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound enterprise will assign a risk metric, represented as exposure to tier 0 assets, and report the overall level of exposure present in an environment. #### **References** SP 800-12, SP 800-30, SP 800-39 ## RA-2-Security Categorization ### Summary Security Categorization, requires organizations to categorize information and information systems according to the risk of harm that could result from unauthorized access, use, disclosure, disruption, modification, or destruction. This categorization should be based on the potential impact to organizational operations, assets, individuals, other organizations, and national security. The categorization must guide the selection of security controls appropriate to protecting the information system at the required security level. The process should be consistent with applicable laws, executive orders, directives, policies, standards, and guidelines. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound enterprise will assign a risk metric, represented as exposure to tier 0 assets, and report the overall level of exposure present in an environment. #### **References** SP 800-12, SP 800-30, SP 800-39 ## RA-3-Risk Assessment ### Summary Risk Assessment, mandates organizations to conduct comprehensive assessments of risks to their operations, assets, individuals, and other organizations resulting from the operation of information systems. This includes identifying potential threats and vulnerabilities, evaluating the likelihood and impact of different scenarios, and determining the potential adverse effects. Organizations are required to periodically perform these risk assessments to account for changes in the operational environment or in response to new threats. The results should be used to update security measures and inform risk response decisions. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound enterprise will assign a risk metric, represented as exposure to tier 0 assets, and report the overall level of exposure present in an environment. #### **References** SP 800-12, SP 800-30, SP 800-39 ## RA-5-Vulnerability Scanning ### Summary RA-5, Vulnerability Scanning, requires organizations to periodically scan information systems and hosted applications to identify security vulnerabilities. The control stipulates that the scans should be conducted using updated tools and techniques, tailored to the system's security requirements and the organization's risk environment. Findings from these scans must be analyzed, documented, and reviewed by designated officials to prioritize remediation actions based on risk. The control also mandates that organizations establish processes to remediate vulnerabilities within an acceptable timeframe to maintain the security and integrity of the system. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound enterprise will assign a risk metric, represented as exposure to tier 0 assets, and report the overall level of exposure present in an environment. #### **References** SP 800-12, SP 800-30, SP 800-39 ## SA-5-Information System Documentation ### Summary Information System Documentation, mandates that organizations maintain documentation for information systems and their environments of operation. This documentation should accurately reflect the current configuration and architecture of the system, including details of all components, interfaces, and security controls. The purpose is to ensure that all aspects of the system are fully documented to support effective management, maintenance, and upgrades. Organizations must ensure that this documentation is available to authorized personnel and protected from unauthorized access or modification. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound enterprise will assign a risk metric, represented as exposure to tier 0 assets, and report the overall level of exposure present in an environment. #### **References** SP 800-12, SP 800-30, SP 800-39 ## SA-11-Security Testing and Evaluation ### Summary Developer Security Testing and Evaluation, requires organizations to require developers to conduct security testing and evaluation of the information system and its components. This includes unit testing, integration testing, system testing, and regression testing to identify flaws and vulnerabilities in the system. The control specifies that these tests should be comprehensive, covering security functionality, boundary testing, and penetration testing. Results from these tests must be documented and used to make necessary corrections before deploying the system. Organizations are also encouraged to employ independent evaluators to verify the results and effectiveness of the developer's tests. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound enterprise will assign a risk metric, represented as exposure to tier 0 assets, and report the overall level of exposure present in an environment. #### **References** SP 800-12, SP 800-30, SP 800-39 ## SI-2-Flaw Remediation ## Summary Flaw Remediation, requires organizations to identify, report, and correct information system flaws in a timely manner. This control involves regularly scanning for vulnerabilities using updated tools, and promptly addressing detected flaws to mitigate potential security risks. The control also emphasizes the importance of prioritizing the remediation of flaws based on the severity of the potential impact on the organization. Furthermore, organizations are mandated to install security-relevant software and firmware updates and patches to ensure systems remain resilient against known threats. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound enterprise will assign a risk metric, represented as exposure to tier 0 assets, and report the overall level of exposure present in an environment. #### **References** SP 800-12, SP 800-30, SP 800-39 ## SI-4-Information Systems Monitoring ### Summary Information System Monitoring, mandates continuous monitoring activities to detect unauthorized access, use, disclosure, disruption, modification, or destruction of information and information systems. This control requires organizations to deploy monitoring tools capable of generating alerts in response to detected anomalies. The scope of monitoring should include network traffic, user activities, and system configurations. Organizations are also expected to regularly review and update their monitoring strategies to adapt to new threats and incorporate advancements in technology. Additionally, the results of monitoring activities should be protected, analyzed, and used to inform risk management decisions. ### Solution BloodHound Enterprise identifies and catalogues all Active Directory/Azure accounts during its collection process. The collected accounts are analyzed and displayed in graph format to illustrate the various relationships and permission profiles in order to easily audit/verify access and authorization levels within the enterprise. BloodHound enterprise will assign a risk metric, represented as exposure to tier 0 assets, and report the overall level of exposure present in an environment. #### **References** SP 800-12, SP 800-30, SP 800-39 # BloodHound Enterprise Compliance Framework Source: https://bloodhound.specterops.io/manage-bloodhound/compliance-framework/overview BloodHound Enterprise helps organizations meet their compliance requirements by providing visibility into identity attack paths and enabling organizations to remediate them. BloodHound Enterprise can help satisfy controls across multiple compliance frameworks, including: * [NIST CSF v1.1](/manage-bloodhound/compliance-framework/nist-csf-v1-1) * [NIST CSF v2](/manage-bloodhound/compliance-framework/nist-csf-v2) * [NIST SP 800-171](/manage-bloodhound/compliance-framework/nist-sp-800-171) * [NIST SP 800-53 Rev. 8](/manage-bloodhound/compliance-framework/nist-sp-800-53) ## How BloodHound Enterprise Helps with Compliance BloodHound Enterprise helps organizations meet their compliance requirements in several ways: 1. **Asset Management**: BloodHound Enterprise provides a comprehensive inventory of Active Directory and Azure assets through automated scans of the environment. 2. **Risk Assessment**: BloodHound Enterprise's attack path analysis and risk scoring help organizations understand and quantify their cybersecurity risk. 3. **Configuration Management**: BloodHound Enterprise helps establish access and identity baselines and detects deviations from those baselines. 4. **Monitoring**: BloodHound Enterprise provides routine and on-demand scans to continuously monitor for identity attack paths. 5. **Incident Response**: BloodHound Enterprise's attack path analysis helps organizations understand and respond to identity-based threats. For more information about how BloodHound Enterprise maps to specific compliance controls, see the [Compliance Resources](/manage-bloodhound/compliance-framework/resources) page. > [card] [BloodHound Enterprise Compliance Framework Resource](/manage-bloodhound/compliance-framework/resources) > [card] [BloodHound Enterprise NIST SP 800-171 Compliance Resource](/manage-bloodhound/compliance-framework/nist-sp-800-171) > [card] [BloodHound Enterprise NIST SP 800-53 Rev.8 Compliance Resource](/manage-bloodhound/compliance-framework/nist-sp-800-53) > [card] [BloodHound Enterprise NIST CSF v2 Compliance Resource](/manage-bloodhound/compliance-framework/nist-csf-v2) > [card] [BloodHound Enterprise NIST CSF v1.1 Compliance Resource](/manage-bloodhound/compliance-framework/nist-csf-v1-1) # BloodHound Enterprise Compliance Framework Resource Source: https://bloodhound.specterops.io/manage-bloodhound/compliance-framework/resources BloodHound Enterprise aids numerous organizations in meeting their compliance requirements through our continuous monitoring of identity Attack Path exposure within their environments. We're eager to support you and your auditors in gaining a deeper understanding of the inner workings of BloodHound Enterprise and how we can help you meet your compliance goals. Below, you'll find tables outlining various standard controls, detailing how BloodHound Enterprise supports these controls, and mapping them to relevant sections within the specific compliance frameworks. Within each table, the specific controls can be expanded to learn how BloodHound Enterprise satisfies each particular control. ## Asset Management | | | | | | | | | - | - | - | - | - | - | - | | **Control Category/Activity** | **How Does BloodHound Enterprise Satisfy This Control?** | **[NIST CSF v1.1](/manage-bloodhound/compliance-framework/nist-csf-v1-1)** | **[NIST CSF v2](/manage-bloodhound/compliance-framework/nist-csf-v2)** | **[NIST 800-171](/manage-bloodhound/compliance-framework/nist-sp-800-171)** | **[NIST 800-53 rev 8](/manage-bloodhound/compliance-framework/nist-sp-800-53)** | | | Asset Management The organization retains control over a system of devices, which undergoes reconciliation at intervals defined by the organization. | BloodHound Enterprise provides a comprehensive inventory of Active Directory and Azure assets through automated scans of the environment. | [ID.AM-1](/manage-bloodhound/compliance-framework/nist-csf-v1-1#ID.AM-1) [ID.AM-2](/manage-bloodhound/compliance-framework/nist-csf-v1-1#ID.AM-2) [ID.AM-5](/manage-bloodhound/compliance-framework/nist-csf-v1-1#ID.AM-5) [PR.IP-1](/manage-bloodhound/compliance-framework/nist-csf-v1-1#PR.IP-1) | [ID.AM-01](/manage-bloodhound/compliance-framework/nist-csf-v2#ID.AM-01) [ID.AM-02](/manage-bloodhound/compliance-framework/nist-csf-v2#ID.AM-02) [ID.AM-05](/manage-bloodhound/compliance-framework/nist-csf-v2#ID.AM-05) | [3.1.1](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.1.1) [3.4.1](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.4.1) | [CM-8](/manage-bloodhound/compliance-framework/nist-sp-800-53#CM-8-Information-System-Component-Inventory) [CP-2](/manage-bloodhound/compliance-framework/nist-sp-800-53#CP-2-Contingency-Plan) [PM-5](/manage-bloodhound/compliance-framework/nist-sp-800-53#PM-5-Information-System-Inventory) [RA-2](/manage-bloodhound/compliance-framework/nist-sp-800-53#RA-2-Security-Categorization) | | ## Risk Assessment | | | | | | | | | - | - | - | - | - | - | - | | **Control Category/Activity** | **How Does BloodHound Enterprise Satisfy This Control?** | **[NIST CSF v1.1](/manage-bloodhound/compliance-framework/nist-csf-v1-1)** | **[NIST CSF v2](/manage-bloodhound/compliance-framework/nist-csf-v2)** | **[NIST 800-171](/manage-bloodhound/compliance-framework/nist-sp-800-171)** | **[NIST 800-53 rev 8](/manage-bloodhound/compliance-framework/nist-sp-800-53)** | | | Risk Assessment The organization employs mechanisms to understand the cybersecurity risk to operations, assets, and individuals. | BloodHound Enterprise's attack path analysis and risk scoring help to satisfy this control. | [ID.RA-1](/manage-bloodhound/compliance-framework/nist-csf-v1-1#ID.RA-1) [ID.RA-3](/manage-bloodhound/compliance-framework/nist-csf-v1-1#ID.RA-3) [ID.RA-5](/manage-bloodhound/compliance-framework/nist-csf-v1-1#ID.RA-5) | [ID.RA-01](/manage-bloodhound/compliance-framework/nist-csf-v2#ID.RA-01) [ID.RA-03](/manage-bloodhound/compliance-framework/nist-csf-v2#ID.RA-03) [ID.RA-05](/manage-bloodhound/compliance-framework/nist-csf-v2#ID.RA-05) | [3.11.1](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.11.1) [3.11.2](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.11.2) [3.11.3](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.11.3) [3.12.1](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.12.1) [3.12.2](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.12.1) [3.12.3](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.12.3) [3.14.1](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.14.1) [3.14.2](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.14.2) | [CA-2](/manage-bloodhound/compliance-framework/nist-sp-800-53#CA-2---Security-Assessments) [CA-7](/manage-bloodhound/compliance-framework/nist-sp-800-53#CA-7---Continuous-Monitoring) [CA-8](/manage-bloodhound/compliance-framework/nist-sp-800-53#CA-8-Penetration-Testing) [RA-3](/manage-bloodhound/compliance-framework/nist-sp-800-53#RA-3-Risk-Assessment) [RA-5](/manage-bloodhound/compliance-framework/nist-sp-800-53#RA-5-Vulnerability-Scanning) [SA-5](/manage-bloodhound/compliance-framework/nist-sp-800-53#SA-5-Information-System-Documentation) [SA-11](/manage-bloodhound/compliance-framework/nist-sp-800-53#SA-11-Security-Testing-and-Evaluation) [SI-2](/manage-bloodhound/compliance-framework/nist-sp-800-53#SI-2-Flaw-Remediation) [SI-4](/manage-bloodhound/compliance-framework/nist-sp-800-53#SI-4-Information-Systems-Monitoring) | | ## Configuration Management | | | | | | | | | - | - | - | - | - | - | - | | **Control Category/Activity** | **How Does BloodHound Enterprise Satisfy This Control?** | **[NIST CSF v1.1](/manage-bloodhound/compliance-framework/nist-csf-v1-1)** | **[NIST CSF v2](/manage-bloodhound/compliance-framework/nist-csf-v2)** | **[NIST 800-171](/manage-bloodhound/compliance-framework/nist-sp-800-171)** | **[NIST 800-53 rev 8](/manage-bloodhound/compliance-framework/nist-sp-800-53)** | | | Configuration Management The organization employs proactive mechanisms to detect deviations from baseline configurations within production environments. | Analysis of Active Directory/Azure Identities audits user and object permissions for deviations from established access and identity baselines | [PR.AC-4](/manage-bloodhound/compliance-framework/nist-csf-v1-1#PR.AC-4) [PR.IP-1](/manage-bloodhound/compliance-framework/nist-csf-v1-1#PR.IP-1) [DE.AE-1](/manage-bloodhound/compliance-framework/nist-csf-v1-1#DE.AE-1) | [PR.PS-01](/manage-bloodhound/compliance-framework/nist-csf-v2#PR.PS-01) | [3.1.1](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.12.3) [3.1.2](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.1.2) [3.1.5](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.1.2) [3.1.6](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.1.6) [3.1.7](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.1.7) [3.4.5](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.4.5) [3.4.6](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.4.6) | [AC-2](/manage-bloodhound/compliance-framework/nist-sp-800-53#AC-2----Account-Management) [AC-3](/manage-bloodhound/compliance-framework/nist-sp-800-53#AC-3---Access-Enforcement) [IA-1](/manage-bloodhound/compliance-framework/nist-sp-800-53#IA-1-Identification-and-Authentication) [IA-2](/manage-bloodhound/compliance-framework/nist-sp-800-53#IA-2-Identification-and-Authentication-\(Organizational-Users\)) [IA-4](/manage-bloodhound/compliance-framework/nist-sp-800-53#IA-4-Identifier-Management) [IA-8](/manage-bloodhound/compliance-framework/nist-sp-800-53#IA-8-Identification-and-Authentication) | | ## Detection | | | | | | | | | - | - | - | - | - | - | - | | | | | | | | | | - | - | - | - | - | - | - | | **Control Category/Activity** | **How Does BloodHound Enterprise Satisfy This Control?** | **[NIST CSF v1.1](/manage-bloodhound/compliance-framework/nist-csf-v1-1)** | **[NIST CSF v2](/manage-bloodhound/compliance-framework/nist-csf-v2)** | **[NIST 800-171](/manage-bloodhound/compliance-framework/nist-sp-800-171)** | **[NIST 800-53 rev 8](/manage-bloodhound/compliance-framework/nist-sp-800-53)** | | | **Control Category/Activity** | **How Does BloodHound Enterprise Satisfy This Control?** | **[NIST CSF v1.1](/manage-bloodhound/compliance-framework/nist-csf-v1-1)** | **[NIST CSF v2](/manage-bloodhound/compliance-framework/nist-csf-v2)** | **[NIST 800-171](/manage-bloodhound/compliance-framework/nist-sp-800-171)** | **[NIST 800-53 rev 8](/manage-bloodhound/compliance-framework/nist-sp-800-53)** | | | Detection The organization employs mechanisms within the environment that continuously monitor for anomalies and events. | Identity Attack Path vectors are assigned a severity rating in BloodHound Enterprise when detected during routine and on-demand scans | [DE.AE-2](/manage-bloodhound/compliance-framework/nist-csf-v1-1#DE.AE-2) [DE.AE-4](/manage-bloodhound/compliance-framework/nist-csf-v1-1#DE.AE-4) [DE.AE-5](/manage-bloodhound/compliance-framework/nist-csf-v1-1#DE.AE-5) [DE.CM-1](/manage-bloodhound/compliance-framework/nist-csf-v1-1#DE.CM-1) [DE.CM-8](/manage-bloodhound/compliance-framework/nist-csf-v1-1#DE.CM-8) | [DE.AE-02](/manage-bloodhound/compliance-framework/nist-csf-v2#DE.AE-02) [DE.AE-04](/manage-bloodhound/compliance-framework/nist-csf-v2#DE.AE-04) [DE.AE-08](/manage-bloodhound/compliance-framework/nist-csf-v2#DE.AE-08) | [3.3.1](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.4.6) [3.3.2](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.4.6) [3.3.5](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.3.5) | [CA-3](/manage-bloodhound/compliance-framework/nist-sp-800-53#IA-8-Identification-and-Authentication) [CM-2](/manage-bloodhound/compliance-framework/nist-sp-800-53#IA-8-Identification-and-Authentication) | | ## Respond | | | | | | | | | - | - | - | - | - | - | - | | **Control Category/Activity** | **How Does BloodHound Enterprise Satisfy This Control?** | **[NIST CSF v1.1](/manage-bloodhound/compliance-framework/nist-csf-v1-1)** | **[NIST CSF v2](/manage-bloodhound/compliance-framework/nist-csf-v2)** | **[NIST 800-171](/manage-bloodhound/compliance-framework/nist-sp-800-171)** | **[NIST 800-53 rev 8](/manage-bloodhound/compliance-framework/nist-sp-800-53)** | | | Respond Activities are performed to ensure effective response, support recovery activities, and mitigating steps are taken to prevent the expansion of an incident. | BloodHound Enterprise detects and reports identified attack paths with a quantifiable risk metric and inventory of all impacted systems. Relevant remediation and mitigation documentation provided during analysis may help to satisfy this control. | [RS.AN-1](/manage-bloodhound/compliance-framework/nist-csf-v1-1#RS.AN-1) [RS.AN-2](/manage-bloodhound/compliance-framework/nist-csf-v1-1#RS.AN-2) [RS.MI-2](/manage-bloodhound/compliance-framework/nist-csf-v1-1#RS.MI-2) | [RS.MI-02](/manage-bloodhound/compliance-framework/nist-csf-v2#RS.AN-03) | [3.3.1](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.3.1) [3.3.2](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.3.1) [3.3.5](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.3.5) [3.6.1](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.3.5) [3.6.2](/manage-bloodhound/compliance-framework/nist-sp-800-171#3.3.5) | [CA-7](/manage-bloodhound/compliance-framework/nist-sp-800-53#CA-7---Continuous-Monitoring) [IR-5](/manage-bloodhound/compliance-framework/nist-sp-800-53#IR-5-Incident-Monitoring) | | # Administration Source: https://bloodhound.specterops.io/manage-bloodhound/overview Configure, secure, and administer your BloodHound environment. Use these resources to configure BloodHound, manage access, monitor collector availability, and secure your collection infrastructure. ## Authentication and authorization Configure authentication and authorization settings for your BloodHound environment. > [card] [Administer users and roles](/manage-bloodhound/auth/users-and-roles) > > Create users, assign roles, and manage access to BloodHound features. > [card] [Enable or disable MFA](/manage-bloodhound/auth/mfa) > > Require multi-factor authentication for local BloodHound accounts. > [card] [Configure OpenID Connect](/manage-bloodhound/auth/oidc) > > Integrate BloodHound with an OpenID Connect identity provider. > [card] [Configure SAML](/manage-bloodhound/auth/saml) > > Integrate BloodHound with a SAML identity provider. > [card] [Configure SAML with AD FS](/manage-bloodhound/auth/saml-adfs) > > Set up SAML single sign-on through Active Directory Federation Services. > [card] [Configure SAML with Auth0](/manage-bloodhound/auth/saml-auth0) > > Set up SAML single sign-on through Auth0. ## BloodHound Enterprise Compliance Framework Review how BloodHound Enterprise supports various compliance frameworks and standards. > [card] [Compliance framework overview](/manage-bloodhound/compliance-framework/overview) > > Understand how BloodHound Enterprise supports identity security compliance programs. > [card] [NIST SP 800-171](/manage-bloodhound/compliance-framework/nist-sp-800-171) > > Review how BloodHound Enterprise maps to NIST SP 800-171 controls. > [card] [NIST SP 800-53 Rev. 8](/manage-bloodhound/compliance-framework/nist-sp-800-53) > > Review how BloodHound Enterprise maps to NIST SP 800-53 Rev. 8 controls. > [card] [NIST CSF v2](/manage-bloodhound/compliance-framework/nist-csf-v2) > > Review how BloodHound Enterprise maps to NIST Cybersecurity Framework 2.0 functions. > [card] [NIST CSF v1.1](/manage-bloodhound/compliance-framework/nist-csf-v1-1) > > Review how BloodHound Enterprise maps to NIST Cybersecurity Framework 1.1 categories. ## BloodHound configuration Review the configuration settings for the BloodHound application and its services. > [card] [Configure BloodHound](/manage-bloodhound/bh-config) > > Learn about the BloodHound configuration file, its settings, and how to apply changes. ## Secure BloodHound and collectors Learn how to harden BloodHound and collectors to protect against unauthorized access and ensure secure operations. > [card] [Harden SharpHound Enterprise](/manage-bloodhound/securing-bloodhound-and-collectors/sharphound-hardening) > > Protect the SharpHound Enterprise service account and collection infrastructure. # SharpHound Enterprise Service Hardening Source: https://bloodhound.specterops.io/manage-bloodhound/securing-bloodhound-and-collectors/sharphound-hardening The BloodHound team recommends the hardening actions described on this page to protect the SharpHound service account. The hardening recommendations are focused on the remediation of the attack techniques targeting service accounts. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) Many of the attacks involve privileged collection, in which the SharpHound service account gathers data from domain-joined Windows computers. During privileged collection, an attacker with administrative access to a computer in the domain could attempt to compromise the SharpHound service account, as the account will log in on the computer during the collection. This page will describe the attacks we want to prevent and the remediations that can be applied. All attacks can be remediated in more than one method. The first section will highlight the remediations that we recommend without going into detail about the different attack techniques and alternative remediations. ## Recommended hardening ### gMSA We recommend using a [Group Managed Service Account](https://learn.microsoft.com/en-us/windows-server/security/group-managed-service-accounts/group-managed-service-accounts-overview) (gMSA) for the SharpHound service account rather than a regular AD user. Follow the article: [Create a gMSA for SharpHound](/install-data-collector/install-sharphound/create-gmsa). A gMSA is a type of service account where the password is managed by Active Directory, eliminating the need for manual password management. This will ensure the service account password is: * A 240-byte randomly generated complex password * Not known to any individuals nor stored in any notes, password vault, etc. * Rotated regularly Using a gMSA will reduce the risk of having the SharpHound service account compromised by password spray (guessing) and password hash cracking and prevent the attacker from obtaining the password from elsewhere. Furthermore, using a gMSA makes it possible to have the SharpHound service account in the Protected Users group, which is covered in the following recommendation. ### Protected Users group We recommend adding the SharpHound service account as a member of the [Protected Users](https://learn.microsoft.com/en-us/windows-server/security/credentials-protection-and-management/protected-users-security-group) group. Protected Users is an AD security group designed to reduce credential exposure. Members of this group automatically have non-configurable protections applied to their accounts. Protected Users members cannot be delegated with Kerberos and cannot authenticate using NTLM, effectively remediating Kerberos delegation attacks, NTLM relay attacks, and NTLM cracking. However, Microsoft advises against adding service accounts to the group as authentication for the service account may fail. Our testing has shown that adding the SharpHound service account to Protected Users works if the SharpHound service account is a gMSA, but the SharpHound service crashes after four hours if it is a regular AD user. > [!WARNING] > > Adding the SharpHound service account to Protected Users also prevents SharpHound from authenticating with NTLM during collection. > > This means SharpHound cannot collect the NTLM data from domain controllers and ADCS servers that BloodHound uses to create the following edges: > > * [CoerceAndRelayNTLMToLDAP](/resources/edges/coerce-and-relay-ntlm-to-ldap) > * [CoerceAndRelayNTLMToLDAPS](/resources/edges/coerce-and-relay-ntlm-to-ldaps) > * [CoerceAndRelayNTLMToADCS](/resources/edges/coerce-and-relay-ntlm-to-adcs) ### Tiering SharpHound We recommend tiering the SharpHound service account to follow the principle of "[elevated user accounts should not be used to log on to lower Tier assets](https://techcommunity.microsoft.com/t5/core-infrastructure-and-security/protecting-domain-administrative-credentials/ba-p/259210)". Follow the article: [Tiered SharpHound Strategy](/install-data-collector/install-sharphound/tiered-collector-strategy). This recommendation is especially for organizations seeking to implement the [Active Directory Tier Model](https://learn.microsoft.com/en-us/microsoft-identity-manager/pam/tier-model-for-partitioning-administrative-privileges) or [Enterprise Access Model](https://learn.microsoft.com/en-us/security/privileged-access-workstations/privileged-access-access-model) ## Attacks and remediations This section explores the types of attacks that SharpHound Enterprise may be at risk of, all of which are mitigated with the recommended hardening. ### Attack 1: Finding/guessing service account password When a service account is created as a regular AD user, the person creating the account must set a password for the service account and must store this password somewhere. Attackers will attempt to obtain the password by guessing/spraying with common passwords and passwords of other accounts in the environment. They will also look for service account passwords in file shares, key vaults, etc. #### Preferred remediation: gMSA When the service account is created as a gMSA, the password will be managed completely by AD. That means the password of the account cannot be a weak/guessable password, and it will not be stored anywhere the attacker can gain read access. #### Alternative remediation: Strong password stored securely When the password is strong, it decreases the risk of an attacker guessing the password. The SharpHound service account password can be copy-pasted when installing SharpHound Enterprise. Setting the password to a random string of 100 characters will therefore not cause inconvenience. The password should be stored securely in a password vault where only the right personnel have access. ### Attack 2: Kerberos delegation attacks When collecting data, the SharpHound service account will only perform a network logon (type 3) on remote computers. This logon type will not save the service account credentials in the remote computer's memory. However, Kerberos delegation breaks this rule if the remote computer is configured with Kerberos unconstrained delegation. In that case, the remote computer will receive a copy of the service account's Kerberos session ticket (TGT), which an attacker can extract from memory and utilize to authenticate as the service account. If the computer is configured with unconstrained delegation, the service account does not need to log on to the computer – the attacker can obtain service tickets as any user for services it is allowed to delegate to. #### Preferred remediation: Protected Users group (gMSA only) Members of the Protected Users group cannot be delegated, as described by Microsoft [here](https://learn.microsoft.com/en-us/windows-server/security/credentials-protection-and-management/protected-users-security-group#domain-controller-protections-for-protected-users). This means the SharpHound service account will not be vulnerable to the Kerberos delegation attacks. This remediation will break the SharpHound service if a regular AD user is used instead of a gMSA. #### Alternative remediation: Mark the account as sensitive It is possible to prevent an AD principal from using Kerberos delegation services by enabling the account option "Account is sensitive and cannot be delegated": ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-69.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=d57f895a9f0e3e8d20d62a5d6087876d) On a Group Manages Service Account (gMSA), this account option is not visible in the GUI, but you can set the account option through PowerShell: ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-70.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=5fd081050acc331398bfd856338c90b3) The value should be *True* for the account to be protected. ### Attack 3: Authentication relaying The data collection performed by the SharpHound service account happens over the SMB protocol and is authenticated on the remote computer using Kerberos by default. However, an attacker with administrative rights on the remote computer can downgrade the authentication to NTLM. This allows the attacker to perform an NTLM relay attack, where the ongoing NTLM authentication is relayed to a target computer, giving the attacker a session on the target as the SharpHound service account. It is possible to relay Kerberos authentication under specific circumstances, but we have not found it to be possible with the SharpHound service account. #### Preferred remediation: Protected Users group (gMSA only) Members of the Protected Users group cannot authenticate with NTLM, as described by Microsoft [here](https://learn.microsoft.com/en-us/windows-server/security/credentials-protection-and-management/protected-users-security-group#domain-controller-protections-for-protected-users). This means the SharpHound service account will not be vulnerable to NTLM attacks. This remediation will break the SharpHound service if a regular AD is used instead of a gMSA. #### Alternative remediation: Block outgoing NTLM Outgoing NTLM can be denied entirely from the SharpHound server by configuring the security option [Network security: Restrict NTLM: Outgoing NTLM traffic to remote servers](https://learn.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/network-security-restrict-ntlm-outgoing-ntlm-traffic-to-remote-servers) to *Deny All:* ![](https://mintcdn.com/specterops/TwsBcJyEWw_Zwex2/assets/image-2-71.png?fit=max\&auto=format\&n=TwsBcJyEWw_Zwex2\&q=85\&s=0008da6bd84a67336b7cd9d3d7b6afbe) This prevents the attacker from downgrading the Kerberos authentication to NTLM and remediates NTLM attacks. ### Attack 4: NTLM cracking As mentioned in the previous attack (Authentication relaying), an attacker with administrative rights on the remote computer can downgrade the Kerberos authentication of the SharpHound service account to NTLM. If NTLMv2 is not enforced, the attacker can even downgrade to NTLMv1. When the attacker has downgraded the authentication to NTLM, it becomes possible for the attacker to capture the Net-NTLMv1/v2 hash in the authentication. This hash can then be cracked offline to obtain the password of the SharpHound service account. While NTLMv1 is significantly faster to crack as it is based on DES encryption, both NTLMv1 and NTLMv2 can be cracked. #### Remediation *See the remediation of the previous attack (Authentication relaying).* ### Attack 5: Reusable credentials in LSASS When an account logs in on a Windows computer, the account's credentials will be cached in LSASS memory in a reusable format, such that Windows can reauthenticate the user without the user having to type in their password again and again. This is known as Single Sign-On (SSO). An attacker with administrative access to the computer can read the cached credentials out of LSASS and thereby compromise the account. #### Remediation - No remediation is required The SharpHound service account performs only a network logon (type 3) when it collects data, and this logon type does not leave credentials in LSASS memory, as explained by Microsoft [here](https://learn.microsoft.com/en-us/windows-server/identity/securing-privileged-access/reference-tools-logon-types) (unless Kerberos delegation is enabled, which we have covered separately). ### Attack 6: Cached Domain Credentials Cracking Normally, when a domain user logs in on a domain-joined Windows computer, the authentication will involve a Domain Controller telling the computer if the account's credentials are valid. But if the computer cannot reach a Domain Controller (due to network issues etc.), this authentication process does not work. Windows will, by default, cache the account's credentials in the security registry hive in a non-reusable format (MS-Cache v2 hash), such that the computer can verify the credential even if it cannot reach any Domain Controller. An attacker with administrative access to the computer can read the cached credentials out of the registry hive, crack the password hash, and thereby compromise the account. #### Remediation - No remediation is required The SharpHound service account performs only a Network logon (type 3) when it collects data. This logon type will not generate the cached domain credentials. ### Attack 7: Kerberoasting Any AD user can request and receive a Kerberos service ticket of any user (service account) with a Service Principal Name (SPN) attribute set. This service ticket is encrypted with a Kerberos key derived from the service account's password. An attacker can obtain the password of the service account by cracking the service ticket (guessing the password that decrypts the ticket). This attack is known as Kerberoasting. #### Remediation - No remediation required The SharpHound service account will not have an SPN set. # Architecture Source: https://bloodhound.specterops.io/on-premises/architecture Understand the architecture, components, and data flow of on-premises deployments of BloodHound Enterprise. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) On-premises deployments of BloodHound Enterprise give you full control over your deployment infrastructure while maintaining the same powerful identity security capabilities as the SaaS version. ## Deployment architecture On-premises deployments of BloodHound Enterprise consist of two primary parts: * **BloodHound Enterprise host** - Runs the BloodHound application, database, and supporting infrastructure * **Collector hosts** - Run lightweight collector services (SharpHound, AzureHound, or OpenHound) to gather data from your identity infrastructure ### Core components All on-premises deployments include the following core application components: | Component | Purpose | | - | - | | **BloodHound Enterprise API** | Application server, UI, graph analysis, and collector ingestion | | **PostgreSQL 18.x** | Database server for application data and graph storage | ### Deployment-specific components Embedded cluster deployments include the following infrastructure and management components: | Component | Purpose | | - | - | | **k0s Kubernetes distribution** | Bundled Kubernetes distribution that runs BloodHound Enterprise on your Linux host | | **Embedded ingress controller** | Exposes the BloodHound Enterprise application endpoint and terminates HTTPS for the configured FQDN by default | | **Installation Wizard** | Host-local web UI that completes configuration and runs preflight checks (Automated checks that verify your Kubernetes cluster is ready for a BloodHound Enterprise installation or upgrade.) | | **SpecterOps - BloodHound Enterprise Portal** | Hosted portal that provides installer access, generates deployment-specific installation commands, and tracks online installations and updates | ### Data collectors Collectors run separately from the BloodHound Enterprise host and gather configuration data from your identity infrastructure: | Collector | Target Environment | Data Collected | | - | - | - | | **SharpHound Enterprise** | Active Directory | AD objects, relationships, ACLs, sessions | | **AzureHound Enterprise** | Azure / Entra ID | Azure AD objects, role assignments, resource relationships | | **OpenHound** | Other identity providers, platforms, and custom sources | Varies by source; data collected and converted into BloodHound Enterprise-compatible graphs | ## Data flow Data flows through the system in the following sequence: 1. **Collection** - Collectors gather configuration data from Active Directory, Entra ID, or other identity sources 2. **Transmission** - Data is transmitted over encrypted HTTPS/TLS to the BloodHound Enterprise API 3. **Processing** - The BloodHound Enterprise API processes and stores data in PostgreSQL 4. **Analysis** - Graph analysis identifies privilege relationships and Attack Paths 5. **Visualization** - Results are displayed in the BloodHound Enterprise UI > [!NOTE] > > Collectors have zero local storage of collected data. All data is transmitted directly to the BloodHound Enterprise host and stored in PostgreSQL. # Install and Configure Source: https://bloodhound.specterops.io/on-premises/install Use this guide to install and configure an on-premises instance of BloodHound Enterprise with the embedded cluster deployment option. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) This guide provides step-by-step instructions for installing and configuring a BloodHound Enterprise instance with the embedded cluster installer. The embedded cluster installer bundles a Kubernetes distribution (k0s) with the BloodHound Enterprise application, so you can deploy everything on a single Linux host without needing to set up Kubernetes separately. ## Pre-install checklist The following checklist summarizes the install-blocking gates and pre-deployment work that must be completed before running the installer. > [!NOTE] > > For detailed host sizing, collector specifications, supported filesystems, and kernel versions, see the full [system requirements](/on-premises/system-requirements). ## Web-based installer The web-based installer provides an interactive setup experience through a web interface. It guides you through configuration steps such as domain setup, certificate management, and database connectivity. ### Configure install options The web-based installer is available through the **SpecterOps - BloodHound Enterprise Portal**. You'll work with two interfaces during installation: * The **Installer** tab in the portal generates the download and install commands you run on your Linux host. The **Update** tab in the portal tracks active and inactive online installations. * The **Installation Wizard** is a companion UI served from your Linux host on port `30080`. After the initial install completes, you use the Installation Wizard to finish configuration (domain, certificates, database) and run preflight checks (Automated checks that verify your Kubernetes cluster is ready for a BloodHound Enterprise installation or upgrade.). **1. Navigate to the web-based installer** If you don't have access to the portal, contact your team administrator or your BloodHound Enterprise account team to request an invitation. 1. Log in to the [SpecterOps - BloodHound Enterprise Portal](https://enterprise.replicated.com/bloodhound-enterprise). 2. Click the **Install** tab at the top of the page to open the Installation Guide. > [!NOTE] > > The installation options displayed on this page depend on the licensing associated with your account. **2. Choose installation options** The first step prompts you to choose your installation options, such as network availability and whether to show instructions for relocating images to a private registry. 1. Enter a name for your BloodHound Enterprise instance. 2. Choose one of the following **Network Availability** options: | Option | Use this when | | - | - | | **Outbound requests allowed** | The Kubernetes cluster can make outbound internet requests. | | **Outbound requests require HTTPS Proxy** | Outbound traffic must go through a proxy server. | > [!NOTE] > > If you choose the proxy option, a **Configure proxy URL** field appears on the next page of the installer where you can enter your proxy URL. > > The installer also adds `--proxy $YOUR_PROXY_URL` to the download *and* install commands on the next page to ensure the installer can access the internet through your proxy. 3. Click the toggle for **Show instructions to relocate images to your private registry** if your environment requires the cluster to pull container images from a private registry you control. This is typically required for air-gapped or restricted networks, or to meet internal supply-chain and compliance requirements. > [!NOTE] > > If you choose this option, the next page provides a field for entering your private registry URL and instructions for running the necessary commands on your Linux host to: > > * Pull the necessary container images > * Tag them with your private registry URL > * Push them to your registry > > The installer also adds `--registry $YOUR_REGISTRY_URL` to the install command on the next page to ensure the cluster pulls images from your registry during installation. ![A screenshot showing the initial installation options in the BloodHound Enterprise web-based installer](https://mintcdn.com/specterops/eNKvEOCqwUIK6kpT/images/on-premises/install-options.png?fit=max\&auto=format\&n=eNKvEOCqwUIK6kpT\&q=85\&s=163f3aae9d5b6ae00cec935f05751447) 4. Click **Continue**. ### Install on the Linux host The installation instructions page generates the exact download and install commands for your release, including a signed URL, a short-lived bearer token, and your specific version. The following screenshot shows an example of the install instructions page in the portal, which provides the commands you run on your Linux host to download and install BloodHound Enterprise. ![A screenshot showing an example of the installation instructions in the BloodHound Enterprise web-based installer](https://mintcdn.com/specterops/eNKvEOCqwUIK6kpT/images/on-premises/install-instructions.png?fit=max\&auto=format\&n=eNKvEOCqwUIK6kpT\&q=85\&s=28d1fc76421a37fb7670d67edb6a7f1c) **1. Configure the install command in the portal** On the installation instructions page, complete the following fields before copying the commands: 1. In the **Select Version** field, choose the version of BloodHound Enterprise you want to install. 2. If you selected the proxy option in the previous installation options, enter your proxy URL in the **Configure proxy URL** field. > [!NOTE] > > The installer uses this URL to access the internet for downloading container images and other dependencies. The URL must be accessible from the Linux host where you run the installer. 3. If you selected the private registry option in the previous installation options, enter your registry URL in the provided field. > [!NOTE] > > The installer uses this URL to pull container images during installation. The URL must be accessible from the Linux host where you run the installer and from the Kubernetes cluster. **2. SSH into the Linux host** SSH into the Linux host where you want to install BloodHound Enterprise. **3. Download the installer archive** From the installation instructions page, copy and run the command to download the archive of installation assets on your Linux host. **4. Extract the installer archive** From the installation instructions page, copy and run the command to extract the archive of installation assets on your Linux host. **Example:** ```bash theme={null} tar -xvzf bloodhound-enterprise.tar.gz ``` > [!NOTE] > > The installer archive contains the embedded cluster application and all necessary dependencies, including the k0s Kubernetes distribution and your license file. The installer will set up everything for you on a single Linux host. **5. Copy installation assets to your home directory** Copy all files from the `assets/` directory to the home directory on your Linux host. **Example:** ```bash theme={null} cp assets/* ~/ ``` **6. Run the install command** From the installation instructions page, copy and run the install command on your Linux host, providing the path to your license file. > [!NOTE] > > After extraction, your `license.yaml` file is present alongside all installation assets. **Example:** ```bash theme={null} sudo ./bloodhound-enterprise install --license license.yaml ``` **7. Set the Installation Wizard password** When prompted on the Linux host, enter an admin password. > [!NOTE] > > This is the **Installation Wizard password**. You use it to log in to the Installation Wizard later. **8. Generate the Installation Wizard certificate** When the installer prompts you to generate a self-signed certificate for the Installation Wizard, accept the prompt. The installer uses this certificate to serve the Installation Wizard over HTTPS on port `30080`. The install fails if you decline. > [!NOTE] > > The install command doesn't accept a flag for providing your own certificate at this stage. You'll be able to upload a certificate for your BloodHound Enterprise instance later in the Installation Wizard's **Certificates** step. **9. Note the Installation Wizard URL** After the installation completes, the installer prints the Installation Wizard URL: ```http theme={null} https://:30080 ``` As mentioned in the pre-installation checklist, the Installation Wizard listens on port `30080`. If you haven't already done so, expose this port on the Linux host. > [!NOTE] > > Don't click **Finish** on the installation instructions page yet; you'll do that after completing the Installation Wizard in the next section. ### Configure the environment The Installation Wizard guides you through the final configuration steps to complete the installation. Follow the prompts to enter the necessary information and complete each step. **1. Log in to the Installation Wizard** The wizard guides you through the final configuration steps and preflight checks (Automated checks that verify your Kubernetes cluster is ready for a BloodHound Enterprise installation or upgrade.). Open the Installation Wizard URL in a browser and enter the admin password that you set when you ran the install command on your Linux host. > [!NOTE] > > Browsers display a certificate warning at `https://:30080` because the Installation Wizard uses the self-signed certificate generated during install; this is expected. > > If your browser blocks the self-signed certificate, export the certificate presented on port `30080`, add it to the trusted root/intermediate certificate store as appropriate, then reload the page. **2. Domain Configuration** Use a lowercase hostname with no underscores. Kubernetes ingress rules require lowercase hostnames. * For **production** deployments, this should match the [DNS A record](/on-premises/system-requirements#dns) you created for the BloodHound Enterprise FQDN in the pre-install checklist. * For **testing** purposes, this can be a hostname that resolves to the Linux host's IP address in your local `/etc/hosts` file. For example: ```txt theme={null} 192.168.1.50 bloodhound-enterprise.test ``` ![A screenshot showing the domain configuration step of the BloodHound Enterprise web-based installer](https://mintcdn.com/specterops/eNKvEOCqwUIK6kpT/images/on-premises/installer-domain-config.png?fit=max\&auto=format\&n=eNKvEOCqwUIK6kpT\&q=85\&s=ee48eedc059b850434bafb9ae60a2f76) > [!NOTE] > > Port `443` must be open on the Linux host and reachable from the browser you use to access the BloodHound Enterprise application. **3. Application Access** Configure how users reach the BloodHound Enterprise application. > [!NOTE] > > **Recommended default:** Select **Ingress** for most deployments. > > **Why:** The embedded cluster includes its own ingress controller for the BloodHound Enterprise FQDN. **Ingress** uses that built-in path and lets the installer handle HTTPS termination on port `443` with the certificate you configure in the next step. > > Choose **ClusterIP**, **NodePort**, or **LoadBalancer** only if your environment already requires one of those Kubernetes service exposure patterns or you are integrating with your own frontend networking layer. ![A screenshot showing the application access configuration step of the BloodHound Enterprise web-based installer](https://mintcdn.com/specterops/eNKvEOCqwUIK6kpT/images/on-premises/installer-app-access.png?fit=max\&auto=format\&n=eNKvEOCqwUIK6kpT\&q=85\&s=96d7242d8c91e8f760db98d23ef8b3c8) **4. Certificates** Choose whether to have the installer generate a TLS certificate for HTTPS access to your BloodHound Enterprise instance or upload your own. > [!NOTE] > > This certificate is used by the embedded cluster ingress that serves the BloodHound Enterprise application on port `443`. > > Upload your own certificate if your organization requires a certificate issued by your internal or public certificate authority. ![A screenshot showing the certificate configuration step of the BloodHound Enterprise web-based installer](https://mintcdn.com/specterops/eNKvEOCqwUIK6kpT/images/on-premises/installer-certificates.png?fit=max\&auto=format\&n=eNKvEOCqwUIK6kpT\&q=85\&s=79a68428f688abf328646bea27524640) **5. Database Configuration** Choose between the embedded PostgreSQL database or provide connection details for an external PostgreSQL database. > [!NOTE] > > If you choose to use an external PostgreSQL database, ensure that the database is running PostgreSQL 18 and is reachable on port `5432` from the Linux host where BloodHound Enterprise is installed. ![A screenshot showing the database configuration step of the BloodHound Enterprise web-based installer](https://mintcdn.com/specterops/eNKvEOCqwUIK6kpT/images/on-premises/installer-database-config.png?fit=max\&auto=format\&n=eNKvEOCqwUIK6kpT\&q=85\&s=e8e7f887c3e2dc0c29a4ed3e06690aff) **6. Set Up** Configure the network settings the embedded cluster uses to communicate internally and reach external services. Accept the defaults unless your environment requires specific overrides. ![A screenshot showing the setup step of the BloodHound Enterprise web-based installer](https://mintcdn.com/specterops/eNKvEOCqwUIK6kpT/images/on-premises/installer-setup.png?fit=max\&auto=format\&n=eNKvEOCqwUIK6kpT\&q=85\&s=ab41e9ca9ea872aec846028c9d11b432) **7. Run Preflight Checks** Review and resolve any blocking preflight checks before continuing the installation. Preflight checks verify that your cluster meets the requirements for a BloodHound Enterprise installation or upgrade before deployment begins. ![A screenshot showing the preflight checks step of the BloodHound Enterprise web-based installer](https://mintcdn.com/specterops/eNKvEOCqwUIK6kpT/images/on-premises/installer-preflight-checks.png?fit=max\&auto=format\&n=eNKvEOCqwUIK6kpT\&q=85\&s=d26be0e52d923b9d2a9cd59d8a89350f) When you see the Installation Complete message, click **Finish** to exit the Installation Wizard. ![A screenshot showing the installation success step of the BloodHound Enterprise web-based installer](https://mintcdn.com/specterops/eNKvEOCqwUIK6kpT/images/on-premises/installer-success.png?fit=max\&auto=format\&n=eNKvEOCqwUIK6kpT\&q=85\&s=3ddb18b8dcbd697816a426b822bab984) **8. Finish** After exiting the Installation Wizard, return to the **Install** tab in the portal (installation instructions) and click **Finish**. You'll be redirected to the **Update** tab, where you can view your active installation. ![A screenshot showing the Update tab with active installations in the BloodHound Enterprise Portal](https://mintcdn.com/specterops/eNKvEOCqwUIK6kpT/images/on-premises/online-instances.png?fit=max\&auto=format\&n=eNKvEOCqwUIK6kpT\&q=85\&s=da3727afd17799ed01cc7d61cd51ab40) Back on your Linux host, press `Ctrl+C` to exit the installation process and stop the web interface for the wizard. BloodHound Enterprise continues running and is accessible at the FQDN you configured in the **Domain Configuration** step. ### Access BloodHound Enterprise The last step of the installation process is to access the BloodHound Enterprise application in a browser and log in with the default admin credentials. **1. Access BloodHound Enterprise** In a browser, navigate to the BloodHound Enterprise FQDN you configured in the Installation Wizard. * The default username is `admin`. Enter the username in the **Email Address** field. * The default password is written to the BloodHound application logs on the Linux host. To retrieve the initial password, load the `kubectl` shell environment and inspect the deployment logs: 1. Load the `kubectl` shell environment: ```bash theme={null} sudo ./bloodhound-enterprise shell ``` 2. Print the initial admin password from the `bloodhound` deployment's logs: ```bash theme={null} kubectl logs -n bloodhound-enterprise deployment/bloodhound | grep "Initial Password Set To:" ``` > [!NOTE] > > Targeting the deployment avoids needing to look up the current pod name, which changes between installations and restarts. **2. Next steps** With BloodHound Enterprise installed and accessible, complete the following next steps in the application: * Change the default admin password (**Administration** > **Manage Users**) * [Create users](/manage-bloodhound/auth/users-and-roles) * [Configure collectors](/install-data-collector/overview) ## Troubleshooting When troubleshooting, you can inspect cluster state and view logs using the `kubectl` command-line tool. **1. SSH into the Linux host** SSH into the Linux host where BloodHound Enterprise is installed. **2. Load the kubectl shell environment** Run the following command to load the `kubectl` shell environment: ```bash theme={null} sudo ./bloodhound-enterprise shell ``` > [!NOTE] > > The appropriate `kubeconfig` is exported, and the location of useful binaries like `kubectl` and Replicated's preflight and support-bundle plugins is added to `PATH`. **3. Run common troubleshooting commands** Use the available binaries as needed. See the following tabs for common cluster inspection commands: > [tab] Pods > > List all pods across every namespace: > > ```bash theme={null} > kubectl get pods -A > ``` > [tab] Services > > List all services across every namespace: > > ```bash theme={null} > kubectl get services -A > ``` > [tab] Logs > > View logs for a specific pod: > > ```bash theme={null} > kubectl logs -n [namespace] [pod-name] > ``` > > BloodHound application pods run in the `bloodhound-enterprise` namespace. **4. Exit the kubectl shell** When finished, type `exit` or press `Ctrl + D` to exit the shell. # On-premises BloodHound Enterprise Source: https://bloodhound.specterops.io/on-premises/overview Learn about self-hosted deployment for BloodHound Enterprise, giving you full control over your infrastructure and data. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) An on-premises deployment of BloodHound Enterprise is a self-hosted option that runs on infrastructure that you own. It gives you complete control over your deployment while delivering the same powerful capabilities as the SpecterOps-hosted version. You maintain full control over: * **Data residency** - All collected data stays within your environment * **Infrastructure** - Deploy on your own servers or virtual machines * **Updates** - Control when and how updates are applied * **Network isolation** - Run in air-gapped or restricted network environments ## SaaS vs on-premises On-premises deployments provide the same core BloodHound Enterprise functionality, but differ in infrastructure management and control. **Choose on-premises if you:** * Require data to remain within your infrastructure * Need full control over the deployment environment * Have existing infrastructure and operational expertise * Prefer to manage updates and maintenance on your own schedule **Choose SaaS if you:** * Want SpecterOps to manage infrastructure and updates * Don't have dedicated infrastructure or Kubernetes expertise * Want automatic updates and new features as they're released ## Deployment On-premises deployments of BloodHound Enterprise use an **embedded cluster** deployment option. An embedded cluster packages BloodHound Enterprise and a Kubernetes cluster together for deployment on a single Linux host. This option is based on the open-source Kubernetes distribution [k0s](https://docs.k0sproject.io/stable/), includes a built-in installation UI, exposes the application through a built-in ingress path, and runs preflight checks (Automated checks that verify your Kubernetes cluster is ready for a BloodHound Enterprise installation or upgrade.). It does not require existing Kubernetes infrastructure or operational expertise. An embedded cluster deployment has two primary parts: * **BloodHound Enterprise host** * Runs the BloodHound Enterprise application on Linux * Includes a bundled Kubernetes cluster (k0s) * Can use an external PostgreSQL database * **Collector hosts and services** * Run one or more collectors that upload configuration data to BloodHound Enterprise * SharpHound Enterprise runs as a Windows service for on-premises Active Directory and AD CS collection * AzureHound Enterprise runs as a containerized service for Entra ID, Azure Resource Manager, and Microsoft Graph collection * OpenHound for BloodHound Enterprise runs as a containerized service for supported platform collection, such as GitHub, Jamf, and Okta > [!NOTE] > > **Key data and security characteristics** > > * Collectors gather *configuration data* to map identity relationships > * Data is transmitted over HTTPS with TLS > * Collectors *do not* store collected data locally > * You control upload authorization with a [collection schedule](/collect-data/enterprise-collection/collection-schedule) in BloodHound Enterprise ## Installation The installation process involves the following steps: | Step | What happens | Typical time | | - | - | - | | 1. Confirm prerequisites | Validate Linux host, PostgreSQL 18 (if using an external database), ports, and access. | 0.5-2 hours | | 2. Install BloodHound Enterprise | Use the web-based installer for a guided setup. | 30-60 min | | 3. Configure connectivity | Configure hostname, ingress, SSL/TLS, and database connections. | 30-60 min | | 4. Install and deploy collectors | Prepare collector systems and deploy the collectors you need. | 5-15 min each | | 5. Run first collection | Start with the simplest collection level to minimize friction. | Varies | | 6. Review results | Validate identity Attack Paths and plan next actions. | Varies | ## Next steps * Review the [architecture](/on-premises/architecture) and [system requirements](/on-premises/system-requirements) with infrastructure and security owners in your organization. * Coordinate with your organizational stakeholders to schedule the installation window. * Proceed to the full [installation guide](/on-premises/install) for step-by-step commands and troubleshooting. # System Requirements Source: https://bloodhound.specterops.io/on-premises/system-requirements Review hardware, software, and network requirements for the embedded cluster deployment option of an on-premises instance of BloodHound Enterprise. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) This page defines the infrastructure, network, collector, and security prerequisites for an embedded cluster deployment of an on-premises instance of BloodHound Enterprise. ## BloodHound Enterprise host Provision one Linux VM to the required specification below. BloodHound Enterprise uses an all-in-one deployment model for embedded cluster installations. The application and Kubernetes run on the same host, along with the bundled PostgreSQL database if you choose that option during installation (see [Database](#database)). > [!NOTE] > > Undersized compute can still install successfully but will degrade graph analysis under load. The disk latency check is a hard gate, so spinning disk blocks the installer. | Requirement | Specification | Preflight | | - | - | - | | OS | Any systemd-based Linux distribution | Blocks install | | Architecture | x86-64 only (no ARM) | Blocks install | | Kernel | 4.3+ | Blocks install | | cgroups | v1 or v2 | Blocks install | | Filesystem | XFS with ftype=1; ext4 is fine | Blocks install | | SELinux | Supported (embedded cluster 2.8.0+) | - | | Access | Root or sudo | Blocks install | | CPU | 48 cores | No check, but required for performance | | RAM | 160 GB | No check, but required for performance | | Storage | 680 GB SSD (640 app/db + 40 cluster) | No check, but required for performance | | Disk latency | P99 write \<=10ms (use SSDs) | Blocks install | > [!WARNING] > > Not supported: STIG/CIS-hardened images, single-stack IPv6. ## Database BloodHound Enterprise requires PostgreSQL 18. During installation, you can either use the bundled PostgreSQL instance that runs on the BloodHound Enterprise host, or provide connection details for an external PostgreSQL database that you manage. | Requirement | Specification | | - | - | | PostgreSQL version | 18 | | Port | 5432 (TCP) | ## Reverse proxy Embedded cluster deployments include a built-in ingress controller that exposes BloodHound Enterprise over HTTPS on port `443` by default. In the Installation Wizard, you configure the application FQDN, select **Ingress**, and either generate a TLS certificate or upload your own certificate and key. An external reverse proxy or load balancer is optional. Use one only if your environment requires capabilities such as a corporate WAF, centralized certificate management, or hostname multiplexing. > [!WARNING] > > Do not expose BloodHound Enterprise over unencrypted HTTP. Users and collectors should connect to the application over HTTPS. | Requirement | Specification | | - | - | | Default access pattern | Embedded cluster ingress on port `443` | | TLS certificate | Generated in the Installation Wizard or customer-provided | | External reverse proxy | Optional for WAF, centralized certificate management, or hostname multiplexing | ## DNS Create one `A` record for the BloodHound Enterprise FQDN. By default, it should resolve to the Linux host that runs the embedded cluster. If you use an external reverse proxy or load balancer, it should resolve to that frontend instead. The record must be resolvable from both user workstations and collector hosts. If collectors operate in separate network segments or separate DNS zones, the same record must resolve there as well or uploads will fail. > [!WARNING] > > Without a DNS record, users must connect by IP address, and SSL certificates will not validate. ## Network/firewall BloodHound Enterprise requires two inbound ports and (for online installations) outbound HTTPS access to the packaging service. > [!NOTE] > > No inbound internet access is required and BloodHound Enterprise does not need to be reachable from the internet. Open the following ports. For air-gapped environments, skip the outbound rules entirely. ### Inbound The inbound ports to the BloodHound Enterprise server are: | Port | Protocol | Purpose | | - | - | - | | 443 | TCP | User and collector HTTPS access (via embedded cluster ingress or an optional external reverse proxy) | | 30080 | TCP | Installation Wizard access (restrict to admins) | ### Outbound The outbound destinations from the BloodHound Enterprise server (online install only) are: | Destination | Port | Purpose | | - | - | - | | `replicated.app` `proxy.replicated.com` `registry.replicated.com` | 443 | Installer, updates, image registry, license validation | > [!NOTE] > > **Recommendation** > > Use the online installation model whenever possible. If the BloodHound Enterprise server can reach the listed destinations on port 443, installation and future updates remain automated. > > In air-gapped environments, skip the outbound rules but expect every update to be a manual download, transfer, and apply cycle. ## Collectors Collectors run separately from the BloodHound Enterprise host and upload data to it over HTTPS. Provision collector hosts according to the requirements in the relevant collector documentation. | Collector | Use case | Requirements | | - | - | - | | SharpHound Enterprise | Active Directory data collection | [SharpHound Enterprise system requirements](/install-data-collector/install-sharphound/system-requirements) | | AzureHound Enterprise | Entra ID and Azure data collection | [AzureHound Enterprise system requirements](/install-data-collector/install-azurehound/system-requirements) | | OpenHound for BloodHound Enterprise | Platform data collection, such as GitHub, Jamf, and Okta | [OpenHound for BloodHound Enterprise system requirements](/openhound/enterprise) | # Upgrade an external PostgreSQL database Source: https://bloodhound.specterops.io/on-premises/upgrade-postgres Upgrade an external PostgreSQL database from version 16 to 18 for on-premises deployments of BloodHound Enterprise. ![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6) This guide applies to on-premises deployments of BloodHound Enterprise using an **external** PostgreSQL database instead of the PostgreSQL database bundled with the embedded cluster. PostgreSQL 18 enables new capabilities, delivers meaningful performance improvements, and is required for BloodHound Enterprise. If your external database is still running PostgreSQL 16, follow the steps on this page to upgrade and migrate your data. > [!WARNING] > > The PostgreSQL 18 Docker image uses a different volume mount path than version 16. If your external database runs in Docker, you cannot simply update the image tag — the volume mount point has changed. > > | PostgreSQL version | Volume mount path | > | - | - | > | 16 (and earlier) | `/var/lib/postgresql/data` | > | 18 (and later) | `/var/lib/postgresql` | > > Starting a PostgreSQL 18 container against an existing PostgreSQL 16 volume will fail. ## Before you begin > [!WARNING] > > Back up your database before starting the upgrade. Verify that your backup is complete and restorable before proceeding. Confirm the following before you begin: * You have access to a PostgreSQL 18 instance (or can upgrade your existing host to PostgreSQL 18) * You have sufficient disk space for a full database dump * Your database administrator is available to adapt commands to your specific environment * You know your PostgreSQL connection details (host, port, username, database name) > [!NOTE] > > The exact commands in this guide vary depending on how your external database is deployed (Docker, bare-metal, VM, or managed service). Work with your database administrator to adapt the procedure to your environment. For a concrete Docker Compose reference, see the [Community Edition upgrade guide](/get-started/upgrade-postgres). ## Upgrade process **1. Stop BloodHound Enterprise** Stop the BloodHound Enterprise application to prevent new writes to the database during the upgrade. **2. Dump the PostgreSQL 16 database** Use `pg_dump` to export your existing database to a compressed dump file. Replace the placeholder values with your actual connection details: ```bash theme={null} pg_dump -h [host] -p 5432 -U [username] -d [database] -Fc -Z 9 -f pg16_backup.dump ``` Verify that the dump file was created and has a non-zero size before continuing. **3. Back up your data directory** If your PostgreSQL instance uses a data volume or directory, create a backup of it before making changes. The exact method depends on your deployment. **4. Upgrade PostgreSQL to version 18** Upgrade your PostgreSQL instance to version 18 using the method appropriate for your environment. > [!NOTE] > > PostgreSQL major version upgrades are not backward-compatible. After upgrading to PostgreSQL 18, you cannot start the service against a PostgreSQL 16 data directory without first restoring from your dump file. **5. Restore the database** After PostgreSQL 18 is running, restore the database from the dump file: ```bash theme={null} pg_restore -h [host] -p 5432 -U [username] -d [database] --clean --if-exists pg16_backup.dump ``` Wait for the restore to complete before proceeding. **6. Restart BloodHound Enterprise** Start the BloodHound Enterprise application and confirm it connects to the upgraded database successfully. ## Verify the upgrade After the application restarts, confirm that the database is healthy and your data is intact. **1. Confirm the PostgreSQL version** Connect to your PostgreSQL instance and run the following query to confirm PostgreSQL 18 is running: ```sql theme={null} SELECT version(); ``` The output should include `PostgreSQL 18`. **2. Log in to BloodHound Enterprise** Open your browser and navigate to your BloodHound Enterprise instance. Log in and verify that your data, collectors, and configuration are intact. **3. Monitor application logs** Review the BloodHound Enterprise application logs for any database connection errors or migration issues immediately after restart. ## Clean up After you have verified that the upgrade was successful and your data is intact, remove the temporary dump file and any volume backups you created during the migration. Remove any snapshot or volume backups using the tools appropriate for your environment. # OpenGraph API Source: https://bloodhound.specterops.io/opengraph/developer/api Information on how to use the OpenGraph API ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) Use these BloodHound API operations when developing OpenGraph extensions. The saved-query operations also support queries created outside extensions; their extension-specific behavior is described below. ## API endpoints | Method | Endpoint | Purpose | | - | - | - | | `POST` | [/api/v2/custom-nodes](/reference/custom-node-management/create-custom-nodes) | Create a new custom node type with configuration. | | `GET` | [/api/v2/custom-nodes](/reference/custom-node-management/get-custom-nodes) | Get all custom node types and their configurations. | | `GET` | [/api/v2/custom-nodes/\{kind_name}](/reference/custom-node-management/get-custom-node) | Get configuration for a specific node type. | | `PUT` | [/api/v2/custom-nodes/\{kind_name}](/reference/custom-node-management/update-custom-node) | Update the configuration of an existing node type. | | `DELETE` | [/api/v2/custom-nodes/\{kind_name}](/reference/custom-node-management/delete-custom-node) | Delete a custom node type. | | `POST` | [/api/v2/clear-database](/reference/database/delete-your-bloodhound-data) | Delete selected BloodHound data, including targeted graph data such as HasSession edges. | | `GET` | [/api/v2/extensions](/reference/opengraph-experimental/list-opengraph-extensions-information) | Get a list of all OpenGraph extensions. | | `PUT` | [/api/v2/extensions](/reference/opengraph-experimental/upserts-the-opengraph-extension) | Install or update an extension using a schema JSON payload or an [extension bundle](/opengraph/developer/extension-bundles) containing `schema.json` and optional `pz_rules.json` and `saved_queries.json` files. | | `DELETE` | [/api/v2/extensions/\{extension_id}](/reference/opengraph-experimental/delete-opengraph-extension) | Delete an OpenGraph extension. | | `GET` | [/api/v2/extensions-edges](/reference/opengraph-experimental/list-edge-kinds) | Get a list of all edge kinds across OpenGraph schemas. | | `GET` | [/api/v2/nodes/\{node_id}](/reference/opengraph-experimental/get-node-by-graph-node-id) | Get details of a specific node by its graph-assigned integer ID. | | `GET` | [/api/v2/relationships/\{relationship_id}](/reference/opengraph-experimental/get-relationship-by-graph-relationship-id) | Get details of a specific relationship by its graph-assigned integer ID. | ## Saved-query operations These general saved-query operations also apply to extension-managed queries. Extension-managed queries are read-only, including for administrators. Manage their contents through the [extension bundle](/opengraph/developer/extension-bundles#saved-queries). Deleting the extension also removes its queries. | Method | Endpoint | General purpose | Extension-managed query behavior | | - | - | - | - | | `GET` | [`/api/v2/saved-queries`](/reference/cypher/list-saved-queries) | List saved queries accessible to the current user. | Use `scope=all` or `scope=public` to include extension-managed queries, identified in the response by `scope: "extension"`. Filter by `extension_id` to find queries for a specific extension. | | `GET` | [`/api/v2/saved-queries/{saved_query_id}`](/reference/cypher/return-a-saved-query) | Retrieve a saved query by ID. | Returns the query, including the `extension_id` that identifies its managing extension. | | `PUT` | [`/api/v2/saved-queries/{saved_query_id}`](/reference/cypher/update-a-saved-query) | Update a saved query. | Rejects updates to extension-managed queries. Publish changes in an updated extension bundle. | | `DELETE` | [`/api/v2/saved-queries/{saved_query_id}`](/reference/cypher/delete-a-saved-query) | Delete a saved query. | Rejects deletion of extension-managed queries. Omit the query from an updated bundle or delete the extension to remove it. | # OpenGraph Best Practices Source: https://bloodhound.specterops.io/opengraph/developer/best-practices Dos and don'ts for OpenGraph ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) # Introduction This page collects best practices for creating [Graph Extensions](/opengraph/library) and tooling for OpenGraph. # Creating a new OpenGraph extension ## Elements of a Complete Submission This section lists the elements that are mandatory and nice-to-have in an OpenGraph extension submission. ### Mandatory 1. A Collector/Hound * A script that collects all information needed to populate the graph * The collector should create JSON that can be uploaded to BloodHound 2. Documentation on * Minimum system requirements to run the tool * OS * Software * Resources * How to install the collector * How to use the collector * Minimum permissions needed to collect the information * As a privileged user * As an unprivileged user * Command line options/switches * Examples of running the tool from the command line ### Nice to Have 1. Nodes and Edges Documentation (online) * Hosted wiki (e.g., GitHub) or * Markdown file in the repository * List of relevant information to document * General * Abuse Info * Remediation Info * OPSEC * References * Other fields as applicable 2. Optional API upload * Ability to upload the JSON output to a BloodHound instance via the [API](/integrations/bloodhound-api/working-with-api) without user interaction * Requires an [API key](/integrations/bloodhound-api/working-with-api#authentication) 3. Cypher Queries "Starter Pack" * Cypher Queries to help new users explore the new elements introduced to the Graph * Should be in the Custom Query JSON format for easy ingestion 4. Privilege Zone Rules * Queries for creating [Cypher-based](/analyze-data/privilege-zones/rules#cypher) Privilege Zone rules to help users classify high-value nodes in the graph 5. Icon Definition Pack * Including a script to upload them. See [example](/opengraph/custom-icons#example-with-python) * You can use a [Bearer Token](/integrations/bloodhound-api/working-with-api#use-a-jwt-bearer-token) instead of an API key as this script will typically run only once. * Do not hardcode credentials; use place holder for users to modify. > [!NOTE] > > Only necessary for generic graph data. Structured graphs include icon definitions in the [extension definition schema](/opengraph/developer/graph-definition). 6. [Arrows.app](https://arrows.app) diagram illustrating nodes and attack paths between them # Custom Icons Source: https://bloodhound.specterops.io/opengraph/developer/custom-icons Define custom icons and colors for OpenGraph node kinds. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) To help visually differentiate your OpenGraph nodes in BloodHound, you can define custom icons and colors. The method for doing so depends on whether your extension produces a generic graph (A graph that uses only the data payload without structured analysis or pathfinding capabilities.) or a structured graph (A graph that includes structured analysis, pathfinding, and findings based on an installed extension definition schema.): * **Generic graphs**: Use the [`POST /api/v2/custom-nodes`](/reference/custom-node-management/create-custom-nodes) API endpoint to define custom icons and colors. * **Structured graphs**: Define icons and colors directly in the [`node_kinds`](/opengraph/developer/graph-definition#node_kinds) array of your extension definition schema (A file that defines graph structure, including node types, edge types, traversability behavior, and visual configurations). ## Icon options BloodHound supports the full free, solid icon set from Font Awesome. View available icons on the [official Font Awesome docs](https://fontawesome.com/search?o=r\&ic=free\&s=solid). When specifying an icon: * Use the Font Awesome icon name without any prefix, for example `house` or `smile` (not `fa-house` or `fas-house`). * Optionally specify a color per node kind. Acceptable values are `#RGB` or `#RRGGBB`. * If an icon name cannot be resolved, BloodHound renders a `(?)` icon. Use the `PUT /api/v2/custom-nodes` endpoint to correct invalid mappings. ## Examples The following examples show how to define custom icons for OpenGraph node kinds using an extension definition schema, the API Explorer, and a Python script. ### Extension definition schema For structured graphs, define icons and colors directly in the [`node_kinds`](/opengraph/developer/graph-definition#node_kinds) array of your extension definition schema. ```json theme={null} { "node_kinds": [ { "name": "example_Person", "display_name": "Person", "description": "A person in the graph", "icon": "user", "color": "#2299FF" }, { "name": "example_Device", "display_name": "Device", "description": "A device in the graph", "icon": "desktop", "color": "#00AA55" } ] } ``` ### Direct API call The following example request payload defines custom icons for three node kinds (`person`, `device`, and `alert`). Use this payload with the [`POST /api/v2/custom-nodes`](/reference/custom-node-management/create-custom-nodes) endpoint to create custom node icon mappings. ```json POST /api/v2/custom-nodes theme={null} { "custom_types": { "person": { "icon": { "type": "font-awesome", "name": "user", "color": "#2299FF" } }, "device": { "icon": { "type": "font-awesome", "name": "desktop" } }, "alert": { "icon": { "type": "font-awesome", "name": "house" } } } } ``` ### BloodHound API Explorer You can set custom icons directly from the BloodHound **API Explorer** without writing any code. **1. Open the API Explorer** Navigate to the API Explorer from the BloodHound menu. ![BloodHound menu showing the API Explorer option](https://mintcdn.com/specterops/FqFBuWU7NMJY7iGF/images/extensions/custom-icons/custom-icons-01.png?fit=max\&auto=format\&n=FqFBuWU7NMJY7iGF\&q=85\&s=d3d4072bc3ffa5c0364fbf511b56e821) **2. Select the POST endpoint** Under **Custom Node Management**, expand the `POST /api/v2/custom-nodes` endpoint and click **Try it out**. ![API Explorer showing the POST custom-nodes endpoint](https://mintcdn.com/specterops/FqFBuWU7NMJY7iGF/images/extensions/custom-icons/custom-icons-02.png?fit=max\&auto=format\&n=FqFBuWU7NMJY7iGF\&q=85\&s=86d1ca79b89b014a48e752e79f0a87fd) **3. Enter your payload and execute** Enter your custom icon configuration in the **Request body** field and click **Execute**. ![API Explorer with a custom icon payload ready to execute](https://mintcdn.com/specterops/FqFBuWU7NMJY7iGF/images/extensions/custom-icons/custom-icons-03.png?fit=max\&auto=format\&n=FqFBuWU7NMJY7iGF\&q=85\&s=e6415b459a01c48d7f17cecd977718dc) **4. Verify the response** A `201` response confirms your custom icons were created successfully. ![API Explorer showing a successful 201 response with the custom icon configuration](https://mintcdn.com/specterops/FqFBuWU7NMJY7iGF/images/extensions/custom-icons/custom-icons-04.png?fit=max\&auto=format\&n=FqFBuWU7NMJY7iGF\&q=85\&s=df7df67d1ec800360394378b6f30da2d) ### Python script Use the following Python script to define custom icons via the API. You will need to generate a [Bearer Token](/reference/overview#jwt-bearer-token). > [!WARNING] > > Update the `url` variable and replace the placeholder token before running the script. ```python theme={null} import requests import json import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) url = "http://127.0.0.1:8080/api/v2/custom-nodes" headers = { "Authorization": "Bearer eyscduDoG7TmxU", "Content-Type": "application/json" } def define_icon(icon_type, icon_name, icon_color): payload = { "custom_types": { icon_type: { "icon": { "type": "font-awesome", "name": icon_name, "color": icon_color } } } } response = requests.post( url, headers=headers, json=payload, verify=False # Disables SSL verification ) print(f"Sent icon for: {icon_type}") print("Status Code:", response.status_code) print("Response Body:", response.text) print("---") # Call function for each icon type you want to send define_icon("Node1", "burst", "#03CEFC") define_icon("Node2", "home", "#D67500") ``` Call `define_icon` as many times as needed for each of your node types. # OpenGraph Edges Source: https://bloodhound.specterops.io/opengraph/developer/edges Define relationships between nodes in your OpenGraph data payloads. ![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) OpenGraph edges define relationships between nodes. Use this page to validate edge kinds, endpoint matching behavior, and post-processing outcomes before ingest. > [!NOTE] > > Use this page to validate edge structure before ingestion. For a full data payload example, see [Graph Data](/opengraph/developer/graph-data). At minimum, each edge must include a `start` endpoint, an `end` endpoint, and a `kind` that describes the relationship type. ```json highlight={6,10,14} theme={null} { "graph": { "nodes": [], "edges": [ { "start": { "match_by": "id", "value": "node-12345" }, "end": { "match_by": "id", "value": "node-67890" }, "kind": "RelationshipType" } ] } } ``` **start** `object` *required* An object that defines how to match the starting node of the edge. See [Endpoint Matching](#endpoint-matching). **end** `object` *required* An object that defines how to match the ending node of the edge. See [Endpoint Matching](#endpoint-matching). **kind** `string` *required* A string that describes the relationship type. * A descriptive name that identifies the edge kind and does not overlap with [built-in edge](/resources/edges/overview) kinds. Consider using a prefix related to your data source or environment separated from the name by an underscore. For example, `Okta_ResetPassword`. For [structured graphs](/opengraph/overview#structured-graphs), a prefix that matches the extension's [`namespace`](/opengraph/developer/graph-definition#namespacing) is required. > [!WARNING] > > The `tag_` prefix is reserved in any letter case, including `tag_`, `Tag_`, and `TAG_`. Do not use this prefix for custom edge kinds. If any edge kind uses it, BloodHound rejects the entire upload. * Must match the regex pattern `^[A-Za-z0-9_]+$`, which means edge kinds can only contain uppercase letters, lowercase letters, numbers, and underscores. Spaces, dashes, backticks, and other special characters are not allowed in edge kinds. PascalCase is recommended for readability and consistency. Neo4j Cypher allows many special characters in symbolic names when the name is enclosed in backticks. BloodHound OpenGraph ingest is more restrictive: edge `kind` values must match `^[A-Za-z0-9_]+$`, so upload validation rejects backtick-escaped names, spaces, dashes, and other special characters. **properties** `object` A key-value map of custom edge properties. Values must be strings, numbers, booleans, or arrays of primitives. Nested objects and arrays of objects are not allowed. > [!NOTE] > > Unless otherwise noted, examples below show edge objects only. ## Endpoint Matching Edges in OpenGraph data define relationships between nodes using a `start` endpoint object and an `end` endpoint object. You can control how BloodHound resolves each endpoint using one of three matching strategies in the `match_by` field. * `id` for direct node identifier matching * `property` for node property matching * `name` for legacy node name matching (deprecated) This flexibility allows you to link nodes based on their unique database identifiers or by dynamically finding them based on specific property values. > [!NOTE] > > Use identifier matching when possible. Property matching is more flexible, but it is slower and should be used only when you cannot match by node ID. ### Match by Identifier This is the default and most common method. It resolves an endpoint by unique node [`id`](/opengraph/developer/nodes#param-id). ```json Linking a specific user to a server using their unique IDs theme={null} { "start": { "match_by": "id", "value": "user-12345" }, "end": { "match_by": "id", "value": "server-98765" } } ``` **start** `object` *required* Starting endpoint definition for the edge. **start.match_by** `string` Strategy for matching the starting node. If omitted, defaults to `id` for unique identifier matching. **start.value** `string` *required* String containing the specific ID of the starting node. **end** `object` *required* Ending endpoint definition for the edge. **end.match_by** `string` Strategy for matching the ending node. If omitted, defaults to `id` for unique identifier matching. **end.value** `string` *required* String containing the specific ID of the ending node. **start.kind** `string` Optional kind filter used in `start` to constrain the lookup to a specific node kind. For example, setting `kind: "User"` ensures that even if a name exists across multiple entity types, only the one classified as a `User` is selected. **end.kind** `string` Optional kind filter used in `end` to constrain the lookup to a specific node kind. For example, setting `kind: "Server"` limits endpoint resolution to nodes classified as `Server`. **start.property_matchers** `array` Not used in this mode. If provided alongside `start.match_by: "id"`, validation fails. **end.property_matchers** `array` Not used in this mode. If provided alongside `end.match_by: "id"`, validation fails. ### Match by Property Use this strategy when you do not know the unique ID of the target node but can identify it using one or more known [`properties`](/opengraph/developer/nodes#param-properties) (for example, username, email address, hostname, or custom property). This method allows for dynamic resolution based on data available at the time of ingestion. To use this strategy, set the `match_by` property to `property`. ```json Linking a user to a server by matching the user's username property and the server's hostname property theme={null} { "start": { "match_by": "property", "property_matchers": [ { "key": "username", "operator": "equals", "value": "alice.smith" }, { "key": "active", "operator": "equals", "value": true } ], "kind": "User" }, "end": { "match_by": "property", "property_matchers": [ { "key": "hostname", "operator": "equals", "value": "db-prod-01" } ] } } ``` **start** `object` *required* Starting endpoint definition for the edge. **start.match_by** `string` *required* Strategy for matching the starting node. Set to `property` to match against one or more of the starting node's property values. **start.property_matchers** `array` *required* Array of matchers used to find the starting node. BloodHound attempts to find a node that satisfies all matchers. At least one matcher is required, but you can provide multiple matchers in the array. The system will attempt to find a node that satisfies all conditions simultaneously. **start.kind** `string` Optional kind filter used to narrow node resolution for the starting node. **end** `object` *required* Ending endpoint definition for the edge. **end.match_by** `string` *required* Strategy for matching the ending node. Set to `property` to match against one or more of the ending node's property values. **end.property_matchers** `array` *required* Array of matchers used to find the ending node. At least one matcher is required, but you can provide multiple matchers in the array. The system will attempt to find a node that satisfies all conditions simultaneously. **start.value** `string | number | boolean` Not used in this mode. Providing `start.value` when `start.match_by` is `property` causes validation errors. **end.value** `string | number | boolean` Not used in this mode. Providing `end.value` when `end.match_by` is `property` causes validation errors. **property_matchers\[].key** `string` *required* Name of the node property to check. **property_matchers\[].operator** `string` *required* Matching operator. `equals` is currently the only supported value. **property_matchers\[].value** `string | number | boolean` *required* Expected value for the property matcher. ### Match by Name (deprecated) Use this legacy strategy to resolve an endpoint by a `name` string. This strategy predates [Match by Property](/opengraph/developer/edges#match-by-property) and uses the `value` field directly, similar to [Match by Identifier](/opengraph/developer/edges#match-by-identifier). It is retained for backward compatibility. > [!WARNING] > > The `name` matching strategy is deprecated and will be removed in a future release. Migrate to [Match by Property](/opengraph/developer/edges#match-by-property) with an equality matcher on the `name` property. Mixing `match_by: "name"` with `property_matchers` fails schema validation. To use this strategy, set the `match_by` property to `name` and provide the name string in `value`. Combine with an optional `kind` filter to disambiguate nodes that share names across kinds. ```json Linking a user to a server by their names theme={null} { "start": { "match_by": "name", "value": "alice", "kind": "User" }, "end": { "match_by": "name", "value": "file-server-1", "kind": "Server" } } ``` Internally, BloodHound rewrites a `name` match to a property match against the `name` property. The equivalent payload using [Match by Property](/opengraph/developer/edges#match-by-property): ```json theme={null} { "start": { "match_by": "property", "property_matchers": [ { "key": "name", "operator": "equals", "value": "alice" } ], "kind": "User" }, "end": { "match_by": "property", "property_matchers": [ { "key": "name", "operator": "equals", "value": "file-server-1" } ], "kind": "Server" } } ``` **start** `object` *required* Starting endpoint definition for the edge. **start.match_by** `string` *required* Strategy for matching the starting node. Set to `name` to match against a name string. **start.value** `string` *required* Name string used to look up the starting node. **start.kind** `string` Optional kind filter used to constrain the lookup to a specific node kind. Recommended when names overlap across kinds. **end** `object` *required* Ending endpoint definition for the edge. **end.match_by** `string` *required* Strategy for matching the ending node. Set to `name` to match against a name string. **end.value** `string` *required* Name string used to look up the ending node. **end.kind** `string` Optional kind filter used to constrain the lookup to a specific node kind. Recommended when names overlap across kinds. **start.property_matchers** `array` Not used in this mode. Providing `property_matchers` when `start.match_by` is `name` causes validation errors. **end.property_matchers** `array` Not used in this mode. Providing `property_matchers` when `end.match_by` is `name` causes validation errors. ## Post-processing [Post-processing](/analyze-data/findings/analysis#post-processing) runs during the analysis phase and generates specific edges to enrich the graph and reflect the evaluated graph state. Each post-processing step compares its generated edges with the existing graph: unchanged edges remain, new edges are created, and edges no longer generated by the step are deleted when it completes. Some built-in edges are derived from supporting relationships. See the list below for details. > [accordion] Show post-processed edges > > BloodHound creates the following edges during post-processing: > > * [`ADCSESC1`](/resources/edges/adcs-esc1) > * [`ADCSESC3`](/resources/edges/adcs-esc3) > * [`ADCSESC4`](/resources/edges/adcs-esc4) > * [`ADCSESC6a`](/resources/edges/adcs-esc6a) > * [`ADCSESC6b`](/resources/edges/adcs-esc6b) > * [`ADCSESC9a`](/resources/edges/adcs-esc9a) > * [`ADCSESC9b`](/resources/edges/adcs-esc9b) > * [`ADCSESC10a`](/resources/edges/adcs-esc10a) > * [`ADCSESC10b`](/resources/edges/adcs-esc10b) > * [`ADCSESC13`](/resources/edges/adcs-esc13) > * [`ADCSESC16`](/resources/edges/adcs-esc16) > * [`AddMember`](/resources/edges/add-member) > * [`AdminTo`](/resources/edges/admin-to) > * [`AZAddOwner`](/resources/edges/az-add-owner) > * [`AZRoleApprover`](/resources/edges/az-role-approver) > * [`CanPSRemote`](/resources/edges/can-ps-remote) > * [`CanRDP`](/resources/edges/can-rdp) > * [`CoerceAndRelayNTLMToADCS`](/resources/edges/coerce-and-relay-ntlm-to-adcs) > * [`CoerceAndRelayNTLMToADCSRPC`](/resources/edges/coerce-and-relay-ntlm-to-adcs-rpc) > * [`CoerceAndRelayNTLMToLDAP`](/resources/edges/coerce-and-relay-ntlm-to-ldap) > * [`CoerceAndRelayNTLMToLDAPS`](/resources/edges/coerce-and-relay-ntlm-to-ldaps) > * [`CoerceAndRelayNTLMToSMB`](/resources/edges/coerce-and-relay-ntlm-to-smb) > * [`DCSync`](/resources/edges/dc-sync) > * [`EnrollOnBehalfOf`](/resources/edges/enroll-on-behalf-of) > * [`EnterpriseCAFor`](/resources/edges/enterprise-ca-for) > * [`ExecuteDCOM`](/resources/edges/execute-dcom) > * [`ExtendedByPolicy`](/resources/edges/extended-by-policy) > * [`GoldenCert`](/resources/edges/golden-cert) > * [`HasTrustKeys`](/resources/edges/has-trust-keys) > * [`IssuedSignedBy`](/resources/edges/issued-signed-by) > * [`OwnsLimitedRights`](/resources/edges/owns-limited-rights) > * [`ProtectAdminGroups`](/resources/edges/protect-admin-groups) > * [`SyncLAPSPassword`](/resources/edges/sync-laps-password) > * [`SyncedToADUser`](/resources/edges/synced-to-ad-user) > * [`SyncedToEntraUser`](/resources/edges/synced-to-entra-user) > * [`TrustedForNTAuth`](/resources/edges/trusted-for-nt-auth) > * [`WriteOwnerLimitedRights`](/resources/edges/write-owner-limited-rights) For example, Active Directory post-processing generates the `AdminTo` edge from local group membership and computer access relationships. A directly supplied `AdminTo` edge is removed if post-processing does not independently generate that same relationship. To keep the relationship in the graph, include the supporting edges that cause BloodHound to generate it. The common pattern that triggers `AdminTo` is: ```mermaid theme={null} graph LR Entity -->|MemberOfLocalGroup| LocalGroup -->|LocalToComputer| Computer ``` See the following example OpenGraph payload that produces the effect: ```json theme={null} { "graph": { "nodes": [ { "id": "TESTNODE", "kinds": ["User"] } ], "edges": [ { "start": { "match_by": "id", "value": "TESTNODE" }, "end": { "match_by": "id", "value": "S-1-5-21-2697957641-2271029196-387917394-2171-544" }, "kind": "MemberOfLocalGroup" } ] } } ``` ## Schema Use the schema below as the source of truth for validation requirements. You can also download the same schema as a file: [opengraph-edge.json](/assets/opengraph/opengraph-edge.json). ```json theme={null} { "title": "Generic Ingest Edge", "description": "Defines an edge between two nodes in a generic graph ingestion system. Each edge specifies a start and end node using one of three matching strategies: by unique identifier (match_by: id), by name (match_by: name, deprecated), or by one or more property matchers (match_by: property). A kind is required to indicate the relationship type. Optional properties may include custom attributes. You may optionally constrain the start or end node to a specific kind using the kind field inside each reference.", "type": "object", "$defs": { "property_map": { "type": ["object", "null"], "description": "A key-value map of edge attributes. Values must not be objects. If a value is an array, it must contain only primitive types (e.g., strings, numbers, booleans) and must be homogeneous (all items must be of the same type).", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "array", "anyOf": [ { "items": { "type": "string" } }, { "items": { "type": "number" } }, { "items": { "type": "boolean" } } ] } ] } }, "endpoint": { "type": "object", "properties": { "match_by": { "type": "string", "enum": ["id", "name", "property"], "default": "id", "description": "Whether to match the start node by its unique object ID or by a series of property matches. Note that the name value here is deprecated and will be removed in future versions. Users are advised to use the multi-property match strategy moving forward." }, "property_matchers": { "type": "array", "minItems": 1, "items": { "type": "object", "properties": { "key": { "type": "string" }, "operator": { "type": "string", "enum": ["equals"] }, "value": { "type": ["string", "number", "boolean"] } }, "required": ["key", "operator", "value"] } }, "value": { "type": "string", "description": "The value used for matching — either an object ID or a name, depending on match_by." }, "kind": { "type": "string", "description": "Optional kind filter; the referenced node must have this kind." } }, "if": { "allOf": [ { "properties": { "match_by": { "type": "string", "const": "property" } } }, { "not": { "properties": { "match_by": { "type": "null" } } } } ] }, "then": { "required": ["property_matchers"], "not": { "required": ["value"] } }, "else": { "required": ["value"], "not": { "required": ["property_matchers"] } } } }, "properties": { "start": { "$ref": "#/$defs/endpoint" }, "end": { "$ref": "#/$defs/endpoint" }, "kind": { "type": "string", "description": "Edge kind name must contain only alphanumeric characters and underscores.", "pattern": "^[A-Za-z0-9_]+$" }, "properties": { "$ref": "#/$defs/property_map" } }, "required": ["start", "end", "kind"], "examples": [ { "start": { "match_by": "id", "value": "user-1234" }, "end": { "match_by": "id", "value": "server-5678" }, "kind": "has_session", "properties": { "timestamp": "2025-04-16T12:00:00Z", "duration_minutes": 45 } }, { "start": { "match_by": "property", "property_matchers": [ { "key": "prop_1", "operator": "equals", "value": "value" } ] }, "end": { "match_by": "id", "value": "server-5678" }, "kind": "has_session", "properties": { "timestamp": "2025-04-16T12:00:00Z", "duration_minutes": 45 } }, { "start": { "match_by": "name", "value": "alice", "kind": "User" }, "end": { "match_by": "name", "value": "file-server-1", "kind": "Server" }, "kind": "accessed_resource", "properties": { "via": "SMB", "sensitive": true } }, { "start": { "value": "admin-1" }, "end": { "value": "domain-controller-9" }, "kind": "admin_to", "properties": { "reason": "elevated_permissions", "confirmed": false } }, { "start": { "match_by": "name", "value": "Printer-007" }, "end": { "match_by": "id", "value": "network-42" }, "kind": "connected_to", "properties": null } ] } ``` ## Troubleshooting * **Upload fails on edge kind pattern:** Ensure `kind` matches `^[A-Za-z0-9_]+$`. * **Endpoint validation fails:** Use either `value` for `id`/`name` matching, or `property_matchers` for `property` matching, not both. * **Expected edge disappears after ingest:** Check whether it is a post-processed edge kind. * **Upload rejected due to reserved kind:** Check whether the edge kind begins with `tag` in any casing (for example, `tag_`, `Tag_`, `TAG_`). BloodHound rejects the entire upload if a reserved kind prefix is found. # Entity Panel Content Source: https://bloodhound.specterops.io/opengraph/developer/entity-panel-content Define and validate custom Entity Panel content for nodes and relationships in BloodHound. ![Applies to BloodHound Enterprise and Community Edition](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56) When you select a node or relationship in **Explore**, BloodHound displays its properties in the Entity Panel. OpenGraph extensions can add custom sections to the panel for extension-specific context. Define custom content in the `info` object of an [extension definition schema](/opengraph/developer/graph-definition) using static Markdown or dynamic Go templates. This page covers custom section structure, Markdown and template validation, and dynamic content options. ## Custom Entity Panel content Use the [`info`](/opengraph/developer/graph-definition#param-info) object to define custom Entity Panel sections for node kinds and relationship kinds. When a user selects a node or relationship in Explore, BloodHound renders an Entity Panel with the specified accordion sections as defined by the `info` entries. Each `info` object is a map of section identifiers to rendered sections. Use stable identifiers for the keys so future schema updates can modify the same section without changing its identity. ```json theme={null} "info": { "overview": { "title": "Overview", "position": 1, "markdown": { "content": "This content appears in the Entity Panel." } } } ``` > [!TIP] > > Draft your content in a Markdown editor, then convert it to a single-line JSON string before adding it to the `content` field. Encode newlines as escaped `\n` sequences. This workflow applies to both static and dynamic content. **info key** `string` Stable section identifier. Must match `^[a-z0-9_-]{1,128}$`, which allows lowercase letters, numbers, hyphens, and underscores. **title** `string` Section title displayed in the Entity Panel accordion header. **position** `integer` Positive integer (`1` or higher) that controls the order of extension-defined sections. Lower values render first. Use `1` for the first extension-defined section. **markdown.content** `string` Single-line JSON string containing the Markdown rendered in the section body. Encode line breaks as escaped `\n` sequences. Required when `markdown` is present. You can use static Markdown or a [Go template](/opengraph/developer/entity-panel-content#dynamic-entity-panel-content) that renders values for the selected entity. Every Entity Panel starts with **Object Information** at position `0`. This section lists all properties for the selected node or relationship. BloodHound renders additional `info` entries for the selected node's primary kind or the selected relationship's kind after **Object Information**. BloodHound orders those extension-defined sections by `position`, then `title`. If no `info` entries are defined for the selected kind, BloodHound still renders **Object Information**, but does not render additional extension-defined Entity Panel sections. ### Markdown validation When you upload an extension definition schema, BloodHound validates each Markdown field to ensure it does not contain unsafe or disallowed HTML. > [!NOTE] > > Validation only checks the content; BloodHound stores your original Markdown without modifying it. BloodHound validates Markdown in the following fields: | Field(s) | Where | | - | - | | `info.
.markdown.content` | `node_kinds` and `relationship_kinds` arrays (see [Custom Entity Panel content](/opengraph/developer/entity-panel-content#custom-entity-panel-content)) | #### Supported Markdown BloodHound supports [CommonMark](https://commonmark.org/) plus the following [GitHub Flavored Markdown](https://github.github.com/gfm/) extensions: * Tables * Strikethrough * Task lists * Autolinks * Fenced code blocks (with an alphanumeric language hint) You can also include inline HTML that is on BloodHound's allowlist of safe elements and attributes, such as links and basic text formatting. #### Rejected content BloodHound rejects the upload when a Markdown field contains unsafe or disallowed HTML, including: * `