# jasmeenkaur8012-code/cyber_intelligence architecture

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

- Interactive diagram: https://gitdiagram.com/jasmeenkaur8012-code/cyber_intelligence
- Repository: https://github.com/jasmeenkaur8012-code/cyber_intelligence

## Overview

The product is a Streamlit CTI dashboard. Its main workflow selects sample, uploaded, or persisted sightings; optionally fetches live threat feeds; groups sightings by indicator and scores risk; then presents searchable indicators, relationship graphs, ATT&CK, geographic, overview, and alert views. The app is a monolith, so several distinct responsibilities share app.py. Feed providers and capabilities documented but not fully shown are represented with README or feed-code evidence; unsampled implementation details are omitted.

Main entry points: [`app.py`](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py) (Streamlit dashboard), [`feeds.py`](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/feeds.py) (Feed loaders), [`db.py`](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/db.py) (Sightings database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingestion["Data ingestion"]
  node_data_modes["Data selection<br/>[app.py]"]
  node_sample_data["Sample sightings<br/>[app.py]"]
  node_csv_upload["CSV upload<br/>[app.py]"]
  node_feed_loaders["Feed loaders<br/>[feeds.py]"]
  node_sightings_store[("Sightings database<br/>[db.py]")]
end

subgraph group_analysis["Correlation analysis"]
  node_correlation["Indicator correlation<br/>[app.py]"]
  node_risk_scoring["Risk scoring<br/>[app.py]"]
  node_relationship_graph["Relationship graph<br/>[app.py]"]
end

subgraph group_presentation["Dashboard views"]
  node_dashboard["Streamlit dashboard<br/>[app.py]"]
  node_overview["Overview analytics<br/>[app.py]"]
  node_ioc_search["IOC search<br/>[app.py]"]
  node_graph_view["Graph visualization<br/>[app.py]"]
  node_attack_view["ATT&amp;CK view<br/>[app.py]"]
  node_geo_view["Geographic view<br/>[app.py]"]
  node_alerts["Risk alerts<br/>[app.py]"]
end

subgraph group_integrations["External integrations"]
  node_feodo["Feodo Tracker"]
  node_urlhaus["URLhaus"]
  node_country_lookup["Country enrichment<br/>[feeds.py]"]
  node_ip_api["ip-api"]
end

node_analyst(("Analyst"))

node_analyst -->|"uses"| node_dashboard
node_dashboard -->|"selects source"| node_data_modes
node_data_modes -->|"generates"| node_sample_data
node_data_modes -->|"accepts file"| node_csv_upload
node_dashboard -->|"fetches feeds"| node_feed_loaders
node_feed_loaders -->|"downloads"| node_feodo
node_feed_loaders -->|"downloads"| node_urlhaus
node_feed_loaders -->|"enriches"| node_country_lookup
node_country_lookup -->|"queries"| node_ip_api
node_dashboard -->|"saves sightings"| node_sightings_store
node_data_modes -->|"loads sightings"| node_sightings_store
node_dashboard -->|"correlates"| node_correlation
node_correlation -->|"scores indicators"| node_risk_scoring
node_dashboard -->|"builds graph"| node_relationship_graph
node_dashboard -->|"renders"| node_overview
node_dashboard -->|"renders"| node_ioc_search
node_dashboard -->|"renders"| node_graph_view
node_dashboard -->|"renders"| node_attack_view
node_dashboard -->|"renders"| node_geo_view
node_dashboard -->|"renders"| node_alerts
node_relationship_graph -->|"visualizes"| node_graph_view
node_risk_scoring -->|"filters by threshold"| node_alerts

click node_dashboard "https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py"
click node_data_modes "https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py"
click node_sample_data "https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py"
click node_csv_upload "https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py"
click node_feed_loaders "https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/feeds.py"
click node_country_lookup "https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/feeds.py"
click node_sightings_store "https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/db.py"
click node_correlation "https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py"
click node_risk_scoring "https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py"
click node_relationship_graph "https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py"
click node_overview "https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py"
click node_ioc_search "https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py"
click node_graph_view "https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py"
click node_attack_view "https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py"
click node_geo_view "https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py"
click node_alerts "https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.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_data_modes,node_sample_data,node_csv_upload,node_feed_loaders,node_sightings_store toneBlue
class node_correlation,node_risk_scoring,node_relationship_graph toneAmber
class node_dashboard,node_overview,node_ioc_search,node_graph_view,node_attack_view,node_geo_view,node_alerts toneMint
class node_feodo,node_urlhaus,node_country_lookup,node_ip_api toneRose
class node_analyst toneIndigo
```

## Components

### Data ingestion

- [Data selection](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py): `app.py`
- [Sample sightings](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py): `app.py`
- [CSV upload](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py): `app.py`
- [Feed loaders](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/feeds.py): `feeds.py`
- [Sightings database](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/db.py): `db.py`

### Correlation analysis

- [Indicator correlation](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py): `app.py`
- [Risk scoring](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py): `app.py`
- [Relationship graph](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py): `app.py`

### Dashboard views

- [Streamlit dashboard](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py): `app.py`
- [Overview analytics](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py): `app.py`
- [IOC search](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py): `app.py`
- [Graph visualization](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py): `app.py`
- [ATT&CK view](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py): `app.py`
- [Geographic view](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py): `app.py`
- [Risk alerts](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/app.py): `app.py`

### External integrations

- **Feodo Tracker**
- **URLhaus**
- [Country enrichment](https://github.com/jasmeenkaur8012-code/cyber_intelligence/blob/main/feeds.py): `feeds.py`
- **ip-api**

### Other components

- **Analyst**

## Connections

- Analyst → Streamlit dashboard: uses (evidence: `README.md`)
- Streamlit dashboard → Data selection: selects source (evidence: `app.py`)
- Data selection → Sample sightings: generates (evidence: `app.py`)
- Data selection → CSV upload: accepts file (evidence: `README.md`)
- Streamlit dashboard → Feed loaders: fetches feeds (evidence: `app.py`)
- Feed loaders → Feodo Tracker: downloads (evidence: `feeds.py`)
- Feed loaders → URLhaus: downloads (evidence: `feeds.py`)
- Feed loaders → Country enrichment: enriches (evidence: `feeds.py`)
- Country enrichment → ip-api: queries (evidence: `feeds.py`)
- Streamlit dashboard → Sightings database: saves sightings (evidence: `app.py`)
- Data selection → Sightings database: loads sightings (evidence: `app.py`)
- Streamlit dashboard → Indicator correlation: correlates (evidence: `app.py`)
- Indicator correlation → Risk scoring: scores indicators (evidence: `README.md`)
- Streamlit dashboard → Relationship graph: builds graph (evidence: `app.py`)
- Streamlit dashboard → Overview analytics: renders (evidence: `app.py`)
- Streamlit dashboard → IOC search: renders (evidence: `app.py`)
- Streamlit dashboard → Graph visualization: renders (evidence: `app.py`)
- Streamlit dashboard → ATT&CK view: renders (evidence: `app.py`)
- Streamlit dashboard → Geographic view: renders (evidence: `app.py`)
- Streamlit dashboard → Risk alerts: renders (evidence: `app.py`)
- Relationship graph → Graph visualization: visualizes (evidence: `app.py`)
- Risk scoring → Risk alerts: filters by threshold (evidence: `app.py`)
