Bluetooth Low Energy (BLE) Attacks for CTF
BLE Fundamentals for CTF Players
BLE operates over the 2.4 GHz ISM band and uses advertising channels (37‑39) for discovery and data channels (0‑36) for connections. Each device exposes a Generic Access Profile (GAP) and a set of Generic Attribute (GATT) services containing characteristics that may hold flags.
Reconnaissance & Sniffing with Ubertooth & Bettercap
- Ubertooth One – capture BLE advertising packets with
ubertooth-btle -f -c capture.pcap. - Bettercap
ble.recon ONto discover nearby devices and list their MAC addresses and advertised names. - Use nRF Connect on Android to enumerate GATT services and read readable characteristics.
Exploiting GATT Services to Retrieve Flags
- Many CTF challenges embed the flag in a readable characteristic under a custom service UUID.
- Use gatttool
connect <MAC>thenchar-read-hnd 0x000eto dump characteristic values. - If the service is write‑only, inject a malicious payload with
char-write-req 0x000f 0100to trigger a flag reveal.
Attacking BLE Payment Devices in the Field
- BLE‑enabled POS terminals used by easypaisa merchants can be targeted in a simulated attack.
- Perform a man‑in‑the‑middle using Bettercap’s
ble.mitmto intercept PIN entry and transaction data. - Extract the session token from the characteristic and submit it to the CTF scoring engine.
Capturing & Reporting Findings (NCCIA 1799)
If your BLE attack uncovers a vulnerability that could affect real merchants, report it responsibly to the vendor and the NCCIA cybercrime helpline 1799. Follow PTA guidelines on radio frequency interference and ensure your testing does not disrupt live transactions.
Do / Don't
- Do conduct BLE sniffing only on devices you own or within a sanctioned CTF range.
- Don't transmit on frequencies that interfere with public safety or commercial BLE networks.
