Encrypted Zigbee traffic still reveals smart-home devices and events with up to 98% accuracy

Researchers show that packet timing, lengths and traffic patterns can identify devices and infer actions such as doors being locked or sensors being triggered, without decrypting messages.

Passive analysis of Zigbee traffic can reveal far more than the contents of encrypted messages. As the source article explains, the protocol protects payloads but leaves enough structure in the air to expose packet lengths, timing, reporting rhythms and event patterns. That means an attacker with a simple radio sniffer may be able to infer which devices are present in a home, when they are active and, in some cases, which action has just taken place, even without recovering the encryption keys.

The underlying weakness is not a broken cipher so much as a leakage of metadata. Zigbee devices are designed to conserve battery life, so they tend to behave in repeatable ways: battery-powered end devices report periodically, routers follow different traffic patterns, and coordinators occupy a fixed role at the centre of the mesh. The article describes how those patterns can be turned into fingerprints by examining source and destination addresses, frame lengths, command direction and the intervals between reports. In practice, that allows a passive observer to map the network, distinguish device classes and link behaviour to specific vendors or models.

Research cited in the article aligns with the broader findings of the ZLeaks work published on arXiv and by Northeastern University’s lab. That study showed that encrypted Zigbee traffic can still be used to infer application-layer commands and periodic reporting signatures, with tests across 19 unique devices and five smart hubs producing high identification accuracy. Digi International’s documentation on Zigbee encryption makes the same structural point from a different angle: data payloads are protected, but some network information, including PAN identifiers and MAC-layer addresses, remains visible to sniffers. Together, these sources show why encryption alone does not fully hide device behaviour.

The Habr article then describes a practical method for classifying events. By filtering application-layer frames, looking for commands with overlapping payload sizes and comparing response direction and timing, the analyser can distinguish actions such as locking and unlocking a door, or identify whether a sensor event came from a motion detector or an open-close contact. For periodic reports, the method depends on sequences of repeated frames with stable intervals rather than on event-driven commands. Where a device signature is not already known, the article says the analyst can wait for an event and then use the command pattern to identify the device before building a reporting fingerprint.

To test the approach, the author says a laboratory setup was built using devices from Xiaomi, Sonoff and Home Assistant, with traffic captured channel by channel using whsniff and stored as pcap files for later analysis. The resulting parser reportedly identified both devices and logical events without demanding specialised hardware or deep expertise from the end user. According to the article, the classification accuracy reached 94% to 98%, depending on the test set, suggesting that passive Zigbee reconnaissance is not just a theoretical concern but a practical one for smart-home deployments.

Disclaimer: This content is intended for informational purposes only. Readers are advised to exercise their own judgement, conduct due diligence, or consult a qualified expert before acting on any information provided.