Skip to main content
Applies to BloodHound Enterprise and CE

Prerequisites

Full OpenGraph support requires a PostgreSQL graph database and one of the following editions:
  • BloodHound Enterprise (uses PostgreSQL by default)
  • BloodHound Community v8.0.0+ (requires changing to a PostgreSQL database)
    While many OpenGraph features may work on a Neo4j database, there are functional and performance limitations (see the OpenGraph FAQ). For full support, migrate to a PostgreSQL database.
The OpenGraph Extension Management feature must be enabled before you can manage extensions. Enable this feature on the Administration > Early Access Features page.

Install the Extension

Optional Schemas

If your GitHub organization uses SCIM, upload the bh-scim-extension.json schema as well. This schema provides a shared model for provisioned users and groups across cloud identity providers and applications. If GitHub is connected to other BloodHound-supported data sources in your environment, such as Okta, make sure the corresponding schema is installed too. In BloodHound Enterprise, some extensions (such as GitHub, Jamf, and Okta) are pre-installed. Upload any companion schemas that are not already installed. Doing so ensures those cross-platform relationships are modeled correctly in BloodHound.

Import Cypher Queries

The GitHub extension provides Cypher queries to help identify attack paths and misconfigurations in your GitHub organization.

You can find links to download JSON files for each query from GitHub in the query documentation. Import these files into BloodHound using the query import workflow.

Cypher queries that reference node or edge kinds not present in the database will fail without the extension schema.

Collect and Upload Data

There are currently two ways to collect GitHub data for this extension:

Use the OpenHound GitHub collector for the most current documented collection workflow.

Configure Privilege Zones

The GitHub extension includes specialized queries that you can use to create Cypher-based Privilege Zone rules. Use these rules to classify high-value GitHub assets.

Read the Tier Zero Classification page to understand the rationale behind the Tier Zero Privilege Zone rules.