MCPcopy Index your code
hub / github.com/SpecterOps/AzureHound

github.com/SpecterOps/AzureHound @v2.12.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.12.2 ↗ · + Follow
1,295 symbols 4,721 edges 555 files 360 documented · 28% updated 22d agov2.12.2 · 2026-06-15★ 92913 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

AzureHound

The BloodHound data collector for Microsoft Azure

GitHub Workflow Status GitHub release (latest SemVer) GitHub all releases Documentation

Get AzureHound

Release Binaries

Download the appropriate binary for your platform from one of our Releases.

Rolling Release

The rolling release contains pre-built binaries that are automatically kept up-to-date with the main branch and can be downloaded from here.

Warning: The rolling release may be unstable.

Compiling

Prerequisites

To build this project from source run the following:

go build -ldflags="-s -w -X github.com/bloodhoundad/azurehound/v2/constants.Version=`git describe tags --exact-match 2> /dev/null || git rev-parse HEAD`"

Documentation

Please refer to the BloodHound Community Edition documentation for: - AzureHound Community Edition - AzureHound Community Edition Flags

Usage

Quickstart

Print all Azure Tenant data to stdout

❯ azurehound list -u "$USERNAME" -p "$PASSWORD" -t "$TENANT"

Print all Azure Tenant data to file

❯ azurehound list -u "$USERNAME" -p "$PASSWORD" -t "$TENANT" -o "mytenant.json"

Print all Azure Tenant data to file, reusing your existing authentication from the Azure CLI

❯ JWT=$(az account get-access-token --resource https://graph.microsoft.com | jq -r .accessToken)
❯ azurehound list --jwt "$JWT"

Configure and start data collection service for BloodHound Enterprise

❯ azurehound configure
(follow prompts)

❯ azurehound start

CLI

❯ azurehound --help
AzureHound vx.x.x
Created by the BloodHound Enterprise team at SpecterOps - [https://bloodhoundenterprise.io](https://specterops.io/bloodhound-overview/)

The official tool for collecting Azure data for BloodHound Community Edition and BloodHound Enterprise

Usage:
  azurehound [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  configure   Configure AzureHound
  help        Help about any command
  list        Lists Azure Objects
  start       Start Azure data collection service for BloodHound Enterprise

Flags:
  -c, --config string          AzureHound configuration file (default: /Users/dlees/.config/azurehound/config.json)
  -h, --help                   help for azurehound
      --json                   Output logs as json
  -j, --jwt string             Use an acquired JWT to authenticate into Azure
      --log-file string        Output logs to this file
      --proxy string           Sets the proxy URL for the AzureHound service
  -r, --refresh-token string   Use an acquired refresh token to authenticate into Azure
  -v, --verbosity int          AzureHound verbosity level (defaults to 0) [Min: -1, Max: 2]
      --version                version for azurehound

Use "azurehound [command] --help" for more information about a command.

Extension points exported contracts — how you extend this code

AzureRoleManagementClient (Interface)
AzureRoleManagementClient defines the methods to interface with the Azure role based access control (RBAC) API [3 implementers]
client/role_management.go
BloodHoundClient (Interface)
BloodHoundClient represents the methods for interacting with an instance of BloodHound [3 implementers]
client/bloodhound/client.go
AuthStrategy (Interface)
AuthStrategy is an interface that defines the methods that an authentication strategy must implement [3 implementers]
client/rest/auth.go
AzureGraphClient (Interface)
(no doc) [3 implementers]
client/client.go
Params (Interface)
(no doc) [2 implementers]
client/query/params.go
RestClient (Interface)
(no doc) [2 implementers]
client/rest/client.go
AzureResourceManagerClient (Interface)
(no doc) [3 implementers]
client/client.go
AzureClient (Interface)
(no doc) [3 implementers]
client/client.go

Core symbols most depended-on inside this repo

Info
called by 351
logger/internal/logger.go
Error
called by 152
logger/internal/logger.go
Value
called by 113
config/internal/config.go
String
called by 83
client/rest/token.go
EXPECT
called by 81
client/mocks/client.go
PanicRecovery
called by 81
panicrecovery/panic_recovery.go
TenantInfo
called by 76
client/client.go
gracefulShutdown
called by 68
cmd/utils.go

Shape

Function 459
Struct 403
Method 325
TypeAlias 99
Interface 8
FuncType 1

Languages

Go100%

Modules by API surface

client/mocks/client.go78 symbols
client/client.go46 symbols
client/rest/auth.go32 symbols
client/bloodhound/client.go23 symbols
client/bloodhound/mocks/client.go22 symbols
cmd/utils.go20 symbols
client/rest/mocks/client.go20 symbols
client/rest/client.go20 symbols
pipeline/pipeline.go13 symbols
client/rest/utils.go13 symbols
logger/internal/logger.go12 symbols
client/client_test.go12 symbols

For agents

$ claude mcp add AzureHound \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact