Two operators at a control-room desk with a row of monitors, a laptop and keyboards

OT/ICS security

Z-Wave protocol security, explained

Last updated:

Z-Wave, the wireless mesh protocol standardized internationally as ITU-T G.9959, made its S2 security framework mandatory for new certifications in 2017 — then in 2018 a downgrade attack dubbed Z-Shave (CVE-2018-25029) showed S2 devices could still be forced back onto the weaker original S0 framework. Its security has gone through one hard lesson already: the original S0 security framework's key exchange leaked the network key to anyone sniffing the pairing process, the replacement S2 framework (mandatory for certification since April 2017) fixed that with Diffie-Hellman key exchange and out-of-band pairing codes, and a 2018 downgrade attack nicknamed Z-Shave (CVE-2018-25029) then showed S2 devices could still be tricked into falling back to the weaker S0 during pairing.

Key takeaways

  • Z-Wave began in 1999 at the Danish company Zensys as a proprietary system-on-chip protocol for home automation, operating in sub-1 GHz unlicensed bands chosen specifically to avoid 2.4 GHz Wi-Fi/Bluetooth congestion.
  • S2 is not one key but several.
  • Yes — research has also targeted Z-Wave's normal operation, not just pairing.
  • The most useful single reference is CERT/CC Vulnerability Note VU#142629 (released 7 January 2022), which groups the chipset-level findings by Silicon Labs series.

Where does Z-Wave actually run, and who standardizes it?

Z-Wave began in 1999 at the Danish company Zensys as a proprietary system-on-chip protocol for home automation, operating in sub-1 GHz unlicensed bands chosen specifically to avoid 2.4 GHz Wi-Fi/Bluetooth congestion. Its physical and MAC layers were submitted to the International Telecommunication Union and approved as ITU-T Recommendation G.9959 in January 2015 — giving Z-Wave's radio layer the same kind of international standards-body footing that protocols like Zigbee and Thread have through IEEE 802.15.4. The Z-Wave Alliance, which now stewards the specification, describes the technology as "an open-source, interoperable, wireless, RF-based communications technology designed specifically for control, monitoring, and status reading applications in residential and commercial environments," with member companies including Silicon Labs, ASSA ABLOY and Johnson Controls.

How did the S0 security framework fail, and what did S2 change?

Z-Wave's original security framework, retroactively named S0 once S2 shipped, encrypted traffic with AES but paired devices using a key-exchange step with a documented flaw: the shared network key was itself transmitted during pairing wrapped in a fixed, publicly known all-zeros temporary key — an issue the security consultancy SensePost reported in 2013, meaning anyone capturing that one pairing exchange could recover every subsequent message on the network. The Z-Wave Alliance announced its replacement, S2, on 17 November 2016, and its Board of Directors voted to make S2 mandatory for all newly certified devices starting 2 April 2017. S2 replaces the broken key exchange with Elliptic Curve Diffie-Hellman (ECDH), adds a QR-code or PIN-based out-of-band authentication step so pairing can be cryptographically bound to a code printed on the physical device rather than trusted blindly over RF, and tunnels Z-Wave-over-IP gateway traffic through TLS.

What do the S2 security classes mean in practice?

S2 is not one key but several. A controller holds a separate 16-byte network key per security class and grants a joining device only the classes it requests and the installer approves, so a compromised key in a low class does not expose devices in a higher one. The open-source Z-Wave JS driver documentation sets out the four classes and how they are meant to be used (Z-Wave JS, "Supporting Security S2"):

Security class Intended devices Installer verifies the device (DSK PIN)? Available on Z-Wave Long Range?
S2 Access Control (highest) Door locks, garage doors Yes Yes
S2 Authenticated Security systems, sensors, lighting Yes Yes
S2 Unauthenticated Same as Authenticated No, the controller cannot confirm it included the right device No
S0 Legacy (lowest) Older door locks without S2 support No No

Two details matter for product teams. First, the installer proves which device is joining by checking its Device Specific Key (DSK) and typing the 5-digit PIN printed on the device, which is the missing first part of that DSK. Second, Z-Wave Long Range devices can only join through SmartStart (pre-provisioning by DSK or QR code), and the S2 Unauthenticated and S0 classes are not offered there at all, which removes the downgrade path for that radio mode.

What was the 2018 Z-Shave downgrade attack?

