# reddelexc/hackerone-reports architecture

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

- Interactive diagram: https://gitdiagram.com/reddelexc/hackerone-reports
- Repository: https://github.com/reddelexc/hackerone-reports

## Overview

This repository maintains a public collection of disclosed HackerOne reports and publishes ranked lists. The documented workflow fetches new report links, removes duplicates, enriches report details, then aggregates the data into rankings. The main branches are the top-100 lists, vulnerability-type lists, and program lists, with a category index used by the published site. The README documents the run order; source excerpts show the CSV and report-generation behavior. The site’s client-side wiring was not sampled, so no UI-to-data relationships are asserted.

Main entry points: [`rater.py`](https://github.com/reddelexc/hackerone-reports/blob/master/rater.py) (Aggregate and rank), [`data.csv`](https://github.com/reddelexc/hackerone-reports/blob/master/data.csv) (Report dataset), [`docs/index.html`](https://github.com/reddelexc/hackerone-reports/blob/master/docs/index.html) (Published reports site), [`filler.py`](https://github.com/reddelexc/hackerone-reports/blob/master/filler.py) (Enrich report data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Report collection"]
  node_fetcher["Fetch report links<br/>[fetcher.py]"]
end

subgraph group_curation["Data curation"]
  node_filler["Enrich report data<br/>[filler.py]"]
  node_uniquer["Remove duplicates<br/>[uniquer.py]"]
  node_csv[("Report dataset<br/>[data.csv]")]
end

subgraph group_rankings["Ranked reports"]
  node_rater["Aggregate and rank<br/>[rater.py]"]
  node_top100["Top 100 lists"]
  node_bug_lists["Bug-type lists"]
  node_program_lists["Program lists"]
end

subgraph group_publication["Published site"]
  node_category_index["Category index<br/>[categories.json]"]
  node_site["Published reports site<br/>[index.html]"]
end

node_operator(("Maintainer"))
node_hackerone(("HackerOne"))
node_report_api(("Report details API"))

node_operator -->|"runs first"| node_fetcher
node_fetcher -->|"scrapes links"| node_hackerone
node_fetcher -->|"reads and writes"| node_csv
node_operator -->|"runs second"| node_uniquer
node_csv -->|"reads entries"| node_uniquer
node_uniquer -->|"writes unique rows"| node_csv
node_operator -->|"runs third"| node_filler
node_csv -->|"reads reports"| node_filler
node_filler -->|"requests details"| node_report_api
node_filler -->|"writes enriched rows"| node_csv
node_operator -->|"runs fourth"| node_rater
node_csv -->|"reads reports"| node_rater
node_rater -->|"writes rankings"| node_top100
node_rater -->|"writes rankings"| node_bug_lists
node_rater -->|"writes rankings"| node_program_lists
node_rater -->|"writes categories"| node_category_index
node_site -.->|"publishes lists"| node_top100
node_site -.->|"publishes lists"| node_bug_lists
node_site -.->|"publishes lists"| node_program_lists
node_site -.->|"uses categories"| node_category_index

click node_fetcher "https://github.com/reddelexc/hackerone-reports/blob/master/fetcher.py"
click node_filler "https://github.com/reddelexc/hackerone-reports/blob/master/filler.py"
click node_uniquer "https://github.com/reddelexc/hackerone-reports/blob/master/uniquer.py"
click node_csv "https://github.com/reddelexc/hackerone-reports/blob/master/data.csv"
click node_rater "https://github.com/reddelexc/hackerone-reports/blob/master/rater.py"
click node_top100 "https://github.com/reddelexc/hackerone-reports/tree/master/docs/tops_100"
click node_bug_lists "https://github.com/reddelexc/hackerone-reports/tree/master/docs/tops_by_bug_type"
click node_program_lists "https://github.com/reddelexc/hackerone-reports/tree/master/docs/tops_by_program"
click node_category_index "https://github.com/reddelexc/hackerone-reports/blob/master/docs/categories.json"
click node_site "https://github.com/reddelexc/hackerone-reports/blob/master/docs/index.html"

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_fetcher toneBlue
class node_filler,node_uniquer,node_csv toneAmber
class node_rater,node_top100,node_bug_lists,node_program_lists,node_report_api toneMint
class node_category_index,node_site toneRose
class node_operator,node_hackerone toneIndigo
```

## Components

### Report collection

- [Fetch report links](https://github.com/reddelexc/hackerone-reports/blob/master/fetcher.py): `fetcher.py`

### Data curation

- [Enrich report data](https://github.com/reddelexc/hackerone-reports/blob/master/filler.py): `filler.py`
- [Remove duplicates](https://github.com/reddelexc/hackerone-reports/blob/master/uniquer.py): `uniquer.py`
- [Report dataset](https://github.com/reddelexc/hackerone-reports/blob/master/data.csv): `data.csv`

### Ranked reports

- [Aggregate and rank](https://github.com/reddelexc/hackerone-reports/blob/master/rater.py): `rater.py`
- [Top 100 lists](https://github.com/reddelexc/hackerone-reports/tree/master/docs/tops_100): `docs/tops_100`
- [Bug-type lists](https://github.com/reddelexc/hackerone-reports/tree/master/docs/tops_by_bug_type): `docs/tops_by_bug_type`
- [Program lists](https://github.com/reddelexc/hackerone-reports/tree/master/docs/tops_by_program): `docs/tops_by_program`

### Published site

- [Category index](https://github.com/reddelexc/hackerone-reports/blob/master/docs/categories.json): `docs/categories.json`
- [Published reports site](https://github.com/reddelexc/hackerone-reports/blob/master/docs/index.html): `docs/index.html`

### Other components

- **Maintainer**
- **HackerOne**
- **Report details API**

## Connections

- Maintainer → Fetch report links: runs first (evidence: `README.md`)
- Fetch report links → HackerOne: scrapes links (evidence: `fetcher.py`)
- Fetch report links → Report dataset: reads and writes (evidence: `fetcher.py`)
- Maintainer → Remove duplicates: runs second (evidence: `README.md`)
- Report dataset → Remove duplicates: reads entries (evidence: `uniquer.py`)
- Remove duplicates → Report dataset: writes unique rows (evidence: `uniquer.py`)
- Maintainer → Enrich report data: runs third (evidence: `README.md`)
- Report dataset → Enrich report data: reads reports (evidence: `filler.py`)
- Enrich report data → Report details API: requests details (evidence: `filler.py`)
- Enrich report data → Report dataset: writes enriched rows (evidence: `filler.py`)
- Maintainer → Aggregate and rank: runs fourth (evidence: `README.md`)
- Report dataset → Aggregate and rank: reads reports (evidence: `rater.py`)
- Aggregate and rank → Top 100 lists: writes rankings (evidence: `rater.py`)
- Aggregate and rank → Bug-type lists: writes rankings (evidence: `rater.py`)
- Aggregate and rank → Program lists: writes rankings (evidence: `rater.py`)
- Aggregate and rank → Category index: writes categories (evidence: `rater.py`)
- Published reports site → Top 100 lists: publishes lists (evidence: `README.md`)
- Published reports site → Bug-type lists: publishes lists (evidence: `README.md`)
- Published reports site → Program lists: publishes lists (evidence: `README.md`)
- Published reports site → Category index: uses categories
