Wireless RF Security Research & Telemetry Hardware Probe

PhantomProbe-C6 is an embedded wireless RF security research probe engineered for the Espressif ESP32-C6 RISC-V SoC.

💡 What does this actually do?

Flashing this firmware onto an ESP32-C6 board and connecting it via USB enables four core operations:

  1. Broadcasts multiple virtual Wi-Fi networks simultaneously:
    Instead of deploying multiple 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). Virtual network names and channels are declared in a plaintext manifest (ssid_list.conf).
  2. 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 clients perform discovery sweeps ([WILDCARD SCAN]), the probe responds with synthetic honeypot responses. When clients broadcast directed probes for saved networks ([PROBE SNIFF]), it captures and logs their Preferred Network List (PNL) leaks.
  3. Bypasses OS Bluetooth discovery filters with realistic gadget profiles:
    Modern operating systems (iOS, Android, Windows) ignore generic Bluetooth beacons in standard scan lists. The probe circumvents discovery filters by emulating authentic Human Interface Device (HID) appearance profiles (keyboards, mice, gamepads, smartwatches), rotating between them so they surface in nearby Bluetooth menus with authentic device icons and logging connection handshakes ([BLE CONNECT], [BLE MTU], [BLE GATT READ / WRITE]).
  4. Streams real-time security & intrusion telemetry straight to your PC:
    Connecting over USB-C at 115200 baud provides continuous real-time 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 (uptime HH:MM:SS, unique stations discovered, total frames injected, probe responses, and free heap). An onboard WS2812 RGB LED provides glanceable bench diagnostics.

🔬 Technical Overview

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.

// Ethical & Defensive Research Scope

Strictly defensive research with zero weaponized capability: PhantomProbe-C6 does not generate or inject 802.11 deauthentication 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. The device contains no RF jamming mechanisms and delivers no exploits or captive portals. It is an RF environment simulator designed for laboratory testing and heuristic verification.

🔬 Research & Threat Modeling Objectives

Modern mobile operating systems and desktop platforms employ 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 to explore four fundamental research vectors:

  • 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).

⚡ Hardware Architecture & Specifications

The probe is optimized for the ESP32-C6-DevKitC-1 (N4 / N8) development board:

SubsystemSpecification
SoCEspressif ESP32-C6 (Single-core 32-bit RISC-V @ 160 MHz)
Memory320 KB SRAM, 512 KB ROM, 4 MB / 8 MB Quad-SPI Flash
Wi-Fi Subsystem2.4 GHz Wi-Fi 6 (IEEE 802.11b/g/n/ax), 20 MHz bandwidth
Bluetooth SubsystemBluetooth 5.0 Low Energy (BLE), High-speed 2 Mbps PHY, Coded PHY
Telemetry & DiagnosticsHigh-speed USB-UART serial console (115200 baud) + WS2812 status LED (GPIO8)
ConfigurationDeclarative text manifest (ssid_list.conf) compiled directly into flash
Host ToolchainPlatformIO Core / ESP-IDF Framework (FreeRTOS)

🛠️ Deep Dive: Technical Mechanics

1. Wi-Fi Multi-BSSID Raw Frame Injection

Rather than instantiating heavy software access points, beacon_generator.c crafts 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.
  • 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:
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), and Tag 50 (Extended Supported Rates: 24, 36, 48, 54 Mbps).

2. Promiscuous Management Frame Sniffer & Honeypot Responder

wifi_promiscuous_rx_cb listens to raw IEEE 802.11 management traffic (WIFI_PROMIS_FILTER_MASK_MGMT) in real time:

  • Station Discovery & Tracking Cache: An in-memory 64-entry LRU ring buffer tracks unique client MAC addresses detected in the RF environment, outputting real-time discovery events ([NEW STATION #N]) with RSSI.
  • 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.
  • 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]).
  • 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.
  • 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.

3. Multi-Identity BLE Accessory Emulation

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 (0x03C8), Mode 6: Smartwatch (0x00C2), Mode 7: Heart Rate Monitor (0x0341), Mode 8: Thermometer (0x0300), Mode 9: Cycling Cadence Sensor (0x0484), Mode 10: Digital Stylus (0x03C6), Mode 11: Barcode Scanner (0x03C5), Mode 12: Auto-Distribute Showcase Mode.
  • 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. Testing showed mobile operating systems miss sub-second rotations due to periodic BLE radio duty cycling.

4. Telemetry Architecture: Live UART Console & Status LED

