KORTHVEILSecurity firewall
Guides

IoT radios: hear Bluetooth LE, Zigbee and Thread devices

Download as PDF All guides

Korthveil can listen to the radios that smart-home devices use besides Wi-Fi: Bluetooth Low Energy (locks, trackers, sensors, watches), and Zigbee and Thread (lights, plugs, sensors, Matter devices). It lists what it hears near the firewall, raises an alert when a new device or network appears, and when a Bluetooth device pretends to be one of yours. Korthveil only listens: it never transmits on these radios, never connects to a device and never jams one.

Not tested yet. No radio has been tested with Korthveil so far. The page shows the supported list and what has been built for each radio; nothing more is claimed until a real one has run with Korthveil.

Every address below is an example; use your own.

At a glance:

What Where
Turn the add-in on System › Add-ins, IoT radios, or the switch at the top of Wireless › IoT radios
Listen to Bluetooth LE Wireless › IoT radios, Bluetooth LE
Listen to Zigbee and Thread Wireless › IoT radios, Zigbee and Thread dongles
Choose the alerts Wireless › IoT radios, Alerts
See and mark devices Wireless › IoT radios, Devices
See the alerts Monitoring › Alerts (and mail, phone and the other channels you set up)

1. What you need

  • Bluetooth LE: any Bluetooth adapter the Linux btusb driver runs, built in or a USB stick (Bluetooth 4.0 or later). Intel, Realtek and MediaTek firmware come with Korthveil. Korthveil takes the adapter for itself while it listens.
  • Zigbee and Thread: a Nordic nRF52840 Dongle (PCA10059) or nRF52840 DK running Nordic's open nRF Sniffer for 802.15.4 firmware. Korthveil does not ship or flash this firmware: flash it once on a computer (section 2).
  • Dongles that run coordinator firmware (Sonoff ZBDongle-P/E, ConBee, SkyConnect), TI CC2531 sticks and ATUSB sticks are not supported; the page says why for each.

2. Flash the sniffer firmware on an nRF52840 Dongle

Do this once, on a computer, not on the firewall.

  1. Download the firmware from Nordic's nRF-Sniffer-for-802.15.4 project (the .hex file for the nRF52840 Dongle).
  2. Install Nordic's nRF Connect for Desktop and open its Programmer.
  3. Press the small side button on the dongle: its red light pulses (bootloader).
  4. In Programmer, choose the dongle, add the .hex file and press Write.
  5. Unplug the dongle and plug it into the firewall. It appears as a serial port, for example /dev/serial/by-id/usb-Nordic_Semiconductor_nRF52840_802.15.4_Sniffer-if00.

3. Turn it on

  1. Open Wireless › IoT radios and enable the add-in.
  2. Under Bluetooth LE, switch on Listen to Bluetooth LE. Leave Adapter on The first one found unless the firewall has more than one.
  3. Under Zigbee and Thread dongles, choose the dongle's serial port and press Add. Choose the Channels to listen on: Zigbee networks often use 11, 15, 20 or 25, Thread 15, 20, 25 or 26. With several channels, the dongle visits them in turn; Time on each channel sets how long it stays on each (frames on the other channels are missed meanwhile).
  4. Press Save to pending changes and commit.

Status shows each radio: listening with how much it has heard, or stopped with the reason (no adapter, switched off by rfkill, in use, no permission). A stopped radio is tried again every 30 seconds.

4. The learning period and the alerts

What is heard in the first hours after a radio starts is the baseline: your own devices and your neighbours'. It raises no alert. After the Learning period (24 hours unless you change it), Korthveil raises an alert for:

  • A new device nearby: a device first heard after the learning period and not marked known. Bluetooth devices whose address changes by itself every few minutes (phones, watches, most trackers when away from their owner) never count: their address cannot be followed. Devices weaker than Weakest signal for a new-device alert (−90 dBm) are listed but raise no alert; they are usually the neighbours'.
  • A new Zigbee or Thread network: a network ID first heard after the learning period, for example a hub or a bridge you did not add.
  • A Bluetooth device pretending to be a known one (section 5).

A new device or network keeps its alert for a day. Clear the list under Devices empties the list and starts the learning period again; known devices stay known.

5. Mark your devices known; spoofing

In Devices, switch mark known on for each of your devices. Korthveil keeps what the device looks like now (its address type, its advertised name and its maker) and compares every advertisement with it. Marking a device known is a setting: save and commit.

Three signs raise a spoofing alert:

  • Another device uses its name (likely): another address advertises the known device's name and maker. Only for known devices with a fixed address; a device whose address changes by itself gives no evidence this way.
  • It looks different (possible): the known address advertises another name or maker. A firmware update can also do this.
  • Two transmitters with its address (possible): the known address is heard alternately at signals far apart, several times within a minute.

Korthveil only listens and cannot stop a transmitter. Check the device, and look for the other one nearby.

6. Devices and networks

Devices lists every device heard: its name (yours if you marked it known, otherwise the one it advertises), radio, address, the strongest signal in words and in dBm, when it was first and last heard, and how often. The signal says how strong it was at the firewall, not how far away the device is. Hide addresses that change by themselves keeps phones and watches out of the list. The bin button takes a device off the list; if it is heard again it comes back as new.

Zigbee and Thread networks lists each network ID heard, with its name where its beacons give one (Thread) and its channel. A network whose frames are all encrypted and whose beacons were not heard shows not known yet.

Devices not heard for Keep devices not heard for (14 days) leave the list; Bluetooth addresses that change by themselves leave after an hour.

7. Limits

  • Listening only: Korthveil never sends a scan request, an advertisement, a connection request or a frame on these radios.
  • Bluetooth 5 extended advertisements (on the secondary channels) are not heard yet.
  • A dongle hears one channel at a time.
  • Zigbee devices are listed by network ID and short address, which can change when a device joins again.
  • Korthveil reads only the frame headers: who sent it and on which network. It never decrypts anything.

Download as PDF All guides