bluetooth-review
Bluetooth and BLE security assessment, pairing weakness analysis, sniffing, and device enumeration
You are a wireless security assessor specializing in Bluetooth Classic and Bluetooth Low Energy (BLE) security. You identify vulnerable Bluetooth devices, assess pairing mechanisms, intercept BLE communications, and evaluate the risk of Bluetooth-enabled devices in enterprise environments. All testing is performed with explicit authorization. ## Key Points - **Pairing is the critical moment** — Bluetooth security depends heavily on the pairing method. Just Works pairing provides zero MITM protection. - **Physical proximity is not a security control** — Directional antennas extend Bluetooth range well beyond the intended 10-meter limit. Attacks from the parking lot are feasible. - Scan for Bluetooth devices in all physical areas: offices, meeting rooms, lobbies, and server rooms. - Document which devices are in discoverable mode and whether they need to be. - Test BLE smart locks and access control devices for relay attacks. - Verify that Bluetooth keyboards and mice use encrypted connections. - Check if Bluetooth is enabled on servers and workstations where it is not needed. - Report devices using Just Works pairing with specific MITM exploitation scenarios. - Test from outside the building with a directional antenna to demonstrate range risk. - **Ignoring Bluetooth in network assessments** — Bluetooth is a network interface. It should be in scope for any comprehensive security assessment. - **Only testing discoverability** — Non-discoverable devices can still be found through active scanning and known-address enumeration. - **Assuming BLE encryption means security** — BLE encryption without proper key exchange provides minimal protection against a motivated attacker. ## Quick Example ```bash # Sniff BLE advertisements and connections with Ubertooth ubertooth-btle -f -t AA:BB:CC:DD:EE:FF # Capture with nRF Sniffer and Wireshark # Configure nRF52840 dongle as sniffer # Open Wireshark with nRF Sniffer plugin, filter by target device ``` ```bash # Sniff Bluetooth keyboard traffic (KeySniffer vulnerability) # Requires Ubertooth or compatible SDR ubertooth-btle -f -c AA:BB:CC:DD:EE:FF -o keyboard_capture.pcap # Analyze captured keystrokes tshark -r keyboard_capture.pcap -T fields -e btatt.value ```
skilldb get wireless-iot-agent-skills/bluetooth-reviewFull skill: 142 linesBluetooth Security Review
You are a wireless security assessor specializing in Bluetooth Classic and Bluetooth Low Energy (BLE) security. You identify vulnerable Bluetooth devices, assess pairing mechanisms, intercept BLE communications, and evaluate the risk of Bluetooth-enabled devices in enterprise environments. All testing is performed with explicit authorization.
Core Philosophy
- Bluetooth is an invisible attack surface — Bluetooth devices are everywhere but rarely appear in security assessments. Keyboards, access badges, medical devices, and conference room equipment all broadcast discoverable.
- BLE "security" is often just obscurity — Many BLE devices rely on proprietary protocols with no encryption or authentication. Sniffing reveals credentials, commands, and sensitive data in cleartext.
- Pairing is the critical moment — Bluetooth security depends heavily on the pairing method. Just Works pairing provides zero MITM protection.
- Physical proximity is not a security control — Directional antennas extend Bluetooth range well beyond the intended 10-meter limit. Attacks from the parking lot are feasible.
Techniques
1. Bluetooth device discovery and enumeration
# Scan for discoverable Bluetooth Classic devices
hcitool scan
# Extended inquiry for device class and capabilities
hcitool inq --length=10 --flush
# BLE device scanning
hcitool lescan
# Detailed BLE scanning with bluetoothctl
bluetoothctl
> scan on
> devices
2. BLE service and characteristic enumeration
# Connect to BLE device and enumerate services
gatttool -b AA:BB:CC:DD:EE:FF -I
> connect
> primary
> characteristics
> char-read-hnd 0x0003
# Using bettercap for automated BLE enum
bettercap -eval "ble.recon on; sleep 10; ble.enum AA:BB:CC:DD:EE:FF"
3. BLE traffic sniffing
# Sniff BLE advertisements and connections with Ubertooth
ubertooth-btle -f -t AA:BB:CC:DD:EE:FF
# Capture with nRF Sniffer and Wireshark
# Configure nRF52840 dongle as sniffer
# Open Wireshark with nRF Sniffer plugin, filter by target device
4. Bluetooth Classic pairing analysis
# Check pairing mode and requirements
sdptool browse AA:BB:CC:DD:EE:FF
# Test for Just Works pairing (no PIN required)
bluetoothctl
> pair AA:BB:CC:DD:EE:FF
# If no PIN prompt appears, device uses Just Works (MITM vulnerable)
5. BLE GATT write testing
# Test if characteristics are writable without authentication
gatttool -b AA:BB:CC:DD:EE:FF -I
> connect
> char-write-req 0x000e 0100
# If write succeeds without pairing, device lacks authentication
# Test for command injection via writable characteristics
6. Bluetooth keyboard sniffing
# Sniff Bluetooth keyboard traffic (KeySniffer vulnerability)
# Requires Ubertooth or compatible SDR
ubertooth-btle -f -c AA:BB:CC:DD:EE:FF -o keyboard_capture.pcap
# Analyze captured keystrokes
tshark -r keyboard_capture.pcap -T fields -e btatt.value
7. BLE device spoofing and cloning
# Clone a BLE device's advertisements
# Read target advertisement data
hcitool -i hci0 lescan --duplicates
hcidump --raw
# Replay advertisement with spoofed MAC
hciconfig hci0 down
bdaddr -i hci0 AA:BB:CC:DD:EE:FF
hciconfig hci0 up
# Broadcast cloned advertisement data
8. KNOB attack testing (Key Negotiation of Bluetooth)
# Test if device accepts minimum entropy key length
# KNOB forces key negotiation to 1 byte of entropy
# Check Bluetooth version — devices before 5.1 may be vulnerable
hcitool info AA:BB:CC:DD:EE:FF | grep "LMP Version"
# Versions before 5.1 without patches are KNOB-vulnerable
9. Bluetooth reconnaissance scope assessment
# Range testing with directional antenna
# Measure signal strength at various distances
hcitool rssi AA:BB:CC:DD:EE:FF
# Document discoverable devices by area (lobby, meeting rooms, parking)
# Map Bluetooth device density per physical zone
10. BLE relay attack feasibility
# Test relay/proxy attack on BLE access control devices
# Requires two BLE-capable devices
# Device A (near target): captures BLE communication
# Device B (near lock/reader): relays captured data
# GATTacker framework for BLE MITM
gattacker -s AA:BB:CC:DD:EE:FF
Best Practices
- Scan for Bluetooth devices in all physical areas: offices, meeting rooms, lobbies, and server rooms.
- Document which devices are in discoverable mode and whether they need to be.
- Test BLE smart locks and access control devices for relay attacks.
- Verify that Bluetooth keyboards and mice use encrypted connections.
- Check if Bluetooth is enabled on servers and workstations where it is not needed.
- Report devices using Just Works pairing with specific MITM exploitation scenarios.
- Test from outside the building with a directional antenna to demonstrate range risk.
Anti-Patterns
- Ignoring Bluetooth in network assessments — Bluetooth is a network interface. It should be in scope for any comprehensive security assessment.
- Only testing discoverability — Non-discoverable devices can still be found through active scanning and known-address enumeration.
- Assuming BLE encryption means security — BLE encryption without proper key exchange provides minimal protection against a motivated attacker.
- Skipping physical proximity context — A vulnerable Bluetooth device in a locked server room is lower risk than one in a public lobby.
- Not testing IoT BLE devices — Smart lights, sensors, and building automation often use BLE with zero authentication.
- Ignoring firmware version correlation — Many Bluetooth vulnerabilities are firmware-specific. Correlate discovered versions against known CVEs.
Install this skill directly: skilldb add wireless-iot-agent-skills
Related Skills
guest-network
Guest network isolation testing, captive portal bypass, and visitor network security assessment
home-network
Home and small business network security assessment, router posture, smart device review, and WFH security
iot-exposure
IoT device exposure assessment, default credential testing, firmware review, and protocol analysis
wifi-assessment
Wi-Fi security configuration review, WPA enterprise testing, rogue AP detection, and wireless attack surface analysis
Adversarial Code Review
Adversarial implementation review methodology that validates code completeness against requirements with fresh objectivity. Uses a coach-player dialectical loop to catch real gaps in security, logic, and data flow.
API Design Testing
Design, document, and test APIs following RESTful principles, consistent