Skip to main content
Challenges Zigbee: network key generation
IoT Hard Zigbee network key Solves: 19

Zigbee: network key generation

Author: CyberSamSU
Points
85

When a new device is added in a Zigbee network, it generates a shared network key based on its Install Code (device-specific code) and the network's Master Secret. Below is a simplified (educational) version of this process — each byte is calculated sequentially in a chain:

# har bir i-pozitsiya uchun (0 dan boshlab):
raw   = InstallCode[i] XOR MasterSecret[i]
rot   = (i % 4) + 1
tmp   = ROL8(raw, rot)          # 8-bitli chapga aylantirish
KeyByte[i] = tmp XOR KeyByte[i-1]   # zanjir: oldingi natija bilan XOR
# KeyByte[-1] = IV (boshlang'ich qiymat, berilgan)

The attached zigbee_kdf.txt file provides the InstallCode and MasterSecret bytes (hex) as well as the IV value for all 13 positions. Calculate the full KeyByte chain according to the formula — the result will yield ASCII text.

Calculating each KeyByte[i] requires the KeyByte[i-1] found in the previous step — calculate the positions sequentially, starting from 0. Format the resulting word as BAYROQ{IOT_ZIGBEE_<SOZ>}.

Attached files
zigbee_kdf.txt Log in to download
SHA-256 checksums
zigbee_kdf.txt: e544003fc997f8f22a5b581b583b870646bc17b954e51aead4547b3268f61d21
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −8 pts Log in
Hint 2 −17 pts Log in
Hint 3 −25 pts Log in
To submit a flag, log in.

First solvers

1. Абдул 15.09.2026
2. W.o.X 17.09.2026
3. Лазиз 04.10.2026
4. testrejim 09.10.2026
5. 11111tttt 09.10.2026
6. Mirjaxon Qaxxarov 27.10.2026
7. Odam 04.11.2026
8. arcanum 11.11.2026
9. Alex 27.11.2026
10. Andrei Mileshkin 27.11.2026