Skip to main content
Challenges CTR: reused nonce
Cryptography Medium Stream ciphers: keystream reuse Solves: 8

CTR: reused nonce

Author: CyberSamSU
Points
55

SamChat — the laboratory's internal secure messenger. All messages are encrypted with AES-128-CTR: counter block = 8-byte nonce ‖ 8-byte counter (big-endian, starting from 0); key — one for the entire system.

The developers promised to choose the nonce randomly for each message. But after restarting the server, the nonce generator seems to have returned to its old state… You are given a one-day copy of the network log — samchat-trafik.jsonl (on each line: seq, time, from, kind, nonce, ct).

The server sends the kind=hello record every day. Its plaintext is always in this template (the fields are taken from the from and time values of the same line):

SAMCHAT/2.3 HELLO node=<from> date=<time dagi sana, YYYY-MM-DD> status=OK motd="Bugungi xavfsizlik eslatmasi: parollarni hech kimga bermang va ularni muntazam almashtiring!"

Someone sent a new laboratory key in the log. Find the key — the flag in the format BAYROQ{...}.

Attached files
samchat-trafik.jsonl Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −5 pts Log in
Hint 2 −11 pts Log in
Hint 3 −16 pts Log in
To submit a flag, log in.

First solvers

1. testrejim 09.10.2026
2. Mirjaxon Qaxxarov 27.10.2026
3. Odam 05.11.2026
4. arcanum 11.11.2026
5. Doston Allayarov 12.11.2026
6. murad_coder 13.11.2026
7. rushana24 18.11.2026
8. Xadicha_7 18.11.2026