Skip to main content

OpenHound Postprocess

OpenHound Postprocess derives relationships from data already in BloodHound. It queries the graph through the BloodHound API, builds lookup tables, and emits OpenGraph edges between existing nodes.

Generated edges

The tables show the direction of each emitted edge and the graph evidence used to create it. A two-way arrow means the collector emits one edge in each direction.

GitHub Actions workload identity

Platforms Edge and direction How the edge is derived
GitHub Actions → Azure GH_CanAssumeIdentity from a GitHub scope to an AZFederatedIdentityCredential Use the credential's subject when its issuer is GitHub Actions. Resolve the subject to the corresponding GitHub repository, branch, environment, or organization role.
GitHub Actions → AWS GH_CanAssumeIdentity from a GitHub scope to an AWS_Role Extract the GitHub OIDC sub condition from an IAM trust policy's Allow statement for the GitHub OIDC provider. The collector supports StringEquals and StringLike subject conditions and resolves them to GitHub scopes.

See OIDC correlation for how exact and wildcard subjects resolve to GitHub scopes.

GitHub user and group identity

Platforms Edge and direction How the edge is derived
GitHub SAML with Entra ID, Okta, or PingOne GH_MapsToUser from GH_ExternalIdentity to the identity provider's user. GH_SyncedTo from that user to GH_User. Use the GitHub SAML provider to scope the lookup to its identity provider and environment. Match the external identity's SAML NameID to AZUser.userprincipalname, Okta_User.username, or PingOne_User.email. The sync edge also requires a resolved GitHub user.
Entra ID, Okta, or PingOne → GitHub via SCIM SCIM_Provisioned from the identity provider's user to SCIM_User. GH_SyncedTo from that user to GH_User. Start with an enabled SCIM user linked through a GitHub external identity to a GitHub user. Match SCIM_User.external_id to a unique AZUser, Okta_User, or PingOne_User by objectid.
Entra ID → SCIM group SCIM_Provisioned from AZGroup to SCIM_Group. Match SCIM_Group.external_id to a unique AZGroup.objectid.

GH_MapsToUser is a non-traversable evidence edge. GH_SyncedTo is a traversable, composed edge back to the GitHub user. See Identity correlation for the SCIM path and current group support.

Hosts and devices

Each match emits traversable Host_SameHostAs edges between representations of the same compute instance.

Platforms Edge direction How the edge is derived
Entra ID and Azure AZDevice ↔ AZVM Strip the exact [AzureResourceId]: prefix from matching entries in AZDevice.physical_ids and match the full resource ID to AZVM.objectid.
Entra ID and Active Directory AZDevice ↔ Computer Match AZDevice.onpremid to Computer.objectid.
Azure and Active Directory AZVM ↔ Computer Match AZVM.vm_id to Computer.azvmid.
Active Directory and Okta Computer → Okta_Device For Okta devices with platform = 'WINDOWS', match Okta_Device.object_sid to Computer.objectid.
Jamf and Okta jamf_Computer → Okta_Device For Okta devices with platform = 'MACOS', match Okta_Device.udid to jamf_Computer.udid.

Host identity comparisons ignore case and surrounding whitespace and require nonempty keys. The collector deduplicates directed edges and uses the stored BloodHound object IDs as endpoints. See the Host_SameHostAs edge reference for details.

Capabilities

Before collecting capability-specific resources, the extension probes for the minimum graph signal needed to make that work useful:

  • OIDC: a GitHub Actions Azure FIC or an AWS role that trusts token.actions.githubusercontent.com
  • SAML: a GH_SamlIdentityProvider with a GH_HasExternalIdentity edge
  • SCIM users: an active (:SCIM_User)-[:SCIM_Provisioned]->(:GH_ExternalIdentity)-[:GH_MapsToUser]->(:GH_User) path
  • SCIM groups: a SCIM_Group with a non-null external_id
  • Host correlation: an AZDevice with a physical_ids entry starting with [AzureResourceId]:, a device with a nonempty onpremid, or a Computer with a nonempty azvmid; Windows Okta_Device nodes also enable Computer collection; macOS Okta devices enable Jamf Computer collection

The generic node collection defaults to:

  • AZFederatedIdentityCredential
  • AWS_Role
  • GH_Organization
  • GH_Repository
  • GH_Branch
  • GH_Environment
  • GH_ExternalIdentity
  • GH_SamlIdentityProvider

