# google/clusterfuzz architecture

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

- Interactive diagram: https://gitdiagram.com/google/clusterfuzz
- Repository: https://github.com/google/clusterfuzz

## Overview

ClusterFuzz is a distributed fuzzing platform: projects configure targets, worker bots run fuzzing engines, and the service processes findings into deduplicated crashes, triage and issue-tracker actions for users to review. The map also includes minimization, regression bisection, storage and performance statistics as documented capabilities. The excerpts and source index support selected implementation links; other capability links cite the README, so unsampled runtime wiring is not asserted.

Main entry points: [`src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py`](https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py) (Bot task runner), [`src/clusterfuzz/_internal/crash_analysis/crash_analyzer.py`](https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/crash_analysis/crash_analyzer.py) (Crash analysis), [`src/appengine/server.py`](https://github.com/google/clusterfuzz/blob/master/src/appengine/server.py) (Web application), [`src/clusterfuzz/_internal/bot/fuzzers/libFuzzer/engine.py`](https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/bot/fuzzers/libFuzzer/engine.py) (Fuzzing engines)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web management"]
  node_webapp["Web application<br/>[server.py]"]
  node_auth["Authentication<br/>[auth.py]"]
  node_crashquery["Crash queries<br/>[crash_query.py]"]
end

subgraph group_workers["Fuzzing workers"]
  node_worker["Bot task runner<br/>[fuzz_task.py]"]
  node_engineapi["Engine interface<br/>[engine.py]"]
  node_engines["Fuzzing engines<br/>[engine.py]"]
  node_enginecommon["Engine utilities<br/>[engine_common.py]"]
end

subgraph group_analysis["Crash analysis"]
  node_minimize["Testcase minimization<br/>[minimizer.py]"]
  node_crashanalysis["Crash analysis<br/>[crash_analyzer.py]"]
  node_bisection["Regression bisection<br/>[bisection.py]"]
  node_issues["Issue management<br/>[issue_filer.py]"]
end

subgraph group_platform["Platform services"]
  node_datastore[("Crash records<br/>[data_types.py]")]
  node_storage[("Cloud storage<br/>[storage.py]")]
  node_stats["Fuzzer statistics<br/>[fuzzer_stats.py]"]
end

node_project(("Fuzzing project"))

node_project -->|"manages fuzzing"| node_webapp
node_webapp -->|"authenticates users"| node_auth
node_webapp -->|"routes requests"| node_crashquery
node_crashquery -->|"queries records"| node_datastore
node_worker -->|"runs fuzzing"| node_engines
node_engines -->|"implements interface"| node_engineapi
node_engines -->|"uses utilities"| node_enginecommon
node_worker -.->|"records findings"| node_datastore
node_worker -.->|"stores testcases"| node_storage
node_worker -.->|"reports performance"| node_stats
node_worker -->|"minimizes testcases"| node_minimize
node_worker -.->|"analyzes crashes"| node_crashanalysis
node_crashanalysis -->|"deduplicates crashes"| node_datastore
node_crashanalysis -->|"finds regressions"| node_bisection
node_crashanalysis -->|"files bug reports"| node_issues
node_issues -->|"notifies maintainers"| node_project
node_project -->|"reviews findings"| node_crashquery

click node_webapp "https://github.com/google/clusterfuzz/blob/master/src/appengine/server.py"
click node_auth "https://github.com/google/clusterfuzz/blob/master/src/appengine/libs/auth.py"
click node_crashquery "https://github.com/google/clusterfuzz/blob/master/src/appengine/handlers/crash_query.py"
click node_datastore "https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/datastore/data_types.py"
click node_worker "https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py"
click node_engineapi "https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/fuzz/engine.py"
click node_engines "https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/bot/fuzzers/libFuzzer/engine.py"
click node_enginecommon "https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/bot/fuzzers/engine_common.py"
click node_minimize "https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/bot/minimizer/minimizer.py"
click node_crashanalysis "https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/crash_analysis/crash_analyzer.py"
click node_bisection "https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/base/bisection.py"
click node_issues "https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/issue_management/issue_filer.py"
click node_storage "https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/google_cloud_utils/storage.py"
click node_stats "https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/metrics/fuzzer_stats.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_webapp,node_auth,node_crashquery toneBlue
class node_worker,node_engineapi,node_engines,node_enginecommon toneAmber
class node_minimize,node_crashanalysis,node_bisection,node_issues toneMint
class node_datastore,node_storage,node_stats toneRose
class node_project toneIndigo
```

## Components

### Web management

- [Web application](https://github.com/google/clusterfuzz/blob/master/src/appengine/server.py): `src/appengine/server.py`
- [Authentication](https://github.com/google/clusterfuzz/blob/master/src/appengine/libs/auth.py): `src/appengine/libs/auth.py`
- [Crash queries](https://github.com/google/clusterfuzz/blob/master/src/appengine/handlers/crash_query.py): `src/appengine/handlers/crash_query.py`

### Fuzzing workers

- [Bot task runner](https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py): `src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py`
- [Engine interface](https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/fuzz/engine.py): `src/clusterfuzz/fuzz/engine.py`
- [Fuzzing engines](https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/bot/fuzzers/libFuzzer/engine.py): `src/clusterfuzz/_internal/bot/fuzzers/libFuzzer/engine.py`
- [Engine utilities](https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/bot/fuzzers/engine_common.py): `src/clusterfuzz/_internal/bot/fuzzers/engine_common.py`

### Crash analysis

- [Testcase minimization](https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/bot/minimizer/minimizer.py): `src/clusterfuzz/_internal/bot/minimizer/minimizer.py`
- [Crash analysis](https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/crash_analysis/crash_analyzer.py): `src/clusterfuzz/_internal/crash_analysis/crash_analyzer.py`
- [Regression bisection](https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/base/bisection.py): `src/clusterfuzz/_internal/base/bisection.py`
- [Issue management](https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/issue_management/issue_filer.py): `src/clusterfuzz/_internal/issue_management/issue_filer.py`

### Platform services

- [Crash records](https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/datastore/data_types.py): `src/clusterfuzz/_internal/datastore/data_types.py`
- [Cloud storage](https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/google_cloud_utils/storage.py): `src/clusterfuzz/_internal/google_cloud_utils/storage.py`
- [Fuzzer statistics](https://github.com/google/clusterfuzz/blob/master/src/clusterfuzz/_internal/metrics/fuzzer_stats.py): `src/clusterfuzz/_internal/metrics/fuzzer_stats.py`

### Other components

- **Fuzzing project**

## Connections

- Fuzzing project → Web application: manages fuzzing
- Web application → Authentication: authenticates users (evidence: `src/appengine/server.py`)
- Web application → Crash queries: routes requests (evidence: `src/appengine/server.py`)
- Crash queries → Crash records: queries records (evidence: `src/appengine/handlers/crash_query.py`)
- Bot task runner → Fuzzing engines: runs fuzzing
- Fuzzing engines → Engine interface: implements interface (evidence: `src/clusterfuzz/_internal/bot/fuzzers/libFuzzer/engine.py`)
- Fuzzing engines → Engine utilities: uses utilities (evidence: `src/clusterfuzz/_internal/bot/fuzzers/libFuzzer/engine.py`)
- Bot task runner → Crash records: records findings
- Bot task runner → Cloud storage: stores testcases
- Bot task runner → Fuzzer statistics: reports performance
- Bot task runner → Testcase minimization: minimizes testcases
- Bot task runner → Crash analysis: analyzes crashes
- Crash analysis → Crash records: deduplicates crashes
- Crash analysis → Regression bisection: finds regressions
- Crash analysis → Issue management: files bug reports
- Issue management → Fuzzing project: notifies maintainers
- Fuzzing project → Crash queries: reviews findings
