Recover hidden logic from a compiled app with no source code

Rob builds a Mac app with a hidden unlock code, strips its names, and has his coding agent use the REA MCP server to recover the rules from the binary, then checks them against the source.

Rob Shocks · YouTube · published Oct 9, 2026 · Security, Science & Hardware

Recover hidden logic from a compiled app with no source code — video by Rob Shocks▶ Watch on YouTube
Prompt
Using the REA MCP server, analyze [compiled app path] and explain how [feature, e.g. the unlock code check] works. Only analyze software I own or am authorized to inspect.

Sponsored

Advertise here →

Visual breakdown

REA ("reverse engineer anything") is an open-source MCP server and CLI that lets a coding agent like Claude Code, Cursor or Codex look inside a compiled app with no source code, work out how a feature works and show its evidence. Rob tests it on his own stripped Mac app and the agent recovers the hidden unlock-code rule.

The problem: Figuring out how a feature in a closed-source app works used to be slow, specialized and expensive, so almost nobody bothered.

How the agent cracked Rob's test app

  1. Compiled appHis own "vault" app, optimized with every function name stripped, source code put away
  2. REA + Ghidra setupnpx setup adds the MCP server and an investigation skill to the agent
  3. Open the binaryAgent finds 242+ functions, each just named "fun" plus an address
  4. Decompile and traceTurns machine code into C-like pseudo code; finds the one that matters in a handful of calls
  5. Rebuild the logicWrites a brand-new code generator rather than copying any code
  6. Working unlock codeCode AGNT-1001 opens the vault, with evidence and confidence for each finding
TargetSetupCoding agent via REAResult

What an investigation gives back

  1. Pseudo code, assembly, module maps, call paths and network activity, not the original source
  2. Where each finding came from
  3. How confident the model is
  4. What it couldn't figure out

By the numbers

7–8KGitHub stars in a single day
242+stripped functions in his test app

Try it on software you own

REA wraps tools reverse engineers already use (Ghidra, Hopper, a paid industry standard) with plain-text tools your agent can call.

  1. Run npx rea-agent-setup; it shows a plan, backs up your config, and adds the MCP server plus a skill
  2. Set up Ghidra (free) alongside your agent
  3. Pick a target you own or are authorized to test, ideally inside a sandbox
  4. Ask the agent to investigate how a specific feature works
  5. Review the evidence and confidence for each finding, then build your own version of the idea

Works with anything that speaks MCP, on native Mac, Windows and Linux binaries, .NET, Android APKs, firmware, websites and smart contract bytecode.

Cautions and takeaways

  • It is not a sandbox: runtime capture runs the target with your permissions, so don't feed it random binaries and keep approval prompts on (prompt injection risk).
  • Legal: not legal advice, but your own apps, open-source binaries, security challenges and authorized targets are the safe ground; many terms of service ban reverse engineering, and breaking DRM is separate.
  • Don't clone a competitor: it's legally risky. Understand the idea and build something better.
  • If you ship a desktop app, extension, game, mobile app or big JS bundle, assume anyone's agent can map how it works. Your moat is data, users, speed, taste and what runs on your servers.
  • The repo is moving fast with breaking changes, so keep it updated.

Distilled from the video’s captions

How to try it

  1. Open REA.
  2. Copy the prompt and fill in the [placeholders].
  3. Watch Rob Shocks's video for the full walkthrough and setup.

Related use cases

Share