How javaidgithub/threat-track-ai works
Threat-Track-AI combines a Streamlit log-analysis interface with staged notebook workflows for preprocessing, anomaly detection, and AI-assisted investigation. The documented flow is log input, preprocessing, detection, AI interpretation, and dashboard presentation. The Streamlit dashboard also posts individual logs to an external API and summarizes uploaded CSVs locally. A separate React UI provides landing, sign-in, sign-up, and dashboard screens; its sampled auth handlers only navigate, so no backend integration is shown there. Notebook internals and the API implementation were not sampled; workflow links reflect README documentation, not verified code calls.
Main entry points: Dashboard.py Log Dashboard · App.jsx React Router · Landing_page.py Product Landing · SignUp.py Registration
Components 18
Streamlit App
- Product Landing
pages/Landing_page.py - Registration
pages/SignUp.py - Login
pages/LogIn.py - Log Dashboard
pages/Dashboard.py
Log Analysis
- Initial Detection
Stage_1 - Preprocessing
Stage-2 - Embeddings / Tuning
Stage_3 - Log Datasets
Stage_1/accesslog.csv
AI Investigation
- Agent Experiments
AI_Agent - Classifier Experiment
Classifier_Agent.ipynb
React UI
- React Router
Dashboard/src/App.jsx - React Landing
Dashboard/src/components/LandingPage.jsx - React Sign-up
Dashboard/src/components/SignUp.jsx - React Sign-in
Dashboard/src/components/SignIn.jsx - React Dashboard
Dashboard/src/components/Dashboard.jsx
Other components
- Analyst
- Log Sources
- Auth / Log API
Connections 23
- Analyst → Product Landing: opens
- Product Landing → Registration: links to
- Product Landing → Login: links to
- Registration → Auth / Log API: registers via API
- Login → Auth / Log API: authenticates via API
- Login → Log Dashboard: navigates on success
- Registration → Log Dashboard: navigates on success
- Log Sources → Preprocessing: logs for preparation
- Log Datasets → Initial Detection: experimental inputs
- Preprocessing → Initial Detection: prepared logs
- Preprocessing → Embeddings / Tuning: prepared text / features
- Initial Detection → Agent Experiments: detection findings
- Embeddings / Tuning → Agent Experiments: model experimentation
- Agent Experiments → Log Dashboard: analysis support
- Analyst → Log Dashboard: enters log or uploads CSV
- Log Dashboard → Auth / Log API: posts individual logs
- Log Dashboard → Analyst: shows response and CSV summaries
- React Router → React Landing: routes /
- React Router → React Sign-up: routes /signup
- React Router → React Sign-in: routes /login
- React Router → React Dashboard: routes /Dashboard
- React Sign-up → React Dashboard: navigates on submit
- React Sign-in → React Dashboard: navigates on submit