Skip to content

Output Format

belettetimoree edited this page Nov 1, 2026 · 1 revision

Output Format

Soaphound.py writes BloodHound-compatible JSON next to a shared resolution cache. Every file sits in --output-dir (default: current working directory).

Default output layout

<output-dir>/
├── Cache.json                                 # SID/DN/GUID resolution map (not ingested by BloodHound)
├── <prefix><YYYYMMDDHHMMSS>_domains.json
├── <prefix><YYYYMMDDHHMMSS>_containers.json
├── <prefix><YYYYMMDDHHMMSS>_ous.json
├── <prefix><YYYYMMDDHHMMSS>_gpos.json
├── <prefix><YYYYMMDDHHMMSS>_groups.json
├── <prefix><YYYYMMDDHHMMSS>_users.json
├── <prefix><YYYYMMDDHHMMSS>_computers.json
├── <prefix><YYYYMMDDHHMMSS>_privilege_rights.json       # Default preset only
├── <prefix><YYYYMMDDHHMMSS>_gpp_passwords.json          # Default preset only, when found
├── <prefix><YYYYMMDDHHMMSS>_Soaphound_CertFind.json     # with --cert-find
├── <prefix><YYYYMMDDHHMMSS>_cert_find.txt               # with --cert-find
├── <prefix><YYYYMMDDHHMMSS>_Soaphound_TrustsAudit.txt   # with --trust-audit
└── <prefix><YYYYMMDDHHMMSS>_bloodhound.zip              # with --zip

The prefix is whatever string you pass to -op/--outputprefix. The timestamp is the start time of the run in YYYYMMDDHHMMSS.

Per-file schema

Each BloodHound-oriented JSON file carries the shape BloodHound CE already ingests: a meta block (object type, methods, count, version) and a data list of typed objects. The following table lists what Soaphound.py populates per type.

File BloodHound type What's inside
domains.json Domain Properties with functionallevel, distinguishedname, trusts subarray decoded from trustAttributes
containers.json Container Includes Configuration NC containers (Sites, Services, Partitions) when reachable
ous.json OU Full gPLink parsing to link GPOs → scope
gpos.json GPO Object only; the actual settings live in privilege_rights.json and in the GPO's Aces block (Default preset)
groups.json Group Including the four well-known security principals (DOMAIN USERS, DOMAIN COMPUTERS, AUTHENTICATED USERS, EVERYONE) injected for BloodHound graph completeness
users.json User UAC flags expanded (enabled, trustedtoauth, dontreqpreauth, pwdneverexpires), SPNs listed, hasspn=true set when Kerberoastable
computers.json Computer LAPS presence, dMSA attributes, OS metadata, allowed-to-delegate list; Sessions/LocalAdmins populated in Default preset

Cache.json

Cache.json is not a BloodHound ingest file. It is Soaphound's cross-pass resolution table. Three indexes keyed by the string form of the attribute:

  • IdToTypeCache — mapping of objectSid/objectGUID to the Kind (User, Computer, Group, OU, …) BloodHound expects on an edge endpoint.
  • ValueToIdCache — mapping of distinguishedName to objectSid/objectGUID so cross-referenced names resolve without a second DC round-trip.
  • IdToValueCache — reverse of the above, used when a DN needs to be printed back for diagnostics.

The cache is written to Cache.json by default, and to cache_<domain>.json on multi-domain forests to keep each domain scoped.

privilege_rights.json

Default-preset only. One JSON document:

{
  "domain": "corp.local",
  "data": {
    "SeImpersonatePrivilege": ["S-1-5-21-.../500", "S-1-5-21-.../513"],
    "SeAssignPrimaryTokenPrivilege": ["S-1-5-21-.../513"],
    "...": ["..."]
  }
}

Produced by SYSVOL enrichment: GptTmpl.inf is parsed under [Privilege Rights], the SIDs are collected across every GPO in scope, and the tracked privileges from _TRACKED_PRIVRIGHTS are kept.

gpp_passwords.json

Default-preset only, and only when at least one Groups.xml under SYSVOL carries a decryptable cpassword. Shape: {"count": N, "data": [...]} with one entry per account/password/filepath triple.

Zip archive structure

--zip bundles the BloodHound JSONs for ingestion:

  • Included: domains.json, containers.json, ous.json, gpos.json, groups.json, users.json, computers.json.
  • Excluded: Cache.json, privilege_rights.json, gpp_passwords.json, Soaphound_CertFind.*, Soaphound_TrustsAudit.*.

The archive is written as <prefix><timestamp>_bloodhound.zip next to the JSONs, so you can upload it directly through BloodHound CE's File Ingest UI.

References

Clone this wiki locally