Learning material. Worked examples link to their investigation records; suggested prompts are not actual model transcripts.
Begin with a question you can finish
“What makes this program accept an input?” gives an investigation a clear destination. You can identify the relevant code, recover its rules and ask the original program to check your answer.
Our REA flag-checker case follows that route with a real DownUnderCTF executable. It is a guided reproduction of an official showcase, with our own analysis and runtime records. Use it as a worked example before choosing a target of your own.
Find one useful clue
The checker prints “What is the flag?” A string search finds that prompt. A reference leads into the function that prints it. Only then do we inspect the checker and its helpers.
Each step answers a question that determines the next step:
- Where is the visible prompt stored?
- Which instruction references it?
- Which function contains that instruction?
- What decides whether the program prints success or failure?
The REA tool profile explains the bridge between an agent and analysis tools. For native targets you also need a compatible analysis provider. Check its current host and target support: our ELF case required the Linux Ghidra workflow, rather than the Windows interface.
Ask for a reason to believe the answer
A useful request can describe both your goal and the supporting evidence you want:
Use REA to find the code that accepts or rejects an input.
Show the string reference that leads there.
Explain the checks, with their instructions and data.
Separate extracted rules from assumptions used to solve them.
Then test a candidate and a counterexample with the original program.
This is a suggested prompt, not a retained autonomous-agent transcript. As an investigation progresses, follow the actual results instead of forcing them to fit a predetermined story.
Turn one finding into understanding
In the worked case, a four-byte mask selects only the 22nd character. Its required total is 55, revealing ASCII 7. That small finding makes the larger checking mechanism easier to understand.
The full task still requires all 26 equations. A striking clue is useful when you show how it connects to the complete result.
Finish with the original
A candidate satisfying your reconstructed equations is an intermediate result. Run it against the unchanged original. Then change a character that your interpretation says matters, and try again.
In our recorded runs, the candidate was accepted and the changed input was rejected. Save the exact inputs, output and exit codes. Keep the target hash and tool versions with the record so another reader can repeat the same task.
Continue with making the original program check the answer, or read the complete investigation.
Sources & further reading
- REA investigation workflow ↗
Inspecting a feature and following evidence · Checked Oct 22, 2026
- Sidekick documentation ↗
Analysis environment and model service distinction · Checked Oct 22, 2026
- REA official checker investigation ↗
Worked investigation and the distinction between extracted rules and original-program verification · Checked Oct 23, 2026
Tools in this guide
- REA — Agent-powered workflow
- Sidekick — Binary Ninja extension
- GhidrAssist — Ghidra extension