whatisgithub

What is ghosthound?

jvbotelho/ghosthound — explained in plain English

Analysis updated 2026-05-18

39RustAudience · ops devopsComplexity · 4/5Setup · hard

In one sentence

A security tool that finds deleted Active Directory accounts that can be restored with their old permissions, and maps that risk into BloodHound.

Mindmap

mindmap
  root((GhostHound))
    What it does
      Finds deleted AD accounts
      Checks who can restore them
      Maps risk into BloodHound
    Tech stack
      Rust
      LDAP
      Neo4j Cypher
    Use cases
      Penetration testing
      Detection lab research
      AD security audits
    Audience
      Security researchers
      Red teamers
    Requirements
      Admin level access
      Reachable domain controller

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Scan a domain you are authorized to test for deleted accounts that could still be restored with old privileges.

USE CASE 2

Feed the results into BloodHound to visualize a full attack path involving a reanimated account.

USE CASE 3

Use it in a detection lab to research how tombstone reanimation attacks work.

What is it built with?

RustLDAPNeo4jCypher

How does it compare?

jvbotelho/ghosthoundbbalabs/athanor-liteepiskey-g/groksearch-rs
Stars393840
LanguageRustRustRust
Setup difficultyhardeasymoderate
Complexity4/52/53/5
Audienceops devopsvibe coderdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Needs administrator equivalent rights on the target domain and a reachable domain controller.

No license information was found in the README.

So what is it?

GhostHound is a security tool built for people who audit Active Directory, the system many companies use to manage user accounts and permissions across their network. It plugs into BloodHound, a well known tool that maps out who can access what inside a company's network, and adds something BloodHound normally misses: deleted accounts. When an account in Active Directory gets deleted, it does not vanish right away. It becomes a tombstone, a kind of ghost record that can sometimes be restored, along with whatever access it used to have. Most security tools skip over these tombstones entirely, which means a real risk goes unnoticed: if someone can bring a deleted account back to life, they may also inherit its old permissions, including admin level access. GhostHound finds these tombstones, works out who is allowed to restore them, and shows the result as a clear map that plugs directly into BloodHound so a security analyst can see the full attack path. This is explicitly an offensive security tool for authorized penetration testers and researchers running detection labs. It requires administrator level access to the target domain to even see the deleted objects, since Active Directory hides them from regular accounts by design. Under the hood it is organized as a set of Rust libraries: one builds the BloodHound compatible output, one parses low level Windows security permissions from scratch to avoid a licensing conflict with an existing tool, and one handles the actual scanning of deleted objects over the network. The project documents its own design choices in a dedicated folder, including why it chose Rust and how it approached licensing. It connects securely by default and includes fallback options for lab environments with self signed certificates, alongside safety limits so the tool fails quickly instead of hanging when a server is unreachable.

Copy-paste prompts

Prompt 1
Explain what an Active Directory tombstone is and why a deleted account could still be a security risk.
Prompt 2
Walk me through installing GhostHound and running it against a lab domain controller.
Prompt 3
Show me how to import GhostHound's JSON output into BloodHound CE.
Prompt 4
What administrator permissions does GhostHound need and why can't a normal account see deleted objects?

Frequently asked questions

What is ghosthound?

A security tool that finds deleted Active Directory accounts that can be restored with their old permissions, and maps that risk into BloodHound.

What language is ghosthound written in?

Mainly Rust. The stack also includes Rust, LDAP, Neo4j.

What license does ghosthound use?

No license information was found in the README.

How hard is ghosthound to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is ghosthound for?

Mainly ops devops.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.