Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
BloodTrail — In-memory graph engine driver for BloodHound CE that accelerates attack-path and Cypher queries on large Active Directory and Entra forests, delegating inexact reads to PostgreSQL. | Kitploit
Tools/GitHubGitHub/mihhailsokolov/bloodtrail
Network MappingVulnerability AnalysisInformation GatheringPenetration TestingUtilities & FrameworksIdentity & Access Management (IAM)Red Teaming
GitHub
Share
mihhailsokolov/bloodtrail

BloodTrail

In-memory graph engine driver for BloodHound CE that accelerates attack-path and Cypher queries on large Active Directory and Entra forests, delegating inexact reads to PostgreSQL.

View Repository
17Dec 5, 2026Not yet reviewed

BloodTrail

An in-memory graph engine underneath BloodHound CE, packaged as a DAWGS driver, so that attack-path analysis and every other graph query stay fast on large Active Directory environments and ordinary hardware.

Shortest paths, the structural queries BloodHound's own code issues, and a broad surface of Cypher -- including the pre-built queries the UI ships (on a large graph, all but a few shortest-path searches), and OpenGraph data -- are served from an in-memory replica that is kept in sync with PostgreSQL write by write. Anything the engine cannot answer exactly as PostgreSQL would is delegated to PostgreSQL, so apart from a few narrow documented cases (below; WHITEPAPER.md §19 lists them) the only difference you should see is latency. On a 1M-node forest under BloodHound v9.7.0, every shipped query plus a set of adversarial ones runs in 7.9s instead of 85.6s (BENCHMARK.md).

How it works, from the background up, is in WHITEPAPER.md.

Quick start

On the host that runs your BloodHound CE docker compose deployment (BloodHound v9.6.0 or newer -- see Upstream versions), from the directory that holds its compose file:

curl -fsSL https://github.com/MihhailSokolov/BloodTrail/releases/latest/download/install.sh | sh -s -- install

The installer shows what it found and asks before changing anything. It backs up the application database, the compose file and .env, migrates the graph from Neo4j to PostgreSQL if needed, switches the bloodhound service to the BloodTrail image, and verifies the result. If your deployment still runs Neo4j, pause ingestion first (see Operating notes). Then set a memory target (how).

To undo everything, run the same one-liner with rollback from the same directory:

curl -fsSL https://github.com/MihhailSokolov/BloodTrail/releases/latest/download/install.sh | sh -s -- rollback

Contents

  • Quick start
  • Why
  • How it works
  • Installing -- upgrading, operating notes, memory target, fast restarts
  • Configuration
  • Log markers
  • What is accelerated, and what is not -- OpenGraph
  • Upstream versions
  • Developing and testing -- repository layout
  • Licence

Why

BloodHound answers multi-hop questions by asking its graph database to expand a frontier hop by hop: through Neo4j's record store, or through a PL/pgSQL breadth-first harness on PostgreSQL. On large forests the shipped "shortest paths" queries time out, and the official sizing guidance above 50,000 users is 96 GB of RAM.

The part of the graph that path questions need -- node ids, node kinds and edge kinds -- fits in well under a gigabyte for 5 million nodes and 50 million edges as compressed-sparse-row arrays, and a single CPU core sweeps every edge in under a second (bench/csrbench). On a 1M-node hybrid AD/Entra forest, the worst shipped prebuilt goes from 49 seconds to 63ms; 122 of 182 benchmark scenarios are faster, the worst case is 1.5x slower (20ms against 13ms), and the cost is memory. BENCHMARK.md has every scenario, the method, and what the numbers do not show.

How it works

  • A driver, not a fork. BloodTrail is a DAWGS driver named bloodtrail, selected by BloodHound's database_switch table (or bhe_graph_driver when that table has no row); the installer sets both. BloodHound's ingest, analysis, API and UI are unchanged. The image is BloodHound's own Dockerfile plus a small patch (patches/bloodhound-driver.patch).
  • An in-memory replica. The driver keeps the graph in compact arrays (dense node ids, forward and reverse adjacency, one bitmap per node kind) plus every node's property bag and a few indexes PostgreSQL does not have. Edge properties stay in PostgreSQL and are fetched for the edges a result actually returns.
  • Serve or delegate. Reads made through BloodHound's read transactions are offered to one of three serving paths -- a shortest-path engine, a recognizer for BloodHound's structural builder queries, and a Cypher interpreter. If the engine cannot guarantee PostgreSQL's exact answer, the read goes to PostgreSQL unchanged.
  • Write-through. Writes go to PostgreSQL first. Before the call returns, the driver re-reads the rows the write touched and layers them onto the replica as an immutable delta, so the very next query already sees the write. The few writes that cannot be followed that way switch the engine to a fallback mode -- every query goes to PostgreSQL -- while the replica reloads in the background.
  • Fast restarts. With BLOODTRAIL_SNAPSHOT_DIR set, the replica is saved to disk and reused at the next boot, but only when a write counter in PostgreSQL, and the lineage it counts in, prove the file is complete; otherwise the boot rebuilds from PostgreSQL.

WHITEPAPER.md covers each of these in depth, with references to the code.

Installing

BloodTrail ships as a patched BloodHound image plus an installer CLI. On the host that runs the compose deployment, from the directory that holds its compose file:

curl -fsSL https://github.com/MihhailSokolov/BloodTrail/releases/latest/download/install.sh | sh -s -- install

The bootstrap script downloads the latest released CLI for your platform, verifies its checksum (sha256sum where available, shasum -a 256 on stock macOS), runs it with the arguments you pass after --, and deletes it again. So every command -- install, status, verify, rollback -- is run the same way, with its name in place of install. The CLI looks for docker-compose.yml in the current directory; pass --compose-file (and, if the project lives elsewhere, --project-dir) otherwise.

The script refuses to run a download unless checksums.txt holds exactly one well-formed SHA-256 entry for the archive, and that entry matches. It runs the CLI from a temporary directory under TMPDIR (default /tmp); on a host whose /tmp is mounted noexec, set TMPDIR to a directory that allows running programs. Each download is time-limited: 15 seconds to connect, 10 minutes in all for the archive and 1 minute for checksums.txt. A stalled connection then ends with a message saying what to try, not a hang.

  • Confirmation. install and rollback show what they will change and ask first, reading the answer from the terminal; add --yes to run them unattended.

  • Pinning a release. To run the exact release you audited instead of latest, set BLOODTRAIL_VERSION:

    curl -fsSL https://github.com/MihhailSokolov/BloodTrail/releases/latest/download/install.sh | BLOODTRAIL_VERSION=v0.1.2 sh -s -- install
    
Download Tool

Related Tools

  • nmap

    High-performance network discovery and security auditing tool with advanced port scanning, OS detection, service version detection, and scriptable NSE engine for automated reconnaissance and vulnerability assessment.

  • masscan

    TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes.

  • zmap

    ZMap is a fast single packet network scanner designed for Internet-wide network surveys.

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    1.3k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    761
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher platform that deploys a rogue GSM cell to intercept SMS, inject messages and track mobile devices

    690
  • 4

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    509
  • 5

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    448
  • 6

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    432

Explore all tools

Browse our collection of tools

View all tools →