Real-world security research and wireless auditing require high-fidelity telemetry. PhantomProbe-C6 implements a two-tier telemetry architecture:

Primary Channel: High-Resolution USB-UART Serial Console (115200 baud)

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 an internal ring-buffer cache.
    • 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]): Logs target MAC, source MAC, BSSID, 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.
  • 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 MAC, connection interval, latency, supervision timeout, and disconnect reason codes. MTU negotiation ([BLE MTU]) and GATT operations ([BLE GATT READ / WRITE]) are captured in real-time.
  • Periodic RF Telemetry Summaries: Every 5 seconds, the Wi-Fi injector task emits aggregated metrics logging formatted uptime (HH:MM:SS), unique stations discovered, cumulative transmitted beacon frames, satisfied probe responses, intercepted deauth frames, 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: Alert logging within promiscuous and GATT callbacks is throttled with high-resolution microsecond timers (esp_timer_get_time()) to prevent console saturation and task lockups during sustained high-speed deauth floods or probe storms.

Auxiliary Channel: WS2812 Hardware Status LED (GPIO8 via RMT)

For standalone bench testing or quick visual verification when a serial monitor is not connected, the onboard WS2812 addressable LED provides glanceable state feedback. Brightness is mapped through an eye-safe logarithmic curve (Hardware Cap: 75/255; at default 5% brightness, duty cycle is ~2.3%).

Hardware Status LED Event Map

