# deiva-sundaravel-p/linux-security-incident-triage architecture

> Architecture diagram of the GitHub repository deiva-sundaravel-p/linux-security-incident-triage, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/deiva-sundaravel-p/linux-security-incident-triage
- Repository: https://github.com/deiva-sundaravel-p/linux-security-incident-triage

## Overview

This is a Streamlit application for analyzing Linux authentication logs and triaging security incidents. The principal workflow is to submit logs, parse them into normalized events, detect and score incidents, then review and manage findings in the dashboard. Analysts can also run a deterministic investigation workflow that retrieves supporting evidence, explains rules and severity, identifies uncertainty, and records an audit; it does not execute remediation. The excerpts show the main domain stages, but omit much of the dashboard orchestration, so some workflow links are marked unverified.

Main entry points: [`linux-security-incident-triage/app.py`](https://github.com/deiva-sundaravel-p/linux-security-incident-triage/blob/main/linux-security-incident-triage/app.py) (Triage Dashboard), [`linux-security-incident-triage/investigation.py`](https://github.com/deiva-sundaravel-p/linux-security-incident-triage/blob/main/linux-security-incident-triage/investigation.py) (Investigation Workflow), [`linux-security-incident-triage/database.py`](https://github.com/deiva-sundaravel-p/linux-security-incident-triage/blob/main/linux-security-incident-triage/database.py) (SQLite Store), [`linux-security-incident-triage/log_parser.py`](https://github.com/deiva-sundaravel-p/linux-security-incident-triage/blob/main/linux-security-incident-triage/log_parser.py) (Log Parser)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_analysis["Log Analysis"]
  node_parser["Log Parser<br/>[log_parser.py]"]
  node_detector["Incident Detection"]
end

subgraph group_triage["Incident Triage"]
  node_dashboard["Triage Dashboard<br/>[app.py]"]
  node_scorer["Risk Scoring<br/>[incident_scorer.py]"]
end

subgraph group_persistence["Persistence"]
  node_database[("SQLite Store<br/>[database.py]")]
end

subgraph group_investigation["Investigation"]
  node_investigator["Investigation Workflow<br/>[investigation.py]"]
end

node_analyst(("Analyst"))

node_analyst -.->|"submits logs"| node_dashboard
node_dashboard -.->|"requests parsing"| node_parser
node_parser -.->|"provides events"| node_detector
node_dashboard -.->|"requests scoring"| node_scorer
node_dashboard -->|"manages runs"| node_database
node_dashboard -.->|"presents reports"| node_investigator
node_investigator -->|"fetches evidence"| node_database
node_investigator -->|"saves audit"| node_database

click node_dashboard "https://github.com/deiva-sundaravel-p/linux-security-incident-triage/blob/main/linux-security-incident-triage/app.py"
click node_parser "https://github.com/deiva-sundaravel-p/linux-security-incident-triage/blob/main/linux-security-incident-triage/log_parser.py"
click node_detector "https://github.com/deiva-sundaravel-p/linux-security-incident-triage/blob/main/linux-security-incident-triage/detection_engine.py"
click node_scorer "https://github.com/deiva-sundaravel-p/linux-security-incident-triage/blob/main/linux-security-incident-triage/incident_scorer.py"
click node_database "https://github.com/deiva-sundaravel-p/linux-security-incident-triage/blob/main/linux-security-incident-triage/database.py"
click node_investigator "https://github.com/deiva-sundaravel-p/linux-security-incident-triage/blob/main/linux-security-incident-triage/investigation.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_parser,node_detector toneBlue
class node_dashboard,node_scorer toneAmber
class node_database toneMint
class node_investigator toneRose
class node_analyst toneIndigo
```

## Components

### Log Analysis

- [Log Parser](https://github.com/deiva-sundaravel-p/linux-security-incident-triage/blob/main/linux-security-incident-triage/log_parser.py): `linux-security-incident-triage/log_parser.py`
- [Incident Detection](https://github.com/deiva-sundaravel-p/linux-security-incident-triage/blob/main/linux-security-incident-triage/detection_engine.py): `linux-security-incident-triage/detection_engine.py`

### Incident Triage

- [Triage Dashboard](https://github.com/deiva-sundaravel-p/linux-security-incident-triage/blob/main/linux-security-incident-triage/app.py): `linux-security-incident-triage/app.py`
- [Risk Scoring](https://github.com/deiva-sundaravel-p/linux-security-incident-triage/blob/main/linux-security-incident-triage/incident_scorer.py): `linux-security-incident-triage/incident_scorer.py`

### Persistence

- [SQLite Store](https://github.com/deiva-sundaravel-p/linux-security-incident-triage/blob/main/linux-security-incident-triage/database.py): `linux-security-incident-triage/database.py`

### Investigation

- [Investigation Workflow](https://github.com/deiva-sundaravel-p/linux-security-incident-triage/blob/main/linux-security-incident-triage/investigation.py): `linux-security-incident-triage/investigation.py`

### Other components

- **Analyst**

## Connections

- Analyst → Triage Dashboard: submits logs
- Triage Dashboard → Log Parser: requests parsing (evidence: `linux-security-incident-triage/app.py`)
- Log Parser → Incident Detection: provides events (evidence: `linux-security-incident-triage/detection_engine.py`)
- Triage Dashboard → Risk Scoring: requests scoring (evidence: `linux-security-incident-triage/app.py`)
- Triage Dashboard → SQLite Store: manages runs (evidence: `linux-security-incident-triage/app.py`)
- Triage Dashboard → Investigation Workflow: presents reports (evidence: `linux-security-incident-triage/app.py`)
- Investigation Workflow → SQLite Store: fetches evidence (evidence: `linux-security-incident-triage/investigation.py`)
- Investigation Workflow → SQLite Store: saves audit (evidence: `linux-security-incident-triage/investigation.py`)
