Reverse Engineer Anything Skill: Agent Setup & Workflow - 에이전트

Reverse Engineer Anything Skill: Agent Setup & Workflow

Learn how the Reverse Engineer Anything skill connects AI coding agents to CLI and MCP tools for local, evidence-based reverse engineering.

2026-10-18
reverse engineer anything Wiki Team
Quick Guide
  • Reverse Engineer Anything skill lets AI coding agents run structured reverse engineering investigations locally
  • Two interfaces: CLI commands for terminal users, MCP Server for agent tool calls
  • Evidence-first: every conclusion is backed by recorded tool output, hashes, and traces
  • Agent support: Claude Code, Cursor, Codex, Gemini CLI, Windsurf, and Devin
  • Quick start: run npx rea-agents@latest setup to install and configure the skill

What Is the Reverse Engineer Anything Skill?

The Reverse Engineer Anything skill (REA) is an open-source toolkit that gives AI coding agents a disciplined way to inspect applications, websites, JavaScript bundles, Electron packages, and native binaries. Instead of letting an agent guess at how software works, the skill wraps analysis operations behind a CLI + MCP Server pair so every step produces verifiable evidence on your local machine.

The project's core philosophy separates it from naive "decompile and copy" approaches. REA emphasizes local analysis, an auditable evidence chain, and reproducible investigation workflows rather than automatic source recovery or software cloning. The agent proposes and coordinates; you validate and decide.

Skill ComponentInterfacePrimary Use
CLITerminalDirect commands like analyze, inspect, search, xrefs, trace
MCP ServerAgent tool callsRegistered tools the agent discovers and invokes
Evidence recordsBothSaved tool output, hashes, and traces for review
Agent integrationsConfig filesClaude Code, Cursor, Codex, Gemini CLI, Windsurf, Devin
Setup toolingnpx rea-agents@latest setupInstall, initialize, and diagnose the environment
Why Skill-Based Analysis Matters

A raw LLM asked to "explain this binary" will hallucinate. The REA skill forces the agent to call real tools, cite addresses and function names, and separate observed behavior from inference — which is what makes its conclusions trustworthy.

Installing the Skill: Step-by-Step

Installation follows a linear path: prepare the environment, run the setup command, verify with diagnostics, then connect your agent of choice. The whole flow typically takes under ten minutes on a machine that already has Node.js installed.

1

Verify Prerequisites

Confirm Node.js is installed and up to date (node --version), check that your terminal can run npx, and create a dedicated, isolated working directory for analysis targets. Keep unknown binaries out of personal folders.

2

Run the Setup Command

Execute npx rea-agents@latest setup. The interactive installer walks through the installation plan, detects your configured coding agents, and writes the appropriate MCP or skill configuration entries.

3

Diagnose the Environment

Run rea doctor to check for missing dependencies, incorrect paths, and Node.js version issues. Fix anything flagged before starting a real investigation.

4

Confirm Agent Discovery

Restart your agent (Claude Code, Cursor, or another supported client) and verify that the REA tools appear in its available tool list. Test with a read-only command before pointing it at a target.

Isolate Unknown Targets

Always analyze untrusted binaries inside a disposable VM or container. Record the target's SHA-256 hash before and after analysis to prove the original file was never modified.

Core CLI and MCP Capabilities

Once installed, the skill exposes two parallel entry points. Terminal users work through the CLI; agents work through MCP tool calls. Both operate on the same evidence model, so results are interchangeable.

Command / ToolCategoryWhat It Does
analyzeCLIRuns a structured analysis pass on a target
inspectCLI / MCPNon-invasive profile: format, architecture, imports, sections
searchCLI / MCPFinds strings, symbols, and references in the target
functionCLI / MCPSummarizes a specific function, including decompiled views
xrefsCLI / MCPTraces cross-references and caller/callee relationships
traceCLI / MCPCaptures runtime execution traces for validation
Evidence exportBothSaves tool inputs and outputs into a reproducible report

Static Analysis

  • Symbols, strings, imports
  • Section and entry-point maps
  • Candidate function discovery
  • No target execution required

Dynamic Analysis

  • Breakpoints and watchpoints
  • Register and memory inspection
  • Runtime traces tied to addresses
  • Validates static hypotheses

Evidence Chain

  • Hashed target baseline
  • Tool-call logging
  • Confirmed facts vs. open questions
  • Reproducible report output
Best Practice: Narrow Requests

Ask the agent for focused operations — "find references to this error string" or "summarize the function at this address" — rather than "explain the whole program." Focused requests keep context small and make each conclusion easy to verify.

The Investigation Workflow

A reliable REA investigation moves from low-risk observation to controlled validation. The agent coordinates tools and summarizes output; you stay responsible for target selection and final judgment.

PhaseGoalKey Outputs
1. Identify targetUnderstand format and architectureFile type, hash, imports, sections
2. Static analysisMap code and data without executionFunction inventory, strings, cross-references
3. Trace relationshipsReduce the binary to relevant functionsCall graph, working names, hypotheses
4. Dynamic analysisCompare runtime with static predictionsBreakpoint evidence, traces, arguments and returns
5. Validate hypothesesTest behavioral conclusionsDocumented original-vs-observed comparison
6. ReportProduce reproducible conclusionsEvidence-linked report with saved artifacts

Before You Close an Investigation:

  • Record the target SHA-256 hash before and after analysis
  • Reproduce every important conclusion with the underlying tool
  • Separate confirmed behavior from open questions
  • Save tool logs and configuration alongside the report
  • Keep secrets and unrelated files outside the analysis root
Treat the Agent as an Assistant

The agent is an analysis accelerator, not an authority. Recheck important conclusions in the disassembler or debugger yourself before acting on them, and record the addresses and inputs that support each finding.

Troubleshooting Common Skill Issues

Most problems fall into a handful of categories, and each has a narrow, testable fix. Start with the smallest diagnostic output before changing configuration.

SymptomLikely CauseFirst Fix
MCP server exits immediatelyWrong path, missing dependency, or stdout pollutionRun the server command manually under the same user
Agent finds no toolsRegistration timing or schema mismatchRestart the client; validate the tool input schema
Decompilation unreadableStripped or obfuscated binary, wrong architectureConfirm format with file; validate dynamically
Permission deniedTarget outside approved workspaceMove inputs under the configured analysis root
Analysis times outWhole-file job for a narrow questionAdd range/function parameters; split the job
Context too largeEntire disassembly pasted into promptPass artifact paths and retrieve excerpts
Check Transport Details

If a server works standalone but fails under the agent, verify the transport matches, diagnostics go to stderr rather than stdout, and the configured working directory is readable by the agent's user.

FAQ

Q: Does the Reverse Engineer Anything skill recover original source code?

No. REA is designed for evidence-based analysis and reproducible investigation workflows, not automatic source recovery or software copying. It helps agents explain behavior, trace relationships, and support reconstruction projects built on verified findings.

Q: Which coding agents can use the Reverse Engineer Anything skill?

Official documentation lists support for Claude Code, Cursor, Codex, Gemini CLI, Windsurf, and Devin through CLI and MCP workflows. Configuration details vary by agent, but the setup command detects installed clients and writes the appropriate entries.

Q: Can I use the skill through the terminal without an AI agent?

Yes. The CLI exposes commands like analyze, inspect, search, function, xrefs, and trace directly in the terminal, so the workflow works without any agent while still producing the same evidence records.

Q: Is analysis performed locally?

Yes. REA emphasizes local analysis with an evidence chain on your machine. Targets stay on your workstation, and reports capture tool inputs and outputs so another researcher can reproduce the investigation.

Related Articles