Metadata-Version: 2.5
Name: openhound-sample
Version: 0.0.1
Summary: An extension for OpenHound to generate synthetic data for testing and development purposes.
Author-email: Joey Dreijer <jdreijer@specterops.io>
License-File: LICENSE
Requires-Python: >=3.14
Requires-Dist: faker>=40.54.0
Description-Content-Type: text/markdown

<p align="center">
  <a href="https://specterops.io" target="_blank">
    <img alt="A project powered by SpecterOps - Creators of BloodHound" src=".github/GitHub-Header.png" width="100%" style="max-width: 100%;">
  </a>
</p>

<h4 align="center">
  A BloodHound OpenHound extension for synthetic data
</h4>

<!-- Standard shields, please do not remove -->
<p align="center">
  <a href="https://slack.specterops.io"><img src="https://custom-icon-badges.demolab.com/badge/Slack-BloodHound%20Gang-4A154B?logo=slack&logoColor=fff" alt="Slack"/></a>
  <a href="https://reddit.com/r/SpecterOpsCommunity"><img src="https://img.shields.io/badge/Reddit-r/SpecterOpsCommunity-FF4500?logo=reddit&logoColor=white" alt="SpecterOps on Reddit"/></a>
  <a href="https://community.specterops.io"><img src="https://img.shields.io/badge/Discord-SpecterOps-%235865F2.svg?&logo=discord&logoColor=white" alt="SpecterOps on Discord"/></a>
  <a href="https://github.com/specterops"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fspecterops%2F.github%2Fmain%2Fconfig%2Fshield.json&style=flat" alt="Sponsored by SpecterOps"/></a>
</p>


<p align="center">
  <a href="https://x.com/SpecterOps"><img src="https://img.shields.io/twitter/follow/SpecterOps?style=social" alt="@SpecterOps on Twitter"/></a>
  <a href="https://www.linkedin.com/company/specterops/"><img src="https://custom-icon-badges.demolab.com/badge/LinkedIn-0A66C2?logo=linkedin-white&logoColor=fff" alt="Connect on LinkedIn"/></a>
  <a href="https://infosec.exchange/@specterops"><img src="https://img.shields.io/mastodon/follow/109314317500800201?domain=https%3A%2F%2Finfosec.exchange&style=social" alt="Connect on Mastodon"/></a>
</p>

---

## About

OpenHound is a standardized framework for building OpenGraph collectors and converters. Built
on [DLT](https://dlthub.com/docs/intro) (Data Load Tool) and [Typer](https://typer.tiangolo.com/), it provides a
consistent workflow for collecting, processing, and converting data from any source into BloodHound-compatible graphs.
The OpenHound-sample extension generates synthetic resources to test OpenHound collection and OpenGraph conversion.

## Generated assets

| Table                       | Asset                     | Generation                             |
|-----------------------------|---------------------------|----------------------------------------|
| `sample_computer`           | `SampleComputer`          | Computers                              |
| `sample_user`               | `SampleUser`              | Users                                  |
| `sample_installed_software` | `SampleInstalledSoftware` | DLT transformer, parented by computers |
| `sample_environment`        | `SampleEnvironment`       | One shared environment node            |

## Configuration

`source(node_count=1000, software_per_computer=2)` generates `node_count`
computers, users, and `node_count * software_per_computer`
software installations.

Configure the CLI source through DLT's `.dlt/config.toml`:

```toml
[sources.source.sample]
node_count = 10
software_per_computer = 2
```

From the repository root, run the existing CLI launcher:

```bash
uv run python src/main.py collect sample ./collected
uv run python src/main.py preprocess sample ./collected/sample ./lookup.duckdb
uv run python src/main.py convert sample ./collected/sample ./graph --lookup-file ./lookup.duckdb
```
