How it works
What NetSentinel does, step by step, and why each technology is here
Pipeline
Data flows from the network to the screen in six steps
Discovery
ARP and nmap find devices and their MAC vendor
Port scan
nmap checks common ports and flags risky services
Traffic capture
Scapy samples connections; GeoIP adds country and city
Anomaly detection
Rules for suspicious ports, watchlist countries and spikes
Alerts
Stored in PostgreSQL and pushed over WebSocket
Dashboard
This Next.js app, in English and Hebrew
Technologies and why
| Technology | Why it is here |
|---|---|
| FastAPI | Async Python API: scans and captures run without blocking requests |
| PostgreSQL | Devices, scans, alerts, traffic and SOC 2 evidence in one relational store |
| Redis | Cache and pub/sub for live updates |
| APScheduler | Runs discovery every 5 minutes, port scans hourly and captures every 2 minutes |
| WebSocket | Pushes new alerts to the dashboard as they happen |
| Scapy | Reads packets to see which devices talk to which hosts |
| nmap | Industry-standard discovery and port scanning |
| GeoIP2 | Turns IP addresses into countries for the watchlist rule |
| Next.js | React UI, exported as static files for this demo |
What runs in this demo
This page is the real NetSentinel interface with a sample home network loaded in your browser. Scanning a real network needs nmap and root access on a local machine, so it runs only in a local install (see the README).