-
Create Python venv and activate: python -m venv .venv source .venv/bin/activate # or .venv\Scripts\activate on Windows
-
Install requirements: pip install -r requirements.txt
-
(Optional) If you will enable live capture locally:
- Install pyshark or scapy and run with proper permissions.
- Set env: ENABLE_LIVE_CAPTURE=true and optionally LIVE_INTERFACE=eth0
-
Run backend: python main.py
- POST /api/start {source: simulation|live}
- POST /api/stop
- POST /api/switch {source}
- GET /api/status
- POST /api/inject
- GET /api/download/logs → zipped CSV logs
- Live capture is disabled by default (ENABLE_LIVE_CAPTURE=false).
- Mitigation actions are simulated and logged; real system firewall commands are disabled unless ALLOW_LOCAL_MITIGATION=true (not implemented by default).