# abdelrahmanmostafa-eng/lureradar architecture

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

- Interactive diagram: https://gitdiagram.com/abdelrahmanmostafa-eng/lureradar
- Repository: https://github.com/abdelrahmanmostafa-eng/lureradar

## Overview

LureRadar is an explainable threat-radar product for launch-themed scams. The main user workflow starts with the CLI: parse a URL, domain, or message; apply offline signals (optionally enriched in live mode); produce a tiered verdict and explanation. A separate collection pipeline ingests threat sources and publishes signed blocklists. Campaign packs configure detection, while PC Watch, the dashboard, and the local-only browser extension provide distinct user-facing capabilities. The excerpts establish the scoring and pipeline stages; some subsystem links below rely on README documentation rather than sampled implementation.

Main entry points: [`src/lureradar/pipeline/orchestrator.py`](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/pipeline/orchestrator.py) (Scan pipeline), [`src/lureradar/scoring/engine.py`](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/scoring/engine.py) (Scoring engine), [`src/lureradar/cli.py`](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/cli.py) (CLI), [`src/lureradar/pipeline/publish.py`](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/pipeline/publish.py) (Feed publishing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_checking["Checking and scoring"]
  node_cli["CLI<br/>[cli.py]"]
  node_target["Target parsing<br/>[domains.py]"]
  node_message["Message analysis<br/>[analyzer.py]"]
  node_engine["Scoring engine<br/>[engine.py]"]
  node_detectors["Detection rules<br/>[base.py]"]
  node_verdict["Verdict and signals<br/>[models.py]"]
end

subgraph group_collection["Collection and publishing"]
  node_sources["Threat sources"]
  node_orchestrator["Scan pipeline<br/>[orchestrator.py]"]
  node_enrichment["Live enrichment"]
  node_state[("Indicator state<br/>[state.py]")]
  node_publisher["Feed publishing<br/>[publish.py]"]
  node_exports["Feed formats"]
  node_signing["Feed signing<br/>[signing.py]"]
end

subgraph group_campaign["Campaign intelligence"]
  node_packs["Campaign packs<br/>[loader.py]"]
end

subgraph group_interfaces["User interfaces"]
  node_dashboard["Dashboard<br/>[site.ts]"]
  node_webchecker["Browser link checker<br/>[checker.ts]"]
  node_extension["Browser extension<br/>[background.js]"]
  node_warning["Warning view<br/>[warning.js]"]
end

subgraph group_watch["PC Watch"]
  node_pcwatch["PC Watch"]
end

node_user(("User"))
node_blocklist(("Blocklist subscriber"))

node_user -->|"checks input"| node_cli
node_cli -->|"parses target"| node_target
node_cli -->|"analyzes messages"| node_message
node_cli -->|"requests verdict"| node_engine
node_engine -->|"runs rules"| node_detectors
node_engine -->|"loads packs"| node_packs
node_engine -->|"builds verdict"| node_verdict
node_message -->|"finds embedded URLs"| node_target
node_orchestrator -->|"fetches candidates"| node_sources
node_orchestrator -->|"enriches targets"| node_enrichment
node_orchestrator -->|"scores indicators"| node_engine
node_orchestrator -->|"updates state"| node_state
node_orchestrator -->|"publishes results"| node_publisher
node_publisher -->|"renders feeds"| node_exports
node_publisher -->|"signs feeds"| node_signing
node_blocklist -->|"subscribes to feeds"| node_exports
node_pcwatch -.->|"provides PC status"| node_dashboard
node_user -->|"views radar"| node_dashboard
node_user -->|"checks link locally"| node_webchecker
node_user -->|"installs extension"| node_extension
node_extension -->|"shows warning"| node_warning

click node_cli "https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/cli.py"
click node_target "https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/util/domains.py"
click node_message "https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/textlure/analyzer.py"
click node_engine "https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/scoring/engine.py"
click node_detectors "https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/detectors/base.py"
click node_verdict "https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/models.py"
click node_packs "https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/packs/loader.py"
click node_sources "https://github.com/abdelrahmanmostafa-eng/lureradar/tree/main/src/lureradar/sources"
click node_orchestrator "https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/pipeline/orchestrator.py"
click node_enrichment "https://github.com/abdelrahmanmostafa-eng/lureradar/tree/main/src/lureradar/enrich"
click node_state "https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/pipeline/state.py"
click node_publisher "https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/pipeline/publish.py"
click node_exports "https://github.com/abdelrahmanmostafa-eng/lureradar/tree/main/src/lureradar/export"
click node_signing "https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/export/signing.py"
click node_pcwatch "https://github.com/abdelrahmanmostafa-eng/lureradar/tree/main/src/lureradar/pcwatch"
click node_dashboard "https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/web/src/lib/site.ts"
click node_webchecker "https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/web/src/lib/checker.ts"
click node_extension "https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/extension/src/background.js"
click node_warning "https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/extension/src/warning.js"

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_target,node_message,node_engine,node_detectors,node_verdict,node_user toneBlue
class node_sources,node_orchestrator,node_enrichment,node_state,node_publisher,node_exports,node_signing toneAmber
class node_packs toneMint
class node_dashboard,node_webchecker,node_extension,node_warning toneRose
class node_pcwatch,node_blocklist toneIndigo
```

## Components

### Checking and scoring

- [CLI](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/cli.py): `src/lureradar/cli.py`
- [Target parsing](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/util/domains.py): `src/lureradar/util/domains.py`
- [Message analysis](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/textlure/analyzer.py): `src/lureradar/textlure/analyzer.py`
- [Scoring engine](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/scoring/engine.py): `src/lureradar/scoring/engine.py`
- [Detection rules](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/detectors/base.py): `src/lureradar/detectors/base.py`
- [Verdict and signals](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/models.py): `src/lureradar/models.py`

### Collection and publishing

- [Threat sources](https://github.com/abdelrahmanmostafa-eng/lureradar/tree/main/src/lureradar/sources): `src/lureradar/sources`
- [Scan pipeline](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/pipeline/orchestrator.py): `src/lureradar/pipeline/orchestrator.py`
- [Live enrichment](https://github.com/abdelrahmanmostafa-eng/lureradar/tree/main/src/lureradar/enrich): `src/lureradar/enrich`
- [Indicator state](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/pipeline/state.py): `src/lureradar/pipeline/state.py`
- [Feed publishing](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/pipeline/publish.py): `src/lureradar/pipeline/publish.py`
- [Feed formats](https://github.com/abdelrahmanmostafa-eng/lureradar/tree/main/src/lureradar/export): `src/lureradar/export`
- [Feed signing](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/export/signing.py): `src/lureradar/export/signing.py`

### Campaign intelligence

- [Campaign packs](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/src/lureradar/packs/loader.py): `src/lureradar/packs/loader.py`

### User interfaces

- [Dashboard](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/web/src/lib/site.ts): `web/src/lib/site.ts`
- [Browser link checker](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/web/src/lib/checker.ts): `web/src/lib/checker.ts`
- [Browser extension](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/extension/src/background.js): `extension/src/background.js`
- [Warning view](https://github.com/abdelrahmanmostafa-eng/lureradar/blob/main/extension/src/warning.js): `extension/src/warning.js`

### PC Watch

- [PC Watch](https://github.com/abdelrahmanmostafa-eng/lureradar/tree/main/src/lureradar/pcwatch): `src/lureradar/pcwatch`

### Other components

- **User**
- **Blocklist subscriber**

## Connections

- User → CLI: checks input (evidence: `README.md`)
- CLI → Target parsing: parses target (evidence: `src/lureradar/cli.py`)
- CLI → Message analysis: analyzes messages (evidence: `README.md`)
- CLI → Scoring engine: requests verdict (evidence: `src/lureradar/cli.py`)
- Scoring engine → Detection rules: runs rules (evidence: `src/lureradar/scoring/engine.py`)
- Scoring engine → Campaign packs: loads packs (evidence: `src/lureradar/scoring/engine.py`)
- Scoring engine → Verdict and signals: builds verdict (evidence: `src/lureradar/scoring/engine.py`)
- Message analysis → Target parsing: finds embedded URLs (evidence: `src/lureradar/textlure/analyzer.py`)
- Scan pipeline → Threat sources: fetches candidates (evidence: `src/lureradar/pipeline/orchestrator.py`)
- Scan pipeline → Live enrichment: enriches targets (evidence: `src/lureradar/pipeline/orchestrator.py`)
- Scan pipeline → Scoring engine: scores indicators (evidence: `src/lureradar/pipeline/orchestrator.py`)
- Scan pipeline → Indicator state: updates state (evidence: `src/lureradar/pipeline/orchestrator.py`)
- Scan pipeline → Feed publishing: publishes results (evidence: `src/lureradar/pipeline/orchestrator.py`)
- Feed publishing → Feed formats: renders feeds (evidence: `README.md`)
- Feed publishing → Feed signing: signs feeds (evidence: `src/lureradar/pipeline/orchestrator.py`)
- Blocklist subscriber → Feed formats: subscribes to feeds (evidence: `README.md`)
- PC Watch → Dashboard: provides PC status (evidence: `README.md`)
- User → Dashboard: views radar (evidence: `README.md`)
- User → Browser link checker: checks link locally (evidence: `README.md`)
- User → Browser extension: installs extension (evidence: `README.md`)
- Browser extension → Warning view: shows warning (evidence: `extension/src/background.js`)
