How am1rarshad/arpspoofnewday works
This is an ARP intrusion-detection dashboard: the backend captures network traffic, derives packet features, detects suspicious activity with rules and an ML scorer, and serves alerts and live metrics to an authenticated web UI. Operators can inspect/export alerts, provide feedback, manage account settings, and control model retraining. The graph follows the documented capture-to-detection-to-alert path and the sampled UI wiring; unsampled routes and integrations are not inferred.
Main entry points: App.jsx Dashboard shell · main.py API and event server · api.js HTTP client · AlertCenter.jsx Alert center
Components 21
Capture and detection
- Packet sniffer
ids_project/backend/sniffer.py - Feature engineering
ids_project/backend/features.py - Rule and ML engines
ids_project/backend/engine.py
Backend services
- API and event server
ids_project/backend/main.py - Authentication
ids_project/backend/auth.py
Dashboard interface
- Dashboard shell
ids_project/frontend/src/App.jsx - HTTP client
ids_project/frontend/src/api.js - Login view
ids_project/frontend/src/components/Login.jsx - Network overview
ids_project/frontend/src/components/NetworkOverview.jsx - Alert center
ids_project/frontend/src/components/AlertCenter.jsx - Alert table
ids_project/frontend/src/components/AlertTable.jsx - Alert details
ids_project/frontend/src/components/AlertDetailModal.jsx - Account settings
ids_project/frontend/src/components/AccountConfig.jsx - Model controls
ids_project/frontend/src/components/ModelControl.jsx - WebSocket hook
ids_project/frontend/src/hooks/useWebSocket.js - React entry point
ids_project/frontend/src/main.jsx
Persistence and learning
- IDS data store
ids_project/backend/database.py - Model training
ids_project/backend/train_model.py - Alert data file
ids_project/backend/alerts.json
Other components
- ARP traffic
- Security operator
Connections 30
- ARP traffic → Packet sniffer: supplies packets
ids_project/backend/sniffer.py - Packet sniffer → Feature engineering: derives features
ids_project/backend/sniffer.py - Packet sniffer → Rule and ML engines: scores traffic
ids_project/backend/sniffer.py - Packet sniffer → IDS data store: reads state
ids_project/backend/sniffer.py - API and event server → Packet sniffer: starts capture
ids_project/backend/main.py - API and event server → IDS data store: records alerts
ids_project/backend/main.py - API and event server → Authentication: authenticates routes
ids_project/backend/main.py - Authentication → IDS data store: looks up users
ids_project/backend/auth.py - Rule and ML engines → Feature engineering: consumes features
ids_project/backend/engine.py - Rule and ML engines → IDS data store: loads feedback
ids_project/backend/engine.py - Model training → Feature engineering: uses feature schema
ids_project/backend/train_model.py - API and event server → Security operator: sends notifications
- Security operator → React entry point: opens dashboard
ids_project/frontend/src/main.jsx - React entry point → Dashboard shell: renders
ids_project/frontend/src/main.jsx - Dashboard shell → Login view: shows login
ids_project/frontend/src/App.jsx - Dashboard shell → Network overview: selects overview
ids_project/frontend/src/App.jsx - Dashboard shell → Alert center: selects alerts
ids_project/frontend/src/App.jsx - Dashboard shell → Account settings: selects settings
ids_project/frontend/src/App.jsx - Dashboard shell → Model controls: selects model
ids_project/frontend/src/App.jsx - Login view → HTTP client: submits credentials
ids_project/frontend/src/components/Login.jsx - Network overview → HTTP client: requests ARP table
ids_project/frontend/src/components/NetworkOverview.jsx - Network overview → WebSocket hook: subscribes metrics
ids_project/frontend/src/components/NetworkOverview.jsx - Alert center → HTTP client: loads alert data
ids_project/frontend/src/components/AlertCenter.jsx - Alert center → WebSocket hook: subscribes alerts
ids_project/frontend/src/components/AlertCenter.jsx - Alert center → Alert table: renders rows
ids_project/frontend/src/components/AlertCenter.jsx - Alert center → Alert details: opens details
ids_project/frontend/src/components/AlertCenter.jsx - Account settings → HTTP client: manages account
ids_project/frontend/src/components/AccountConfig.jsx - Model controls → HTTP client: controls retraining
ids_project/frontend/src/components/ModelControl.jsx - HTTP client → API and event server: calls API
ids_project/frontend/src/api.js - WebSocket hook → API and event server: receives live events