S2 fixed the key-exchange weakness, but Pen Test Partners researcher Andrew Tierney found in 2018 that the choice of which framework to use during pairing was itself unprotected: Z-Wave's Node Info exchange, which tells a controller what security class a device supports, is sent unencrypted and unauthenticated — by design, for backward compatibility with older S0-only devices. Tierney showed an active attacker present during pairing could intercept that exchange, strip out the bit flagging S2 (COMMAND_CLASS_SECURITY_2) support, and make the controller believe the device only speaks S0 (or, in some scenarios, no security at all) — then recover the network key through S0's already-known weak key exchange. Published 23 May 2018 and later tracked as CVE-2018-25029, the finding carried an unusual sting: Tierney's write-up notes the researchers "were fascinated to see reference to a 'S0 downgrade attack' in Z-Wave documentation, suggesting that it may be a known issue but has not been acknowledged or resolved" — the downgrade path wasn't a surprise to the spec's authors. At the time, an estimated 100 million-plus Z-Wave chips across roughly 2,400 vendors were in the field; the practical mitigation is that the attack requires an attacker physically in RF range during the specific pairing window, not an anytime remote compromise, and modern controllers are expected to warn a user when a pairing falls back to S0. NVD's entry for CVE-2018-25029 states the root cause plainly: "the Z-Wave specification requires that S2 security can be downgraded to S0 or other less secure protocols," after which an attacker can use the separate S0 weakness tracked as CVE-2013-20003, the fixed all-zero temporary key that encrypts the network key during S0 inclusion, to intercept and spoof traffic.

Are there Z-Wave weaknesses beyond the pairing process?

Yes — research has also targeted Z-Wave's normal operation, not just pairing. A January 2020 academic paper, "Crushing the Wave," reported two denial-of-service techniques that abuse unencrypted commands used during both pairing and normal operation — manipulating the Nonce Get / S2 Nonce Get command and the Find Nodes In Range command — to block a Z-Wave gateway's packet processing and knock an entire connected mesh offline, without needing to break S2's underlying cryptography at all. That's a useful reminder that a protocol's cryptographic framework (S0 vs. S2) and its lower-layer command handling are two separate attack surfaces, each needing its own scrutiny.

Which Z-Wave CVEs should a device maker track?

The most useful single reference is CERT/CC Vulnerability Note VU#142629 (released 7 January 2022), which groups the chipset-level findings by Silicon Labs series. Silicon Labs' own statement in that note describes them as "known weaknesses with various combinations of unencrypted traffic, S0 and S2 security."