State / EventColor & HexRGB ValuesTrigger ConditionPriority
Idle (Unconnected) Green (#00FF14)(0, 255, 20)Radio active, no external client connectedLowest
Idle (Connected) Teal (#00A078)(0, 160, 120)External client actively paired via BLELow
Beacon Burst Cyan (#00D2FF)(0, 210, 255)Periodic 802.11 beacon injection cycleBackground
Wildcard Scan Violet (#A028FF)(160, 40, 255)Nearby device performing 802.11 discoveryMedium
Probe Response Amber (#FF8C00)(255, 140, 0)Honeypot replied to client directed probeMedium-High
BLE Identity Shift Blue (#003CFF)(0, 60, 255)BLE peripheral identity rotationMedium
Wi-Fi Auth / Assoc Magenta (#FF0AB4)(255, 10, 180)External client attempting honeypot authHigh
Wi-Fi Deauth Orange-Red (#FF3C00)(255, 60, 0)802.11 deauth/disassoc frame interceptedHigh
BLE GATT Read White (#FFFFFF)(255, 255, 255)Connected client read a GATT characteristicHigh
BLE Connect Emerald (#00FF8C)(0, 255, 140)BLE client completed connection handshakeCritical
BLE Disconnect Crimson (#FF1414)(255, 20, 20)BLE client terminated connectionCritical

📊 Live Serial Telemetry Output

Connecting over the onboard USB-to-UART bridge (115200 baud, 8-N-1) outputs real-time security alerts and periodic metrics:

============================================================
 PhantomProbe-C6: Wireless RF Security & Telemetry Probe    
 Target Architecture: ESP32-C6 RISC-V 160MHz (Wi-Fi 6 / BLE 5) 
 Mode: Multi-BSSID Honeypot Simulation & BLE Reconnaissance 
============================================================
I (310) probe_config: Parsing PhantomProbe-C6 deployment manifest (3572 bytes)...
I (320) probe_config: Config loaded: Wi-Fi=5 (CH=1), BLE=ON (5 names, Mode=Auto-Distribute (Showcase Multi-Icon)), LED=ON (Brightness=5%)
I (330) probe_led: Initializing WS2812 RGB LED on GPIO 8 (Eye-safe Brightness: 5%)...
I (340) probe_led: RGB LED driver active.
I (350) probe_main: Initializing network interface and default event loop...
I (380) probe_main: Promiscuous 802.11 management frame analyzer & probe responder: ACTIVE
I (390) probe_main: RF PHY transmitter configured on 2.4 GHz Channel 1 with raw 802.11 TX injection.
I (761) probe_beacon: Virtual AP [1]: SSID='IoT-Sensors-Net' -> BSSID=9E:CC:01:44:39:B2 (CH 1)
I (770) probe_beacon: Virtual AP [2]: SSID='IoT-Cameras-Net' -> BSSID=9E:CC:01:44:39:87 (CH 1)
I (778) probe_beacon: Virtual AP [3]: SSID='IoT-Automation-Net' -> BSSID=9E:CC:01:44:39:98 (CH 1)
I (787) probe_beacon: Virtual AP [4]: SSID='IoT-Isolated-DMZ' -> BSSID=9E:CC:01:44:39:ED (CH 1)
I (795) probe_beacon: Virtual AP [5]: SSID='IoT-Guest-Net' -> BSSID=9E:CC:01:44:39:FE (CH 1)
I (803) probe_main: Starting Wi-Fi beacon injection loop (5 virtual BSSIDs, cycle=50 ms, gap=2 ms)...
I (813) probe_ble: Initializing NimBLE for 5 Bluetooth identities (Mode=12)...
I (819) probe_ble:   BLE Identity [1]: 'IoT-Sensors-Net-BLE' -> Keyboard
I (826) probe_ble:   BLE Identity [2]: 'IoT-Cameras-Net-BLE' -> Mouse
I (832) probe_ble:   BLE Identity [3]: 'IoT-Automation-Net-BLE' -> Gamepad
I (838) probe_ble:   BLE Identity [4]: 'IoT-Isolated-DMZ-BLE' -> Joystick
I (845) probe_ble:   BLE Identity [5]: 'IoT-Guest-Net-BLE' -> Remote Control
I (894) probe_ble: Broadcasting BLE [1/5] as Keyboard: 'IoT-Sensors-Net-BLE' (MAC: E2:39:44:01:CF:91)
...
I (914) probe_main: [NEW STATION #1] Discovered client FC:3C:D7:B0:8E:45 | RSSI: -83 dBm
I (914) probe_main: [PROBE SNIFF] Client FC:3C:D7:B0:8E:45 probing foreign SSID 'Corp-Secured' | RSSI: -83 dBm
I (1206) probe_main: [NEW STATION #2] Discovered client 02:C1:A1:C5:A9:1F | RSSI: -85 dBm
I (1206) probe_main: [WILDCARD SCAN] Client 02:C1:A1:C5:A9:1F sweeping RF space | RSSI: -85 dBm | Replying with 5 honeypots
I (2902) probe_ble: Broadcasting BLE [2/5] as Mouse: 'IoT-Cameras-Net-BLE' (MAC: E2:39:44:01:C2:B0)
I (3062) probe_main: [NEW STATION #3] Discovered client 5C:E5:0C:CF:41:95 | RSSI: -67 dBm
I (3062) probe_main: [PROBE SNIFF] Client 5C:E5:0C:CF:41:95 probing foreign SSID 'Home-WiFi' | RSSI: -67 dBm
I (4100) probe_ble: [BLE CONNECT] Client 70:28:8B:12:34:56 paired on handle 0 (itvl=12, latency=0, timeout=500)
I (4120) probe_ble: [BLE MTU] Client on handle 0 negotiated MTU: 256 bytes
I (4150) probe_ble: [BLE GATT READ] Client handle=0 attr_handle=3 (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 (5857) probe_main: === RF Probe Telemetry [Uptime: 00:00:05 | Stations: 4 | Frames: 420 | Probe Resp: 5 | Deauths: 1 | Auths: 0 | Free Heap: 252476 B] ===
I (5859) probe_main:   BSSID: 9E:CC:01:44:39:B2 | CH: 1 | Sent: 84     | SSID: IoT-Sensors-Net
I (5868) probe_main:   BSSID: 9E:CC:01:44:39:87 | CH: 1 | Sent: 84     | SSID: IoT-Cameras-Net
I (5876) probe_main:   BSSID: 9E:CC:01:44:39:98 | CH: 1 | Sent: 84     | SSID: IoT-Automation-Net
I (5885) probe_main:   BSSID: 9E:CC:01:44:39:ED | CH: 1 | Sent: 84     | SSID: IoT-Isolated-DMZ
I (5893) probe_main:   BSSID: 9E:CC:01:44:39:FE | CH: 1 | Sent: 84     | SSID: IoT-Guest-Net

📋 Declarative Deployment Manifest (ssid_list.conf)

Deployment parameters are configured via a declarative manifest at the repository root and compiled straight into flash:

[wifi]
channel = 1
burst_interval_ms = 50
burst_gap_ms = 2
enable_probe_responder = 1

[networks]
IoT-Sensors-Net
IoT-Cameras-Net
IoT-Automation-Net
IoT-Isolated-DMZ
IoT-Guest-Net

[bluetooth]
enable_ble = 1
ble_adv_interval_ms = 2000
accessory_type = 12

[led]
enable_led = 1
brightness = 5

🚀 Deployment & Toolchain

For flashing guides, driver setup, and deployment instructions, see the PhantomProbe-C6 GitHub repository.