-
Notifications
You must be signed in to change notification settings - Fork 2
Usage Guide
SecureNet IDS edited this page Aug 31, 2026
·
1 revision
# From project root
python backend/main.pyThe FastAPI server starts on http://localhost:8000
cd securenet-ui
npm run devThe React dashboard opens on http://localhost:5173
- Live packet counters (total, malicious, normal)
- Real-time threat activity chart
- Active alerts summary
- System health status
- Live WebSocket-streamed attack alerts
- Historical alerts from database
- Filter by risk level, attack type, time range
- Manual IP block button on each alert
- CSV export
- Live traffic table (source IP, dest IP, protocol, size)
- IP reputation status (monitored, blocked, suspicious)
- Incoming/outgoing traffic trend chart
- Admin view: all IPs + full control
- User view: personal session traffic only
- Real-time system event log
- Filter by level: ALL / INFO / WARNING / ERROR
- Search by keyword
- Admin view: system-wide logs
- User view: personal activity logs
- ML prediction confidence trends
- Attack type distribution (Pie chart)
- Model accuracy metrics
- Threat intelligence summary
- Generate PDF/CSV reports
- Time range selection
- Alert, log, and statistics summaries
- Full administrative action trail
- Filter by action, user, date range
- CSV export for compliance
- Organization management (create, suspend, activate)
- User management (create, assign roles, deactivate)
- Role-based access control
- Click the βΆ Start Monitoring button on the Dashboard
- Click βΉ Stop Monitoring to pause
# Start monitoring
curl -X POST http://localhost:8000/start-monitoring
# Stop monitoring
curl -X POST http://localhost:8000/stop-monitoring
# Check status
curl http://localhost:8000/status- Go to Alerts page
- Click the π« Block IP button on any alert
- The IP is immediately added to the blacklist
curl -X POST http://localhost:8000/blacklist \
-H "Content-Type: application/json" \
-d '{"ip_address": "198.51.100.1", "reason": "Brute force attack"}'curl -X POST http://localhost:8000/check-ip \
-H "Content-Type: application/json" \
-d '{"ip_address": "8.8.8.8"}'Connect to the live event stream:
const ws = new WebSocket("ws://localhost:8000/ws");
ws.onmessage = (event) => {
const data = JSON.parse(event.data);
// data.type: "alert" | "status" | "stats" | "log"
console.log(data);
};# Export alerts as CSV
curl http://localhost:8000/export/alerts -o alerts.csv
# Export audit logs as CSV
curl http://localhost:8000/api/v1/reports/audit-logs/export -o audit.csv