Hands‑on · BLE / Bluetooth LE security

Bluetooth Low Energy Pentesting, from first sniff to GATT exploitation

A practical, lab-driven course covering the ground that practitioners like Sławomir Jasek (GATTacking, SmartLock research) and Josh Luberisse's BLE security training cover: passive sniffing, GATT/attribute enumeration, pairing & bonding weaknesses, MITM proxying, and building your own rogue peripherals — using inexpensive, widely available hardware.

9Modules
14Hands‑on labs
<$120Extra gear needed
0→CTF‑readyOutcome
Inventory check

What you already have — and what it's for

Good news: you can get through roughly the first two-thirds of this course with zero purchases. Here's how your current kit maps onto the course.

Have — core attack platform

Raspberry Pi 4B

Your main rig for bluetoothctl, bettercap, gatttool/btmgmt, and later Wireshark analysis. Pair with a cheap external BLE sniffer dongle (see shopping list) — the Pi's onboard Bluetooth chip can enumerate and connect, but can't passively sniff advertising channels the way a dedicated sniffer or a second radio in monitor-adjacent mode can.

Role: attacker workstation, Wireshark capture host, bettercap MITM
Have — portable / low-power node

Raspberry Pi Zero W

Perfect for building a disguised "rogue beacon" or GATT server you can tuck into a bag — exactly the kind of drop-box Jasek-style demos use to show how trivially a fake peripheral can be planted. Its single-core CPU is underpowered for heavy sniffing/analysis, so use it as a target emulator or deployed implant, not your main capture box.

Role: rogue GATT server, planted beacon, headless target
Have — target devices (lab only)

Garmin/Amazfit-style smartwatch: "Charge 6"

A real BLE wearable with GATT services for heart rate, steps, notifications and (often) a proprietary companion-app service. Ideal target for Module 4 (GATT enumeration) and Module 6 (sniffing the pairing handshake). Expect vendor-specific, sometimes encrypted characteristics — great for practicing reverse engineering an undocumented protocol.

Role: GATT enumeration target, pairing/bonding analysis target
Have — target devices (lab only)

Aftershokz / OpenRun headphones + "Sound Square" speaker

Classic-profile audio devices (A2DP/HFP), usually paired over classic Bluetooth rather than BLE, though many modern speakers also expose a BLE control/config service for app pairing and firmware updates. Good for Module 2 (discovery & fingerprinting) and comparing classic BT vs BLE attack surface side by side.

Role: discovery/fingerprinting target, BLE-vs-classic comparison
Have — second radio / scripting target

Samsung Galaxy A55 (Android)

Your mobile analysis and social-engineering-simulation device. Install nRF Connect, Bluetooth HCI snoop logging, and a packet capture app to see both sides of a connection — what your phone sees vs. what your sniffer sees. Also acts as a second "victim" device for MITM labs.

Role: nRF Connect client, HCI snoop capture, victim phone in MITM labs
Have — scripting / payload host

Windows laptop

Runs your note-taking, report writing, and (via WSL2 or a VM) a proper Linux BlueZ stack when you're not on the Pi. Also where you'll run Wireshark for deep packet analysis of captures pulled off the Pi or the sniffer dongle.

Role: Wireshark analysis, WSL2/VM BlueZ environment, documentation
Have, but not useful yet

Arduino (no BT module)

Your Arduino can't join this course until it has a BLE-capable module — and honestly, for BLE work specifically, an ESP32 board is a far better investment than a BLE shield for your existing Arduino (see shopping list below: it's cheaper, has BLE built in, and is what most public GATT-spoofing / BLE-CTF toolchains target). Keep the Arduino for non-BLE projects.

Role: none yet — see ESP32 recommendation
Budget: roughly $45–$115 total

What to actually buy

Ordered by priority. The first item unlocks real passive sniffing, which is the single biggest capability gap in your current kit.

Priority 1 — ~$15–30

Nordic nRF52840 Dongle (or clone)

The standard affordable BLE sniffer. Works with Nordic's free nRF Sniffer for Bluetooth LE plugin feeding straight into Wireshark. This is what turns "my Pi can connect to things" into "I can passively capture the advertising and pairing traffic of everything around me." Flashes as a sniffer or as a programmable BLE peripheral/central.

Priority 2 — ~$10–15

ESP32 Dev Board (WROOM-32)

Replaces the "Arduino + BLE module" idea entirely. Used to script fake/rogue GATT servers, BLE beacon spam, and spoofed peripherals that impersonate your own watch/headphones for MITM practice. Flash with Arduino IDE or ESP-IDF; tons of ready-made BLE example sketches.

