# samanja7/vital-soc-defence architecture

> Architecture diagram of the GitHub repository samanja7/vital-soc-defence, 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/samanja7/vital-soc-defence
- Repository: https://github.com/samanja7/vital-soc-defence

## Overview

VITAL-SOC is a deterministic security-alert triage and CTI retrieval demonstration, with provenance and research-claim auditing. The principal workflow is an analyst submitting an alert through the Gradio interface; analysis retrieves CTI and applies a heuristic, then reports a disposition and evidence. Separate prototype and audit capabilities are visible in app.py. The repository contains only this application file; the excerpts do not show all internal wiring, so unsupported relationships are omitted. There is no README content to add further documented capabilities.

Main entry points: [`app.py`](https://github.com/samanja7/vital-soc-defence/blob/main/app.py) (Alert analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Alert workflow"]
  node_interface["Gradio interface<br/>[app.py]"]
  node_analysis["Alert analysis<br/>[app.py]"]
  node_triage["Rule triage<br/>[app.py]"]
  node_result["Disposition and evidence<br/>[app.py]"]
end

subgraph group_knowledge["CTI and evidence"]
  node_retriever["Hybrid retriever<br/>[app.py]"]
  node_cti_loader["STIX CTI loader<br/>[app.py]"]
  node_case_data[("Case data<br/>[app.py]")]
end

subgraph group_audit["Provenance and audit"]
  node_provenance["Source provenance checks<br/>[app.py]"]
  node_claim_audit["Claim and count audit<br/>[app.py]"]
  node_run_audit["Run output audit<br/>[app.py]"]
end

node_analyst(("Analyst"))
node_mitre[("MITRE ATT&amp;CK data")]

node_analyst -->|"submits alert"| node_interface
node_interface -.->|"requests analysis"| node_analysis
node_analysis -->|"searches CTI"| node_retriever
node_analysis -->|"classifies alert"| node_triage
node_analysis -->|"returns findings"| node_result
node_mitre -->|"provides STIX"| node_cti_loader
node_cti_loader -->|"writes records"| node_case_data
node_provenance -->|"checks lineage"| node_case_data
node_run_audit -->|"verifies sources"| node_provenance
node_run_audit -.->|"checks claims"| node_claim_audit

click node_interface "https://github.com/samanja7/vital-soc-defence/blob/main/app.py"
click node_analysis "https://github.com/samanja7/vital-soc-defence/blob/main/app.py"
click node_triage "https://github.com/samanja7/vital-soc-defence/blob/main/app.py"
click node_retriever "https://github.com/samanja7/vital-soc-defence/blob/main/app.py"
click node_cti_loader "https://github.com/samanja7/vital-soc-defence/blob/main/app.py"
click node_case_data "https://github.com/samanja7/vital-soc-defence/blob/main/app.py"
click node_provenance "https://github.com/samanja7/vital-soc-defence/blob/main/app.py"
click node_claim_audit "https://github.com/samanja7/vital-soc-defence/blob/main/app.py"
click node_run_audit "https://github.com/samanja7/vital-soc-defence/blob/main/app.py"
click node_result "https://github.com/samanja7/vital-soc-defence/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_interface,node_analysis,node_triage,node_result toneBlue
class node_retriever,node_cti_loader,node_case_data,node_mitre toneAmber
class node_provenance,node_claim_audit,node_run_audit toneMint
class node_analyst toneIndigo
```

## Components

### Alert workflow

- [Gradio interface](https://github.com/samanja7/vital-soc-defence/blob/main/app.py): `app.py`
- [Alert analysis](https://github.com/samanja7/vital-soc-defence/blob/main/app.py): `app.py`
- [Rule triage](https://github.com/samanja7/vital-soc-defence/blob/main/app.py): `app.py`
- [Disposition and evidence](https://github.com/samanja7/vital-soc-defence/blob/main/app.py): `app.py`

### CTI and evidence

- [Hybrid retriever](https://github.com/samanja7/vital-soc-defence/blob/main/app.py): `app.py`
- [STIX CTI loader](https://github.com/samanja7/vital-soc-defence/blob/main/app.py): `app.py`
- [Case data](https://github.com/samanja7/vital-soc-defence/blob/main/app.py): `app.py`

### Provenance and audit

- [Source provenance checks](https://github.com/samanja7/vital-soc-defence/blob/main/app.py): `app.py`
- [Claim and count audit](https://github.com/samanja7/vital-soc-defence/blob/main/app.py): `app.py`
- [Run output audit](https://github.com/samanja7/vital-soc-defence/blob/main/app.py): `app.py`

### Other components

- **Analyst**
- **MITRE ATT&CK data**

## Connections

- Analyst → Gradio interface: submits alert (evidence: `app.py`)
- Gradio interface → Alert analysis: requests analysis (evidence: `app.py`)
- Alert analysis → Hybrid retriever: searches CTI (evidence: `app.py`)
- Alert analysis → Rule triage: classifies alert (evidence: `app.py`)
- Alert analysis → Disposition and evidence: returns findings (evidence: `app.py`)
- MITRE ATT&CK data → STIX CTI loader: provides STIX (evidence: `app.py`)
- STIX CTI loader → Case data: writes records (evidence: `app.py`)
- Source provenance checks → Case data: checks lineage (evidence: `app.py`)
- Run output audit → Source provenance checks: verifies sources (evidence: `app.py`)
- Run output audit → Claim and count audit: checks claims (evidence: `app.py`)
