How sankar062003/ai-soc-alert-triage works
This repository is a home-lab SOC triage tool and investigation record. Its main workflow reads Wazuh alert files, extracts evidence, assigns a deterministic code verdict, asks a local LLM for explanatory notes, collects an analyst decision, and saves a Markdown report. Separate documented capabilities include a custom Wazuh persistence detection rule and a full simulated-attack investigation. The runtime relationships are supported by the triage.py excerpt; the README documents the broader capabilities. Other source files were not sampled.
Main entry points: triage.py Triage runner · alert1.json Alert 1 · alert3.json Alert 3 · schtasks-persistence-rule.xml Scheduled-task rule
Components 15
Alert triage
- Alert 1
alert1.json - Alert 3
alert3.json - Triage runner
triage.py - Alert extraction
triage.py - Deterministic checks
triage.py - Evidence assembly
triage.py - AI explanation
triage.py - Decision capture
triage.py - Report generation
triage.py - Triage reports
reports
Triage integrations
- Wazuh SIEM
- Local LLM
Detection engineering
- Scheduled-task rule
detection-rules/schtasks-persistence-rule.xml
Attack investigation
- Attack investigation
incident-report-lab2.md
Other components
- SOC analyst
Connections 18
- Wazuh SIEM → Alert 1: provides alert
README.md - Wazuh SIEM → Alert 3: provides alert
README.md - Alert 1 → Alert extraction: supplies JSON
triage.py - Alert 3 → Alert extraction: supplies JSON
triage.py - Triage runner → Alert extraction: loads alerts
triage.py - Triage runner → Deterministic checks: checks context
triage.py - Triage runner → Evidence assembly: builds evidence
triage.py - Triage runner → AI explanation: requests notes
triage.py - Triage runner → Decision capture: collects decision
triage.py - Triage runner → Report generation: writes report
triage.py - Alert extraction → Deterministic checks: passes alert data
triage.py - Alert extraction → Evidence assembly: passes alert data
triage.py - Deterministic checks → Evidence assembly: passes checks
triage.py - Evidence assembly → AI explanation: provides evidence
triage.py - AI explanation → Local LLM: requests explanation
triage.py - SOC analyst → Decision capture: records decision
triage.py - Report generation → Triage reports: saves Markdown
triage.py - Scheduled-task rule → Wazuh SIEM: adds detection
README.md