# lhh0627/capstone1 architecture

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

- Interactive diagram: https://gitdiagram.com/lhh0627/capstone1
- Repository: https://github.com/lhh0627/capstone1

## Overview

This repository contains a capstone proposal, not implementation source. The graph therefore describes the proposed Wazuh triage assistant using README.md as evidence; component paths point to that proposal, not to verified code. The documented workflow runs from Wazuh alert ingestion through evidence gathering, enrichment, bounded LLM triage and report validation to analyst review, with decisions audited and containment simulated. The proposal also describes replay and evaluation capabilities; their internal implementation and some stage-to-stage call details are not available.

Main entry points: [`README.md`](https://github.com/lhh0627/capstone1/blob/main/README.md) (Analyst Console)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Alert Evidence"]
  node_ingestion["Alert Ingestion<br/>[README.md]"]
  node_log_collection["Log Collection<br/>[README.md]"]
  node_indicators["Indicator Extraction<br/>[README.md]"]
  node_enrichment["Threat Enrichment<br/>[README.md]"]
  node_host_inventory[("Host Inventory<br/>[README.md]")]
end

subgraph group_analysis["Triage Analysis"]
  node_triage_agent["LLM Triage Agent<br/>[README.md]"]
  node_report["Triage Report<br/>[README.md]"]
  node_validator["Report Validator<br/>[README.md]"]
end

subgraph group_review["Human Review"]
  node_console["Analyst Console<br/>[README.md]"]
  node_audit_log[("Audit Log<br/>[README.md]")]
  node_containment["Simulated Containment<br/>[README.md]"]
  node_incident_summary["Incident Summary<br/>[README.md]"]
end

subgraph group_validation["Replay And Evaluation"]
  node_replay["Replay Mode<br/>[README.md]"]
  node_evaluation["Evaluation Harness<br/>[README.md]"]
  node_baselines["Evaluation Baselines<br/>[README.md]"]
end

node_wazuh{{"Wazuh"}}
node_threat_services{{"Threat Intel APIs"}}
node_hosted_llm{{"Hosted LLM API"}}
node_analyst(("Analyst"))

node_wazuh -->|"raises alerts"| node_ingestion
node_ingestion -->|"collects related logs"| node_log_collection
node_log_collection -->|"extracts indicators"| node_indicators
node_indicators -->|"checks indicators"| node_enrichment
node_enrichment -->|"queries"| node_threat_services
node_enrichment -->|"looks up hosts"| node_host_inventory
node_triage_agent -->|"requests triage"| node_hosted_llm
node_triage_agent -->|"produces"| node_report
node_report -->|"validates"| node_validator
node_validator -->|"presents validated report"| node_console
node_analyst -->|"reviews report"| node_console
node_console -->|"stores decision"| node_audit_log
node_console -->|"simulates approved action"| node_containment
node_report -->|"generates summary"| node_incident_summary
node_replay -->|"replays stored alerts"| node_ingestion
node_evaluation -->|"compares against"| node_baselines

click node_ingestion "https://github.com/lhh0627/capstone1/blob/main/README.md"
click node_log_collection "https://github.com/lhh0627/capstone1/blob/main/README.md"
click node_indicators "https://github.com/lhh0627/capstone1/blob/main/README.md"
click node_enrichment "https://github.com/lhh0627/capstone1/blob/main/README.md"
click node_host_inventory "https://github.com/lhh0627/capstone1/blob/main/README.md"
click node_triage_agent "https://github.com/lhh0627/capstone1/blob/main/README.md"
click node_report "https://github.com/lhh0627/capstone1/blob/main/README.md"
click node_validator "https://github.com/lhh0627/capstone1/blob/main/README.md"
click node_console "https://github.com/lhh0627/capstone1/blob/main/README.md"
click node_audit_log "https://github.com/lhh0627/capstone1/blob/main/README.md"
click node_containment "https://github.com/lhh0627/capstone1/blob/main/README.md"
click node_incident_summary "https://github.com/lhh0627/capstone1/blob/main/README.md"
click node_replay "https://github.com/lhh0627/capstone1/blob/main/README.md"
click node_evaluation "https://github.com/lhh0627/capstone1/blob/main/README.md"
click node_baselines "https://github.com/lhh0627/capstone1/blob/main/README.md"

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_ingestion,node_log_collection,node_indicators,node_enrichment,node_host_inventory toneBlue
class node_triage_agent,node_report,node_validator toneAmber
class node_console,node_audit_log,node_containment,node_incident_summary,node_threat_services,node_hosted_llm toneMint
class node_replay,node_evaluation,node_baselines toneRose
class node_wazuh,node_analyst toneIndigo
```

## Components

### Alert Evidence

- [Alert Ingestion](https://github.com/lhh0627/capstone1/blob/main/README.md): `README.md`
- [Log Collection](https://github.com/lhh0627/capstone1/blob/main/README.md): `README.md`
- [Indicator Extraction](https://github.com/lhh0627/capstone1/blob/main/README.md): `README.md`
- [Threat Enrichment](https://github.com/lhh0627/capstone1/blob/main/README.md): `README.md`
- [Host Inventory](https://github.com/lhh0627/capstone1/blob/main/README.md): `README.md`

### Triage Analysis

- [LLM Triage Agent](https://github.com/lhh0627/capstone1/blob/main/README.md): `README.md`
- [Triage Report](https://github.com/lhh0627/capstone1/blob/main/README.md): `README.md`
- [Report Validator](https://github.com/lhh0627/capstone1/blob/main/README.md): `README.md`

### Human Review

- [Analyst Console](https://github.com/lhh0627/capstone1/blob/main/README.md): `README.md`
- [Audit Log](https://github.com/lhh0627/capstone1/blob/main/README.md): `README.md`
- [Simulated Containment](https://github.com/lhh0627/capstone1/blob/main/README.md): `README.md`
- [Incident Summary](https://github.com/lhh0627/capstone1/blob/main/README.md): `README.md`

### Replay And Evaluation

- [Replay Mode](https://github.com/lhh0627/capstone1/blob/main/README.md): `README.md`
- [Evaluation Harness](https://github.com/lhh0627/capstone1/blob/main/README.md): `README.md`
- [Evaluation Baselines](https://github.com/lhh0627/capstone1/blob/main/README.md): `README.md`

### Other components

- **Wazuh**
- **Threat Intel APIs**
- **Hosted LLM API**
- **Analyst**

## Connections

- Wazuh → Alert Ingestion: raises alerts (evidence: `README.md`)
- Alert Ingestion → Log Collection: collects related logs (evidence: `README.md`)
- Log Collection → Indicator Extraction: extracts indicators (evidence: `README.md`)
- Indicator Extraction → Threat Enrichment: checks indicators (evidence: `README.md`)
- Threat Enrichment → Threat Intel APIs: queries (evidence: `README.md`)
- Threat Enrichment → Host Inventory: looks up hosts (evidence: `README.md`)
- LLM Triage Agent → Hosted LLM API: requests triage (evidence: `README.md`)
- LLM Triage Agent → Triage Report: produces (evidence: `README.md`)
- Triage Report → Report Validator: validates (evidence: `README.md`)
- Report Validator → Analyst Console: presents validated report (evidence: `README.md`)
- Analyst → Analyst Console: reviews report (evidence: `README.md`)
- Analyst Console → Audit Log: stores decision (evidence: `README.md`)
- Analyst Console → Simulated Containment: simulates approved action (evidence: `README.md`)
- Triage Report → Incident Summary: generates summary (evidence: `README.md`)
- Replay Mode → Alert Ingestion: replays stored alerts (evidence: `README.md`)
- Evaluation Harness → Evaluation Baselines: compares against (evidence: `README.md`)
