# thejasm24/blockchain-cti-framework architecture

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

- Interactive diagram: https://gitdiagram.com/thejasm24/blockchain-cti-framework
- Repository: https://github.com/thejasm24/blockchain-cti-framework

## Overview

This is a CTI submission and integrity-verification prototype extended with heuristic, negation-aware ATT&CK correlation. Users submit an indicator, verify its off-chain payload, and can correlate observed behaviour and evidence against a candidate technique; the dashboard also displays records, contributor reputation, and benchmark results. The backend owns API orchestration, SQLite persistence, and optional IPFS access. Correlation history endpoints are documented, though their persistence implementation is in omitted source. The graph reflects shown calls and README capabilities; it does not imply a deployed blockchain or validated threat attribution.

Main entry points: [`cti-backend/server.js`](https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/server.js) (API Routes), [`cti-dashboard/src/App.js`](https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-dashboard/src/App.js) (CTI Dashboard), [`cti-backend/correlation-engine.js`](https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/correlation-engine.js) (Correlation Engine), [`cti-backend/data/attack-mappings.json`](https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/data/attack-mappings.json) (ATT&CK Mappings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard"]
  node_dashboard_ui["CTI Dashboard<br/>[App.js]"]
end

subgraph group_api["Backend API"]
  node_api_routes["API Routes<br/>[server.js]"]
end

subgraph group_cti["CTI and Integrity"]
  node_cti_ingest["CTI Ingestion<br/>[server.js]"]
  node_integrity_check["Integrity Verification<br/>[server.js]"]
  node_ledger[("CTI Ledger and Reputation<br/>[server.js]")]
end

subgraph group_correlation["Correlation"]
  node_correlation_engine["Correlation Engine"]
  node_attack_mappings["ATT&amp;CK Mappings"]
  node_correlation_history[("Correlation Audit History<br/>[server.js]")]
end

node_analyst(("CTI Analyst"))
node_ipfs["IPFS Daemon"]

node_analyst -->|"uses"| node_dashboard_ui
node_dashboard_ui -->|"requests CTI APIs"| node_api_routes
node_api_routes -->|"routes submissions"| node_cti_ingest
node_cti_ingest -->|"stores records"| node_ledger
node_cti_ingest -->|"uploads payload"| node_ipfs
node_integrity_check -->|"loads record"| node_ledger
node_integrity_check -->|"fetches payload"| node_ipfs
node_integrity_check -->|"updates status and reputation"| node_ledger
node_api_routes -->|"calls correlation"| node_correlation_engine
node_correlation_engine -->|"loads mappings"| node_attack_mappings
node_api_routes -->|"loads record and contributor"| node_ledger
node_api_routes -->|"persists and retrieves"| node_correlation_history

click node_dashboard_ui "https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-dashboard/src/App.js"
click node_api_routes "https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/server.js"
click node_cti_ingest "https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/server.js"
click node_integrity_check "https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/server.js"
click node_ledger "https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/server.js"
click node_correlation_engine "https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/correlation-engine.js"
click node_attack_mappings "https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/data/attack-mappings.json"
click node_correlation_history "https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/server.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_dashboard_ui toneBlue
class node_api_routes toneAmber
class node_cti_ingest,node_integrity_check,node_ledger toneMint
class node_correlation_engine,node_attack_mappings,node_correlation_history toneRose
class node_analyst,node_ipfs toneIndigo
```

## Components

### Dashboard

- [CTI Dashboard](https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-dashboard/src/App.js): `cti-dashboard/src/App.js`

### Backend API

- [API Routes](https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/server.js): `cti-backend/server.js`

### CTI and Integrity

- [CTI Ingestion](https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/server.js): `cti-backend/server.js`
- [Integrity Verification](https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/server.js): `cti-backend/server.js`
- [CTI Ledger and Reputation](https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/server.js): `cti-backend/server.js`

### Correlation

- [Correlation Engine](https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/correlation-engine.js): `cti-backend/correlation-engine.js`
- [ATT&CK Mappings](https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/data/attack-mappings.json): `cti-backend/data/attack-mappings.json`
- [Correlation Audit History](https://github.com/thejasm24/blockchain-cti-framework/blob/main/cti-backend/server.js): `cti-backend/server.js`

### Other components

- **CTI Analyst**
- **IPFS Daemon**

## Connections

- CTI Analyst → CTI Dashboard: uses (evidence: `cti-dashboard/src/App.js`)
- CTI Dashboard → API Routes: requests CTI APIs (evidence: `cti-dashboard/src/App.js`)
- API Routes → CTI Ingestion: routes submissions (evidence: `cti-backend/server.js`)
- CTI Ingestion → CTI Ledger and Reputation: stores records (evidence: `cti-backend/server.js`)
- CTI Ingestion → IPFS Daemon: uploads payload (evidence: `cti-backend/server.js`)
- Integrity Verification → CTI Ledger and Reputation: loads record (evidence: `cti-backend/server.js`)
- Integrity Verification → IPFS Daemon: fetches payload (evidence: `cti-backend/server.js`)
- Integrity Verification → CTI Ledger and Reputation: updates status and reputation (evidence: `cti-backend/server.js`)
- API Routes → Correlation Engine: calls correlation (evidence: `cti-backend/server.js`)
- Correlation Engine → ATT&CK Mappings: loads mappings (evidence: `cti-backend/correlation-engine.js`)
- API Routes → CTI Ledger and Reputation: loads record and contributor (evidence: `cti-backend/server.js`)
- API Routes → Correlation Audit History: persists and retrieves (evidence: `README.md`)
