REA in practice

01 / The goal · Binary investigation

Reverse engineer
with AI.
Follow the evidence.

What makes a binary accept one flag and reject another? Follow REA from the first clue to the checking code, then test the answer against the original program.

03 / The result

26 equations recovered.
One candidate verified.

Z3 solved the recovered constraints. REA’s capture_process_scenario recorded the original binary accepting the candidate and rejecting a one-character change.

DownUnderCTF 2023 · Guided reproduction
Fresh REA queries, solver output and original-program verification.

REA investigation / 01ELF · x86-64

A clue hidden in four bytes

The 22nd character
has to be 7.

REA reads EB 01 F2 00 from the binary. Decoded, that mask selects just one character.

DUCTF{ezzzpzzz_07bcda7bfe81faf43caa}
Check 07 / 26

Skip 21
Select 1
Skip 14

Required sum 55
Recovered ruleASCII “7” = 55 = 55
Original binary · recordedCorrect! exit 0

Try the recovered rule above. Both full-program verdicts were captured with REA; this browser demo replays those two inputs.

02 / REA workflowMCP tool calls

Ask your agent

Use REA to inspect ms_flag_checker. Find the flag-checking logic and extract its constraints. Solve them with Z3, then test the candidate and a one-character change against the original binary.

Suggested instruction. You give the goal; the operations below show the recorded investigation.

Actual REA operations From this investigation
  1. 01

    Find the entry point.

    Search the binary for the input prompt and verdict messages.

    search_strings {"pattern":"flag|correct|wrong|input",
      "mode":"regex","case_sensitive":false}
  2. 02

    Reach the checker.

    Follow the prompt’s reference to the function that checks the input.

    xrefs {"address":"0x102004"}
    resolve_containing_procedure {"address":"0x10126d"}
    analyze_function {"procedure":"0x10124d"}
  3. 03

    Extract the constraints.

    Read the encoded masks and target sums to reconstruct 26 equations.

    read_bytes {"address":"0x1040e0","length":624}
    read_bytes {"address":"0x104060","length":104}

Choose your next investigation.

Find the tools that fit your target and environment.

Explore the directory

Choose with context.

Workflow comparison

REA vs RevEng.AI

An agent-connected workflow or a binary analysis platform? Start with the task you need to solve.

Compare approaches

Learn the method.

01

Your first AI-assisted investigation

Getting started · 6 min read

02

Make the original program check the answer

Verification · 5 min read

View all guides →
Follow the evidence

A convincing answer survives a check.

How we review tools ↗