PhantomProbe-C6 is an embedded wireless RF security research probe engineered for the Espressif ESP32-C6 RISC-V SoC.
If you flash this firmware onto an ESP32-C6 board and plug it into a USB port, here is what it does:
- 📡 Broadcasts multiple virtual Wi-Fi networks simultaneously:
Instead of setting up 10 separate physical routers, a single ESP32-C6 board broadcasts raw Wi-Fi beacon frames into the air to simulate a whole fleet of virtual access points (e.g.,IoT-Sensors-Net,Corporate-DMZ,Guest-Network). You configure the names in a simple text file (ssid_list.conf). - 🔍 Discovers nearby client devices & audits active probe sweeps:
Monitors 2.4 GHz management traffic, automatically registering newly discovered station MAC addresses in an internal cache ([NEW STATION #N]). When phones or laptops perform discovery sweeps ([WILDCARD SCAN]), the probe answers with synthetic honeypot responses. When clients broadcast directed probes for saved networks ([PROBE SNIFF]), it captures and logs their Preferred Network List (PNL) leaks. - 📱 Bypasses OS Bluetooth discovery filters with realistic gadget profiles:
Modern operating systems (iOS, Android, Windows) ignore generic Bluetooth beacons in standard scan lists. This probe bypasses discovery filters by impersonating real Bluetooth accessories—such as wireless keyboards, mice, gamepads, or smartwatches—rotating between them so they actively appear in nearby Bluetooth menus with authentic device icons and logging connection handshakes ([BLE CONNECT],[BLE MTU],[BLE GATT READ / WRITE]). - 💻 Streams real-time security & intrusion telemetry straight to your PC:
Connect the board to your computer with a USB-C cable and open a serial terminal at115200 baud. You receive instantaneous alerts for wireless disruption attacks ([DEAUTH ALERT]with decoded 802.11 reason codes), unauthorized honeypot connection attempts ([AUTH INTERCEPT]), and comprehensive health summaries every 5 seconds (uptimeHH:MM:SS, unique stations discovered, total frames injected, probe responses, and free heap). The onboard WS2812 RGB LED also flashes coordinated colors for glanceable physical bench diagnostics.
Under the hood, PhantomProbe-C6 combines low-level IEEE 802.11 raw frame injection, promiscuous management frame analysis (wildcard sweeps, directed probe replies, PNL sniffing, deauth/disassociation detection, and client station tracking), multi-identity Bluetooth Low Energy (BLE) peripheral emulation, and live high-resolution UART serial telemetry (supplemented by an onboard status LED). This enables researchers to audit wireless client probing behavior, observe how client devices react to synthetic honeypot networks, detect wireless disruption attacks, and investigate mobile operating system discovery filters.
First time here?
If you are exploring this repository for the first time, reading the full documentation, technical mechanics, and configuration sections below is strongly advised before deploying the probe. Understanding how the multi-BSSID engine, BLE accessory emulation, and declarative manifest (ssid_list.conf) operate will ensure safe, responsible, and effective research.
Open your terminal or PowerShell, clone the repository, and enter the project folder:
git clone https://github.com/Cir0cuit/PhantomProbe-C6.git
cd PhantomProbe-C6(Alternatively, click the green Code → Download ZIP button at the top of this GitHub page, extract the ZIP archive, and open a terminal inside the extracted directory).
- Python 3.9+:
- Via Windows Package Manager (
winget):winget install Python.Python.3.12 - Via Official Installer: Download and install from python.org.
(Crucial for Windows: Make sure to check the box: "Add python.exe to PATH" before clicking Install!) - Linux / macOS: Preinstalled or install via package manager (e.g.
sudo apt install python3 python3-pip).
- Via Windows Package Manager (
- PlatformIO Core:
- Install PlatformIO via pip in your terminal:
pip install platformio
- Verify the installation:
python -m platformio --version
- The project pins the tested toolchain in
platformio.ini: PlatformIO platformespressif327.1.3, which ships ESP-IDF 6.1.0. PlatformIO downloads it on the first build.
- Install PlatformIO via pip in your terminal:
- USB-to-UART Bridge Driver:
- Official Espressif DevKitC-1 (Silicon Labs CP2102N): Download and install the Silicon Labs CP210x Universal Windows Driver.
- Clone / Third-Party Boards (WCH CH343 / CH340): Download and install the WCH CH341SER Windows Driver.
- Linux Users: Grant your user permission to access serial ports:
(Log out and log back in for permissions to take effect).
sudo usermod -a -G dialout $USER
- Connect your ESP32-C6-DevKitC-1 board to your computer using a standard USB-C data sync cable (ensure it is not a power-only charging cable).
- The board features two USB-C ports. Both can flash the firmware and show its log; prefer the port labeled
UART:UARTPort (recommended): Onboard USB-to-UART bridge (CP2102N or CH343, 115200 baud). Gives the complete log from reset, including bootloader and crash output, and keeps its COM port while the chip resets.USBPort: Native USB Serial/JTAG of the ESP32-C6 (shows up asUSB Serial Device, needs no driver, baud setting is ignored). It mirrors the same log, but anything printed while no terminal is open is lost, so the first boot lines are usually missing.
- Verify your assigned COM / TTY port:
- Windows: Press Win + X → select Device Manager → expand Ports (COM & LPT). Look for
Silicon Labs CP210x USB to UART Bridge (COMx)on theUARTport, orUSB Serial Device (COMx)on theUSBport. - Linux: Run
ls /dev/ttyUSB*ordmesg | grep tty(typically/dev/ttyUSB0). - macOS: Run
ls /dev/cu.usbserial*.
- Windows: Press Win + X → select Device Manager → expand Ports (COM & LPT). Look for
Before flashing, you can customize your synthetic Wi-Fi networks and Bluetooth peripheral identities by editing ssid_list.conf in the project root:
[wifi]
channel = 1 # 2.4 GHz RF channel (1 to 13)
burst_interval_ms = 50 # Delay between beacon cycles
[networks]
# Virtual honeypot networks to broadcast (one per line, max 32 bytes)
IoT-Sensors-Net
IoT-Cameras-Net
Corporate-Guest-DMZ
[bluetooth]
enable_ble = 1
accessory_type = 12 # 12 = Auto-Distribute Showcase (Keyboards, Smartwatches, Mice)Comments may follow a numeric or on/off key = value setting, but a line in [networks] or a Bluetooth name is taken literally as the name, so keep comments on their own line there. Invalid lines are reported in the boot log (W (...) probe_config: line N: ...) and leave the default in place.
(No C code edits required—the build toolchain automatically compiles ssid_list.conf directly into flash during the build process).
To keep your own network names out of git, copy ssid_list.conf to ssid_list.local.conf and edit the copy. When that file exists the build uses it instead of ssid_list.conf, and .gitignore excludes it.
The project includes an automated deployment script that locates PlatformIO, compiles the firmware with your configuration manifest, auto-detects the board's COM port, flashes the board, and connects the serial monitor at 115200 baud:
.\flash_firmware.ps1- PowerShell Execution Policy Tip: If Windows blocks running scripts, unblock script execution for your current session with:
Then run
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
.\flash_firmware.ps1again. - Custom Port Override: To pick the port yourself:
(If omitted, the script looks for the board's USB-UART bridge or native USB port and ignores other serial devices such as Bluetooth links. If it finds more than one candidate it lists them and asks, offering the
.\flash_firmware.ps1 -ComPort COM5UARTport as the default.) - Other switches:
-BuildOnlycompiles without flashing,-MonitorOnlyopens the serial monitor. Before flashing, the script stops PlatformIO serial monitors that hold the target port.
Works on Windows, macOS, and Linux:
# 1. Compile the firmware
python -m platformio run
# 2. Flash to the ESP32-C6 (replace COM12 with your port, e.g. /dev/ttyUSB0 on Linux)
python -m platformio run -t upload --upload-port COM12
# 3. Launch the serial telemetry console (Exit anytime with Ctrl+C)
python -m platformio device monitor --port COM12 --baud 115200If you prefer a graphical interface:
- Install the free PlatformIO IDE extension in Visual Studio Code.
- Open the cloned
PhantomProbe-C6directory in VS Code (File → Open Folder...). - Use the PlatformIO status bar icons at the bottom of the window:
- Build: Click the checkmark icon (
✓) - Upload: Click the arrow icon (
→) - Serial Monitor: Click the plug icon (
🔌) at 115200 baud.
- Build: Click the checkmark icon (
Once flashed, any standard serial terminal configured for 115200 baud, 8-N-1 will display real-time probe telemetry:
- PuTTY: Select Serial, enter your COM port (e.g.
COM12), set speed to115200. - Arduino IDE: Tools → Serial Monitor, set the bottom-right dropdown to
115200 baud. - Tera Term / Serial Studio: Connect to
COM12@ 115200. - Linux / macOS Terminal:
screen /dev/ttyUSB0 115200
- Board Not Detected by PC / No COM Port Assigned:
- Unplug and reconnect the USB-C cable. The
UARTport appears as a CP210x / CH34x bridge, theUSBport asUSB Serial Device. - Try another USB-C cable to confirm data transfer lines exist (many cables are charge-only).
- Reinstall the Silicon Labs CP210x driver.
- Unplug and reconnect the USB-C cable. The
- Upload Timeout / "A fatal error occurred: Failed to connect to ESP32-C6":
- The ESP32-C6 may have booted into an application state that missed the auto-reset signal.
- Manual Bootloader Recovery:
- Press and hold down the
BOOTbutton on the board. - While holding
BOOT, press and release theRST(Reset) button. - Release the
BOOTbutton. - Run
.\flash_firmware.ps1orpio run -t uploadagain—it will flash immediately!
- Press and hold down the
- Linux: Permission Denied on
/dev/ttyUSB0:- Run
sudo usermod -a -G dialout $USERand re-login to grant serial device permissions.
- Run
- Serial Monitor Displays Scrambled / Garbage Text:
- Ensure your terminal baud rate is set to exactly
115200.
- Ensure your terminal baud rate is set to exactly
Upon boot, the hardware probe emits diagnostic telemetry over the serial interface (example with the five default-style SSIDs; MAC addresses and timestamps are illustrative):
I (296) probe_main: ============================================================
I (296) probe_main: PhantomProbe-C6: Wireless RF Security & Telemetry Probe
I (297) probe_main: Target Architecture: ESP32-C6 RISC-V 160MHz (Wi-Fi 6 / BLE 5)
I (305) probe_main: Mode: Multi-BSSID Honeypot Simulation & BLE Reconnaissance
I (311) probe_main: ============================================================
I (330) probe_config: Parsing PhantomProbe-C6 deployment manifest (4310 bytes)...
I (336) probe_config: Config loaded: Wi-Fi=5 (CH=1, Responder=ON), BLE=ON (5 names, Mode=Auto-Distribute (Showcase Multi-Icon)), LED=ON (Brightness=5%)
I (347) probe_led: Initializing WS2812 RGB LED on GPIO 8 (Eye-safe Brightness: 5%)...
I (355) probe_led: RGB LED driver active.
I (358) probe_main: Initializing Wi-Fi driver and default event loop...
I (421) probe_beacon: Virtual AP [1]: SSID='IoT-Sensors-Net' -> BSSID=9E:CC:01:44:39:B2 (CH 1)
I (429) probe_beacon: Virtual AP [2]: SSID='IoT-Cameras-Net' -> BSSID=9E:CC:01:44:39:87 (CH 1)
I (437) probe_beacon: Virtual AP [3]: SSID='IoT-Automation-Net' -> BSSID=9E:CC:01:44:39:98 (CH 1)
I (446) probe_beacon: Virtual AP [4]: SSID='IoT-Isolated-DMZ' -> BSSID=9E:CC:01:44:39:ED (CH 1)
I (454) probe_beacon: Virtual AP [5]: SSID='IoT-Guest-Net' -> BSSID=9E:CC:01:44:39:FE (CH 1)
I (702) probe_main: Promiscuous 802.11 management frame analyzer: ACTIVE | Probe responder: ACTIVE
I (710) probe_main: RF PHY transmitter configured on 2.4 GHz Channel 1 with raw 802.11 TX injection.
I (719) probe_main: Starting Wi-Fi beacon injection loop (5 virtual BSSIDs, period=60 ms, pause=50 ms, gap=2 ms)...
I (730) probe_ble: Initializing NimBLE for 5 Bluetooth identities (Mode=12)...
I (736) probe_ble: BLE Identity [1]: 'IoT-Sensors-Net-BLE' -> Keyboard
I (743) probe_ble: BLE Identity [2]: 'IoT-Cameras-Net-BLE' -> Mouse
I (749) probe_ble: BLE Identity [3]: 'IoT-Automation-Net-BLE' -> Gamepad
I (756) probe_ble: BLE Identity [4]: 'IoT-Isolated-DMZ-BLE' -> Joystick
I (762) probe_ble: BLE Identity [5]: 'IoT-Guest-Net-BLE' -> Remote Control
I (1058) probe_ble: Broadcasting BLE [1/5] as Keyboard: 'IoT-Sensors-Net-BLE' (MAC: E2:39:44:01:CF:91)
...
I (1628) probe_main: [NEW STATION #1] Discovered client FC:3C:D7:B0:8E:45 | RSSI: -83 dBm
I (1638) probe_main: [PROBE SNIFF] Client FC:3C:D7:B0:8E:45 probing foreign SSID 'Corp-Secured' | RSSI: -83 dBm
I (2539) probe_main: [NEW STATION #2] Discovered client 02:C1:A1:C5:A9:1F | RSSI: -85 dBm
I (2549) probe_main: [WILDCARD SCAN] Client 02:C1:A1:C5:A9:1F sweeping RF space | RSSI: -85 dBm | Replying with 5 honeypots
I (3062) probe_ble: Broadcasting BLE [2/5] as Mouse: 'IoT-Cameras-Net-BLE' (MAC: E2:39:44:01:C2:B0)
I (3359) probe_main: [NEW STATION #3] Discovered client 5C:E5:0C:CF:41:95 | RSSI: -67 dBm
I (3370) probe_main: [PROBE SNIFF] Client 5C:E5:0C:CF:41:95 probing foreign SSID 'Home-WiFi' | RSSI: -67 dBm
I (4100) probe_ble: [BLE MTU] Client on handle 0 negotiated MTU: 256 bytes
I (4101) probe_ble: [BLE CONNECT] Client 70:28:8B:12:34:56 (public address) connected on handle 0 (itvl=48, latency=0, timeout=960)
I (4150) probe_ble: [BLE GATT READ] Client handle=0 attr_handle=16 (UUID=0x2A29)
W (5210) probe_main: [DEAUTH ALERT] Deauth Frame: Target=FF:FF:FF:FF:FF:FF | Source=9E:CC:01:44:39:B2 | BSSID=9E:CC:01:44:39:B2 (IoT-Sensors-Net) | Reason=3 (STA Leaving) | RSSI: -42 dBm
I (5340) probe_main: [PROBE HIT] Client A4:C3:F0:12:34:56 queried 'IoT-Sensors-Net' -> Injected response | RSSI: -38 dBm
I (5727) probe_main: === RF Probe Telemetry [Uptime: 00:00:05 | Stations: 4 active, 4 MACs seen | Frames: 415 | Probe Resp: 6 | Deauths: 1 (1 honeypot) | Auths: 0 | Free Heap: 245564 B] ===
I (5773) probe_main: BSSID: 9E:CC:01:44:39:B2 | CH: 1 | Sent: 83 | SSID: IoT-Sensors-Net
I (5783) probe_main: BSSID: 9E:CC:01:44:39:87 | CH: 1 | Sent: 83 | SSID: IoT-Cameras-Net
I (5793) probe_main: BSSID: 9E:CC:01:44:39:98 | CH: 1 | Sent: 83 | SSID: IoT-Automation-Net
I (5803) probe_main: BSSID: 9E:CC:01:44:39:ED | CH: 1 | Sent: 83 | SSID: IoT-Isolated-DMZ
I (5813) probe_main: BSSID: 9E:CC:01:44:39:FE | CH: 1 | Sent: 83 | SSID: IoT-Guest-Net
...
I (34102) probe_ble: [BLE DISCONNECT] Dropping client on handle 0 after 30 s to resume identity rotation
I (34251) probe_ble: [BLE DISCONNECT] Client disconnected from handle 0 (reason=534)
Modern mobile operating systems (Apple iOS, Google Android) and desktop platforms (Microsoft Windows 11) have introduced aggressive background wireless scanning filters. Standard beacon frames, generic advertisements, and naive test networks are frequently ignored, deduplicated, or hidden from user-facing discovery interfaces.
PhantomProbe-C6 was developed as an experimental probe to explore:
- Multi-BSSID Honeypot Simulation: Simulating complex enterprise environments (segmented VLANs, corporate DMZs, IoT networks) using a single 2.4 GHz physical radio via locally administered IEEE 802.11 MAC addresses.
- Client Reconnaissance & PNL Auditing: Passively registering in-range stations (
[NEW STATION #N]), detecting client discovery sweeps ([WILDCARD SCAN]), responding to targeted honeypot queries ([PROBE HIT]), and intercepting Preferred Network List (PNL) leaks for foreign/saved networks ([PROBE SNIFF]). - OS-Level BLE Discovery Filter Research: Investigating how consumer operating systems filter Bluetooth advertisements, demonstrating that spoofing Human Interface Device (HID) and standard GATT appearance profiles forces native discovery dialogs to surface virtual peripherals.
- Real-Time Intrusion Telemetry & Audit Logging: Emitting continuous, high-resolution diagnostic telemetry over USB-UART (115200 baud) for deauth/disassociation attack alerts (
[DEAUTH ALERT]), honeypot connection attempts ([AUTH INTERCEPT]), BLE GATT/MTU interaction auditing, and periodic health monitoring (with glanceable physical status provided by the onboard LED).
The probe is optimized for the ESP32-C6-DevKitC-1 (N4 / N8) development board:
| Subsystem | Specification |
|---|---|
| SoC | Espressif ESP32-C6 (Single-core 32-bit RISC-V @ 160 MHz) |
| Memory | 512 KB HP SRAM, 16 KB LP SRAM, 320 KB ROM, 4 MB / 8 MB Quad-SPI Flash (the image is built for 4 MB and runs on both) |
| Wi-Fi Subsystem | 2.4 GHz Wi-Fi 6 (IEEE 802.11b/g/n/ax), 20 MHz bandwidth |
| Bluetooth Subsystem | Bluetooth 5.0 Low Energy (BLE), High-speed 2 Mbps PHY, Coded PHY |
| Telemetry & Diagnostics | High-speed USB-UART serial console (115200 baud) + WS2812 status LED (GPIO8) |
| Configuration | Declarative text manifest (ssid_list.conf) compiled directly into flash |
| Host Toolchain | PlatformIO Core / ESP-IDF Framework (FreeRTOS) |
Hardware Context — Why ESP32-C6?
The ESP32-C6 incorporates Espressif's latest Wi-Fi 6 MAC and modem, offering granular access to raw frame transmission (esp_wifi_80211_tx) and promiscuous packet interception. Compared with the original ESP32, the C6 adds a 2.4 GHz Wi-Fi 6 (802.11ax) radio and a single RISC-V core. Raw TX, promiscuous mode, the RMT driver and NimBLE are standard ESP-IDF features that earlier chips offer too.
- Synthetic Frame Assembly: Rather than instantiating heavy software access points,
beacon_generator.ccrafts raw IEEE 802.11 management frames directly in byte buffers. - Microsecond Timestamp Tracking: Employs
esp_timer_get_time()to inject 64-bit microsecond timestamps into the Fixed Parameters field, ensuring receiving stations do not reject frames as desynchronized. - Sequence Control: Increments a 12-bit sequence counter (
seq_num << 4) across frames to satisfy station packet ordering checks. - Beacon Timing: Every SSID is beaconed once per period, where period = (number of SSIDs x
burst_gap_ms) +burst_interval_ms. The Beacon Interval field carries that real period in time units (1 TU = 1.024 ms), so the frames describe what is actually on air. The period is never shorter than the airtime of one burst (about 1.5 ms per SSID). - Locally Administered BSSID Derivation: Generates standards-compliant BSSIDs by taking the base hardware MAC, setting bit 1 (Locally Administered) and clearing bit 0 (Unicast). Octets are hashed per virtual network to guarantee uniqueness without colliding with registered hardware vendor OUIs:
memcpy(networks[i].bssid, base_mac, 6); networks[i].bssid[0] = (base_mac[0] | 0x02) & 0xFE; networks[i].bssid[5] = (uint8_t)(base_mac[5] ^ ((i + 1) * 0x13));
- Information Elements (IE): Injects Tag 0 (SSID), Tag 1 (Supported Rates: 1, 2, 5.5, 11, 6, 9, 12, 18 Mbps), Tag 3 (DS Parameter / Channel), Tag 5 (TIM, beacons only), Tag 42 (ERP Information), and Tag 50 (Extended Supported Rates: 24, 36, 48, 54 Mbps).
- What clients see: The virtual networks appear as open 802.11b/g networks (no RSN element, no HT/HE elements). "Wi-Fi 6" describes the chip, not the emulated networks. Connection attempts are logged (
[AUTH INTERCEPT]) and never answered, so nothing can join them. - Carrier interface: Raw TX needs a started Wi-Fi interface, so the firmware also runs one real SoftAP as a carrier. It is hidden, has no IP stack or DHCP server attached, and is protected with a random WPA2 passphrase generated at every boot, so it cannot be joined either. Its own beacons (hidden SSID, factory MAC) are visible to a sniffer.
wifi_promiscuous_rx_cb listens to raw IEEE 802.11 management traffic (WIFI_PROMIS_FILTER_MASK_MGMT) in real time:
- Station Discovery & Tracking Cache: A 64-entry least-recently-seen table holds the source MACs of probe, auth/assoc and deauth/disassoc frames heard on the configured channel, and emits a discovery event (
[NEW STATION #N]) with RSSI for each new one. Access points are not counted. The figures count MAC addresses, not devices: phones randomise their MAC, so one phone can appear many times. - Wildcard Probes (
0x40, Tag Len 0): Detects nearby client discovery sweeps ([WILDCARD SCAN]). When an interrogating station broadcasts an empty SSID request, the probe responds on behalf of all virtual honeypot networks. Responses are rate limited (one burst per client per 250 ms, 64 responses per second sustained overall, plus a burst of up to 32), so a probe flood cannot turn the probe into a traffic amplifier or starve its own beacons. - Targeted Probes (
0x40, Tag Len > 0): Compares requested SSIDs against the virtual network table. If a match is found, an immediate directed Probe Response is injected ([PROBE HIT]). Probes addressed to somebody else's access point are logged but not answered. - Foreign Probe Sniffing (PNL Leaks): Intercepts directed probe requests for external, non-honeypot networks (
[PROBE SNIFF]), exposing which saved SSIDs client devices are searching for without transmitting. A client's burst of up to 8 different SSIDs is logged in full, the same client and SSID again only after 10 seconds, and received SSID bytes outside printable ASCII are printed as\xNN. - Authentication & Association Interception (
0x00,0x20,0xB0): Sniffs connection requests targeting any virtual BSSID ([AUTH INTERCEPT]), verifying destination MAC matching against active honeypot networks and triggering high-priority LED alert pulses. - Deauthentication & Disassociation Interception (
0xC0,0xA0): Passively captures teardown and disruption frames ([DEAUTH ALERT]), decoding IEEE 802.11 reason codes (e.g. STA Leaving, Previous Auth Invalid, 4-Way Handshake Timeout) with transmitter, destination, BSSID, and RSSI. Every such frame on the channel is reported, including ordinary teardowns between other people's devices; frames that involve a virtual BSSID are counted separately (honeypot) because the probe never sends them itself. Frames protected by 802.11w carry no readable reason code. - Log-only responder mode: With
enable_probe_responder = 0all of the above is still logged, but no probe responses are sent. Beacons continue.
Consumer operating systems ignore generic BLE beacons in standard Bluetooth scan dialogs. To assess OS-level discovery heuristics, ble_multi_adv.c implements:
- Profile Spoofing: Injects standard GATT Human Interface Device (HID) Service (
0x1812) and appearance values:- Mode 1: Keyboard (
0x03C1) - Mode 2: Mouse (
0x03C2) - Mode 3: Gamepad (
0x03C4) - Mode 4: Joystick (
0x03C3) - Mode 5: Remote Control (
0x0180) - Mode 6: Smartwatch (
0x00C2, Current Time0x1805) - Mode 7: Heart Rate Monitor (
0x0341, Heart Rate0x180D) - Mode 8: Thermometer (
0x0300, Health Thermometer0x1809) - Mode 9: Cycling Speed and Cadence Sensor (
0x0485, CSC0x1816) - Mode 10: Digital Pen (
0x03C7) - Mode 11: Barcode Scanner (
0x03C8) - Mode 12: Auto-Distribute Showcase Mode (cycles across identities with distinct icons)
- Mode 1: Keyboard (
- Random Static MAC Rotation: Generates BLE Core Specification compliant random static addresses (two most significant bits set to
0b11), rotating identities on every dwell cycle:rnd_addr[0] ^= ((uint8_t)(cur_idx * 0x1F + 0x0D)); rnd_addr[1] ^= ((uint8_t)(cur_idx * 0x0B + 0x03)); rnd_addr[5] = (rnd_addr[5] & 0x3F) | 0xC0;
- Temporal Dwell Dynamics: Employs a 2000 ms dwell window per identity (configurable, 1000 to 10000 ms). Testing showed mobile OSs miss sub-second rotations due to periodic BLE radio duty cycling.
- Connections: One central can connect at a time. While it is connected the rotation pauses; after
max_connection_s(default 30 s) the probe drops the link and resumes. The GATT server answers reads with well-formed placeholder values, logs writes, and stores no bonds.
Real-world security research and wireless auditing require high-fidelity telemetry. Nobody stares at an LED while analyzing probe frames or tracking state machines. PhantomProbe-C6 implements a two-tier telemetry architecture:
The primary diagnostic and auditing interface streams continuously over the dedicated USB-UART bridge at 115200 baud, 8-N-1:
- Real-Time RF Security & Attack Alerts:
- Station Discovery (
[NEW STATION #N]): Registers new station MAC addresses detected in the 2.4 GHz RF environment with signal strength (RSSI) and tracks them in a 64-entry least-recently-seen table. - Wildcard Scan Telemetry (
[WILDCARD SCAN]): Logs in-range client devices sweeping the 2.4 GHz band for available access points and reports the number of synthetic honeypot responses dispatched. - Foreign Probe Sniffing (
[PROBE SNIFF]): Intercepts directed probe requests for non-honeypot networks, capturing Preferred Network List (PNL) leaks from nearby client devices. - Deauthentication Alerts (
[DEAUTH ALERT]): When an 802.11 deauth/disassoc frame is detected, the probe logs the target MAC, source MAC, BSSID (identifying whether a honeypot network is targeted), decoded reason code (e.g.STA Leaving,Previous Auth Invalid), and RSSI signal strength. - Client Authentication Intercepts (
[AUTH INTERCEPT]): Logs station MAC addresses attempting connection or association to any virtual honeypot network with RSSI. - Directed Probe Hits (
[PROBE HIT]): Logs when an interrogating client actively queries a specific virtual SSID and triggers a synthetic response.
- Station Discovery (
- Real-Time BLE Lifecycle Telemetry: Every identity rotation outputs the newly active GATT profile name, virtual index, and generated Random Static MAC address. Incoming client connection (
[BLE CONNECT]) and disconnection ([BLE DISCONNECT]) events are logged with peer Bluetooth MAC address, connection interval, latency, supervision timeout, and disconnect reason codes. MTU negotiation ([BLE MTU]) and GATT attribute operations ([BLE GATT READ / WRITE]) are captured in real-time. - Periodic RF Telemetry Summaries: Every 5 seconds, the low-priority logging task (
probe_log) emits aggregated metrics logging formatted uptime (HH:MM:SS), stations active in the last 5 minutes and MAC addresses seen in total, beacon frames handed to the radio, probe responses sent, intercepted deauth frames (all, and those involving a honeypot BSSID), client auth attempts, and FreeRTOS heap memory health (esp_get_free_heap_size()), followed by an individual breakdown of packets sent per virtual BSSID. - Flood Protection & Throttling: The Wi-Fi sniffer callback never writes to the console. It queues compact events for a low-priority task that prints them, so logging cannot delay frame handling or beaconing. Each event class is rate limited (10 to 20 lines per second); when lines are skipped, probes go unanswered because of the rate limit, or the transmit queue refuses frames, the next telemetry summary adds a
Limits:line with the counts.
For standalone bench testing or quick visual verification when a serial monitor is not connected, the onboard WS2812 addressable LED provides glanceable state feedback:
-
Eye-Safe Linear Scaling: Bare surface-mount WS2812 diodes without diffusers cause intense retina fatigue. The driver maps brightness (1–100%) linearly into a deliberately small PWM range;
brightness = 0orenable_led = 0switches the LED off:$$\text{PWM} = 3 + \left\lfloor \frac{\text{brightness} \times 70}{100} \right\rfloor \quad (\text{maximum: } 73/255)$$ At default 5% brightness, the duty cycle is ~2.3% (PWM 6/255)—crystal clear indoors with zero eye strain.
| State / Event | Color | RGB Values | Trigger Condition | Priority |
|---|---|---|---|---|
| Idle (Unconnected) | #00FF14 |
(0, 255, 20) |
Radio active, no external client connected | Lowest |
| Idle (Connected) | #00A078 |
(0, 160, 120) |
External client connected via BLE | Low |
| Beacon Burst | #00D2FF |
(0, 210, 255) |
Periodic 802.11 beacon injection cycle | Background (1) |
| Wildcard Scan | #A028FF |
(160, 40, 255) |
Nearby device performing 802.11 discovery | Medium (3) |
| Probe Response | #FF8C00 |
(255, 140, 0) |
Honeypot replied to client directed probe | Medium-High (4) |
| BLE Identity Shift | #003CFF |
(0, 60, 255) |
BLE peripheral identity rotation | Low (2) |
| Wi-Fi Auth / Assoc | #FF0AB4 |
(255, 10, 180) |
External client attempting honeypot auth | High (7) |
| Wi-Fi Deauth | #FF3C00 |
(255, 60, 0) |
Deauth/disassoc frame involving a honeypot BSSID | High (6) |
| BLE GATT Read | #FFFFFF |
(255, 255, 255) |
Connected client read a GATT characteristic | Medium-High (5) |
| BLE Connect | #00FF8C |
(0, 255, 140) |
BLE client completed connection handshake | Critical (9) |
| BLE Disconnect | #FF1414 |
(255, 20, 20) |
BLE client terminated connection | Critical (8) |
A running pulse is replaced only by an event of the same or a higher priority number; lower ones are ignored until it ends.
PhantomProbe-C6 uses a declarative configuration file at the project root. Edit the file and reflash—the build compiles it into the firmware (main/embedded_config.h is generated from it on every build).
# ============================================================
# PhantomProbe-C6: Wireless RF Security Research & Telemetry Probe
# Target Hardware: ESP32-C6-DevKitC-1 (Wi-Fi 6 / BLE 5 / IEEE 802.15.4)
# ============================================================
[wifi]
# Target 2.4 GHz RF Channel (1 to 13; 12 and 13 need a country code that permits them)
channel = 1
# Optional two-letter regulatory country code (default: world-safe, channels 1-11)
# country = NL
# Pause after each beacon burst in milliseconds (10 to 5000, default: 50)
burst_interval_ms = 50
# Inter-frame gap between virtual beacons within a burst (0 to 100, default: 2 ms)
burst_gap_ms = 2
# Active Probe Responder: Reply to client 802.11 Probe Requests (1 = on, 0 = log only)
enable_probe_responder = 1
[networks]
# Synthetic targets / honeypot virtual SSIDs (one per line, up to 16, max 32 bytes each)
# Quote a name that starts with '#', ';', '[' or a space: "#FreeWifi"
IoT-Sensors-Net
IoT-Cameras-Net
IoT-Automation-Net
IoT-Isolated-DMZ
IoT-Guest-Net
[bluetooth]
# Enable multi-identity BLE advertising (1 = on, 0 = off)
enable_ble = 1
# Rotation dwell time in milliseconds (1000 to 10000, default: 2000)
ble_adv_interval_ms = 2000
# Drop a connected central after this many seconds so rotation resumes (0 = never)
max_connection_s = 30
# Emulated accessory profile:
# 0 = Generic BLE | 1 = Keyboard | 2 = Mouse | 3 = Gamepad | 4 = Joystick
# 5 = Remote | 6 = Smartwatch | 7 = Heart Rate | 8 = Thermometer | 9 = Cycling
# 10 = Digital Pen | 11 = Barcode Scanner | 12 = Auto-Distribute Showcase
accessory_type = 12
# Custom Bluetooth device names, max 29 bytes each (leave commented to mirror [networks])
# A name containing '=' is written as: name = My=Device
# IoT-Sensors-BLE
# IoT-Cameras-BLE
[led]
# Enable WS2812 RGB LED telemetry indicator on GPIO8 (1 = on, 0 = off)
enable_led = 1
# Eye-safe LED brightness percentage (0 to 100, default: 5, 0 = off)
brightness = 5PhantomProbe-C6 is an active transmitter of synthetic beacons, probe responses and BLE advertisements. It has no attack capability:
- No Deauthentication Capability: The firmware does not generate or inject 802.11 deauth or disassociation frames. Deauth and disassociation frames (
0xC0,0xA0) are strictly intercepted passively from the air via promiscuous monitoring to stream real-time intrusion alerts ([DEAUTH ALERT]) with decoded 802.11 reason codes over USB-UART and trigger physical LED alert pulses.- No Signal Interference or Jamming: The firmware has no RF jamming or signal overpowering mechanism. It does occupy airtime like the access points it imitates: every virtual SSID is beaconed once per period (period = SSID count x
burst_gap_ms+burst_interval_ms; about 17 times per second per SSID with the shippedssid_list.conf) at the ESP32-C6's normal transmit power, plus rate-limited probe responses and BLE advertisements.- No Exploitation Payloads: The device delivers no exploits, interceptive captive portals, or data theft vectors. It acts solely as an RF environment simulator and discovery heuristic probe for laboratory testing and academic research.
When configuring and operating this probe, researchers are expected to adhere to reasonable ethical conduct:
- No Mischievous Network Flooding: Do not configure an excessive quantity of synthetic networks in public environments simply to clutter device scan lists, cause nuisance, or create confusion for the public.
- No Borrowed Network Names: Do not reuse the SSID of a real network you do not own. Devices that have saved an open network of that name will try to join the honeypot and stall.
- Mind the Data You Collect: The serial log contains MAC addresses and saved-network names of nearby devices. Treat it as personal data.
- Strict Prohibition on Alarmist SSIDs: Never name virtual networks with SSIDs that simulate emergency situations, public alerts, imminent danger, law enforcement operations, or hazards (e.g., false evacuations, bomb threats, or active incident reports).
- Limitation of Liability: The author(s) and contributors assume no liability, responsibility, or legal accountability for misuse, confusion caused by irresponsible SSID naming, or consequences resulting from operating or modifying this codebase.
- Host unit tests:
python tests/host/run.pycompiles the manifest parser and the 802.11 frame builder with the PC's C compiler (gcc or clang) against small stubs, runs their tests, and checks the manifest-to-header generator. No board or ESP-IDF needed. - SDK configuration:
sdkconfig.defaultsis the source of truth. PlatformIO generatessdkconfig.esp32-c6-devkitc-1from it (not kept in git); delete that generated file after changing a value in the defaults so it is rebuilt. - Building with plain ESP-IDF:
idf.py buildshould also work with ESP-IDF 6.1 (5.3 is the oldest release that has theesp_driver_rmtcomponent). Only the PlatformIO build is tested.
This project is licensed under the MIT License.
PhantomProbe-C6 builds upon and interfaces with the following open-source technologies:
- Espressif ESP-IDF: IoT Development Framework for ESP32-C6 (Licensed under Apache-2.0).
- Apache Mynewt NimBLE: Open-source Bluetooth 5.0 Low Energy stack integrated into ESP-IDF (Licensed under Apache-2.0).
- FreeRTOS: Real-time operating system kernel for microcontrollers (Licensed under MIT).
- PlatformIO: Open-source embedded ecosystem and build toolchain (Licensed under Apache-2.0).
None of the upstream components enforce viral copyleft or license inheritance (no GPL/AGPL dependencies). All linked libraries use permissive open-source licenses (MIT and Apache 2.0), making this repository fully compliant with the MIT License.