Skip to content
Skillpedia
Security10k Β· #11992

offensive-z-wave

What it does

This skill explains how to review Z-Wave smart home devices, which are common in door locks, sensors and garage controllers. It is for security testers and smart home reviewers with permission.

When to use it

  • βœ“When you are reviewing a Z-Wave smart lock, sensor or garage controller for weak security.
  • βœ“When you need to know whether a Z-Wave network uses the older S0 or the newer S2 security scheme.
  • βœ“When a client wants a smart home hub and its devices checked before going live.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/SnailSploit/Claude-Red/blob/main/Skills/wireless/offensive-z-wave/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œCan you help me check whether the Z-Wave door locks in our rental units use the older security method?”

5 new skills a week. 1 minute to read.

How it works

The skill explains how to tell the two security generations apart, why the older one is weaker, and what to look for when a new device joins the network.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Z-Wave Attacks

Z-Wave runs in the 800/900 MHz ISM band (US: 908 MHz, EU: 868 MHz). Older networks used the S0 security scheme with a fixed-derivation network key β€” long-known to be flawed. S2 (mandatory for Z-Wave Plus v2 since 2017) uses ECDH commissioning and is significantly stronger.

Quick Workflow

  1. Identify region (US 908 MHz / EU 868 MHz) β€” adapter frequency must match
  2. Sniff inclusion (commissioning) traffic β€” that's where keys are exchanged
  3. Determine S0 vs S2 from frame format
  4. For S0: derive/replay; for S2: analyze ECDH and look for implementation flaws

Hardware

Adapter Use
Z-Force (legacy, hard to find) Original research tool
EZ-Wave (custom HackRF firmware) Modern, full transceiver
Aeotec Z-Stick Commercial controller, useful as legitimate node
HackRF + open Z-Wave firmware Multi-band SDR approach
RTL-SDR + ZniffMobile (passive only) Cheap sniffer

Sniffing

# EZ-Wave (HackRF firmware-based)
git clone https://github.com/cureHsu/EZ-Wave
ezwave-sniff -f 908.4MHz -o capture.pcap

# Wireshark with the Z-Wave dissector parses captured frames
wireshark capture.pcap

Look for the inclusion phase (controller adding new device) β€” that's where the network key is exchanged.

S0 Security Flaw

S0 derives the network key from a fixed all-zero PSK during the inclusion of the first device. That fixed material is well-known β€” any S0 network you sniff during inclusion can be decrypted offline.

S0 commissioning:
  1. New node joins β†’ controller sends key with zero-PSK encryption
  2. Attacker sniffs commissioning frame β†’ derives session key
  3. All future S0 traffic on that network is decryptable

If you can:

  • Trigger inclusion (factory-reset a node, or wait for legitimate inclusion)
  • Sniff during the ~2-second key-exchange window

You own the network key for that mesh.

S2 (Z-Wave Plus / S2 Authenticated)

S2 fixes S0 by using ECDH for commissioning:

  • Each device has a Curve25519 keypair
  • Inclusion uses DSK (Device Specific Key) verified out-of-band (sticker/QR)
  • Network key never traverses the air in plaintext

S2 attack surface is mostly implementation:

  • Inclusion-mode-always-open (controller misconfig)
  • Firmware bugs in S2 verification
  • Side-channel on ECDH on resource-constrained chips
  • DSK printed on a sticker β†’ physical access yields it

Replay / Injection on Unauthenticated Nodes

Many low-end Z-Wave devices (older sensors, basic switches) don't enforce S0 or S2 β€” they accept commands in cleartext.

# scapy-zwave (community fork) for crafted frames
from scapy.contrib.zwave import *
frame = ZWave(home_id=0x12345678)/ZWaveBasic(set_value=0xff)
sendp(frame, iface='ezwave0')

This unlocks doors / switches lights / unarms sensors when the target lacks authentication.

Key Brute-Force

For old test deployments using default home IDs / network keys:

# Try default home IDs
for hid in 0x00000000 0x12345678 ...; do
  ezwave-test --home-id $hid --target-node 1
done

Hit rate on production is low; useful only for default-config IoT lab gear.

Hub Pivots

Z-Wave devices are typically controlled by a hub (SmartThings, Hubitat, Vera, Home Assistant, Z-Wave JS UI). The hub is a Linux device with the Z-Wave PSK in plaintext storage:

  • SmartThings Hub: previously cloud-only credentials; modern v3 stores network key locally
  • Home Assistant: ~/.homeassistant/zwave_js.json typically contains keys
  • Hubitat: web UI with default password on older versions

Compromise the hub β†’ walk away with the Z-Wave PSK + every paired device's command authority. See offensive-iot for hub firmware extraction.

Engagement Cheatsheet

# 1. Identify region + frequency
# US: 908.4 MHz; EU: 868.4 MHz; CN: 868.4 MHz

# 2. Sniff
ezwave-sniff -f 908.4MHz -o cap.pcap
wireshark cap.pcap   # filter zwave

# 3. Identify S0 vs S2 from frame format

# 4. For S0: capture inclusion β†’ derive key β†’ decrypt history + control devices

# 5. For S2: focus on hub compromise / DSK theft / implementation bugs

# 6. Test unauthenticated cleartext devices with crafted frames

Detection

  • Most Z-Wave deployments have no IDS comparable to Wi-Fi/Zigbee monitoring
  • Hub may log unexpected commands but UI rarely surfaces these to users
  • Inclusion-mode-open is visible in hub UI but ignored by inattentive admins

Reporting

  • Identify chipset / firmware revision per device (ZW0500 series, ZW7000 series)
  • Map S0
FAQ

What is Z-Wave?

Z-Wave is a wireless standard for smart home devices that works on a separate radio band from Wi-Fi.

What is the S0 weakness?

The skill says S0 derives its network key in a predictable way, which makes it weaker than the newer S2 scheme.

Why does the device joining step matter?

The skill says the network key is shared when a new device joins, so that moment matters most.

Details

Original description by the author

Z-Wave attack methodology β€” sniffing with Z-Force / EZ-Wave / RTL-SDR + ZniffMobile, S0 (legacy) network-key derivation flaw and key reuse, S2 (modern) ECDH commissioning analysis, replay/injection on unauthenticated nodes, default-key brute-force on test deployments, and home-automation hub pivots. Use when targeting Z-Wave smart home devices (door locks, sensors, garage controllers) β€” common in mid-2010s smart home deployments still in production.

repo: SnailSploit/Claude-Red

Popularity

GitHub stars
10k
Ranking position
#11992
License
MIT
Updated
10/12/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills