How krish74w/ml-based-cybersecurity-anomaly-detector works
This is a Streamlit cybersecurity investigation platform. Its main workflow generates synthetic event telemetry, runs sequence-aware binary anomaly detection, classifies detected attacks, and produces evidence-driven explanations; analysts review results in the dashboard and reporting pages. The README documents the end-to-end demonstration and reporting capabilities, while sampled pipeline code confirms orchestration and generator invocation. Several model implementations and report-page details were not sampled, so their internal relationships are shown only where documented.
Main entry points: pipeline.py Pipeline Orchestrator · outputs Prediction & Explanation Files · dashboard.py Command Dashboard · 1_Data_Generation.py Data Generation
Components 21
Analyst Interface
- Command Dashboard
app/dashboard.py - Data Generation
app/pages/1_Data_Generation.py - Detector Controls
app/pages/2_GRU_Detector.py - Classifier Controls
app/pages/3_Attack_Classifier.py - Explanation Review
app/pages/4_Explainability.py - Telemetry Analytics
app/pages/5_Analytics.py - Executive Reports
app/pages/6_Reports.py
Detection Workflow
- Pipeline Orchestrator
app/pipeline.py - Telemetry Generator
app/data_generator.py - GRU Anomaly Detector
app/anomaly_detector.py - Attack Classifier
app/attack_classifier.py - Event Dataset
datasets/input_events.csv
Investigation & Reports
- Decision Explainability
app/explainability.py - Prediction & Explanation Files
outputs - Briefing Reports
reports
Application Support
- Cards & Charts
app/components - SOC Theme
app/components/theme.py - Session State
app/utils/session_state.py - Operation Tracker
app/utils/operation_tracker.py - Paths & Model Settings
app/config.py
Other components
- Security Analyst
Connections 33
- Security Analyst → Command Dashboard: uses
README.md - Command Dashboard → Pipeline Orchestrator: runs
app/dashboard.py - Command Dashboard → Cards & Charts: renders with
app/dashboard.py - Command Dashboard → SOC Theme: applies
app/dashboard.py - Command Dashboard → Session State: initializes
app/dashboard.py - Command Dashboard → Operation Tracker: tracks operations
app/dashboard.py - Security Analyst → Data Generation: configures
README.md - Data Generation → Pipeline Orchestrator: requests generation
app/pages/1_Data_Generation.py - Security Analyst → Detector Controls: runs detection
README.md - Detector Controls → Pipeline Orchestrator: requests detection
- Security Analyst → Classifier Controls: runs classification
app/pages/3_Attack_Classifier.py - Classifier Controls → Pipeline Orchestrator: requests classification
app/pages/3_Attack_Classifier.py - Security Analyst → Explanation Review: reviews explanations
README.md - Security Analyst → Telemetry Analytics: explores telemetry
README.md - Security Analyst → Executive Reports: exports briefing
README.md - Pipeline Orchestrator → Telemetry Generator: calls
app/pipeline.py - Pipeline Orchestrator → GRU Anomaly Detector: runs stage
README.md - Pipeline Orchestrator → Attack Classifier: runs stage
README.md - Pipeline Orchestrator → Decision Explainability: runs stage
README.md - Telemetry Generator → Event Dataset: writes events
- Event Dataset → GRU Anomaly Detector: provides telemetry
README.md - GRU Anomaly Detector → Prediction & Explanation Files: writes predictions
README.md - Prediction & Explanation Files → Attack Classifier: provides alert windows
README.md - Attack Classifier → Prediction & Explanation Files: writes classifications
README.md - Prediction & Explanation Files → Decision Explainability: provides alerts
README.md - Decision Explainability → Prediction & Explanation Files: writes explanations
README.md - Prediction & Explanation Files → Explanation Review: supplies explanations
- Executive Reports → Briefing Reports: exports briefing
README.md - Telemetry Analytics → Prediction & Explanation Files: reads results
- Pipeline Orchestrator → Paths & Model Settings: uses paths
app/pipeline.py - Data Generation → Operation Tracker: tracks progress
app/pages/1_Data_Generation.py - Classifier Controls → Operation Tracker: tracks progress
app/pages/3_Attack_Classifier.py - Explanation Review → Cards & Charts: renders charts
app/pages/4_Explainability.py