
What "Installing" Azurehound Really Means
Because Azurehound is a compiled Go program, there is no installer wizard, no registry entries and no background service unless you deliberately configure one. Installing Azurehound simply means placing a single executable where your operating system can find it, granting it permission to run, and confirming that it starts correctly.
That simplicity is a strength, but it also means small details, such as the PATH variable, file permissions and operating-system security prompts, decide whether your first run succeeds. This guide covers each platform in turn, then explains how to build from source and what to check before your first collection.
Before You Begin
Make sure you have:
- An Azurehound archive or source download from an official channel.
- Local administrator or sudo rights if you intend to place the binary in a system folder.
- A terminal: PowerShell or Windows Terminal on Windows, and any shell on Linux or macOS.
- Written authorisation for the Entra ID tenant you will eventually collect from.
Installing Azurehound on Windows
Step 1: Extract the archive
Right-click the downloaded azurehound-windows-amd64.zip and choose Extract All, or use PowerShell:
Expand-Archive .\azurehound-windows-amd64.zip -DestinationPath C:\Tools\AzureHound
Keeping security tools in a dedicated folder such as C:\Tools makes them easier to manage and exclude from aggressive endpoint scanning where your policy allows.
Step 2: Unblock the file
Files downloaded from the internet carry a "Mark of the Web". Remove it so Windows does not prompt every time:
Unblock-File C:\Tools\AzureHound\azurehound.exe
Step 3: Add the folder to PATH
To run azurehound from any directory, add its folder to your user PATH:
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Tools\AzureHound", "User")
Close and reopen the terminal for the change to take effect.
Step 4: Verify
azurehound --version
If Microsoft Defender or another endpoint product quarantines the file, do not simply disable protection. Confirm the file came from the official repository, then ask your security team to approve an exclusion for the specific path on your audit workstation.
Installing Azurehound on Linux
Option A: Release binary
unzip azurehound-linux-amd64.zip
chmod +x azurehound
sudo mv azurehound /usr/local/bin/
azurehound --version
Moving the binary to /usr/local/bin places it on the default PATH for every user. If you prefer a per-user installation, use ~/.local/bin instead and make sure that directory is on your PATH.
Option B: Distribution package
On Kali Linux, Azurehound is available directly from the repositories:
sudo apt update && sudo apt install azurehound
Homebrew users on Linux can run brew install azurehound. Package managers handle PATH placement and updates for you, which is ideal for long-lived testing machines.
Installing Azurehound on macOS
Option A: Homebrew (recommended)
brew install azurehound
azurehound --version
Homebrew is the cleanest route on a Mac. It chooses the right build for Intel or Apple Silicon automatically.
Option B: Release binary
Download azurehound-darwin-arm64.zip for Apple Silicon or azurehound-darwin-amd64.zip for Intel Macs, then:
unzip azurehound-darwin-arm64.zip
chmod +x azurehound
xattr -d com.apple.quarantine azurehound
sudo mv azurehound /usr/local/bin/
The xattr command removes the quarantine attribute that Gatekeeper attaches to downloaded files. Without it, macOS may refuse to open the binary because it is not notarised.
Building Azurehound From Source
Building from source is useful when you need the newest changes or your organisation requires internally compiled tools.
- Install Go. The current README specifies Go 1.25 or later. Check with
go version. - Obtain the source, either the main-branch ZIP from our download section or a clone:
git clone https://github.com/SpecterOps/AzureHound.git
cd AzureHound
- Build:
go build -ldflags="-s -w" -o azurehound
On Windows, name the output azurehound.exe. Go can also cross-compile: setting GOOS=windows GOARCH=amd64 before the build command on Linux produces a Windows binary, which is handy for preparing tools on a single build server.
- Confirm the result with
./azurehound --version.
The README also documents an -X linker flag that embeds a version string. Including it helps you track exactly which build produced each collection.
Installing BloodHound to Receive the Data
Azurehound only collects data. To visualise it, you need BloodHound. The current Community Edition runs as a set of containers, so you will typically need Docker and Docker Compose. Once BloodHound CE is running, you sign in through a web browser and upload Azurehound's JSON output. Setting both components up on the same machine keeps the workflow simple, though larger teams often run BloodHound on a shared server instead.
Post-Installation Checklist
| Check | Command or action | Expected result |
|---|---|---|
| Binary runs | azurehound --version | Version string printed |
| Help works | azurehound list --help | List of object types and flags |
| PATH correct | Run from a different folder | Command found |
| Output folder | Create a secure directory | Restricted permissions |
| BloodHound ready | Open the web interface | Login page loads |
Spend a moment on the output folder. Azurehound files contain a detailed map of your privileged identities. Store them in an encrypted location with access limited to the people who need them.
Common Installation Problems
"command not found": the folder is not on your PATH, or you opened the terminal before updating PATH. Reopen the terminal or call the binary with its full path.
"permission denied": the execute bit is missing. Run chmod +x azurehound.
macOS says the app is damaged or cannot be verified: remove the quarantine attribute with xattr, or install through Homebrew.
Go build errors mentioning language features: your Go version is older than the project requires. Upgrade Go and rebuild.
Endpoint protection deletes the file: verify its origin, then arrange a formal exclusion rather than disabling protection.
Updating an Existing Installation
Updates follow the same path as installation. Package managers handle them with apt upgrade or brew upgrade. For manual installs, download the new release and replace the old binary. Keep a note of the version you use for each assessment, because collector changes can affect what appears in BloodHound.
Running Azurehound in Containers and Automation Runners
Not every installation is a laptop. Many teams run Azurehound inside a container or on a CI/CD runner so collections can be scheduled and audited centrally. Because Azurehound is a single static binary, it fits neatly into a minimal container image.
A simple approach is a multi-stage build: compile Azurehound in a Go build stage, then copy only the resulting binary into a small runtime image. The final image contains nothing but the collector and the certificates needed for HTTPS, which reduces both size and attack surface.
FROM golang:1.25 AS build
WORKDIR /src
COPY . .
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /azurehound
FROM gcr.io/distroless/static
COPY --from=build /azurehound /azurehound
ENTRYPOINT ["/azurehound"]
When running the container, mount the certificate and key read-only, pass the tenant and application ID through environment variables, and write output to a mounted volume with restricted permissions. Never bake credentials into the image itself.
On automation runners, the same principles apply. Store credentials in the platform's secret store, restrict which pipelines can access them, and make sure job logs do not echo sensitive values. Retain the output as a protected artefact for the shortest period that your process allows, then move it to secure long-term storage or delete it.
Choosing between a workstation and a runner
A workstation is ideal for ad hoc assessments and learning. A runner or container suits recurring internal collections where consistency, scheduling and logging matter more than interactivity. Many organisations use both: analysts experiment locally, while the official monthly collection runs from a controlled pipeline.
Key Takeaways
- Azurehound installs as a single executable, so setup is mostly about PATH and permissions.
- Homebrew and Kali's apt package provide the smoothest installation and update experience.
- Remove the macOS quarantine attribute and set the execute bit on Linux when using release archives.
- Building from source requires a current Go toolchain, presently Go 1.25 or later.
- Prepare a protected output folder and a running BloodHound instance before the first collection.
- Containers and automation runners are excellent homes for scheduled, auditable collections.
FAQs
sudo apt remove azurehound or brew uninstall azurehound if you used a package manager.Conclusion
An Azurehound install is quick on every platform: extract or install the binary, ensure it is executable and on your PATH, and confirm the version. Homebrew and Kali's apt package offer the smoothest experience, release binaries suit portable toolkits, and building from source gives full control. With Azurehound installed and BloodHound ready to receive data, you can move confidently to your first authorised collection.


