Telegram: edited traces
During an internal investigation, an export of chats taken through the Telegram Desktop app — result.json — was provided. The export contains two groups: OrientSec DevOps (the main working group) and Arxiv va Monitoring (an auxiliary group to which copies of messages are forwarded).
The suspect employee sent several telemetry packets with the [PKT-XXXX] identifier to the OrientSec DevOps group. All of them were forwarded to the Arxiv va Monitoring group by the duty officer immediately after being sent. Later the suspect edited (edited) 4 of his messages containing real secret code fragments in the main group, replacing the hex blocks inside them with fake values (the other unedited messages are ordinary test noise).
Analyse the result.json file: determine the [PKT-XXXX] identifiers of the 4 messages edited by the suspect in the main group and their original send time (date_unixtime), then find their pre-edit hex fragments in the forwarded copies in the Arxiv va Monitoring group. Join the fragments in increasing order of their original send time and recover BAYROQ{TELEGRAM_EKSPORT_...} by hex decoding. (Note: the last 16 characters of the flag are lowercase hexadecimal digits).