CVE Affected chipsets (per VU#142629) Weakness
CVE-2013-20003 Devices using S0 from Sigma Designs (the CVE record says "Sierra Designs (circa 2013)") and Silicon Labs; not listed in VU#142629 The network key is sent during S0 inclusion encrypted under a fixed all-zero temporary key, so a sniffed pairing exposes it
CVE-2018-25029 Specification-level (Z-Shave) S2 can be downgraded to S0 during pairing
CVE-2020-9057 100, 200 and 300 series No encryption support
CVE-2020-9058 500 series using CRC-16 encapsulation No encryption or replay protection
CVE-2020-9059 500 series using S0 Resource consumption leading to battery exhaustion
CVE-2020-9060 500 series using S2 Denial of service via malformed Nonce Get, Nonce Get 2, No Operation or NIF Request messages
CVE-2020-9061 500 and 700 series Denial of service via malformed routing messages
CVE-2020-10137 700 series using S2 FIND_NODE_IN_RANGE frames not adequately authenticated or encrypted

CERT/CC's impact summary covers the full range: depending on chipset and device, an attacker within radio range can deny service, crash devices, drain batteries, observe and replay traffic, and in some cases control vulnerable devices. Its solution section is blunt about the oldest parts: some cases need newer hardware, such as 500 or 700 series chipsets that support S2.

How do you detect an S0 downgrade or a weak inclusion?

Z-Wave runs on the ITU-T G.9959 radio layer, so the mesh's radio frames, including the pairing exchange, are not in an Ethernet or Wi-Fi capture; at most you see a gateway's own IP traffic. Detection therefore happens in two places: the controller's own inclusion records, and a dedicated sub-GHz radio sniffer when you need to see the frames themselves.

  1. Record the granted security class for every nodeafter inclusion. The controller knows it; many installs never write it down.
  2. Treat an S0 result on an S2-capable network as an incidentZ-Wave JS reports a lowSecurity flag on every inclusion and a reason code; its S0Downgrade reason "indicates a possible downgrade attack and MUST be exposed to the user."
  3. Compare against the device's own documentation or QR codeA lock whose datasheet lists S2 Access Control but that joined as S0 Legacy was either downgraded or included with the wrong strategy. Exclude it and include it again in a controlled location.
  4. Look for the DoS signatures in VU#142629: floods of nonce requests, malformed routing frames, or batteries that drain much faster than their rated life. Capturing those frames needs a Z-Wave radio sniffer near the mesh.
  5. Flag any node on a 100, 200 or 300 series chipset, because CVE-2020-9057 means its traffic is not encrypted at all.

How should a device maker harden a Z-Wave product?

The certification mandate makes S2 support the floor. The product decisions below determine whether S2 is actually what customers end up running:

  1. Request only the class the device needsA lock asks for S2 Access Control; a sensor asks for S2 Authenticated. Avoid relying on S2 Unauthenticated when the device can carry a DSK label.
  2. Print the DSK PIN and QR code on the device and the packaging, so installers can do authenticated inclusion and SmartStart without guesswork. Z-Wave JS asks controllers to label the field "PIN", because that is what is printed on devices.
  3. Support SmartStart, and use Z-Wave Long Range where the product fits it, since Long Range excludes S0 and S2 Unauthenticated.
  4. If you build a controller or gateway, use distinct keys per class (Z-Wave JS calls shared keys "a security risk"), show the granted classes after every inclusion, and surface S0 fallbacks as a warning, not a log line.
  5. Design new products on current chipset seriesand plan end-of-life for products on series that CERT/CC says need hardware replacement.
  6. Track the gateway's own softwareA Z-Wave gateway or hub runs its own firmware, often with an IP stack and third-party components, so keep a firmware SBOM for it and match it against new CVEs.

What does a Z-Wave security audit look like? (worked example)

Synthetic example. The site, devices and findings are invented for illustration.

A facilities integrator reviews a 12-node Z-Wave mesh on one office floor before handing it to the building owner. They export the controller's node list and compare each node's granted class with the device datasheets. Five rows need a decision:

Node Device Chipset series (datasheet) Granted class Finding Action
2 Door lock, main entrance 700 S2 Access Control As designed None
5 Door lock, server room 500 S0 Legacy Datasheet lists S2; possible downgrade or wrong inclusion strategy Exclude, include again with DSK PIN in a closed room
7 Motion sensor 500 S2 Unauthenticated No device verification Include again as S2 Authenticated
9 Relay switch, lobby 300 None CVE-2020-9057, no encryption possible Replace with an S2 device
11 Thermostat 700 S2 Authenticated As designed None

The other seven nodes matched their datasheets. The handover report lists node 5 as the only possible security event, because a downgrade needs an attacker in radio range during pairing. The installer's notes show node 5 was paired in a public corridor.

What are the common pitfalls?

  • Reading "S2 certified" as "running S2". Only the class the controller actually granted counts.
  • Approving every requested class by default, or reusing one key across classes in a self-built controller.
  • Pairing in public spaces or leaving inclusion mode open, which is exactly the window Z-Shave needs.
  • Expecting a firmware update to remove a specification-level downgrade. NVD records CVE-2018-25029 as behaviour the specification requires.
  • Assuming an IP network capture shows Z-Wave. It shows the gateway's IP traffic, not the mesh.
  • Leaving 100/200/300 series nodes in place because they still work.

Where does this fit for an OT or building-automation deployment?

Z-Wave sits in the same smart-building category as BACnet and KNX in that it is frequently deployed by integrators and facilities teams rather than an organization's core OT/ICS security function, which means an asset owner's first real question is usually simply "what is actually running S2, and what is still on S0 or unpatched firmware from before the 2017 mandate." Since the downgrade and DoS research above target protocol-level behavior rather than a single vendor's implementation bug, neither is something a firmware patch alone reliably fixes — physical pairing-time proximity controls and network segmentation matter as much as keeping device firmware current.

SoftWSP works on the IP side of that picture. An OT Snapshot reads a recorded network capture through Zeek and lists which hosts talk to a Z-Wave gateway, on which ports, and whether remote-access sessions (SSH, Telnet, RDP, VNC) reach it from outside the private address range. It does not decode Z-Wave radio frames, so it cannot tell S0 from S2; that answer comes from the controller's node list, as in the steps above. For the gateway's firmware, SoftWSP's device firmware security service extracts a CycloneDX SBOM from the image and matches its components against NVD, CISA KEV, FIRST EPSS and CISA's ICS advisories. An engineer reviews every AI-drafted, cited report before it is sent.

This guide is based on the ITU-T G.9959 recommendation text, the Z-Wave Alliance's own technology overview page, Pen Test Partners' original 2018 Z-Shave disclosure, contemporaneous reporting on that disclosure, the January 2020 "Crushing the Wave" academic paper, CERT/CC VU#142629, NVD and the Z-Wave JS S2 documentation, all fetched or read directly for this guide. It does not constitute a penetration-test report against any specific Z-Wave deployment.

Put this guide to work

Frequently asked questions

What is Z-Wave, and where is it standardized?

Z-Wave is a wireless mesh-networking protocol for control, monitoring and status-reading in residential and commercial buildings — door locks, lighting, HVAC, sensors and alarm panels — originally developed by the Danish company Zensys starting in 1999. Its physical and MAC layers were adopted internationally as ITU-T Recommendation G.9959, "Short range narrow-band digital radiocommunication transceivers — PHY, MAC, SAR and LLC layer specifications," approved by the ITU in January 2015. The Z-Wave Alliance — the organization now stewarding the technology — describes it as "an open-source, interoperable, wireless, RF-based communications technology" with "more than 4,500 products on the market today."

What are the S0 and S2 security frameworks, and how do they differ?

S0 was Z-Wave's original security framework; it encrypted traffic with AES, but its key-exchange step had a well-documented weakness — the shared network key was transmitted during pairing encrypted under an all-zeros temporary key, making it recoverable by an attacker sniffing the exchange within RF range (an issue reported by the security firm SensePost in 2013). S2 (Security 2), announced by the Z-Wave Alliance on 17 November 2016, replaced that key exchange with Elliptic Curve Diffie-Hellman (ECDH), added a QR-code or PIN-based out-of-band authentication step for pairing, and tunnels Z-Wave-over-IP traffic through TLS. The Z-Wave Alliance's Board of Directors voted to make S2 **mandatory for all newly certified devices starting 2 April 2017**.

What was the 2018 "Z-Shave" downgrade attack?

Pen Test Partners researcher Andrew Tierney published the Z-Shave attack on 23 May 2018, since tracked as **CVE-2018-25029**. Because Z-Wave devices are built for backward compatibility, a controller and device negotiate security class during an unencrypted, unauthenticated pairing exchange — Tierney showed an active attacker in range during pairing could intercept that Node Info exchange, strip the bit identifying S2 support, and force the pair down to the weaker S0 framework (or, in some cases, no security at all), then recover the network key through S0's known weak key exchange. Tierney's write-up noted the researchers "were fascinated to see reference to a 'S0 downgrade attack' in Z-Wave documentation, suggesting that it may be a known issue but has not been acknowledged or resolved" — with an installed base then estimated at roughly 100 million Z-Wave chips across some 2,400 vendors, though the attack requires physical RF proximity during the pairing window specifically, not a remote, anytime compromise.

Are there other known Z-Wave protocol weaknesses beyond Z-Shave?

Yes. Academic research published in January 2020 ("Crushing the Wave," Boucif, Golchert, Siemer, Felke and Gosewehr) reported two denial-of-service techniques that abuse modified, unencrypted packets sent during the inclusion (pairing) phase and normal operation — including manipulating the Nonce Get / S2 Nonce Get command and the Find Nodes In Range command — to block a Z-Wave gateway's packet processing and disable an entire connected mesh, without needing to break S2's cryptography at all.

What changed with the Z-Wave Alliance's 2020 ratification of the specification?

Through 2019, Z-Wave was a single-vendor specification controlled by Sigma Designs and later Silicon Labs. In December 2019 Silicon Labs announced plans to open the specification, and by August 2020 the Z-Wave Alliance had incorporated as an independent nonprofit standards development organization, with the specification becoming a ratified, multi-vendor standard maintained by a working group rather than one chip vendor — while retaining backward compatibility, the mandatory S2 security framework, and the underlying ITU-T G.9959 radio layer.

Sources

  1. ITU-T Recommendation G.9959 (01/2015): Short range narrow-band digital radiocommunication transceivers — PHY, MAC, SAR and LLC layer specifications
  2. Z-Wave Alliance: home page, "Learn about Z-Wave Technology" section (product count, protocol description)
  3. Pen Test Partners: "Z-Shave. Exploiting Z-Wave downgrade attacks" (Andrew Tierney, 23 May 2018)
  4. The Hacker News: "Z-Wave Downgrade Attack Left Over 100 Million IoT Devices Open to Hackers" (2018)
  5. Boucif, Golchert, Siemer, Felke, Gosewehr: "Crushing the Wave — new Z-Wave vulnerabilities exposed" (arXiv, 23 January 2020)
  6. CERT/CC Vulnerability Note VU#142629: Silicon Labs Z-Wave chipsets contain multiple vulnerabilities (7 January 2022)
  7. NVD: CVE-2018-25029 (Z-Wave S2 to S0 downgrade)
  8. NVD: CVE-2013-20003 (Z-Wave S0 network key exchanged under an all-zero temporary key)
  9. Z-Wave JS documentation: Supporting Security S2 in Applications (security classes, S0 downgrade, SmartStart, Long Range)
Was this guide helpful?

In this cluster