Priority 3 — ~$10–20

Second nRF52840 dongle (or Ubertooth One, ~$120 used)

Optional but useful once you're comfortable: a second sniffer radio lets you capture both sides of a connection-hop simultaneously, which Wireshark can then merge. Ubertooth One is the "pro" tool Jasek-style talks reference for classic BT + BLE, but it's a big step up in price — treat it as a stretch goal, not a requirement.

Nice to have — ~$8

USB Bluetooth 5.0 dongle (CSR/Realtek, Linux-friendly)

A second, known-good BT 5.0 adapter for your Windows laptop's WSL2/VM Linux environment, so you're not fighting USB passthrough quirks with a built-in laptop radio.

Nice to have — ~$0

A cheap "disposable" BLE gadget

A $5–10 no-name BLE fitness band, smart bulb, or BLE padlock from a marketplace. Vendors like these are exactly the class of device Jasek's GATTacking research targeted — unauthenticated writes to control characteristics. Great low-stakes target you're allowed to fully tear apart.

Free

Software only

Wireshark, BlueZ (bluetoothctl, gatttool/bluetoothctl gatt, btmon), bettercap, nRF Connect for Mobile/Desktop, and gatttool/CAPTAIN or bleah/BLE CTF training firmware — all free. Install list is in Module 1.

Curriculum

Nine modules, from RF basics to protocol-level exploitation

Each module ends with a lab you run against your own hardware. Jump to any module:

BLE fundamentals & the stack

Theory · ~2–3 hrs

GAP vs GATT, advertising vs connections, the attribute protocol (ATT), UUIDs (16-bit vs 128-bit), roles (central/peripheral, client/server), and where Bluetooth Classic diverges from BLE — important since your headphones/speaker are likely Classic (A2DP) while your watch is BLE.

  • GAP roles: broadcaster, observer, peripheral, central
  • GATT structure: services → characteristics → descriptors
  • Advertising packet anatomy (AD types, flags, manufacturer data)
  • Classic BT vs BLE: why your Aftershokz won't show up the same way your watch does
Lab: install BlueZ tools + nRF Connect, do a manual GAP walkthrough

Discovery & fingerprinting

Hands-on · Pi 4B + phone

Enumerate every BLE and Classic device around you, identify manufacturer from OUI/UUID, and fingerprint device type from advertising data alone — before ever connecting.

  • bluetoothctl scan on, hcitool lescan, btmon
  • Reading manufacturer-specific AD data to identify chipset/vendor
  • Using nRF Connect on the A55 to cross-check what the Pi sees
  • MAC address randomization: why your watch's address keeps changing, and what that means
Lab: fingerprint your Charge 6, Aftershokz, and Sound Square from radio data alone

Setting up a sniffing rig

Hands-on · requires nRF52840 dongle

Get Nordic's nRF Sniffer plugin working with Wireshark, learn channel-hopping limitations (why a single sniffer misses some packets), and capture your first live advertising stream.

  • Flashing the nRF52840 dongle with sniffer firmware
  • Wireshark BLE dissector basics, display filters (btle, btatt)
  • Following a specific device by MAC/advertising address
  • Capturing on the Pi headless, pulling the .pcap to the Windows laptop for analysis
Lab: capture and filter the advertising traffic of all your BLE devices in one room

GATT enumeration & service mapping

Hands-on · Pi 4B + Charge 6

Connect, enumerate every service/characteristic/descriptor, and map permissions (read/write/notify/indicate) — building a full attack-surface picture of a device before touching exploitation.

  • gatttool -b <MAC> --characteristics and interactive mode
  • Reading/writing characteristics directly, subscribing to notifications
  • Decoding standard GATT services (Heart Rate, Battery, Device Info) vs vendor-proprietary ones
  • Using bettercap's ble.recon module for automated enumeration
Lab: fully map your Charge 6's GATT table and identify any unauthenticated writable characteristics

Pairing, bonding & the security manager

Theory + hands-on

The module most BLE attacks hinge on: Legacy Pairing vs LE Secure Connections, Just Works vs Passkey vs Numeric Comparison, and why "Just Works" pairing (used by most wearables and speakers) offers essentially no protection against passive eavesdropping.

  • SMP (Security Manager Protocol) pairing phases
  • Why Just Works pairing can't prevent MITM — only protects against passive sniffing of later traffic, and even that depends on key exchange method
  • Temporary Key (TK), Short Term Key (STK), Long Term Key (LTK) — what each actually protects
  • Identifying which pairing method a device uses from the capture
