# BloodHound: query an identity graph Query an identity graph. ## 1. Run the example [Download the BloodHound example](https://www.security.run/docs/examples/bloodhound.zip). Extract it, install `httpx`, set your API URL and token, then run `python client.py`. The client uploads the included inputs, submits the command, and saves the result under `results/RUN_ID`. ## 2. Check the result Read graph-result.json for the query result and negative-result.json for the comparison. Read the native exit code and cleanup status printed by the client. [Read results and save reports](https://www.security.run/docs/visibility.html) explains the returned files. ## 3. Use your own inputs Edit `example.json` to change the command arguments, requested outputs or deadline. Replace the files under `inputs/` with your own data, keeping the staged paths aligned with the command. The client creates the artifact IDs for you; illustrative IDs shown here must not be copied into a live request. ### Files used by this example - `run.py` - `config.json` - `graph.zip` - `query.txt` The example uses supplied files or the disposable execution environment. Nothing from the environment carries into a later run unless you request and reuse its output. Qualified version: `9.9.2`. Commands: `bloodhound`, `python`, `postgres`, `initdb`, `pg_ctl`, `psql`, `createdb`. - Includes the native CE server and PostgreSQL 17 tools. Supply server/database configuration and identity-graph input, including crypto.argon2 memory settings within the executor budget. Upstream password-hash defaults exceed the 1 GiB resource class; large graph analysis also requires a larger executor. Inspect `GET /v1/tools/bloodhound` for the current installed version and readiness. The published snapshot has 1 functional case(s), plus timeout and cancellation checks. These examples demonstrate the native path; other flags and inputs are supported within the tool’s runtime limits. ## Command submitted by the example ```json { "tool": "bloodhound", "timeout_seconds": 90, "invocation": { "args": [ "run.py" ], "outputs": [ "graph-result.json", "negative-result.json" ], "success_exit_codes": [ 0 ], "environment": { "GOMEMLIMIT": "256MiB", "GOGC": "50" }, "executable": "python", "files": [ { "path": "run.py", "artifact_id": "artifact_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "executable": false }, { "path": "config.json", "artifact_id": "artifact_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "executable": false }, { "path": "graph.zip", "artifact_id": "artifact_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "executable": false }, { "path": "query.txt", "artifact_id": "artifact_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "executable": false } ] } } ```