FIC collection is scoped to GitHub Actions issuers using:

MATCH (fic:AZFederatedIdentityCredential)
WHERE fic.issuer = 'https://token.actions.githubusercontent.com'
RETURN fic

Configuration

[sources.source.postprocess]
bloodhound_url = "https://example.bloodhoundenterprise.io"
bloodhound_token_id = "..."
bloodhound_token_key = "..."

# Optional
node_kinds_json = "[\"AZFederatedIdentityCredential\",\"AWS_Role\",\"GH_Organization\",\"GH_Repository\",\"GH_Branch\",\"GH_Environment\",\"GH_ExternalIdentity\",\"GH_SamlIdentityProvider\"]"
node_filters_json = "{\"AZFederatedIdentityCredential\":\"{alias}.issuer = 'https://token.actions.githubusercontent.com'\",\"AWS_Role\":\"({alias})-[:AWS_TrustsOIDCProvider]->(:AWS_OIDCProvider {url:'token.actions.githubusercontent.com'})\"}"
edge_kinds_json = "[]"
prior_derived_edge_kinds_json = "[\"OIDC_RelatedTo\"]"
kind_prefix = "OIDC_"
chunk_size = 5000

OIDC Correlation

For OIDC, convert emits GH_CanAssumeIdentity edges from GitHub scope nodes to Azure FICs or AWS roles. It does not create new nodes.

Each AZ FIC subject is parsed and then correlated against GitHub lookup tables in DuckDB:

  • exact repository subjects emit from GH_Repository
  • exact branch subjects emit from GH_Branch when present
  • exact environment subjects emit from GH_Environment when present
  • wildcard branch and wildcard environment subjects fall back to GH_Repository
  • wildcard repo subjects fall back to the org owners role, plus members when members_can_create_repositories = true

OIDC correlation matches GitHub resource names without regard to case:

  • organization login: case-insensitive
  • repository full name: case-insensitive
  • environment name: case-insensitive
  • branch name: case-insensitive, preferring an exact-case match when present

Immutable GitHub OIDC subjects append numeric owner and repository database IDs to the repo segment (for example, repo:org@123/app@456). The input GH_Organization.database_id, GH_Repository.database_id, and GH_Repository.owner_database_id properties are used to validate these IDs. Opaque node_id, objectid, and owner_id values remain graph identifiers and are never decoded to derive numeric database IDs.

Repository, branch, and environment OIDC edge endpoints use the stored BloodHound objectid. GitHub node_id values are retained as aliases for resolving repository-owner and branch/environment-repository references. These references are compared without regard to case, including when converting previously collected snapshots.

For branch fallback, the repo's default_branch is used as a coverage signal. If the target branch is missing and the repo does not even have its default branch collected, the branch inventory is treated as untrustworthy and no edge is emitted.

Unsupported AZ FIC subjects are also retained during preprocess in postprocess.unsupported_az_federated_identity_subjects so you can track coverage gaps like tags, job_workflow_ref, malformed subjects, and other not-yet-modeled subject forms.

Parsed AZ FIC subjects that are intentionally suppressed because the backing GitHub data is not trustworthy enough to emit an edge are retained in postprocess.suppressed_az_federated_identity_subjects.

Common suppression reasons include:

  • organization is missing or not collected
  • organization wildcard is too broad to correlate safely
  • branch inventory is not trustworthy for repository fallback

Identity Correlation

For SAML, the extension uses the GitHub SAML identity provider to determine the foreign identity provider and environment, then matches the external identity's SAML name ID to the provider-specific user identity property. A successful match emits a non-traversable GH_MapsToUser evidence edge and a composed, traversable GH_SyncedTo edge from the foreign user to the GitHub user.

For SCIM users, the extension only collects active provisioning paths:

MATCH p=(:SCIM_User {enabled:true})-[:SCIM_Provisioned]->(:GH_ExternalIdentity)-[:GH_MapsToUser]->(:GH_User)
RETURN p

It then matches SCIM_User.external_id to foreign user objectid values and emits a direct SCIM_Provisioned edge from the foreign user to the SCIM user. Once that direct edge exists, it also emits a composed GH_SyncedTo edge whose composition query shows the full foreign user -> SCIM user -> GitHub external identity -> GitHub user path.

