# mukul975/cve-evidence-explorer architecture

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

- Interactive diagram: https://gitdiagram.com/mukul975/cve-evidence-explorer
- Repository: https://github.com/mukul975/cve-evidence-explorer

## Overview

CiteCVE turns a CVE ID into a reviewable evidence dossier: it retrieves the official record, discovers and selectively fetches sources, adds exploitation signals, ranks evidence, and optionally produces validated claims for the web UI and exports. The README documents the seven on-demand SearchApi lookups as leads that do not enter the brief. The pipeline excerpt confirms record retrieval, KEV/EPSS enrichment, and brief generation/validation; other workflow links are based on the README. Unexcerpted implementation details are not inferred beyond those documented capabilities.

Main entry points: [`cve_explorer/pipeline.py`](https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/pipeline.py) (Investigation pipeline), [`server.py`](https://github.com/mukul975/cve-evidence-explorer/blob/main/server.py) (HTTP API), [`cve_explorer/evidence.py`](https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/evidence.py) (Evidence ranking), [`cve_explorer/cve.py`](https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/cve.py) (CVE record parser)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_web["Web interface<br/>[app.js]"]
  node_api["HTTP API<br/>[server.py]"]
end

subgraph group_investigation["CVE investigation"]
  node_orchestrator["Investigation pipeline<br/>[pipeline.py]"]
  node_record["CVE record parser<br/>[cve.py]"]
  node_discovery["Source discovery<br/>[search.py]"]
  node_signals["On-demand lookups<br/>[signals.py]"]
end

subgraph group_evidence["Evidence processing"]
  node_fetcher["Restricted fetcher<br/>[fetcher.py]"]
  node_evidence_model["Evidence ranking<br/>[evidence.py]"]
  node_enrichment["KEV and EPSS<br/>[enrich.py]"]
end

subgraph group_briefing["Briefing and exports"]
  node_claim_validator["Claim validation<br/>[brief.py]"]
  node_brief_generator["AI brief generation<br/>[llm.py]"]
  node_exports["Markdown and JSON<br/>[brief.py]"]
end

subgraph group_integrations["External sources"]
  node_cve_services["CVE Services"]
  node_searchapi["SearchApi"]
  node_kev_catalog["CISA KEV catalog"]
  node_first_epss["FIRST EPSS"]
  node_llm_provider["Claude or OpenAI"]
end

node_user(("Researcher"))

node_user -->|"enters CVE"| node_web
node_web -->|"requests results"| node_api
node_api -->|"investigates CVE"| node_orchestrator
node_orchestrator -->|"fetches record"| node_record
node_record -->|"retrieves record"| node_cve_services
node_orchestrator -->|"discovers sources"| node_discovery
node_discovery -->|"searches sources"| node_searchapi
node_orchestrator -->|"fetches pages"| node_fetcher
node_orchestrator -->|"gets signals"| node_enrichment
node_enrichment -->|"reads catalog"| node_kev_catalog
node_enrichment -->|"gets scores"| node_first_epss
node_orchestrator -->|"ranks evidence"| node_evidence_model
node_record -->|"creates evidence"| node_evidence_model
node_discovery -->|"creates leads"| node_evidence_model
node_fetcher -->|"supplies page text"| node_evidence_model
node_orchestrator -->|"serves extra lookups"| node_signals
node_signals -->|"runs lookups"| node_searchapi
node_orchestrator -->|"requests brief"| node_brief_generator
node_brief_generator -->|"generates claims"| node_llm_provider
node_orchestrator -->|"validates claims"| node_claim_validator
node_api -->|"builds downloads"| node_exports
node_api -->|"returns results"| node_web

click node_web "https://github.com/mukul975/cve-evidence-explorer/blob/main/static/app.js"
click node_api "https://github.com/mukul975/cve-evidence-explorer/blob/main/server.py"
click node_orchestrator "https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/pipeline.py"
click node_record "https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/cve.py"
click node_discovery "https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/search.py"
click node_signals "https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/signals.py"
click node_fetcher "https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/fetcher.py"
click node_evidence_model "https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/evidence.py"
click node_enrichment "https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/enrich.py"
click node_claim_validator "https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/brief.py"
click node_brief_generator "https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/llm.py"
click node_exports "https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/brief.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_web,node_api toneBlue
class node_orchestrator,node_record,node_discovery,node_signals toneAmber
class node_fetcher,node_evidence_model,node_enrichment toneMint
class node_claim_validator,node_brief_generator,node_exports toneRose
class node_cve_services,node_searchapi,node_kev_catalog,node_first_epss,node_llm_provider,node_user toneIndigo
```

## Components

### User interface

- [Web interface](https://github.com/mukul975/cve-evidence-explorer/blob/main/static/app.js): `static/app.js`
- [HTTP API](https://github.com/mukul975/cve-evidence-explorer/blob/main/server.py): `server.py`

### CVE investigation

- [Investigation pipeline](https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/pipeline.py): `cve_explorer/pipeline.py`
- [CVE record parser](https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/cve.py): `cve_explorer/cve.py`
- [Source discovery](https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/search.py): `cve_explorer/search.py`
- [On-demand lookups](https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/signals.py): `cve_explorer/signals.py`

### Evidence processing

- [Restricted fetcher](https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/fetcher.py): `cve_explorer/fetcher.py`
- [Evidence ranking](https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/evidence.py): `cve_explorer/evidence.py`
- [KEV and EPSS](https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/enrich.py): `cve_explorer/enrich.py`

### Briefing and exports

- [Claim validation](https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/brief.py): `cve_explorer/brief.py`
- [AI brief generation](https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/llm.py): `cve_explorer/llm.py`
- [Markdown and JSON](https://github.com/mukul975/cve-evidence-explorer/blob/main/cve_explorer/brief.py): `cve_explorer/brief.py`

### External sources

- **CVE Services**
- **SearchApi**
- **CISA KEV catalog**
- **FIRST EPSS**
- **Claude or OpenAI**

### Other components

- **Researcher**

## Connections

- Researcher → Web interface: enters CVE (evidence: `README.md`)
- Web interface → HTTP API: requests results (evidence: `README.md`)
- HTTP API → Investigation pipeline: investigates CVE (evidence: `README.md`)
- Investigation pipeline → CVE record parser: fetches record (evidence: `cve_explorer/pipeline.py`)
- CVE record parser → CVE Services: retrieves record (evidence: `README.md`)
- Investigation pipeline → Source discovery: discovers sources (evidence: `README.md`)
- Source discovery → SearchApi: searches sources (evidence: `cve_explorer/search.py`)
- Investigation pipeline → Restricted fetcher: fetches pages (evidence: `README.md`)
- Investigation pipeline → KEV and EPSS: gets signals (evidence: `cve_explorer/pipeline.py`)
- KEV and EPSS → CISA KEV catalog: reads catalog (evidence: `cve_explorer/enrich.py`)
- KEV and EPSS → FIRST EPSS: gets scores (evidence: `cve_explorer/enrich.py`)
- Investigation pipeline → Evidence ranking: ranks evidence (evidence: `README.md`)
- CVE record parser → Evidence ranking: creates evidence (evidence: `cve_explorer/cve.py`)
- Source discovery → Evidence ranking: creates leads (evidence: `cve_explorer/search.py`)
- Restricted fetcher → Evidence ranking: supplies page text (evidence: `cve_explorer/fetcher.py`)
- Investigation pipeline → On-demand lookups: serves extra lookups (evidence: `README.md`)
- On-demand lookups → SearchApi: runs lookups (evidence: `README.md`)
- Investigation pipeline → AI brief generation: requests brief (evidence: `cve_explorer/pipeline.py`)
- AI brief generation → Claude or OpenAI: generates claims (evidence: `cve_explorer/llm.py`)
- Investigation pipeline → Claim validation: validates claims (evidence: `cve_explorer/pipeline.py`)
- HTTP API → Markdown and JSON: builds downloads (evidence: `server.py`)
- HTTP API → Web interface: returns results (evidence: `README.md`)
