Skip to content
Adam Omar Saleh

hiCTF 2026 placeholder badge (unofficial)hiCTF 2026Cryptography / IoT Forensics

Tasmota Vault

Binary recovery / MQTT key epoch / HMAC-SHA256 / AES-256-GCM

Competition
hiCTF 2026 placeholder badge (unofficial)hiCTF 2026
Category
Cryptography / IoT ForensicsMedium · estimated
Analysis status
Flag recovered (prior chat)
Document
Original PDF

01Challenge analysis

The problem

A Tasmota-related IoT vault challenge split key material across keyring and sealed binary artifacts. The key depended on the correct MQTT rotation epoch rather than a static password.

02Exploit or recovery path

How I solved it

  1. 01

    I extracted and examined the challenge artifacts keyring.bin, sealed.bin and vault.bec and identified their distinct roles in the key-management chain.

  2. 02

    I recovered the rotation metadata and identified MQTT epoch 8 as the correct context for the stored ciphertext.

  3. 03

    I reconstructed the HMAC-SHA256-based key derivation using the epoch-dependent information, making sure the byte order and concatenation matched the artifact format.

  4. 04

    I used the recovered key to decrypt the protected payload with AES-256-GCM, preserving the authentication tag validation.

  5. 05

    The authenticated plaintext revealed the final hiCTF flag.

Result

RECOVERED FLAG

hiCTF{b3rry_r0t4t10n_c94934d76344ab1151e03afd}

Flag recovered (prior chat)

Local Verification
Earlier challenge session recorded authenticated AES-GCM recovery. No site submission receipt retained.
Evidence Limitation
Exact binary layout offsets and the original derivation script are not retained here and are not fabricated.

Original document

Original PDF

The writeup as I first documented it.