bloodhound-export 0.1.0

BloodHound (SharpHound-compatible) JSON exporter for Rust — build a Snapshot of your AD collection, emit users/computers/groups/domains .json + ACE edges as a single ZIP that BloodHound CE ingests
Documentation
  • Coverage
  • 38.89%
    14 out of 36 items documented0 out of 0 items with examples
  • Size
  • Source code size: 40.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 436.3 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • icedracon

bloodhound-export

Crates.io Docs.rs License: MIT

Emit BloodHound-CE-compatible JSON from any Rust tool that collects Active Directory data. Extracted from ADhammer so LDAP scrapers, NTDS.dit walkers, and live-RPC enumerators can produce BH-ingestible ZIPs without pulling the whole ADhammer stack.

Part of the icedracon AD ecosystem.

Status

0.1.0 — first standalone release. Format targets BloodHound Community Edition ingest v5 / BloodHound ingest v5.x JSON: <domain>_users.json, <domain>_computers.json, <domain>_groups.json, <domain>_domains.json, packaged as a single ZIP.

Usage

use std::collections::HashMap;
use std::path::Path;
use bloodhound_export::{Snapshot, DomainInfo, AdObject, export_zip};

// Build up a snapshot from whatever collection you ran.
let mut alice = AdObject::default();
alice.dn = "CN=alice,CN=Users,DC=corp,DC=local".into();
alice.attrs.insert("sAMAccountName".into(), vec!["alice".into()]);
alice.attrs.insert("objectClass".into(), vec!["top".into(), "user".into()]);
alice.attrs.insert("userAccountControl".into(), vec!["66048".into()]);
alice.bin.insert(
    "objectSid".into(),
    vec![/* raw SID bytes from your LDAP/NTDS.dit read */ vec![]],
);
alice.bin.insert(
    "nTSecurityDescriptor".into(),
    vec![/* raw SD bytes — parsed by windows-sddl for edge extraction */ vec![]],
);

let mut domain = DomainInfo::default();
domain.domain_dn = "DC=corp,DC=local".into();
domain.netbios = Some("CORP".into());

let snap = Snapshot::new(domain, vec![alice /*, computers, groups, gpos, … */]);
export_zip(&snap, Path::new("bloodhound.zip")).unwrap();

Then in BloodHound CE: Upload Data → drag the ZIP.

What it outputs

  • <domain>_users.json — one node per user (SID, name, UAC-derived flags, group membership edges).
  • <domain>_computers.json — same shape, computers only.
  • <domain>_groups.json — group nodes + member edges.
  • <domain>_domains.json — the domain node + trust relationships.

ACE edges (GenericAll, WriteDacl, WriteOwner, GenericWrite, AllExtendedRights, ForceChangePassword, AddMember, ReadLAPSPassword, AllowedToDelegate, AddKeyCredentialLink) are extracted from each object's nTSecurityDescriptor bytes using [windows-sddl]. If you don't populate the SD blob, edges are just skipped — nodes still emit.

Deps

serde + serde_json (JSON) + windows-sddl (SD parse). ZIP is inline in this crate (no zip dep) — the format BloodHound accepts is deflate-optional and this crate emits STORE-method entries.

Related icedracon crates

License

MIT © 2026 zevs