Repository navigation
How to protect your wifi
Exercise: defend your Wi-Fi. Someone is working on your network from the parking lot. Sentinel spots the attack, names the tool if it knows it, records the attacker, and tells your phone.
| Players | Operator: runs Sentinel and makes the calls. Facilitator: reads the injects aloud. Attack injects are tabletop only. |
| Kit | A node with its radio on your mesh channel (Meshtastic radio setup). An SD card for captures. Three or more nodes with GPS to locate the attacker (Multi-node perimeter) |
| Time | 60 minutes |
Use it only on networks you own or have permission to monitor. See the legal disclaimer.
This page follows the field exercise layout.
- Sentinel runs with no false alarms from your own gear.
- A confirmed attack starts a capture and a hunt for the attacker on its own.
- The alert reaches the operator's phone.
Steps 1 to 6 set this up. The injects and debrief follow.
- Web UI: Sentinel tab → Start Sentinel.
-
Over mesh:
@AH01 SENTINEL_ON. The node repliesSENTINEL_ACK:ON, followed byrun=and 0 or 1.
To start Sentinel at every power-on, send @AH01 SENTINEL_BOOT:1. To check it, send @AH01 SENTINEL_STATUS. en=1 means you switched it on. run=1 means the detectors are running now.
Sentinel tab → Overview → Listening → Radio:
| Choice | What it does |
|---|---|
| Defend this AP | Stays on the channel of the node's own access point. |
| Scan all channels | Hops across channels, so it covers more but with gaps. |
Over the mesh, @AH01 SENTINEL_MODE:defend or SENTINEL_MODE:scan. After a reboot a Full node always starts in defend. A Headless node starts in the mode it last had.
Sentinel tab → Detectors. Turn a group on or off with its button: DoS, Rogue AP, Recon, Physical, Mesh, or Mesh Radios. All On, All Off, and Quiet are presets. Over the mesh, @AH01 GROUP:recon:off. The Sentinel page lists what each group detects.
Your other nodes. Sentinel does not alert on a second Full node on your network name, and it skips the radios of your other nodes. Sentinel explains the details.
Your own radios. An unknown Meshtastic or MeshCore radio raises a RADIO_DETECTED alert. Mark each of yours as known, by its MAC address and type:
@AH01 RADIO_KNOWN_ADD:AA:BB:CC:DD:EE:FF:Meshtastic:MyRadio
Sentinel tab → Detectors → Mesh Radios Nearby shows (known) after the type of each known radio. Sentinel explains how each known radio is matched and lists the commands that add, remove, and clear them.
Your own devices. Scan tab → Target Scan → Allow list. Enter one full MAC address or one three-byte prefix per line, such as AA:BB:CC:DD:EE:FF or AA:BB:CC, then save. The allow list applies to target scans, baseline anomaly, and mesh radio detection. The other Sentinel detectors do not use it.
Your network name. A node on the default network name logs an encrypted access point with that name once every 30 minutes and sends no SELF_CLONE alert for it. To get those alerts, set your own name under System tab → Settings → Access point → Network name (SSID).
A detector that fires too often. Raise its threshold, or turn it off with DETECT_CFG. Thresholds are on the Sentinel tab → Mesh & thresholds.
| Setting | What raises the alert | Default |
|---|---|---|
jam_nf_db |
A channel's noise floor rises this many dB above its learned level, from 3 to 30 | 8 |
probe_single_thresh |
Probe requests from one device in 5 seconds | 60 |
deauth_targeted_thresh |
Deauth frames at one client | 10 |
@AH01 DETECT_CFG:{"jam_nf_db":10}
@AH01 DETECT_CFG:{"jam":false}
The node replies DETECT_CFG_ACK:OK. A switch is on for true or 1 and off for anything else.
Attack response is off until you turn it on. After Sentinel confirms an attack, it runs the actions you tick under Sentinel tab → Attack response. Attack response lists the actions, their lengths, and their limits.
A node with no web UI takes the same settings over the mesh with DETECT_CFG. Attack response lists the action names. Triangulation has its own switch:
@AH01 DETECT_CFG:{"attack_resp":"pcap,device-scan","ar_secs_pcap":300}
@AH01 ATTACKER_TRILAT:1
The first line runs a 300-second capture and a device discovery after each confirmed attack. The second turns on locating the attacker. See Attack response and Packet capture.
Sentinel logs each detection on the SD card. Most detectors also send it to the mesh as a line such as AH01: DEAUTH_FLOOD:<src>:<count>:<rssi>. Any Meshtastic app on your channel shows it. Through the Command Center, Wi-Fi attacks and Deauth / disassoc notify by default. Four detection types never notify: RECON, KARMA_CAND, BEACON_FLOOD, and PROBE_FLOOD_BEHAVE. Set up the channels in Get alerts on your phone.
| Time | Inject | What the node sends | Operator decision |
|---|---|---|---|
| T+0 | Live: a teammate powers on a Meshtastic radio that you have not marked as known. | AH01: RADIO_DETECTED:Meshtastic:<mac>:<rssi>:<name> |
Yours, a neighbor's, or someone listening to your mesh? Mark yours with RADIO_KNOWN_ADD. |
| T+10 min | Tabletop: clients drop off the network, one after another. | AH01: DEAUTH_FLOOD:<src>:<count>:<rssi> |
Attack response starts a capture. Do you also start a hunt? |
| T+12 min | Tabletop: the same source turns out to be a known attack tool. |
AH01: DEAUTH_FORGE:<src>:<tool>:<rssi>, where <tool> is a name such as MARAUDER or MDK4
|
What does the tool tell you about the person using it? |
| T+15 min | Tabletop: a second access point appears with your network name. | AH01: EVILTWIN:<bssid>:SELF_CLONE:<rssi>:<ssid> |
Warn your users not to join it. Where is it? |
| T+20 min | Tabletop: a handshake capture is seen against your access point. | AH01: HSHK:<bssid>:<sta>:<msg>:<replay>:<rssi> |
Is it time to change the Wi-Fi password? |
The Sentinel page lists every alert label.
- Which alerts came from your own gear? Add them to the known radios or the allow list (step 4).
- Did attack response start the capture and the hunt? Check Sentinel tab → Incidents.
- How long did the alert take to reach the operator's phone?
If Sentinel stays quiet:
- If
SENTINEL_STATUSshowsen=0, sendSENTINEL_ON. - If the attack type you expect never appears, check that its group is on under Sentinel tab → Detectors. Attack response runs only for a confirmed attack, so also check Sentinel tab → Incidents.
- If an attack response does nothing, check that its action has a tick, the attacker's MAC was known, and (for packet capture) an SD card is in the node.
PCAP_ACK:NOSDmeans there is no card. - If it alerts on a Meshtastic radio that is yours, add it with
RADIO_KNOWN_ADD.
Start
- Choose your hardware
- Hardware and BOM
- Full or Headless
- Flash a node
- Meshtastic radio setup
- MeshCore radio setup
- First setup
- Web UI tour
- Data explorer
- Results timeline
Documents (PDF)
- Operator's Guide
- Assembly Manual
- Tier 1 Assembled
- Tier 2 Parts Kit
- Tier 3 Soldered Core PCB
- Tier 4 Bare PCB
Nodes
Several nodes
Find devices
- Target scan
- Device discovery
- Device classifier
- Probe requests
- Randomized MAC tracer
- Drone Remote ID
- Triangulation
Watch an area
Detect attacks
Capture and respond
Field exercises
- How exercises work
- Vehicle tripwire
- Locate a device
- Overnight watch
- Drone overwatch
- Defend your Wi-Fi
- Multi-node perimeter
- Alerts on your phone
Reference
- Command reference
- Mesh commands (full list)
- HTTP API
- Settings
- Privacy mode
- SD card
- Time and clock
- Heartbeat and Battery Saver
- USB serial
- Troubleshooting
Build