For SCIM groups, the extension currently matches SCIM_Group.external_id only against AZGroup.objectid and emits SCIM_Provisioned from the Azure group to the SCIM group. It does not yet emit a GitHub team edge because the corresponding GH_EnterpriseTeam relationship has not been established.

Host Correlation

See the Host_SameHostAs edge reference for matching rules, edge directions, collection behavior, and troubleshooting.

Each rule adds one capability probe. az_devices collects the union of device candidates in one paginated pass. az_vms collects the VM inventory when either the device resource-ID probe or the Computer azvmid probe finds candidates. computers collects the AD computer inventory when the device on-premises ID probe, Computer azvmid probe, or Windows Okta device probe finds candidates. okta_devices collects the union of enabled Windows and macOS candidates in one pass, retaining Windows devices with a nonempty object_sid and macOS devices with a nonempty udid. jamf_computers collects the Jamf inventory only when macOS Okta candidates exist. Each inventory is collected once even when multiple rules need it. VM-to-computer correlation also works without any AZDevice nodes.

Each inventory uses pages of chunk_size nodes (default 5,000). An exact multiple of the page size requires a final empty page request. Collection retains device object IDs, extracted resource IDs, and onpremid; VM object IDs and vm_id; computer object IDs and azvmid; and Okta device object IDs, object_sid, udid, and platform; plus Jamf computer object IDs and udid. Configured node filters and the fallback collection filter apply.

DuckDB joins each pair of inventories once during conversion and caches the matches; there are no per-node API calls. Older snapshots without a rule's matching properties or inventory still convert, but require a fresh collection to produce edges for that rule.

Pipeline

The examples below use uv run so the commands execute inside this project's managed Python environment with the local extension code installed. If you are already running inside an environment where openhound and this package are installed, you can drop the uv run prefix.

mkdir -p ./output
uv run python -m openhound collect postprocess ./output/collected
uv run python -m openhound preprocess postprocess ./output/collected/postprocess ./output/lookup.duckdb
uv run python -m openhound convert postprocess ./output/collected/postprocess ./output/opengraph --lookup-file ./output/lookup.duckdb

When upgrading an existing installation, move the source settings to [sources.source.postprocess] and run the pipeline with a fresh collection and lookup database. For scheduler deployments, follow the Compose upgrade instructions.

Containers

Production images support Linux AMD64 and ARM64:

  • Scheduler: ghcr.io/specterops/openhound-postprocess:<version> or :latest
  • OpenHound CLI: ghcr.io/specterops/openhound-postprocess:<version>-cli or :latest-cli

See Docker Compose deployment for configuration, offline preflight, persistent storage, startup, and updates. Publishing a tagged GitHub release runs tests, uploads the Python distribution to PyPI, publishes both GHCR images, and attaches the Compose bundle. See Releasing for publisher setup and tag formats.

Additional Documentation

Metadata

Release files for openhound-postprocess 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openhound-postprocess 0.3.0
File Size Uploaded Provenance Actions
openhound_postprocess-0.3.0.tar.gz 147.3 kB Without provenance Details for openhound_postprocess-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openhound-postprocess 0.3.0
File Interpreter ABI Platform Actions
openhound_postprocess-0.3.0-py3-none-any.whl Python 3 none any Details for openhound_postprocess-0.3.0-py3-none-any.whl

Total release size: 205.1 kB

Release files / openhound_postprocess-0.3.0.tar.gz

Download URL openhound_postprocess-0.3.0.tar.gz
Size 147.3 kB
Tags Source
SHA-256 checksum
How to use checksums
18d37c75f74e8f22cb10a85edf1c3ef9d42721de7be18ebe0b345251b173e9b9
BLAKE2b-256 checksum
How to use checksums
9de6cede618a02115c89ca19869ec7e5b667979b718d078dc69cc24820346bea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / openhound_postprocess-0.3.0-py3-none-any.whl

Download URL openhound_postprocess-0.3.0-py3-none-any.whl
Size 57.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
617b1424c2a5c7330a5685b88777101dcfa0e1368dd3bda8ca6565e6fc833e4e
BLAKE2b-256 checksum
How to use checksums
3ee65eb2d31d06fa6bea1ed534b71d4e76251ba771a2756fc561e1cf98c9f952
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for openhound-postprocess 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page