# tawffik/bugbountyci architecture

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

- Interactive diagram: https://gitdiagram.com/tawffik/bugbountyci
- Repository: https://github.com/tawffik/bugbountyci

## Overview

Zero Track is an authorized-target bug-bounty reconnaissance and vulnerability-discovery pipeline, with GitHub Actions orchestration documented as its entry point. Its principal workflow gathers and ranks assets, discovers URLs and JavaScript, runs broad and targeted detection, then consolidates findings into artifacts and triage queues. The supplied tree is a selective subset, so documented capabilities without a represented implementation use null paths. Edges rely on README statements or shown source references; unsampled subsystem wiring is not inferred.

Main entry points: [`scripts/write_pipeline_exports.py`](https://github.com/tawffik/bugbountyci/blob/main/scripts/write_pipeline_exports.py) (Structured pipeline exports), [`pipeline/detection/engine.py`](https://github.com/tawffik/bugbountyci/blob/main/pipeline/detection/engine.py) (Detection engine framework), [`scripts/si2_from_js_deep.py`](https://github.com/tawffik/bugbountyci/blob/main/scripts/si2_from_js_deep.py) (Deep JS secret candidates), [`scripts/classify_info_disclosure_body.py`](https://github.com/tawffik/bugbountyci/blob/main/scripts/classify_info_disclosure_body.py) (Disclosure body classifier)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_recon["Reconnaissance"]
  node_orchestration["Pipeline orchestration"]
  node_asset_recon["Asset reconnaissance"]
  node_host_ranking["Host ranking"]
  node_target_order["Unified scan order"]
end

subgraph group_discovery["Discovery"]
  node_url_discovery["URL discovery"]
  node_js_analysis["JavaScript analysis"]
  node_deep_js_secrets["Deep JS secret candidates"]
  node_canonical_secrets["Canonical secret candidates"]
end

subgraph group_detection["Detection"]
  node_broad_detection["Broad vulnerability scans"]
  node_targeted_detection["Targeted vulnerability scans"]
  node_detection_framework["Detection engine framework<br/>[engine.py]"]
  node_access_control["Access-control checks"]
  node_open_redirect["Open-redirect checks"]
  node_ssrf["SSRF checks<br/>[ssrf_engine.py]"]
  node_info_classifier["Disclosure body classifier"]
  node_interactsh["Interactsh OOB integration<br/>[interactsh.py]"]
  node_fuzzing["Smart content fuzzing"]
end

subgraph group_triage["Triage and output"]
  node_exporter["Structured pipeline exports"]
  node_hunter_queue["Hunter triage queue"]
  node_reports["Reports and artifacts"]
  node_scan_diff["Previous-scan diff"]
  node_notifications["Discord notification"]
  node_sarif["SARIF security output"]
end

node_operator(("Scan operator"))

node_operator -->|"starts scan"| node_orchestration
node_orchestration -->|"runs recon"| node_asset_recon
node_asset_recon -->|"probes hosts"| node_host_ranking
node_host_ranking -->|"scores assets"| node_target_order
node_target_order -->|"prioritizes targets"| node_url_discovery
node_target_order -->|"orders scans"| node_broad_detection
node_target_order -->|"orders scans"| node_targeted_detection
node_url_discovery -->|"feeds URLs"| node_js_analysis
node_js_analysis -->|"provides JS results"| node_deep_js_secrets
node_deep_js_secrets -->|"canonicalizes candidates"| node_canonical_secrets
node_broad_detection -->|"exports findings"| node_exporter
node_targeted_detection -->|"exports findings"| node_exporter
node_targeted_detection -->|"includes fuzzing"| node_fuzzing
node_orchestration -.->|"runs engines"| node_detection_framework
node_detection_framework -->|"runs engine"| node_access_control
node_detection_framework -->|"runs engine"| node_open_redirect
node_detection_framework -->|"runs engine"| node_ssrf
node_targeted_detection -.->|"classifies disclosure"| node_info_classifier
node_targeted_detection -.->|"uses optional OOB"| node_interactsh
node_exporter -->|"imports classifier"| node_info_classifier
node_exporter -->|"writes artifacts"| node_reports
node_exporter -.->|"supplies triage data"| node_hunter_queue
node_orchestration -->|"compares runs"| node_scan_diff
node_reports -.->|"optionally notifies"| node_notifications
node_reports -->|"exports SARIF"| node_sarif

click node_deep_js_secrets "https://github.com/tawffik/bugbountyci/blob/main/scripts/si2_from_js_deep.py"
click node_canonical_secrets "https://github.com/tawffik/bugbountyci/blob/main/scripts/si2_canonicalize.py"
click node_detection_framework "https://github.com/tawffik/bugbountyci/blob/main/pipeline/detection/engine.py"
click node_access_control "https://github.com/tawffik/bugbountyci/blob/main/pipeline/detection/access_control_engine.py"
click node_open_redirect "https://github.com/tawffik/bugbountyci/blob/main/pipeline/detection/open_redirect_engine.py"
click node_ssrf "https://github.com/tawffik/bugbountyci/blob/main/pipeline/detection/ssrf_engine.py"
click node_info_classifier "https://github.com/tawffik/bugbountyci/blob/main/scripts/classify_info_disclosure_body.py"
click node_interactsh "https://github.com/tawffik/bugbountyci/blob/main/pipeline/detection/adapters/interactsh.py"
click node_fuzzing "https://github.com/tawffik/bugbountyci/tree/main/pipeline/smart-fuzzing"
click node_exporter "https://github.com/tawffik/bugbountyci/blob/main/scripts/write_pipeline_exports.py"
click node_hunter_queue "https://github.com/tawffik/bugbountyci/blob/main/pipeline/detection/hunter_queue_builder.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_orchestration,node_asset_recon,node_host_ranking,node_target_order toneBlue
class node_url_discovery,node_js_analysis,node_deep_js_secrets,node_canonical_secrets toneAmber
class node_broad_detection,node_targeted_detection,node_detection_framework,node_access_control,node_open_redirect,node_ssrf,node_info_classifier,node_interactsh,node_fuzzing toneMint
class node_exporter,node_hunter_queue,node_reports,node_scan_diff,node_notifications,node_sarif toneRose
class node_operator toneIndigo
```

## Components

### Reconnaissance

- **Pipeline orchestration**
- **Asset reconnaissance**
- **Host ranking**
- **Unified scan order**

### Discovery

- **URL discovery**
- **JavaScript analysis**
- [Deep JS secret candidates](https://github.com/tawffik/bugbountyci/blob/main/scripts/si2_from_js_deep.py): `scripts/si2_from_js_deep.py`
- [Canonical secret candidates](https://github.com/tawffik/bugbountyci/blob/main/scripts/si2_canonicalize.py): `scripts/si2_canonicalize.py`

### Detection

- **Broad vulnerability scans**
- **Targeted vulnerability scans**
- [Detection engine framework](https://github.com/tawffik/bugbountyci/blob/main/pipeline/detection/engine.py): `pipeline/detection/engine.py`
- [Access-control checks](https://github.com/tawffik/bugbountyci/blob/main/pipeline/detection/access_control_engine.py): `pipeline/detection/access_control_engine.py`
- [Open-redirect checks](https://github.com/tawffik/bugbountyci/blob/main/pipeline/detection/open_redirect_engine.py): `pipeline/detection/open_redirect_engine.py`
- [SSRF checks](https://github.com/tawffik/bugbountyci/blob/main/pipeline/detection/ssrf_engine.py): `pipeline/detection/ssrf_engine.py`
- [Disclosure body classifier](https://github.com/tawffik/bugbountyci/blob/main/scripts/classify_info_disclosure_body.py): `scripts/classify_info_disclosure_body.py`
- [Interactsh OOB integration](https://github.com/tawffik/bugbountyci/blob/main/pipeline/detection/adapters/interactsh.py): `pipeline/detection/adapters/interactsh.py`
- [Smart content fuzzing](https://github.com/tawffik/bugbountyci/tree/main/pipeline/smart-fuzzing): `pipeline/smart-fuzzing`

### Triage and output

- [Structured pipeline exports](https://github.com/tawffik/bugbountyci/blob/main/scripts/write_pipeline_exports.py): `scripts/write_pipeline_exports.py`
- [Hunter triage queue](https://github.com/tawffik/bugbountyci/blob/main/pipeline/detection/hunter_queue_builder.py): `pipeline/detection/hunter_queue_builder.py`
- **Reports and artifacts**
- **Previous-scan diff**
- **Discord notification**
- **SARIF security output**

### Other components

- **Scan operator**

## Connections

- Scan operator → Pipeline orchestration: starts scan (evidence: `README.md`)
- Pipeline orchestration → Asset reconnaissance: runs recon (evidence: `README.md`)
- Asset reconnaissance → Host ranking: probes hosts (evidence: `README.md`)
- Host ranking → Unified scan order: scores assets (evidence: `README.md`)
- Unified scan order → URL discovery: prioritizes targets (evidence: `README.md`)
- Unified scan order → Broad vulnerability scans: orders scans (evidence: `README.md`)
- Unified scan order → Targeted vulnerability scans: orders scans (evidence: `README.md`)
- URL discovery → JavaScript analysis: feeds URLs (evidence: `README.md`)
- JavaScript analysis → Deep JS secret candidates: provides JS results (evidence: `README.md`)
- Deep JS secret candidates → Canonical secret candidates: canonicalizes candidates (evidence: `scripts/si2_from_js_deep.py`)
- Broad vulnerability scans → Structured pipeline exports: exports findings (evidence: `README.md`)
- Targeted vulnerability scans → Structured pipeline exports: exports findings (evidence: `README.md`)
- Targeted vulnerability scans → Smart content fuzzing: includes fuzzing (evidence: `README.md`)
- Pipeline orchestration → Detection engine framework: runs engines
- Detection engine framework → Access-control checks: runs engine (evidence: `pipeline/detection/run_access_control.py`)
- Detection engine framework → Open-redirect checks: runs engine (evidence: `pipeline/detection/run_open_redirect.py`)
- Detection engine framework → SSRF checks: runs engine (evidence: `pipeline/detection/run_ssrf.py`)
- Targeted vulnerability scans → Disclosure body classifier: classifies disclosure
- Targeted vulnerability scans → Interactsh OOB integration: uses optional OOB
- Structured pipeline exports → Disclosure body classifier: imports classifier (evidence: `scripts/write_pipeline_exports.py`)
- Structured pipeline exports → Reports and artifacts: writes artifacts (evidence: `README.md`)
- Structured pipeline exports → Hunter triage queue: supplies triage data
- Pipeline orchestration → Previous-scan diff: compares runs (evidence: `README.md`)
- Reports and artifacts → Discord notification: optionally notifies (evidence: `README.md`)
- Reports and artifacts → SARIF security output: exports SARIF (evidence: `README.md`)
