Kali Scout
Every device on your network, what it's doing, and what's worth worrying about.
A self-hosted network monitor with a security page, per-device bandwidth, AdGuard Home and Linksys Velop integrations, push alerts and an assistant you can ask.
Features · Screenshots · Quick start · Security · Integrations · Privacy · Troubleshooting
Kali Scout runs on a Kali box, a Raspberry Pi, a NAS or any Linux host with Docker. It needs no cloud account and no agent on your devices: one container (or one Node process) and one SQLite file. Point it at your LAN and within a minute you have an inventory of everything on it, live traffic, and a list of things worth a look.
Features
Know what's on your network
- Discovery. Scans the subnet every minute with
arp-scan(falling back to a ping sweep plus the ARP table) and learns devices passively from captured traffic. Vendors come from the IEEE OUI lists; hostnames from reverse DNS, then mDNS (Apple, Linux, printers, IoT), then NetBIOS (Windows, Samba). - Inventory. Name devices, set a type, add notes, mark them as known. Unknown devices are flagged everywhere. Export to JSON or CSV and import back (merged by MAC) from Settings.
- Device fingerprints. DHCP requests are captured passively and reveal the operating system (Windows, Android version, iOS/macOS, Linux, ESP-based IoT) and the name the device gives itself.
- Private MACs. Phones with Wi‑Fi privacy can come back under a new randomised MAC. When one shares its hostname with another record, the device page offers to merge them (any two records can be merged from the ⋯ menu). The merged device keeps the older record's name and settings and both histories.
- The router's view. With a Linksys Velop connected, each device also shows the router's name for it, wired or Wi‑Fi, band, signal strength and which mesh node it's on.
See what it's doing
- Bandwidth. Live per-device download and upload (5‑second window), 1h / 24h / 7d history, top talkers and threshold alerts.
- Usage and data caps. Per-device totals per day and calendar month, kept for 400 days whatever the retention setting. Set a monthly cap on any device for alerts at 80% and 100%.
- DNS lookups. Which names each device looks up, with "new today" markers, which is handy for spotting IoT devices phoning home. With AdGuard Home connected it covers every device and shows what AdGuard blocked and why.
- Presence. Online/offline tracking with a grace period, IP-change detection, a 24h / 7d uptime timeline per device and a full activity log. Time when Kali Scout itself wasn't running shows as "no data" rather than a guess. Offline devices get a Wake button (Wake-on-LAN).
Catch problems early
- A Security page that collects every finding with a severity, what was seen and what to do. Accept one (with a note), snooze it, or block the device involved. See Security.
- Risky ports and certificates. New devices get a quick check of ~35 common ports, and every device is re-checked weekly. Telnet, unauthenticated Docker or ADB, FTP, Remote Desktop, VNC, open databases and MQTT, file sharing on a smart plug, and admin pages without HTTPS are flagged with the reason. Certificates from a real CA warn 14 days before they expire.
- Exposure to the internet. It lists the port forwards devices have opened on the router over UPnP, and checks your public IP in Shodan's free InternetDB for what attackers can see from outside.
- Interception attempts. It alerts when a rogue DHCP server appears, when the router's IP starts answering from different hardware (a replaced router, or ARP spoofing), and when two devices claim the same IP.
- Malicious lookups and DNS bypass. With AdGuard Home connected, lookups blocked by malware or phishing lists raise alerts, and devices that skip AdGuard (their own DNS server, often encrypted) are flagged.
- Unusual behaviour. Each device is compared with its own history: far more upload than usual, activity at hours it's always quiet, and new destinations for smart-home devices.
- Router hygiene. With a Velop connected, it flags the default admin password, remote management, weak Wi‑Fi security, WPS, automatic updates being off, offline mesh nodes and firmware updates waiting.
- Blocking. Cut a device off from its page, the Security page or the assistant: AdGuard Home refuses its DNS, and the router's parental controls block its internet.
Keep an eye on the connection
- Internet health. Every minute it pings the router and public hosts and times a DNS lookup. You get latency and loss charts, an outage log with uptime, and alerts when the connection drops and comes back. Comparing the router with the internet tells a Wi‑Fi problem from an ISP one.
- Watched services. The bell next to any open port checks it every minute and alerts when it stops answering: a small uptime monitor for your NAS, Home Assistant or printer.
- AdGuard Home and the mesh. The Internet page also shows AdGuard's query and block rates, response time and upstreams, plus each Velop node's backhaul, signal and firmware.
Get told, your way
- Notifications by Web Push (works with the app closed), Discord, Matrix, ntfy, Gotify, Telegram, Slack or any JSON webhook. Each channel picks its events, and quiet hours hold back everything except security alerts overnight.
- Weekly summary of new devices, data used, busiest devices, outages and service problems.
- Installable app on desktop and phone, with an offline shell and dark mode.
Ask it
- An assistant that answers in plain language ("why was the internet slow last night?", "what's this new device?", "what should I fix first?") from live data and history, links to the devices it mentions, and makes changes when you ask: renaming devices, setting alerts, snoozing findings, blocking a device. A floating button opens it on every page, and it knows what you're looking at. Works with Command Code (with zero data retention), Ollama Cloud, a local Ollama, OpenAI, Anthropic, OpenRouter or any OpenAI-compatible server. See Assistant.
Plug it in
- Home Assistant over MQTT discovery (device trackers for presence, bandwidth sensors), Prometheus at
/metrics, AdGuard Home and Linksys Velop. See Integrations.
Screenshots
All screenshots use the simulated demo network (npm run demo).
Quick start
Docker (recommended)
A prebuilt image is published at tig.sshah.email/cheeba/kali-scout. You only need two files, not a clone:
mkdir kali-scout && cd kali-scout
curl -fsSLO https://tig.sshah.email/Cheeba/kali-scout/raw/branch/main/docker-compose.yml
curl -fsSL https://tig.sshah.email/Cheeba/kali-scout/raw/branch/main/.env.example -o .env
nano .env # set SCOUT_PASSWORD at least
docker compose up -d # then open http://<host>:8787
Update with docker compose pull && docker compose up -d. Devices, history and settings live in the kali-scout-data volume and carry over. More in Docker.
Try it without a network
npm install
npm run demo # simulated network, UI on http://localhost:5173
Or, on any machine with Docker: docker run --rm -p 8787:8787 -e SCOUT_DEMO=1 tig.sshah.email/cheeba/kali-scout:latest.
Then
- Mark the devices you recognise as known, and give them names.
- Open Notifications and add a channel (or Enable push on your phone; see HTTPS).
- Connect AdGuard Home and your router under Integrations if you have them.
- Check the Security page.
How it works
flowchart LR
lan["Devices on your LAN"]
scout["Kali Scout<br/>Fastify + SQLite"]
router["Router<br/>UPnP · Velop API"]
adguard["AdGuard Home"]
app["Web app / PWA"]
alerts["Push · Discord · Matrix<br/>ntfy · Telegram · …"]
ha["Home Assistant · Prometheus"]
ai["Assistant<br/>(your LLM provider)"]
shodan["Shodan InternetDB"]
lan -- "ARP scan · mDNS · NetBIOS · port checks" --> scout
lan -- "DHCP · DNS · traffic (tcpdump)" --> scout
router <--> scout
adguard <--> scout
scout --> app
scout --> alerts
scout --> ha
scout <--> ai
scout -. "public IP, twice a day" .-> shodan
The server is TypeScript run directly by Node (type stripping, no build step for the back end) on Fastify with Node's built-in node:sqlite, so there are no native modules. The front end is Vite + React + shadcn/ui (preset b1Zh5UdSS, Base UI). Live updates reach the browser over server-sent events.
Install on Kali / Debian
Requirements: Node.js ≥ 22.18, plus arp-scan and tcpdump (both ship with Kali).
sudo apt install nodejs npm arp-scan tcpdump
git clone https://tig.sshah.email/Cheeba/kali-scout.git /opt/kali-scout && cd /opt/kali-scout
npm ci
npm run build
cp .env.example .env # set SCOUT_PASSWORD at least
npm start # http://<host>:8787
Permissions
arp-scan and tcpdump need raw sockets. Pick one:
- systemd (recommended):
deploy/kali-scout.serviceruns as a normal user withCAP_NET_RAW+CAP_NET_ADMINas ambient capabilities, which the scanners inherit.sudo cp deploy/kali-scout.service /etc/systemd/system/ sudo systemctl daemon-reload && sudo systemctl enable --now kali-scout - Root:
sudo npm start. Simple, but the web server runs as root too.
Without these, discovery falls back to the ping sweep and bandwidth capture shows an error on the dashboard. The rogue-DHCP probe additionally needs to bind port 68 (root or CAP_NET_BIND_SERVICE); without it, that check only listens.
Docker
Runs on any Linux host with Docker (a Kali box, a NAS, a mini PC).
| Tag | What it is |
|---|---|
latest |
Newest build of main. The default. |
sha-<commit> |
A specific commit of main, e.g. sha-564a3b8. |
1.2.0, 1.2 |
Release tags, once versions are tagged. |
To pin one, set KALI_SCOUT_IMAGE=tig.sshah.email/cheeba/kali-scout:sha-564a3b8 in .env. The image is currently built for amd64 only; on arm64 (e.g. a Raspberry Pi), build from source below.
What the Compose file sets up
network_mode: host. ARP scanning and packet capture have to happen on the LAN itself; a bridged container only sees Docker's private network. With host networking aports:mapping is ignored. The web UI listens on the host's own port instead:SCOUT_PORT, 8787 unless you change it in.envor the compose file. If the host runs a firewall, allow that port (e.g.sudo ufw allow 8787/tcp); Docker doesn't open it for you the way it does for mapped ports.cap_add: NET_RAW, NET_ADMIN. The app runs as the unprivilegednodeuser; the image givesarp-scan,tcpdumpandpingfile capabilities, which only take effect if the container is allowed them. Don't addsecurity_opt: no-new-privileges, which switches file capabilities off./datavolume (kali-scout-data). Database, VAPID keys, session secret and vendor cache. A bind mount works too, but must be writable by uid 1000:sudo chown 1000:1000 ./data.- Settings come from
.envlike a normal install.SCOUT_DATA_DIRis ignored (always/data). For HTTPS, uncomment the./certsmount and pointSCOUT_TLS_CERT/SCOUT_TLS_KEYat/certs/....
The interface is picked from the default route; set SCOUT_INTERFACE (or change it in Settings) if the host has several networks. A healthcheck polls /api/health.
Build from source
git clone https://tig.sshah.email/Cheeba/kali-scout.git && cd kali-scout
cp .env.example .env # set SCOUT_PASSWORD at least
echo 'KALI_SCOUT_IMAGE=kali-scout:local' >> .env
docker compose up -d --build
Update with git pull && docker compose up -d --build. Setting KALI_SCOUT_IMAGE keeps your own build apart from the published image, so a docker compose pull can't replace it.
Without Compose, and Docker Desktop
docker run -d --name kali-scout --restart unless-stopped --init \
--network host --cap-add NET_RAW --cap-add NET_ADMIN \
--env-file .env -v kali-scout-data:/data \
tig.sshah.email/cheeba/kali-scout:latest
Docker Desktop (Windows/macOS) runs containers in a VM, so even with host networking the scanner can't see your LAN. It's still handy for trying the UI with simulated data:
docker run --rm -p 8787:8787 -e SCOUT_DEMO=1 tig.sshah.email/cheeba/kali-scout:latest
Publishing the image (Gitea Actions)
.gitea/workflows/docker.yaml builds the image on a Gitea Actions runner and publishes it to the instance's container registry as <gitea host>/<owner>/<repo>, which for this repo is tig.sshah.email/cheeba/kali-scout. It runs typecheck, lint and tests first. Pushes to the default branch publish :latest, :main and :sha-<commit>, tags such as v1.2.0 publish :1.2.0 and :1.2, and pull requests only build. After pushing, it links the package to the repository so it shows on the repo's Packages tab, and fails the run if that doesn't work.
One-time setup:
- Token. Gitea's built-in job token can't push packages, so create a personal access token (User settings → Applications) with the
write:packagescope, and add it to the repository (or the Cheeba organisation) as the secretREGISTRY_TOKEN(Settings → Actions → Secrets). The token's owner must be able to publish to the repo owner's packages. - Optional variables (Settings → Actions → Variables):
REGISTRY_USERif the token belongs to someone other than whoever triggers the run,REGISTRYif the registry isn't served at the Gitea host name,PLATFORMSto choose the architectures (the default islinux/amd64,linux/arm64). - Runner. Jobs use the
ubuntu-latestlabel. The job container needs the Docker CLI and the host's Docker socket, which a defaultact_runnersetup provides (thegitea/runner-imagesimages include the CLI, and an emptycontainer.docker_hostmounts the socket). arm64 builds run under QEMU, whichdocker/setup-qemu-actioninstalls on the runner's Docker host. - HTTP-only Gitea. If the instance has no HTTPS, add its host to
insecure-registriesin/etc/docker/daemon.jsonon the runner's host and on every machine that pulls the image.
The image is public while the repository is. If it's made private, run docker login tig.sshah.email (with a token that has read:package) on each machine before docker compose pull.
What capture can see
Kali Scout counts bytes per MAC address from packets reaching the interface it captures on. How much of the network that covers depends on where it runs:
| Where Kali Scout runs | What it measures |
|---|---|
| On the router / gateway (e.g. a Linux box or Pi doing routing, OpenWrt with Node) | Every device's internet traffic. Best option. |
| On a switch mirror (SPAN) port | Everything the switch mirrors to it. Most managed switches support this. |
| Ordinary host on a switched network | Only its own traffic plus broadcast/multicast. The dashboard warns about this. |
Discovery, presence, the security checks and everything from AdGuard Home and the router work in all three cases; only the bandwidth numbers depend on placement. Behind a consumer mesh router such as a Velop, Kali Scout is an "ordinary host": for per-device bandwidth it has to sit in the traffic path, for example as a bridge between the modem and the router. The gateway's own MAC is excluded from network totals so routed traffic isn't counted twice.
Packets also give:
- DHCP fingerprints, which work everywhere: devices broadcast their DHCP requests, so any host on the LAN sees them. A device is fingerprinted the next time it joins or renews its lease (typically within hours).
- DHCP replies, watched for rogue DHCP servers (see Security).
- DNS lookups, only where queries pass this host: on the router, on a mirror port, or when this machine is the network's DNS server. If you run AdGuard Home, connect it instead (see AdGuard Home): its query log covers every device, and packet capture stops recording DNS so nothing is counted twice. Encrypted DNS (DNS over HTTPS/TLS) isn't visible from anywhere. Turn recording off in Settings if you'd rather not keep it.
These use a second, narrow tcpdump (udp port 67/68, plus dst port 53 when DNS logging is on) and need the same permissions as bandwidth capture.
Security
The Security page collects findings from every check. Each has a severity (high, medium, low, info), what was seen and what to do about it. Findings stay open while the check still sees them and resolve by themselves when it doesn't. You decide the rest:
- Accept one that's expected (a Plex port forward, say), optionally with a note. It moves to Accepted and won't alert again while it stays the same.
- Snooze for a day, a week or a month.
- Block the device involved, if AdGuard Home or the router is connected.
New findings raise alerts on the channels that want them (the alert types are in the table). When a check runs for the first time, or is switched back on, what it finds is recorded quietly instead of alerting on everything at once. Run checks on the page runs them all now.
| Check | What it does | Alert |
|---|---|---|
| Open ports, certificates | The port checks and certificate expiry described under Features. | New open port, Certificate |
| Router port forwards | Every 30 minutes, asks the router over UPnP which ports devices have opened to the internet. Remote admin, file sharing, databases and the like are high; console and voice-chat ports are low. | Exposed to the internet |
| Internet exposure | Twice a day, looks up the public IP in Shodan InternetDB (free, no key) for open ports and known vulnerabilities seen from outside. Sends the public IP to Shodan; when the router only knows a private address (double or carrier NAT), it asks ipify first. | Exposed to the internet |
| DHCP servers | Watches DHCP replies and, every 15 minutes, broadcasts a DISCOVER so every server answers (needs root or CAP_NET_BIND_SERVICE for port 68; otherwise it only listens). Anything but the router (or AdGuard Home, if it's your DHCP server) handing out settings is flagged, as is the router's address answering from different hardware. |
Rogue DHCP server |
| Router settings | With the Velop connected: default admin password, remote management, weak Wi‑Fi security (open, WEP, original WPA), WPS, automatic updates off, UPnP on (low). | Router problem |
| Mesh and firmware | With the Velop connected: offline nodes, firmware waiting, nodes on different versions, weak wireless backhaul. | Router problem |
| Malicious lookups | With AdGuard Home connected: lookups blocked by a threat list (malware, phishing, scam…) or AdGuard's Browsing Security, per device over 24 hours. | Malware or phishing lookup |
| DNS bypass | With AdGuard Home connected for a day: online devices with no lookups in AdGuard (own DNS server, often encrypted), and devices seen sending DNS straight to another server. | Unusual device behaviour |
| Unusual behaviour | After about 3 days of history: an hour with far more upload or data than the device's usual busiest hour, a busy hour at a time of day it's always quiet, and (for smart-home devices) lookups of domains it has never used. | Unusual device behaviour |
Turn individual checks off under Settings → Security checks. Rogue DHCP servers, internet exposure and malicious lookups count as security alerts and are sent during quiet hours. Channels that already received IP-conflict alerts get the new alert types added once, on upgrade.
IP conflicts and router changes show up best with arp-scan, which reports every reply; the ping-sweep fallback only sees one MAC per IP, so there it can catch a router change but not two devices answering at once.
Integrations
AdGuard Home
In Integrations → AdGuard Home, enter its web address with the port (e.g. http://192.168.1.30:3000) and the username and password you sign in with, then Test and Save. Kali Scout then:
- imports the query log every minute (the last 24 hours on first connect), so each device page shows its lookups, with blocked ones marked and the list or rule that blocked them;
- treats blocks from threat lists as malicious lookups. Lists are picked by name (malware, phishing, threat, scam, URLhaus…); switch on Choose threat lists myself to tick them yourself;
- finds devices that don't use AdGuard at all;
- shows AdGuard's health on the Internet page (queries, block rate, response time, upstreams);
- can block a device's DNS (AdGuard's disallowed clients; the block follows the device to a new IP) and, through the assistant, block a domain for one device.
Make sure AdGuard sees each device. The router has to hand out AdGuard Home's address as the DNS server. If AdGuard is only set as the router's own upstream DNS, the router forwards everyone's lookups and they all arrive from the router's IP, so devices can't be told apart. Kali Scout warns when it sees that. On a Velop, set the DNS server under the router's local network (DHCP) settings rather than its internet settings. AdGuard's query log must also be on, without client anonymisation.
Router (Linksys Velop)
In Integrations → Router, enter the primary node's address (usually 192.168.1.1) and the router's local admin password (not your Linksys cloud account), then Test and Save. Kali Scout talks to the router's local API ("JNAP", the one the Linksys app and web page use). Linksys doesn't document it; the calls follow the community pyvelop library and fall back to older versions on older firmware. Anything a firmware doesn't support is skipped.
- Devices get the router's name for them, wired or Wi‑Fi, band, signal strength, link speed, guest network and which mesh node they're on.
- The Internet page lists the mesh nodes with backhaul, signal, firmware and waiting updates.
- Security findings cover router settings and mesh health (see Security).
- Blocking adds the device to a parental-control rule called "Kali Scout block" that blocks internet access all week; the device can still reach your local network. If the device already has its own rule in the Linksys app, or parental controls are off and turning them on would start your other rules, Kali Scout refuses and says why.
Assistant
Set it up under Integrations → Assistant: pick a provider, paste a key, choose a model (Load models lists what the provider offers) and use Save and test. Then use it three ways:
- The floating button (bottom right, every page). The panel stays open as you move around, and each question carries the page you're on and what it shows: the device you're viewing, the month on Usage, the range on Internet, the filter on Activity or Devices. So "is this device risky?" or "turn on quiet hours" means what's in front of you, and the page updates when the assistant changes something. The panel keeps its own chat (remembered across reloads); ⤢ opens it full page, Escape closes it.
- Assistant in the sidebar, for longer chats and history.
- ⋯ → Ask the assistant… on a device page, to start a chat about that device.
| Provider | Notes |
|---|---|
| Command Code | Provider API key. Claude models are sent to its Anthropic-style /messages endpoint, everything else to /chat/completions, picked automatically from its model list. |
| Ollama Cloud | Key from ollama.com/settings/keys; models such as gpt-oss:120b. |
| Ollama (local) | No key. Default http://localhost:11434; from Docker with host networking that still works. Nothing leaves your network. |
| OpenAI, Anthropic | API keys from their consoles. |
| OpenRouter | One key for many providers' models. |
| OpenAI-compatible | LM Studio, vLLM, LiteLLM, llama.cpp server, LocalAI… Set the address, e.g. http://localhost:1234/v1. |
Choose a model that supports tool calling: the assistant answers by calling tools (devices, events, bandwidth, usage, internet health, DNS, security findings, AdGuard Home, the router, watched services, configuration) rather than receiving everything up front.
Zero data retention (Command Code). On by default. Every request carries x-cmd-zdr: 1, so Command Code routes it only to providers that neither store nor train on it; otherwise prompts and replies are kept for up to 30 days. It's strict: a model without a zero-retention provider fails with a clear error instead of falling back, and a few models cost more with it on. See Command Code's ZDR docs.
Changes. With Let the assistant make changes on (default), it can rename devices, mark them known, set presence/bandwidth alerts and data caps, start scans, watch or unwatch services, send Wake-on-LAN, accept or snooze security findings, block or unblock devices, block a domain for one device in AdGuard Home, and change everyday settings (scan interval, offline time, port checks, bandwidth capture, DNS logging, global bandwidth alert, quiet hours, internet checks, weekly summary, security checks), but only when you ask, and it says what it changed. It can't delete or merge devices, edit notification channels, integrations, keys or passwords, or change the interface or history retention. Hostnames, DHCP names and DNS names are chosen by the devices themselves, so the assistant is told to treat everything it reads as data, never as instructions; turn changes off for a read-only assistant.
Conversations are stored in Kali Scout's database and listed under History.
Home Assistant (MQTT)
Needs Home Assistant's MQTT integration and a broker (e.g. the Mosquitto add-on). In Integrations, turn on Publish to MQTT and enter the broker (mqtt://homeassistant.local:1883, or mqtts://…:8883 for TLS) with a broker user. Choose which devices to publish: known ones (default), those with presence alerts, or all.
What appears, through MQTT discovery:
- Per device: a device tracker (
home/not_home, attributes with IP, MAC, vendor, OS), and Download, Upload (Mbit/s) and Data today (MB) sensors. Devices are matched to existing Home Assistant devices by MAC. - A Kali Scout hub device: devices online, unknown devices, an Internet connectivity sensor, internet latency, DNS lookup time, and network download/upload.
Entities go unavailable when Kali Scout stops (MQTT last will). Topics live under kali-scout/ by default; the discovery prefix is Home Assistant's default homeassistant.
Prometheus
GET /metrics serves Prometheus text format: device presence, per-device rates and byte counters, network rates, internet up/latency/loss, DNS time, watched-service state and latency, scan duration, and open security findings by severity. Without SCOUT_PASSWORD it's open; with one, create a token in Integrations and use it as a bearer token:
scrape_configs:
- job_name: kali-scout
scrape_interval: 30s
authorization:
credentials: <token from Integrations>
static_configs:
- targets: ["scout.lan:8787"]
Notifications
Add channels under Notifications → Add channel, then use Send test.
| Service | What you need |
|---|---|
| Discord | Channel → Integrations → Webhooks → copy URL |
| Matrix | Homeserver URL, room ID (!abc:server), access token of an account already in the room (a bot account is best) |
| ntfy | Server (https://ntfy.sh or self-hosted), topic, optional token |
| Gotify | Server URL and an application token |
| Telegram | Bot token from @BotFather and your chat ID |
| Slack | Incoming webhook URL |
| Webhook | Any URL; receives JSON { title, body, url, event, device } with optional X-Scout-Secret header |
Online/offline alerts are only sent for devices with Presence alerts turned on, so phones dropping off Wi‑Fi don't spam you. New-device and bandwidth alerts are always sent to channels that subscribe to them. The very first scan on a fresh install is a silent baseline. Set Settings → Public URL to get clickable links in messages.
An "internet down" alert usually can't leave the building while the connection is down, so the "internet back" alert says how long the outage lasted and whether the router or the provider was at fault. ntfy and Gotify running on your LAN do receive the down alert straight away.
Push notifications and HTTPS
Browsers only allow service workers, and therefore push, on https:// or localhost. Over plain http://192.168.x.x the app still works but cannot be installed or push. Options:
- Reverse proxy with a real certificate, e.g. Caddy:
scout.example.com { reverse_proxy localhost:8787 } - Tailscale:
tailscale serve --bg 8787gives youhttps://<machine>.<tailnet>.ts.net. - Direct TLS: set
SCOUT_TLS_CERT/SCOUT_TLS_KEY(e.g. frommkcert; install its CA on your phone).
Then open Notifications → Enable push on each device. On iPhone/iPad, add the app to the Home Screen first.
Privacy: what leaves your network
Everything Kali Scout learns stays in its SQLite file. There's no telemetry and no account. It only contacts outside services for features you can see and switch off:
| What | Sent to | When | Turn it off |
|---|---|---|---|
| Vendor list | wireshark.org (download only) | Occasionally, to refresh MAC vendors | n/a (nothing about you is sent) |
| Internet checks | Pings to 1.1.1.1, 8.8.8.8; a DNS lookup |
Every minute | Settings → Internet |
| Your public IP | Shodan InternetDB, sometimes ipify | Twice a day | Settings → Security checks |
| Questions and the data looked up | The assistant provider you chose | When you ask something (never passwords, keys or tokens) | Use a local Ollama, or leave it off |
| Alert text (device names, IPs, times) | The notification channels you added | When an alert fires; Web Push payloads are end-to-end encrypted | Remove the channel |
AdGuard Home, the router and Home Assistant are on your own network.
Troubleshooting
Per-device bandwidth shows only this host, or nothing
Kali Scout only measures traffic that reaches its network interface. On an ordinary switched network that's its own traffic plus broadcasts. Run it on the router, on a switch mirror port, or in the path between modem and router. See What capture can see. Everything else (discovery, presence, security, AdGuard, router data) works regardless.
"AdGuard can't tell your devices apart"
Every lookup arrives from the router's IP. Make the router hand out AdGuard Home's address as DNS through DHCP, not only use it as its own upstream. See AdGuard Home.
"Active probe unavailable" on the DHCP check
Sending the DHCP probe needs port 68, which requires root or CAP_NET_BIND_SERVICE. Without it, rogue DHCP servers are still caught when their replies are seen, just less reliably. Switch the probe off in Settings → Security checks to hide the note.
"The router rejected the admin password"
Use the router's local admin password (the one for its web page at http://192.168.1.1, usually set during setup), not your Linksys cloud account.
Push notifications don't arrive
Push needs HTTPS (see Push notifications and HTTPS). On iPhone/iPad, add the app to the Home Screen and enable push from there.
Docker Desktop finds no devices
Docker Desktop runs containers in a VM that can't see your LAN. Run Kali Scout on a Linux host, or use SCOUT_DEMO=1 to try the interface.
Configuration
Environment variables (or .env, see .env.example):
| Variable | Default | |
|---|---|---|
SCOUT_PORT / SCOUT_HOST |
8787 / 0.0.0.0 |
Listen address |
SCOUT_PASSWORD |
unset | Require a password for UI and API |
SCOUT_INTERFACE |
auto | Initial interface; editable in Settings |
SCOUT_DATA_DIR |
./data |
SQLite database and vendor cache |
SCOUT_TLS_CERT / SCOUT_TLS_KEY |
unset | Serve HTTPS directly |
SCOUT_VAPID_SUBJECT |
mailto:admin@kali-scout.local |
Web Push contact |
SCOUT_MAX_SWEEP_HOSTS |
1024 |
Ping-sweep cap for large subnets |
SCOUT_DEMO |
unset | Simulated network |
TZ |
system (UTC in Docker) | Time zone for days, months and schedules |
Everything else is set in the app: scanning, capture, DNS logging, port checks, internet checks, security checks, alerts, quiet hours, the weekly summary and public URL in Settings; AdGuard Home, the router, the assistant, MQTT and the metrics token in Integrations.
Daily and monthly usage, quiet hours and the weekly summary follow the server's local time. Containers run in UTC unless you set TZ (e.g. TZ=Europe/London in .env).
Development
npm run dev # API (tsx watch) on :8787 + Vite on :5173 with /api proxied
npm run demo # the same with a simulated network
npm run typecheck
npm run lint
npm test # node:test unit tests for the parsers, timeline and security checks
npm run icons # regenerate PWA icons from public/favicon.svg
On Windows and macOS discovery works (ping sweep + ARP table), but bandwidth capture is Linux-only. Use npm run demo to work on the UI.
server/ Fastify API, scanner, capture, notifications (runs as .ts)
scanner/ arp-scan, ping sweep, ARP table, OUI vendors, hostnames (DNS/mDNS/NetBIOS), port checks,
TLS certificates, DHCP fingerprints, Wake-on-LAN
bandwidth/ tcpdump parser and the per-MAC rate meter
capture/ pcap/DHCP/DNS decoding and the DHCP + DNS sniffer
health/ internet checks (ping, DNS) and watched-service checks
security/ security checks: UPnP audit, internet exposure, rogue DHCP, behaviour baselines
integrations/ AdGuard Home (query log, health, blocking) and Linksys Velop (JNAP)
mqtt/ minimal MQTT client and the Home Assistant bridge
ai/ assistant: provider adapters (OpenAI, Anthropic, Ollama formats), tools, agent loop
notify/ channel senders and Web Push
metrics.ts Prometheus exposition
reports.ts weekly summary
shared/ Types and service rules (risks, web links) shared by server and client
tests/ Unit tests (run directly by Node, no build step)
src/ React app (pages/, components/, lib/) and the service worker (sw.ts)
docs/screenshots/ README screenshots (taken from the demo)
deploy/ systemd unit and the Docker healthcheck
Dockerfile Container image (docker-compose.yml runs it, see Docker above)









