# het28091/cyber-scan architecture

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

- Interactive diagram: https://gitdiagram.com/het28091/cyber-scan
- Repository: https://github.com/het28091/cyber-scan

## Overview

Secaudit is a Linux security-assessment tool that accepts local source, ZIP uploads, and explicitly authorized targets, then produces reviewable findings and reports. The main workflow runs through the CLI scanner entry point; the local dashboard submits and monitors persistent jobs and exposes saved evidence. Assessment stages include heuristic source checks, optional isolated scanners, dependency-advisory lookups, and bounded web or account-workflow checks. The graph also shows review, retest, and report handling. Unsampled modules are included where README capabilities or indexed imports support them; uncertain connections are omitted.

Main entry points: [`secaudit/cli.py`](https://github.com/het28091/cyber-scan/blob/main/secaudit/cli.py) (CLI orchestrator), [`secaudit/dashboard.py`](https://github.com/het28091/cyber-scan/blob/main/secaudit/dashboard.py) (Dashboard server), [`secaudit/scanners.py`](https://github.com/het28091/cyber-scan/blob/main/secaudit/scanners.py) (Source checks), [`secaudit/reporting.py`](https://github.com/het28091/cyber-scan/blob/main/secaudit/reporting.py) (Reports and exports)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Assessment entry"]
  node_cli["CLI orchestrator<br/>[cli.py]"]
  node_config["Assessment config<br/>[config.py]"]
  node_scope["Scope and policy<br/>[security.py]"]
end

subgraph group_checks["Assessment checks"]
  node_source_checks["Source checks<br/>[scanners.py]"]
  node_inventory["Dependency inventory<br/>[inventory.py]"]
  node_declarations["Framework and API declarations<br/>[declarations.py]"]
  node_isolated_scanners["Isolated scanner adapters<br/>[adapters.py]"]
  node_web_checks["Scoped web checks<br/>[network.py]"]
  node_target_workflow["Account workflows<br/>[target_workflow.py]"]
  node_browser_snapshot["Static browser snapshot<br/>[target_browser.py]"]
  node_online_advisories["Online advisories<br/>[online.py]"]
  node_local_dataset["Local advisory data<br/>[datasets.py]"]
end

subgraph group_evidence["Evidence and review"]
  node_findings["Assessment findings<br/>[models.py]"]
  node_reporting["Reports and exports<br/>[reporting.py]"]
  node_run_storage[("Run evidence storage<br/>[store.py]")]
  node_report_state["Report publication state<br/>[report_state.py]"]
  node_review[("Operator review and retest<br/>[review.py]")]
  node_remediation["Remediation view<br/>[remediation.py]"]
end

subgraph group_dashboard["Local dashboard"]
  node_dashboard_server["Dashboard server<br/>[dashboard.py]"]
  node_job_queue["Job queue<br/>[jobs.py]"]
  node_dashboard_ui["Dashboard UI<br/>[app.js]"]
end

node_operator(("Operator"))

node_operator -->|"submits assessment"| node_dashboard_server
node_operator -->|"runs assessment"| node_cli
node_dashboard_ui -.->|"uses local API"| node_dashboard_server
node_dashboard_server -->|"manages jobs"| node_job_queue
node_job_queue -.->|"executes scanner entry"| node_cli
node_job_queue -->|"configures jobs"| node_config
node_cli -->|"loads settings"| node_config
node_cli -->|"enforces scope"| node_scope
node_cli -->|"scans source"| node_source_checks
node_cli -->|"runs adapters"| node_isolated_scanners
node_cli -->|"scans target"| node_web_checks
node_cli -->|"runs workflows"| node_target_workflow
node_cli -->|"queries advisories"| node_online_advisories
node_cli -->|"matches dataset"| node_local_dataset
node_source_checks -->|"collects inventory"| node_inventory
node_source_checks -->|"checks declarations"| node_declarations
node_target_workflow -->|"renders snapshot"| node_browser_snapshot
node_source_checks -->|"creates findings"| node_findings
node_isolated_scanners -->|"creates findings"| node_findings
node_cli -->|"generates reports"| node_reporting
node_reporting -.->|"persists evidence"| node_run_storage
node_reporting -->|"tracks publication"| node_report_state
node_dashboard_server -->|"checks availability"| node_report_state
node_dashboard_server -->|"serves reviews"| node_review
node_dashboard_server -->|"serves remediation"| node_remediation

click node_cli "https://github.com/het28091/cyber-scan/blob/main/secaudit/cli.py"
click node_config "https://github.com/het28091/cyber-scan/blob/main/secaudit/config.py"
click node_scope "https://github.com/het28091/cyber-scan/blob/main/secaudit/security.py"
click node_dashboard_server "https://github.com/het28091/cyber-scan/blob/main/secaudit/dashboard.py"
click node_job_queue "https://github.com/het28091/cyber-scan/blob/main/secaudit/jobs.py"
click node_dashboard_ui "https://github.com/het28091/cyber-scan/blob/main/secaudit/static/app.js"
click node_source_checks "https://github.com/het28091/cyber-scan/blob/main/secaudit/scanners.py"
click node_inventory "https://github.com/het28091/cyber-scan/blob/main/secaudit/inventory.py"
click node_declarations "https://github.com/het28091/cyber-scan/blob/main/secaudit/declarations.py"
click node_isolated_scanners "https://github.com/het28091/cyber-scan/blob/main/secaudit/adapters.py"
click node_web_checks "https://github.com/het28091/cyber-scan/blob/main/secaudit/network.py"
click node_target_workflow "https://github.com/het28091/cyber-scan/blob/main/secaudit/target_workflow.py"
click node_browser_snapshot "https://github.com/het28091/cyber-scan/blob/main/secaudit/target_browser.py"
click node_online_advisories "https://github.com/het28091/cyber-scan/blob/main/secaudit/online.py"
click node_local_dataset "https://github.com/het28091/cyber-scan/blob/main/secaudit/datasets.py"
click node_findings "https://github.com/het28091/cyber-scan/blob/main/secaudit/models.py"
click node_reporting "https://github.com/het28091/cyber-scan/blob/main/secaudit/reporting.py"
click node_run_storage "https://github.com/het28091/cyber-scan/blob/main/secaudit/store.py"
click node_report_state "https://github.com/het28091/cyber-scan/blob/main/secaudit/report_state.py"
click node_review "https://github.com/het28091/cyber-scan/blob/main/secaudit/review.py"
click node_remediation "https://github.com/het28091/cyber-scan/blob/main/secaudit/remediation.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_cli,node_config,node_scope toneBlue
class node_source_checks,node_inventory,node_declarations,node_isolated_scanners,node_web_checks,node_target_workflow,node_browser_snapshot,node_online_advisories,node_local_dataset toneAmber
class node_findings,node_reporting,node_run_storage,node_report_state,node_review,node_remediation toneMint
class node_dashboard_server,node_job_queue,node_dashboard_ui toneRose
class node_operator toneIndigo
```

## Components

### Assessment entry

- [CLI orchestrator](https://github.com/het28091/cyber-scan/blob/main/secaudit/cli.py): `secaudit/cli.py`
- [Assessment config](https://github.com/het28091/cyber-scan/blob/main/secaudit/config.py): `secaudit/config.py`
- [Scope and policy](https://github.com/het28091/cyber-scan/blob/main/secaudit/security.py): `secaudit/security.py`

### Assessment checks

- [Source checks](https://github.com/het28091/cyber-scan/blob/main/secaudit/scanners.py): `secaudit/scanners.py`
- [Dependency inventory](https://github.com/het28091/cyber-scan/blob/main/secaudit/inventory.py): `secaudit/inventory.py`
- [Framework and API declarations](https://github.com/het28091/cyber-scan/blob/main/secaudit/declarations.py): `secaudit/declarations.py`
- [Isolated scanner adapters](https://github.com/het28091/cyber-scan/blob/main/secaudit/adapters.py): `secaudit/adapters.py`
- [Scoped web checks](https://github.com/het28091/cyber-scan/blob/main/secaudit/network.py): `secaudit/network.py`
- [Account workflows](https://github.com/het28091/cyber-scan/blob/main/secaudit/target_workflow.py): `secaudit/target_workflow.py`
- [Static browser snapshot](https://github.com/het28091/cyber-scan/blob/main/secaudit/target_browser.py): `secaudit/target_browser.py`
- [Online advisories](https://github.com/het28091/cyber-scan/blob/main/secaudit/online.py): `secaudit/online.py`
- [Local advisory data](https://github.com/het28091/cyber-scan/blob/main/secaudit/datasets.py): `secaudit/datasets.py`

### Evidence and review

- [Assessment findings](https://github.com/het28091/cyber-scan/blob/main/secaudit/models.py): `secaudit/models.py`
- [Reports and exports](https://github.com/het28091/cyber-scan/blob/main/secaudit/reporting.py): `secaudit/reporting.py`
- [Run evidence storage](https://github.com/het28091/cyber-scan/blob/main/secaudit/store.py): `secaudit/store.py`
- [Report publication state](https://github.com/het28091/cyber-scan/blob/main/secaudit/report_state.py): `secaudit/report_state.py`
- [Operator review and retest](https://github.com/het28091/cyber-scan/blob/main/secaudit/review.py): `secaudit/review.py`
- [Remediation view](https://github.com/het28091/cyber-scan/blob/main/secaudit/remediation.py): `secaudit/remediation.py`

### Local dashboard

- [Dashboard server](https://github.com/het28091/cyber-scan/blob/main/secaudit/dashboard.py): `secaudit/dashboard.py`
- [Job queue](https://github.com/het28091/cyber-scan/blob/main/secaudit/jobs.py): `secaudit/jobs.py`
- [Dashboard UI](https://github.com/het28091/cyber-scan/blob/main/secaudit/static/app.js): `secaudit/static/app.js`

### Other components

- **Operator**

## Connections

- Operator → Dashboard server: submits assessment
- Operator → CLI orchestrator: runs assessment
- Dashboard UI → Dashboard server: uses local API
- Dashboard server → Job queue: manages jobs (evidence: `secaudit/dashboard.py`)
- Job queue → CLI orchestrator: executes scanner entry
- Job queue → Assessment config: configures jobs (evidence: `secaudit/jobs.py`)
- CLI orchestrator → Assessment config: loads settings (evidence: `secaudit/cli.py`)
- CLI orchestrator → Scope and policy: enforces scope (evidence: `secaudit/cli.py`)
- CLI orchestrator → Source checks: scans source (evidence: `secaudit/cli.py`)
- CLI orchestrator → Isolated scanner adapters: runs adapters (evidence: `secaudit/cli.py`)
- CLI orchestrator → Scoped web checks: scans target (evidence: `secaudit/cli.py`)
- CLI orchestrator → Account workflows: runs workflows (evidence: `secaudit/cli.py`)
- CLI orchestrator → Online advisories: queries advisories (evidence: `secaudit/cli.py`)
- CLI orchestrator → Local advisory data: matches dataset (evidence: `secaudit/cli.py`)
- Source checks → Dependency inventory: collects inventory (evidence: `secaudit/scanners.py`)
- Source checks → Framework and API declarations: checks declarations (evidence: `secaudit/scanners.py`)
- Account workflows → Static browser snapshot: renders snapshot (evidence: `secaudit/target_workflow.py`)
- Source checks → Assessment findings: creates findings (evidence: `secaudit/scanners.py`)
- Isolated scanner adapters → Assessment findings: creates findings (evidence: `secaudit/adapters.py`)
- CLI orchestrator → Reports and exports: generates reports (evidence: `secaudit/cli.py`)
- Reports and exports → Run evidence storage: persists evidence
- Reports and exports → Report publication state: tracks publication (evidence: `secaudit/reporting.py`)
- Dashboard server → Report publication state: checks availability (evidence: `secaudit/dashboard.py`)
- Dashboard server → Operator review and retest: serves reviews (evidence: `secaudit/dashboard.py`)
- Dashboard server → Remediation view: serves remediation (evidence: `secaudit/dashboard.py`)
