How santhoshkumars08430-afk/cloudsecurityproject works
This Flask application lets an operator log in, upload network-event CSV data, and inspect AI-classified traffic through dashboard, network, detection, alert, and report views; reports can also be downloaded as CSV. The runtime reads uploaded events from a CSV file and applies a pre-trained model. A separate SQLite helper and model-training script exist, but the sampled application does not connect to the database helper. Relationships below are limited to those shown in the sampled source; templates were not inspected.
Main entry points: app.py Event reader · network_data.csv Network events CSV · threat_model.pkl Threat classifier · train_model.py Model training
Components 14
Access and ingestion
- Login
app.py - CSV upload
app.py - Network events CSV
data/network_data.csv
Traffic analysis
- Event reader
app.py - Threat classifier
models/threat_model.pkl
Security views and reports
- Dashboard
templates/dashboard.html - Network view
templates/network.html - AI detection view
templates/ai_detection.html - Alerts view
templates/alerts.html - Reports view
templates/reports.html - Report download
app.py
Supporting components
- Model training
models/train_model.py - SQLite event helper
database/database.py
Other components
- Operator
Connections 13
- Operator → Login: submits credentials
app.py - Login → Operator: redirects on success
app.py - Operator → CSV upload: uploads CSV
app.py - CSV upload → Network events CSV: saves and validates
app.py - Event reader → Network events CSV: reads events
app.py - Event reader → Threat classifier: predicts threats
app.py - Model training → Threat classifier: saves trained model
models/train_model.py - Operator → Dashboard: requests dashboard
- Operator → Network view: requests network
- Operator → AI detection view: requests detection
- Operator → Alerts view: requests alerts
- Operator → Reports view: requests reports
- Operator → Report download: requests download
app.py