> ## Documentation Index
> Fetch the complete documentation index at: https://bloodhound.specterops.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload Extension Assets

> Upload saved queries and Privilege Zone rules for OpenHound extensions.

![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)

This page documents an optional OpenHound CLI workflow for uploading saved queries and Privilege Zone rules for GitHub, Jamf, and Okta extensions. Use it when the extension has supported assets, but no [extension bundle](https://bloodhound.specterops.io/opengraph/extensions/manage.md) has been published.

The OpenHound CLI is a convenience for OpenHound extension assets. For non-OpenHound extensions, follow the provider's instructions.

> [!NOTE]
>
> In BloodHound Enterprise, the GitHub, Jamf, and Okta extension schemas are pre-installed. Until the applicable extension bundle is available, you can continue to manage supported saved queries and Privilege Zone rules separately. This does not change the extension's pre-installed status or update behavior.

## Prerequisites

Before you upload extension assets, ensure that you have done the following:

* Installed the [OpenHound CLI](https://bloodhound.specterops.io/openhound/community.md#install-the-openhound-cli).
* Verified or installed the matching extension definition schema in [OpenGraph Management](https://bloodhound.specterops.io/opengraph/extensions/manage.md#verify-or-install-an-extension).
* Obtained the BloodHound Enterprise tenant URL and browser JWT used by the OpenHound CLI for extension asset uploads.

## Configure CLI authentication

OpenHound uses DLT configuration management for CLI asset uploads. Add the BloodHound Enterprise tenant URL to your local `~/.dlt/config.toml` file, and the browser JWT to your local `~/.dlt/secrets.toml` file.

The asset upload commands use the `destination.bloodhound` section with a URL and a JWT bearer token.

This is different from the `destination.bloodhoundenterprise` collector client configuration, which uses `token_id` and `token_key` for scheduled OpenHound collection.

> [!NOTE]
>
> Scheduled collector examples separate the BloodHound Enterprise destination URL into `config.toml` and keep collector client credentials in extension-specific secrets files, such as `~/.dlt/secrets_github.toml`.
>
> Asset upload commands run from the OpenHound CLI and read the generic `~/.dlt/config.toml` and `~/.dlt/secrets.toml` files shown below.

To get the browser JWT, follow the [BloodHound API JWT guidance](https://bloodhound.specterops.io/integrations/bloodhound-api/working-with-api.md#use-a-jwt%2Fbearer-token). Copy only the token value and omit the `Bearer` prefix.

```toml title="~/.dlt/config.toml" theme={null}
[destination.bloodhound]
url = "https://your-tenant.bloodhoundenterprise.io"
```

```toml title="~/.dlt/secrets.toml" theme={null}
[destination.bloodhound]
token = "your-browser-jwt"
```

> [!NOTE]
>
> If an existing `~/.dlt/secrets.toml` file still has `url` under `[destination.bloodhound]` from a previous OpenHound version, it continues to work, but following the new pattern is preferred. Use `config.toml` for `url` in new configurations.

> [!WARNING]
>
> Do not commit `secrets.toml` or token values to version control. Browser JWTs are short-lived and intended for user-authenticated API calls, not long-running integrations.

## Upload assets

When you use this separate asset workflow, upload the saved queries and Privilege Zone rules supplied for the extension. Skip assets that the provider does not supply or that BloodHound does not support through this import workflow.

Saved queries and Privilege Zone rules are stored in each extension repository in the following directories:

* `extension/saved_searches`
* `extension/privilege_zone_rules`

> [!NOTE]
>
> OpenHound makes uploaded saved queries public by default.

**1. Clone the extension repositories**

Clone each extension repository to your local machine.

> [tab] GitHub
>
> ```bash theme={null}
> git clone https://github.com/SpecterOps/openhound-github ~/openhound-github
> ```

> [tab] Jamf
>
> ```bash theme={null}
> git clone https://github.com/SpecterOps/openhound-jamf ~/openhound-jamf
> ```

> [tab] Okta
>
> ```bash theme={null}
> git clone https://github.com/SpecterOps/openhound-okta ~/openhound-okta
> ```

**2. Upload the saved queries**

For each extension, run the upload command against the saved queries directory.

> [tab] GitHub
>
> ```bash theme={null}
> openhound searches upload ~/openhound-github/extension/saved_searches
> ```

> [tab] Jamf
>
> ```bash theme={null}
> openhound searches upload ~/openhound-jamf/extension/saved_searches
> ```

> [tab] Okta
>
> ```bash theme={null}
> openhound searches upload ~/openhound-okta/extension/saved_searches
> ```

**3. Upload the Privilege Zone rules**

For each extension, run the upload command against the Privilege Zone rules directory.

> [tab] GitHub
>
> ```bash theme={null}
> openhound rules upload ~/openhound-github/extension/privilege_zone_rules
> ```

> [tab] Jamf
>
> ```bash theme={null}
> openhound rules upload ~/openhound-jamf/extension/privilege_zone_rules
> ```

> [tab] Okta
>
> ```bash theme={null}
> openhound rules upload ~/openhound-okta/extension/privilege_zone_rules
> ```

> [!TIP]
>
> The default upload strategy is `skip`, which leaves existing assets unchanged.
>
> Use `--strategy overwrite` when you need to update previously uploaded saved queries or Privilege Zone rules.

## Verify uploads

After the upload completes:

* Open **Explore** to confirm the saved queries are available.
* Open **Privilege Zones** to confirm the expected rules appear in the target zone.
* Wait for analysis to successfully run to verify rules that affect zone membership or findings.

## Troubleshoot

| Issue | Cause | Resolution |
| - | - | - |
| Existing assets do not update | The `upload` command uses the `skip` strategy by default. | Run the upload again with the `--strategy overwrite` option. |
| Upload fails with an authentication error | The BloodHound Enterprise URL or JWT is invalid or expired. | Verify both values; update `~/.dlt/config.toml` with a valid URL and `~/.dlt/secrets.toml` with a valid browser JWT as needed, then rerun the command. |
| No files are uploaded | The command points to the wrong directory. | Confirm that the path contains the extension assets. |
