# otrf/threathunter-playbook architecture

> Architecture diagram of the GitHub repository otrf/threathunter-playbook, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/otrf/threathunter-playbook
- Repository: https://github.com/otrf/threathunter-playbook

## Overview

The Threat Hunter Playbook is a community knowledge and detection-development project: analysts use its learning materials, technical library, and ATT&CK-aligned hunt notebooks to study adversary behavior and develop detections against recorded security data. The repository also includes APT29 evaluation-report generation and ATT&CK group-content generation. README statements support the notebook, dataset, and Binder workflow; sampled scripts show catalog and report-generation behavior. The evidence does not establish runtime wiring among most content areas, so those links are omitted.

Main entry points: [`docs/hunts/windows`](https://github.com/otrf/threathunter-playbook/tree/master/docs/hunts/windows) (Guided Hunt Notebooks), [`resources/scripts/create_evals_report.py`](https://github.com/otrf/threathunter-playbook/blob/master/resources/scripts/create_evals_report.py) (APT29 Evaluation Content), [`resources/scripts/create_book.py`](https://github.com/otrf/threathunter-playbook/blob/master/resources/scripts/create_book.py) (Book Catalog Generator), [`resources/scripts/create_actor_files.py`](https://github.com/otrf/threathunter-playbook/blob/master/resources/scripts/create_actor_files.py) (Actor Page Generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning Materials"]
  node_tutorials["Jupyter Tutorials"]
  node_prehunt["Pre-hunt Guidance"]
end

subgraph group_research["Hunt Research"]
  node_hunts["Guided Hunt Notebooks"]
  node_datasets[("Recorded Security Data")]
  node_binder["Binder Environment<br/>[requirements.txt]"]
  node_evaluation["APT29 Evaluation Content"]
end

subgraph group_reference["Reference Content"]
  node_library["Technical Knowledge Library"]
  node_cti["ATT&amp;CK Group Resources"]
  node_techniques["Hunting Techniques"]
  node_signatures["YARA Signatures"]
end

subgraph group_generation["Content Generation"]
  node_bookgen["Book Catalog Generator<br/>[create_book.py]"]
  node_actorfiles["Actor Page Generator"]
  node_vendorjson["Vendor Results Generator"]
  node_vendoranalysis["Vendor Coverage Analysis"]
end

node_analyst(("Analyst"))

node_analyst -->|"learns from"| node_tutorials
node_analyst -->|"uses guidance"| node_prehunt
node_analyst -->|"runs detections"| node_hunts
node_hunts -->|"queries against"| node_datasets
node_hunts -->|"runs remotely"| node_binder
node_analyst -->|"consults"| node_library
node_bookgen -->|"indexes metadata"| node_hunts
node_actorfiles -->|"writes pages"| node_cti
node_vendorjson -.->|"prepares results"| node_evaluation
node_vendoranalysis -.->|"analyzes coverage"| node_evaluation

click node_tutorials "https://github.com/otrf/threathunter-playbook/tree/master/docs/tutorials"
click node_prehunt "https://github.com/otrf/threathunter-playbook/tree/master/docs/pre-hunt"
click node_hunts "https://github.com/otrf/threathunter-playbook/tree/master/docs/hunts/windows"
click node_binder "https://github.com/otrf/threathunter-playbook/blob/master/binder/requirements.txt"
click node_evaluation "https://github.com/otrf/threathunter-playbook/blob/master/resources/scripts/create_evals_report.py"
click node_library "https://github.com/otrf/threathunter-playbook/tree/master/docs/library"
click node_cti "https://github.com/otrf/threathunter-playbook/tree/master/resources/cti"
click node_techniques "https://github.com/otrf/threathunter-playbook/blob/master/resources/HUNTING_TECHNIQUES.md"
click node_signatures "https://github.com/otrf/threathunter-playbook/tree/master/signatures/yara"
click node_bookgen "https://github.com/otrf/threathunter-playbook/blob/master/resources/scripts/create_book.py"
click node_actorfiles "https://github.com/otrf/threathunter-playbook/blob/master/resources/scripts/create_actor_files.py"
click node_vendorjson "https://github.com/otrf/threathunter-playbook/blob/master/resources/scripts/create_vendor_json.py"
click node_vendoranalysis "https://github.com/otrf/threathunter-playbook/blob/master/resources/scripts/create_vendor_pandas.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_tutorials,node_prehunt toneBlue
class node_hunts,node_datasets,node_binder,node_evaluation toneAmber
class node_library,node_cti,node_techniques,node_signatures toneMint
class node_bookgen,node_actorfiles,node_vendorjson,node_vendoranalysis toneRose
class node_analyst toneIndigo
```

## Components

### Learning Materials

- [Jupyter Tutorials](https://github.com/otrf/threathunter-playbook/tree/master/docs/tutorials): `docs/tutorials`
- [Pre-hunt Guidance](https://github.com/otrf/threathunter-playbook/tree/master/docs/pre-hunt): `docs/pre-hunt`

### Hunt Research

- [Guided Hunt Notebooks](https://github.com/otrf/threathunter-playbook/tree/master/docs/hunts/windows): `docs/hunts/windows`
- **Recorded Security Data**
- [Binder Environment](https://github.com/otrf/threathunter-playbook/blob/master/binder/requirements.txt): `binder/requirements.txt`
- [APT29 Evaluation Content](https://github.com/otrf/threathunter-playbook/blob/master/resources/scripts/create_evals_report.py): `resources/scripts/create_evals_report.py`

### Reference Content

- [Technical Knowledge Library](https://github.com/otrf/threathunter-playbook/tree/master/docs/library): `docs/library`
- [ATT&CK Group Resources](https://github.com/otrf/threathunter-playbook/tree/master/resources/cti): `resources/cti`
- [Hunting Techniques](https://github.com/otrf/threathunter-playbook/blob/master/resources/HUNTING_TECHNIQUES.md): `resources/HUNTING_TECHNIQUES.md`
- [YARA Signatures](https://github.com/otrf/threathunter-playbook/tree/master/signatures/yara): `signatures/yara`

### Content Generation

- [Book Catalog Generator](https://github.com/otrf/threathunter-playbook/blob/master/resources/scripts/create_book.py): `resources/scripts/create_book.py`
- [Actor Page Generator](https://github.com/otrf/threathunter-playbook/blob/master/resources/scripts/create_actor_files.py): `resources/scripts/create_actor_files.py`
- [Vendor Results Generator](https://github.com/otrf/threathunter-playbook/blob/master/resources/scripts/create_vendor_json.py): `resources/scripts/create_vendor_json.py`
- [Vendor Coverage Analysis](https://github.com/otrf/threathunter-playbook/blob/master/resources/scripts/create_vendor_pandas.py): `resources/scripts/create_vendor_pandas.py`

### Other components

- **Analyst**

## Connections

- Analyst → Jupyter Tutorials: learns from (evidence: `README.md`)
- Analyst → Pre-hunt Guidance: uses guidance (evidence: `README.md`)
- Analyst → Guided Hunt Notebooks: runs detections (evidence: `README.md`)
- Guided Hunt Notebooks → Recorded Security Data: queries against (evidence: `README.md`)
- Guided Hunt Notebooks → Binder Environment: runs remotely (evidence: `README.md`)
- Analyst → Technical Knowledge Library: consults (evidence: `README.md`)
- Book Catalog Generator → Guided Hunt Notebooks: indexes metadata (evidence: `resources/scripts/create_book.py`)
- Actor Page Generator → ATT&CK Group Resources: writes pages (evidence: `resources/scripts/create_actor_files.py`)
- Vendor Results Generator → APT29 Evaluation Content: prepares results
- Vendor Coverage Analysis → APT29 Evaluation Content: analyzes coverage
