DL·SYS
Contact ↗

CSCTF 2026 · Misc · 540 pts

The Cipher Lock.

1500 power traces, 47 key bytes, one correlation model — and every byte comes out cleanly separated from its nearest wrong guess.

Side-channelCPAAES
EventCSCTF 2026, Operation Dawn (online jeopardy)
CategoryMisc
Points540
StatusSolved during the event
Targettrace set, offline

TL;DR. Each of the 47 key bytes is recovered independently with a standard correlation power attack, modelling leakage as the Hamming weight of `sbox[plaintext_byte XOR key_byte_guess]` against the recorded power sample at that byte's own position.

Challenge

Recover the AES key used to encrypt 47-byte plaintexts, given 1500 captured power traces of 87 samples each.

Solution

This is a textbook CPA setup: for each of the 47 key-byte positions, and each of the 256 possible key-byte values, compute the Hamming weight of sbox[plaintext_byte XOR guess] across all 1500 traces, and correlate that series against the recorded power sample at that position. The guess with the highest correlation is the real key byte.

Run across all 47 positions, every byte comes out with a clear, unambiguous winner — correlations around 0.3–0.38 against roughly 0.08 or lower for the next-best guess at the same position, which is exactly the separation a textbook, unprotected AES implementation should give.

Flag

FlagCSCTF{12_the_depot_is_unguarded_at_noon_7d3e90}

What I took from it