DownUnderCTF masked squares flag checker · Works · Source available

Solved a DownUnderCTF flag checker by extracting its rules with REA and Z3

View JSON
DownUnderCTF masked squares flag checker: A CTF checker turned into 26 equations and solved.
Image: rea.tools

Who did what

1,015 of 8,057 commits credit an AI: 676 Claude Opus 5.5, 266 Cursor, 50 factory-droid[bot], 12 Codex. They were made on 40 separate days between 10 Aug 2026 and 14 Nov 2026.

Counted from the public git history on 16 Nov 2026. How

What was done

The REA project shows an agent using REA and Ghidra to pull 26 mask-and-target rules out of a DownUnderCTF binary and solve them, then confirming the answer on the original program.

The REA project published a case study that solves an easy reverse engineering challenge from DownUnderCTF, a flag checker built on masked squares. A coding agent with REA connected to Ghidra finds the check, extracts its rules and solves them, then runs the original program to confirm.

How it was done

The page says the run used REA with Ghidra 12.1.4 on Linux x64. The agent opened the binary, searched strings, followed cross references to the checking code and analysed the functions. It then pulled 26 mask-and-target rules out of the binary and solved them as equations with Z3. The page does not name the model or the agent.

Results

The recovered answer made the original program print "Correct!". Changing one character made it print "Incorrect!" and exit with code 255. The page says the answer matches the organisers' published metadata, and the run was done on 8 October 2026. The challenge comes from DownUnderCTF's public 2023 repository, and REA's evidence notes are linked from the page.

Questions about DownUnderCTF masked squares flag checker

Discussion

Your library

Sources

Sources reviewed · Added

An AI model drafted this entry from the sources above. Checked against the sources on 15 Oct 2026. The figures are the author's. How entries are checked. Something wrong? Tell me.

The weekly dump: new projects, once a week