Power trace: PIN checker
A test laboratory is examining a smart-lock controller. The device compares an 8-digit PIN digit by digit and exits on the first error, so the correctness of each digit leaves a trace in the device's power consumption. The attacker collected power traces with a measurement board and obtained the flag from the device's encrypted memory.
In the archive: README.txt (file formats and trace structure), traces.bin (400 int8 traces: for each position 10 candidate digits, 5 times each, with the prefix set correctly) and secret.enc. A single trace cannot be trusted: there is noise and spikes, and some of the signal is misleading (data-dependent).
Recover the PIN, open secret.enc using the scheme in the README and find the flag. Flag format: BAYROQ{QUVVAT_PIN_...}. (Note: the last 16 characters of the flag are lowercase hexadecimal digits.)