Breaking AES-ECB with an Encryption Oracle Attack

Breaking AES-ECB with an Encryption Oracle Attack

This is a write-up of one of the challenges from this year’s TG:Hack. I wrote about my participation in another post: 3rd Prize at TG:Hack. Background TG:Hack is a Capture-the-Flag competition where the objective is to identify and leverage security flaws in various entities. As evidence of a successful hack, you must extract small secrets, i.e., flags, and provide them back to the organizer. The flags are strings that look like this: TG25{some_secret_value}. ...

April 29, 2025 · 11 min · Kristoffer Opsahl
3rd Prize at TG:HACK

3rd Prize at TG:HACK

I recently participated in TG:Hack, which is Norway’s largest Capture The Flag (CTF) competition. It is hosted at and is a part of Norway’s largest LAN party: The Gathering. The competition runs over four days, and the goal is to leverage your knowledge of computers, networking, programming, operating systems, compilers, authentication, cryptography, steganography, safe-cracking(!), and more to coerce secrets from combinations of data, programs, and hardware. After a nail-biting last leg with strong finishes by several teams, featuring both jury interventions and pwned competition infrastructure, I was positively excited to be awarded the 3rd prize of NOK 2000. ...

April 22, 2025 · 1 min · Kristoffer Opsahl