Lab: capture the pairing exchange between your phone and Sound Square speaker, identify the method used

Passive capture & cracking Legacy Pairing

Hands-on · the classic Jasek-style demo

If a device still uses BLE Legacy Pairing with Just Works or a low-entropy passkey, the exchanged temporary key can sometimes be brute-forced offline from a passive capture — the attack made famous in several public BLE lock-picking talks.

  • Extracting the pairing frames from a .pcap
  • Tools: crackle for offline TK brute-force against Legacy Pairing captures
  • Why LE Secure Connections (ECDH-based) defeats this attack — and how to tell which one you're facing
  • Practicing against devices you own vs. the ethics of doing this against anyone else's
Lab: run crackle against a captured pairing exchange from one of your own Legacy-Pairing devices

Active attacks: spoofing, replay & GATT MITM

Hands-on · Pi 4B/Zero W + ESP32

Moving from passive to active: cloning a device's advertising identity, replaying captured writes, and standing up a GATT-level man-in-the-middle proxy between a real peripheral and its companion app.

  • bettercap's ble.spoof and connection-hijacking modules
  • Building a GATTacking-style proxy: forward a real device's services while intercepting/modifying traffic in the middle
  • Replaying a captured "unlock"/"start" characteristic write against your own BLE padlock or gadget
  • Detecting your own MITM: what defenders would see in logs/RSSI anomalies
Lab: build a MITM proxy between your phone's companion app and your cheap BLE gadget

Building rogue peripherals with ESP32

Hands-on · ESP32 required

Script your own fake BLE peripherals: clone a target's advertising data and GATT structure to build convincing decoys, or create BLE CTF-style challenge firmware to practice against.

  • ESP32 BLE server/client libraries (Arduino-IDE based)
  • Cloning advertising name/UUIDs/manufacturer data from your Charge 6 as a benign decoy
  • Standing up the public BLE CTF firmware image on the ESP32 as a self-hosted practice range
  • Using the Pi Zero W as a low-footprint deployed "rogue beacon" for physical pentest scenarios
Lab: flash BLE CTF firmware to your ESP32 and solve the first five flags

Methodology, scoping & reporting

Theory · how professionals structure engagements

How this maps to a real paid engagement: scoping a BLE pentest (device + companion app + backend), the testing checklist professionals actually use, and writing findings that a non-technical client and an engineering team can both act on.

  • OWASP IoT Testing Guide & Mobile/BLE-relevant checklist items
  • Severity rating for BLE findings (why "no auth on a write characteristic" isn't automatically critical)
  • Structuring a report: executive summary, technical findings, PoC steps, remediation
  • Where to go next: CTFs (BLE CTF, picoCTF IoT tracks), vendor bug bounty programs, certifications
Software toolbox

Everything you'll install, all free

ToolRuns onUsed for
BlueZ (bluetoothctl, btmon)Pi / Linux / WSL2Core Linux Bluetooth stack, scanning, pairing
gatttoolPi / LinuxManual GATT read/write/notify
bettercap (ble module)Pi / LinuxAutomated recon, spoofing, MITM
nRF Sniffer for Bluetooth LEWireshark pluginPassive packet capture with nRF52840
WiresharkWindows laptopDeep packet / protocol analysis
crackleLinuxOffline TK brute-force on Legacy Pairing captures
nRF Connect for MobileSamsung A55GATT browser, second vantage point
Arduino IDE / ESP-IDFWindows laptopFlashing ESP32 BLE firmware
BLE CTF firmwareESP32Self-hosted practice range

Ethics & legal scope — read this before Module 2

Everything in this course is designed to be practiced against hardware you own, in a space you control, with no other people's devices in scope. Scanning and passively observing advertising packets from nearby devices is generally how researchers discover vulnerabilities, but connecting to, enumerating, or interacting with a device you don't own and don't have explicit permission to test is unauthorized access in most jurisdictions, regardless of intent.

Before any lab involving a device that isn't yours

Get written authorization (a pentest engagement letter, a bug bounty program's scope document, or your own signed permission as the device owner). "I was just curious" is not a legal defense.

Radio law applies even to passive sniffing

In most countries you can legally receive radio signals in unlicensed ISM bands, but transmitting (spoofing, jamming, injecting) is regulated. Don't run active-attack labs (Modules 7–8) anywhere you might interfere with someone else's medical device, car, or infrastructure.

This course teaches defensive-minded offensive security: the goal is understanding how these attacks work well enough to find and fix them, the same spirit as published BLE security research from the wider Bluetooth security research community.