AES in Galois/Counter Mode — an authenticated cipher whose tag detects tampering; the nonce must never repeat.
How it works
- Ciphertext layout is usually
nonce || ciphertext || tag(e.g. 12-byte nonce, 16-byte tag). - The key often lives in a memory/core dump or a config next to the ciphertext.
- If decryption yields a bare UUID or receipt, that value may be the answer the platform expects, not the flag itself.
Detection & defence
- Never reuse a nonce with the same key; use a CSPRNG or the random-nonce construction.
- Treat nonce+key handling as key management, not application logic.

