How thangallapallysiddu-10/insider-threat works
This Django application supports account registration and admin approval, then lets active users train cyberattack classifiers from uploaded CSV data, predict attack types from incident details, and view exploratory charts and model comparisons. The main path runs from routed requests through user views to training or prediction; trained models and preprocessing artifacts are persisted for later predictions. Admin and analytics features are separate branches. The README is empty, and the excerpts do not establish the charts’ dataset source or every URL-to-template relationship, so those links are not inferred.
Main entry points: users/views.py User workflows · urls.py URL routes · admins/views.py Admin workflows · eda.py Graph workflow
Components 19
Web routing
- URL routes
threat_detection/urls.py - User pages
templates/users - Admin pages
templates/admins
Accounts and admin
- User workflows
users/views.py - Registration validation
users/forms.py - Admin workflows
admins/views.py - User records
users/models.py - Admin models
admins/models.py - SQLite database
db.sqlite3
Threat classification
- Model training
users/views.py - Uploaded dataset
- Feature preprocessing
users/views.py - Saved classifiers
media/saved_models - Encoders and scaler
media/saved_encoders - Attack prediction
users/views.py
Exploration and state
- Chart generation
eda.py - Graph workflow
eda.py - Graph cache
media/cache/graph_cache.json
Other components
- User
Connections 22
- User → URL routes: sends request
- URL routes → User workflows: dispatches user
- URL routes → Admin workflows: dispatches admin
- URL routes → Graph workflow: dispatches graphs
- User workflows → Registration validation: validates registration
- User workflows → User records: reads and writes
- User records → SQLite database: persists records
- Admin workflows → User records: reads and updates
- Admin workflows → Admin models: uses models
- Admin models → SQLite database: persists records
- User workflows → Model training: handles training
- Model training → Uploaded dataset: reads upload
- Model training → Feature preprocessing: prepares data
- Feature preprocessing → Encoders and scaler: writes encoders
- Model training → Saved classifiers: saves classifiers
- User workflows → Attack prediction: handles prediction
- Attack prediction → Encoders and scaler: loads transforms
- Attack prediction → Saved classifiers: loads classifier
- User workflows → User pages: renders pages
- Admin workflows → Admin pages: renders pages
- Graph workflow → Graph cache: reads and writes
- Graph workflow → Chart generation: builds charts