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
To submit a flag, log in.