Files
reverse-engineering-anything/docs/readme/README_zh.md
T
morluto 5c53bcaed8 feat(mcp)!: retire the full schema profiles and declare schema facts as typed annotations (#10693)
* test(mcp): check advertised schemas against a portable dialect in every profile

* fix(mcp): re-emit advertised patterns in a portable regex grammar

* fix(mcp): present discover_tools input through the selected profile

The hot-cold catalog registered discover_tools directly with the SDK, so
the default compact input profile still advertised its canonical schema,
including page-size defaults clients apply on their own (#5322). Route
every listed input schema, transport discovery included, through one
server-owned presentation, and pass the selected presentation to the
deferred server, which serves recorded tool schemas but not discovery.

* fix(mcp): keep the Evidence union on described borrowed inputs

borrowEvidenceInput installed its advertised projection on one schema
instance. A call site's .describe() rebuilds the schema from its
definition, so match_native_functions advertised left and right as
unconstrained values in every input profile. Install the projection in
the borrowed parser's constructor so derived schemas keep it, for both
borrowed inputs and borrowed arrays.

* fix(mcp): validate advertised dialect by selected profile

* fix(mcp): preserve schema widening through references

* feat(mcp): project compact input schemas into the portable advertised dialect

One projection (advertisedDialectProjection.ts) owns the compact input
advertisement: one type per node, items on every array, string literals
as enums, oneOf widened to anyOf, allOf merged, tuples as element unions,
exclusive bounds made inclusive, and every keyword outside the dialect
dropped. Each rewrite is exact or widening; server validation is
unchanged. The root description and sentences for dropped cross-field
constraints move to the tool description, which Codex and Zed keep.

The compact baseline falls to nullable values only (29), which the
dialect cannot express without narrowing an input. The gateway shape
repairs (typeArrayItemUnions, hasGatewayIncompatibleShape), the second
dependentRequired-to-prose copy and the strict-gateway test denylist are
removed; the dialect checker gates the inline presentation instead.

* feat(mcp): omit output schemas from tools/list by default

No surveyed model API reads an output schema, MCP client validators
repeat REA's own result validation, and complete output schemas were
about 92% of the default tools/list. REA_MCP_OUTPUT_SCHEMA_PROFILE now
resolves to off through one owner (resolveMcpOutputSchemaProfile);
compact and full remain selectable. structuredContent is still
delivered, and the deferred server serves both off and full from the
recorded catalog with the matching recorded identity.

Tests and artifact verifiers that validate results against complete
advertised output contracts select full explicitly.

* docs: describe omitted output schemas as the default in README translations

* fix(mcp): select schemas in verification workflows

* fix(mcp): refuse zero-padded repeat bounds and record host-specific path patterns

* fix(mcp): keep projected schemas permissive

* fix(mcp): keep references valid when presentation widens their targets

* fix(mcp): keep a single union branch's closure scoped to its properties

* fix(mcp): select complete output schemas in the Electron verifier

* fix(mcp): select complete output schemas in standalone verifier probes

* fix(mcp): keep an allOf member's tuple tail with its own positions

* fix(mcp): relax references into negations and conditionals presentation may remove

* refactor(contracts): declare root discriminators as typed schema annotations

* test(mcp): select the borrowed Evidence contract from its family

* fix(mcp): keep astral literals and dynamic references widening in every mode

* fix(mcp): omit astral literals and relax untracked references when presentation widens

* fix(mcp): select complete output schemas in every verifier transport

* fix(mcp): read reference pointers by schema position, not segment spelling

* fix(mcp): protect references into collapsing boolean unions and keep referencing branches out of the collapse

* fix(mcp): keep reduced schemas open when their root admits names by pattern

* test(mcp): keep the reduced-schema pattern case outside the size-limited block

* fix(mcp): omit patterns whose classes name astral characters

* fix(mcp): decide union collapse and pointer protection from canonical branches

* docs(mcp): document non-u astral matching and pin BMP agreement across V8 modes

* fix(mcp): keep prototype-named properties as own properties in the dialect projection

* test(mcp): select full output schemas in packet and signal schema checks

* test(mcp): expect the advertised base64 schema to omit the unbounded pad-bit probe

* fix(mcp): protect references into unevaluated keywords lost evaluation removes

* fix(mcp): validate the doctor probe reply against the canonical output contract (#10655)

* fix(mcp): validate the doctor probe reply against the canonical output contract

* test(mcp): replay doctor probe validation under every output profile

* test(mcp): accept typed-branch nullable unions in the advertised dialect (#10649)

* test(mcp): select full output schemas in HTTP session workflows

* fix(mcp): emit stack-safe classes with non-ASCII members and protect draft-07 reference siblings

* fix(mcp): protect references into literal siblings of relaxed draft-07 references

* feat(mcp): omit output schemas from tools/list by default (#10646)

* feat(mcp): omit output schemas from tools/list by default

No surveyed model API reads an output schema, MCP client validators
repeat REA's own result validation, and complete output schemas were
about 92% of the default tools/list. REA_MCP_OUTPUT_SCHEMA_PROFILE now
resolves to off through one owner (resolveMcpOutputSchemaProfile);
compact and full remain selectable. structuredContent is still
delivered, and the deferred server serves both off and full from the
recorded catalog with the matching recorded identity.

Tests and artifact verifiers that validate results against complete
advertised output contracts select full explicitly.

* fix(mcp): select schemas in verification workflows

* fix(mcp): select complete output schemas in the Electron verifier

* fix(mcp): select complete output schemas in standalone verifier probes

* fix(mcp): select complete output schemas in every verifier transport

* test(mcp): select full output schemas in packet and signal schema checks

* fix(mcp): validate the doctor probe reply against the canonical output contract (#10655)

* fix(mcp): validate the doctor probe reply against the canonical output contract

* test(mcp): replay doctor probe validation under every output profile

* test(mcp): accept typed-branch nullable unions in the advertised dialect (#10649)

* test(mcp): select full output schemas in HTTP session workflows

* fix(mcp): keep the Evidence union on described borrowed inputs (#10597)

* fix(mcp): keep the Evidence union on described borrowed inputs

borrowEvidenceInput installed its advertised projection on one schema
instance. A call site's .describe() rebuilds the schema from its
definition, so match_native_functions advertised left and right as
unconstrained values in every input profile. Install the projection in
the borrowed parser's constructor so derived schemas keep it, for both
borrowed inputs and borrowed arrays.

* test(mcp): select the borrowed Evidence contract from its family

* docs(mcp): admit baseline growth only for restored contract declarations

* fix(mcp): state reduced multi-type properties as typed branches, not type lists

The reduced fallback derived a property's types and emitted them as a type
list, which Gemini, Moonshot and Ark reject. A property whose canonical
schema is anyOf string and number therefore traded a typed union for a
rejected construct when the inline projection fell back. Emit one type, or
anyOf typed branches, so [T, null] becomes the dialect's nullable union.

* feat(mcp)!: retire the full schema profiles and declare complete observations as a typed annotation (#10718)

* refactor(mcp): declare complete observations as a typed annotation applied only on the wire

* test(mcp): compare complete-observation declarations with their owning text

* refactor(schema): couple Zod checks with their JSON Schema constraint keywords (#10725)

* refactor(schema): couple Zod checks with their JSON Schema constraint keywords

* refactor(schema): declare pattern approximations and object output roots as typed annotations (#10754)

* refactor(schema): declare pattern approximations and object output roots as typed annotations

* fix(schema): refuse pattern declarations JSON Schema cannot state

* test(schema): select guided_workflows from its contract family

* feat(mcp)!: retire the full input and output schema profiles (#10841)

* feat(mcp)!: retire the full input and output schema profiles

The compact input presentation is now the only advertised input schema, and
output schemas are either omitted (`off`, the default) or bounded
(`compact`). Catalog identity, the build-recorded digests and the recorded
startup catalog collapse to those presentations: two digest profiles instead
of six, one recorded catalog instead of two, and no input dialect baseline.

Tests and verifiers that validated replies against listed full output
schemas now validate against the canonical output contract, which REA
already enforces server-side; tests that asserted canonical input
restrictions read the canonical input schema instead of a full listing.

BREAKING CHANGE: `REA_MCP_INPUT_SCHEMA_PROFILE=full` and
`REA_MCP_OUTPUT_SCHEMA_PROFILE=full` are refused at startup and by `rea setup`
with a configuration error naming the setting. Remove the setting from the
client registration (or rerun setup with `REA_MCP_INPUT_SCHEMA_PROFILE=compact`
/ `REA_MCP_OUTPUT_SCHEMA_PROFILE=compact`). `REA_MCP_INPUT_SCHEMA_PROFILE`
still accepts `compact`. Server-side validation is unchanged.

* test(mcp): validate replies against canonical output contracts at every listed-schema reader

tools/list omits output schemas by default, so fixtures, verifiers and the
Android analysis runners that read a listed outputSchema now bind the
canonical contract instead. connectLocalToolsMcp and advertisedMcpToolSchemas
hand the SDK a definition carrying the canonical output schema, so the SDK
client and caller-supplied validators check every successful reply.

* test(mcp): resolve Android runners' output contracts from the selected repository

The Android efficiency runners imported the canonical output-schema helper from the harness checkout while --repository selects the revision under test. Import it from the selected repository, as the runners already do for the SDK and Ajv.

* test(mcp): let Android runners compare revisions before the canonical output helper

A selected revision without scripts/lib/canonical-output-schema.mjs could not start the Android runners. Choose the output contracts in one harness helper: the selected revision's canonical contracts when it has them, otherwise its listed schemas under the full output profile it still supports.

* fix(scripts): keep caller launch settings when the real Hopper verifier builds its server environment

The verifier deleted REA_VERIFY_SERVER_COMMAND and REA_VERIFY_SERVER_ARGS_JSON from process.env itself before reading them, so a caller selecting an installed REA command silently ran the checkout's dist/main.js. Copy the environment, as main does, so only the child's environment changes.

* test(mcp): validate whole replies against canonical output contracts wherever a listed definition is held

tools/list omits output schemas by default and the full output profile is gone, so tests that handed the SDK a listed definition no longer checked complete replies. Attach the canonical output schema with withCanonicalOutputSchema at every held REA tool definition. Environment-served tools (not REA contracts), and the deferred-runtime and doctor tests that exercise per-profile listings, keep their listed definitions.

* test(mcp): record the advertised catalog summary without the retired full profiles

Retiring the full input and output profiles leaves only the compact input and compact output listings, so the summary drops the full-profile digests and every pattern only the full listings carried. Regenerated with npm run verify:advertised-schemas -- --update-summary.
2026-11-15 21:51:18 +08:00

30 KiB
Raw Blame History

English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Türkçe · Русский · Tiếng Việt · ไทย · Deutsch · Español · Français · Українська · Polski · Português (Brasil) · العربية · فارسی · Bahasa Indonesia · Italiano · Ελληνικά · മലയാളം · Roman Urdu · Română · Български

REA:逆向一切

通过一个 MCP 服务,逆向分析二进制文件、应用程序和运行时行为。

看到喜欢的功能,弄清它的工作原理,深入到二进制层面。

npm version MCP tool catalog Node.js requirements skills.sh MIT license Discord

morluto%2Frea | Trendshift

网站 · 指南 · 案例

加入 REA 的 Discord 社区

快速开始 · REA 的工作原理 · 可以分析什么 · 案例 · 构建 RL 环境 · 常见问题 · GNU objdump 和 Rizin 工具 · 文档

npx rea-agents setup

Important

REA 官方来源: morluto/rea, rea.tools, rea-agents (npm). 请通过这些官方来源提供的安装和发布链接获取 REA。相似的仓库名称或复制的 README 不能证明下载内容来自官方。


REA 在 Hopper 中启动分析桥,检查原生二进制文件



Discord
加入逆向工程社区

Discord · 问答 · 成果分享


在应用中看到一个想加入自己产品的功能?让智能体用 REA 调查它。即使没有源代码,智能体也可以检查应用、解释功能的工作方式、展示证据,并为你的项目实现类似功能。

REA 将智能体连接到分析工具,用于检查原生二进制文件、JavaScript 和 Electron 应用、.NET 程序集以及网站。你也可以在终端中使用同样的工具。分析在本机运行,结果包含支撑各项结论的证据和相关限制。

设置流程会向智能体注册 REA,并安装匹配的工作流指引。原生分析可以使用已有的 Hopper、Ghidra、IDA 或 Kuna;设置流程也可以在你批准后安装 Hopper。静态 JavaScript 分析不需要原生分析引擎。

访问 REA 网站,查看设置说明、图解指南和真实案例。

快速开始

Linux 上的 Ghidra、JADX、固件工具启动和静态 JavaScript/Electron 分析需要在 REA 的 PATH 中提供兼容 procps 的 ps,用于检查进程所有权。恢复步骤见安装指南的 Linux 进程所有权前提。

设置智能体

安装 Node.js 和 npm 后,运行:

npx rea-agents setup

选择智能体,检查计划中的变更并批准。设置流程会添加 REA 的 MCP 服务和匹配的工作流指引,并备份已有配置。完成后重启智能体。

设置流程支持 Claude Code、Codex、Cursor、Gemini CLI、Grok Build 和其他智能体。提供方配置和手动注册 MCP 的方法见安装与设置。

MCP 默认使用紧凑输入 Schema 来减少上下文开销。紧凑 Schema 省略的说明会接在工具描述之后。完整工具集和规范的服务端验证保持不变;见 MCP 合约指南。

设置会直接注册所选运行时和 REA 入口脚本。使用包运行器时,请保留其缓存条目和运行时,并从目标项目以外的可信目录获取包。 请参阅安装指南。

默认从 tools/list 中省略输出 Schema:没有任何模型 API 读取它们,REA 会自行验证每个结果。在 MCP 注册中设置 REA_MCP_OUTPUT_SCHEMA_PROFILE=compact 可在 4096 字节内公布每个输出 Schema。所有设置下,服务端验证和结构化结果仍保持完整。 请参阅 MCP 合约指南中的“Output schemas”。

询问智能体

弄清 Notes 应用的搜索功能如何工作,展示证据,并为我的项目实现类似功能。

把 Notes 替换为目标应用,并描述你想了解的功能。

使用终端

检查已解包的 JavaScript/Electron 应用目录或 ASAR 文件:

npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --json

结果包含模块、导入、Electron 边界及相关证据。将路径替换为你的目标路径,例如 Windows 上的 "D:/apps/example"。

如果需要经常使用,可以安装 rea 命令:

npm install --global rea-agents
rea --help

原生分析需要先配置分析提供方。原生命令、提供方选择、快照和脚本用法见 CLI 与 Evidence 指南。

更新 REA

REA 更新较快,新版本经常包含错误修复。请保持安装的版本为最新。

通过 npm install --global 或 bun add --global 安装的 CLI 使用:

rea update

rea --update 是 rea update 的别名,接受相同的全局输出选项。更新命令合计最多保留 4 MiB 的 stdout/stderr;命令退出后会拒绝过大的元数据响应,详细安装日志采用有界诊断。进度输出遵守终端背压并等待已提交的写入完成。

Bun 全局更新需要 Bun 1.2.17 或更高版本。如果使用较旧的 Bun 版本,请先手动升级 Bun,再运行 rea update。

要更新智能体注册和 skill,请运行更新命令输出的设置命令。

如果使用 npx,通过以下命令更新智能体设置:

npx rea-agents@latest setup

检查设置变更并重启智能体。单次 CLI 操作可使用 npx rea-agents@latest,后接所需命令。使用 Bun 时,用 bunx rea-agents@latest 代替 npx rea-agents@latest。

REA 的工作原理

智能体通过 MCP 调用 REA,检查目标并追踪相关代码。REA 返回发现及对应证据。智能体据此提出后续问题、解释行为,或编写并测试实现。CLI 命令使用同样的工作流。

REA 调查流程:智能体询问本地目标的行为,REA 使用分析工具检查和追踪目标,智能体再利用返回的代码、引用和未知项进行解释、实现与测试。

打开完整尺寸的图示。

可以分析什么

REA 需要 Node.js 22.x(>=22.23.4)、24.x(>=24.22.1)或 26+ (>=26.12.1),以及 npm。额外工具和主机支持取决于分析目标:

目标 REA 返回的内容 要求与指南
原生二进制文件 伪代码、汇编、字符串、符号、调用和引用 Hopper、Ghidra、IDA 或 Kuna;原生分析
离线 ELF 布局 节、段、原始符号/重定位信息及静态防护机制候选项 Linux x64 上由调用方提供的 pwntools;二进制诊断
Go 二进制文件 内嵌编译器版本、模块、替换项和构建设置 内置静态 ELF/PE/thin Mach-O 检查;无需安装 Go
WASM 工件 验证、节、精确的导入/导出 WAT 形式及解码后的 WAT 调用方提供的 WABT 1.0.42;inspect_wasm_artifact
EVM 字节码 分派选择器、字节偏移、推断的参数和状态可变性 Linux x64 上的本地原始字节/十六进制输入载体;离线 EVM 指南
Rust binaries Embedded cargo-auditable dependency list Rust binaries
Erlang BEAM IFF chunks, atoms, exports, and tables Built-in static BEAM inspection; Erlang BEAM
PE certificates Authenticode WIN_CERTIFICATE entries and PKCS#7 signer/X.509 identity fields Built-in static PE inspection; PE certificates
PE imports Import and delay-load DLL names, ordinals, IAT RVAs and pefile import hash Built-in static PE inspection; PE imports
Windows shortcuts Shell Link target, arguments, working dir, ExtraData and Tracker droid facts Built-in static LNK inspection; Windows shortcuts
ELF notes PT_NOTE/SHT_NOTE owners, types, GNU build-id and ABI-tag fields Built-in static ELF inspection; ELF notes
Binary hardening PIE, NX, RELRO, CFG and related header flags for ELF, PE and Mach-O Built-in static header inspection; binary hardening
Apple IPS crashes .ips metadata, threads, images, registers and crash classes Built-in static JSON inspection; Apple IPS
Linux kernel modules .modinfo keys, __versions CRCs, this_module presence, and signature trailer Built-in static ELF inspection; kernel modules
已记录的 Linux 崩溃 原始 note 记录、每个已记录线程的寄存器/信号及可选的映射候选项 Linux x64 上由调用方提供的 pwntools;可选的 GDB/pwndbg;已记录崩溃
桌面安装目录 运行时候选、支持文件、组件标记和后续操作 有界的目录与文件头检查;桌面应用
JavaScript / Electron 模块、导入、source map、路由、IPC 和原生扩展关系 Node.js 和 npm;应用分析; Linux: procps ps
网站 页面结构、脚本、网络观察结果和按请求获取的截图 Chrome 系浏览器;浏览器分析
已保存的网络捕获 请求、响应、可访问的载荷和来源位置 HAR / Fiddler Everywhere SAZ;原生 mitmproxy 捕获需要 Linux 上的 mitmdump;捕获指南
数据包捕获 端点、DNS、TLS SNI、协议分布和 HTTP 请求 调用方提供的 tshark 和 capinfos (已在 Linux 验证);pcap 指南
.NET 程序集 元数据、CIL 指令、声明的原生依赖和构建对比 静态检查;托管代码指南
PyInstaller CArchive, PYZ, Python bytecode Static inspection; Python packaged applications
Deno compile binaries Virtual files, entry point, recorded options, npm snapshot length Static inspection; Deno compile executables
Android APK 清单声明、类、反编译的方法和引用 Linux/macOS/Windows x64 上的无界面 JADX 和完整 JDK;Android 指南
Android 设备 设备、软件包、进程、日志、转储、屏幕截图以及 APK/文件传输 调用方提供的 adb(模拟器或实体设备);ADB 指南
JEB 项目 引擎支持的项目单元、工件摘要和类型/方法的伪代码 由调用方启动、提供 MCP 的 JEB 客户端,通过 REA_JEB_MCP_URL 选择;JEB 指南
Android 资源 解码后的清单、字符串表、语言区域和版本信息 调用方提供的 Apktool 启动器;资源指南
Flutter 应用 Dart 快照哈希、按 ABI 的库摘要及引擎构建溯源 无(静态 APK 解析);Flutter 指南
固件 区域、提取结果和转交原生分析的内容 Linux 上的 Binwalk / Unblob;固件指南
抓包文件 指定字段、重复值、过滤条件与解码规则 Linux: TShark 4.x + prlimit; 抓包分析指南
录制的逻辑信号 解码注释、样本范围和诊断信息 Linux: sigrok-cli 0.7.2 + prlimit; 信号记录指南
软件包与资源 文件清单、摘要、plist、Apple bundle 结构和提取的资源 制品与 JavaScript 指南、Apple 应用
进程行为 终端输出、交互、退出和文件系统观察结果,以及运行对比 支持原生 PTY 的 Linux/macOS;进程捕获
SQLite 数据库 表、列、索引、视图、触发器和选定普通表的行 本地数据库/WAL 快照;Node.js 24.x >=24.15 或 26+,具有原生 SQLite 限制 API
GPU 代码对象 CUDA/HIP 目标、选定内核参数和资源、保留的 PTX 文本 内置静态检查 ELF/PE/fatbin/CUBIN/PTX; GPU
模型文件 GGUF / safetensors 元数据、张量声明和派生总量 头部检查;可选完整文件哈希; GGUF / safetensors
IL2CPP 元数据 Unity global-metadata.dat 程序集映像、类型和方法名、索引范围 静态解码版本 24、27、29、31 和 39;无需 Unity
Godot PCK 归档目录与提取、原始头部和目录信息、选定内容身份 静态格式 2、3 和 4;无需 Godot
APK 签名 v1/v2/v3/v3.1 签名者、证书指纹、密钥轮换和摘要自洽性 内置静态检查; inspect_apk_signature

静态 JavaScript 和 .NET 检查读取提供的文件,不运行应用。运行时捕获会以你的用户权限运行目标或与之交互;各运行时指南说明了具体影响。

大型二进制文件可通过 REA_GHIDRA_STARTUP_TIMEOUT_MS 或 REA_HOPPER_STARTUP_TIMEOUT_MS 延长提供方启动期限。

不同提供方支持的原生格式和主机系统有所不同。请参阅 Hopper 与 Ghidra 设置、IDA 指南、Kuna和实验性 Windows Ghidra 支持。Ghidra 也支持 16 位 DOS 分析。提供方选择见 CLI 指南。对于最新 npm 版本发布后新增的功能,请查看发布可用性。

案例

DX-Ball 声音平移、Notion 剪贴板桥接与 TH04 弹幕环案例的插图

DX-Ball:重建声像计算

沿声音调用追踪到根据位置计算声像的辅助函数,检查指令,将不完整的伪代码转为 C。重建结果通过了 3,205 个原始 x86 测试用例,并复现了编译后函数的全部 63 个字节。

阅读案例 · 重建项目仓库

Notion:追踪 Electron 剪贴板桥

找到渲染进程的剪贴板 API,沿 preload 和 IPC 追踪到主进程,并检查富格式剪贴板数据。

阅读案例

TH04:恢复 DOS 环形子弹的计算

检查原始 PC-98 游戏的 16 位指令,恢复固定角度和瞄准角度的计算,并将重建的 C++ 与当年的编译器输出进行对比。

阅读案例 · 重建项目仓库

用 REA 构建 RL 环境

录制 Web 应用会话,将 API 转为工具,并导出 AI 智能体可使用的环境。用 AgentEnv 运行,再添加任务和奖励检查,用于 RL 训练或评测。

构建环境指南 · 在 X 上观看演示

如果你用 REA 分析了有趣的目标,我们很想了解。欢迎通过 issue 或 pull request 分享案例,说明目标、你的问题、REA 如何提供帮助,以及你的发现。

构建 RL 环境

为 AI 智能体构建本地练习环境,让它练习查找 issue、创建文件夹等任务,无需运行原应用。这个环境可用于强化学习(RL),也可用于测试智能体完成任务的能力。

REA 将录制的 API 请求和响应转为智能体可调用的工具。环境使用录制的数据,只有录制证据确认了某项修改的效果,才会支持该修改。

在智能体中设置好 REA 后,将下面示例中的网址和文件夹任务替换为你自己的:

使用 REA 为我的测试 Web 应用构建 RL 环境,网址是
http://127.0.0.1:3000。
覆盖列出、创建、重命名和删除文件夹。可以创建和删除测试文件夹,
但不要修改已有数据。
将环境保存到名为 my-env 的文件夹。检查哪些操作可用,并告诉我如何运行。
改用命令行

如果你已经将应用在浏览器中的请求和响应录制成文件,可以使用这些命令。运行生成的环境还需要 AgentEnv 和 Docker。

rea environment-build ./session.har ./my-env --name my-env --json
agent-env run ./my-env

REA 导出可直接运行的环境,并附带基本测试,检查环境能否启动和响应。将它接入 RL 框架,即可设置任务目标、添加奖励检查并运行训练。

构建环境指南 · 环境参考文档 · 在 X 上观看演示

桌面应用环境

REA 也能为 Linux 桌面应用构建环境,智能体通过截图、鼠标和键盘使用它。只需一行请求,例如“帮我构建一个 Gnote 环境,让智能体在购物清单笔记中加入橄榄油”,你的智能体就会在本地构建计算机上安装应用、编写任务、导出环境,并在全新的计算机上检查任务。构建环境的机器需要 amd64 或 arm64 上的 Linux、Docker,以及指南固定的 agentenv 框架版本。

设置桌面应用环境

常见问题

哪些智能体可以使用 REA?

任何支持本地 MCP 服务的智能体都可以使用。设置流程会配置受支持的智能体;其他客户端可通过手动注册 MCP 使用。

需要 Hopper、Ghidra、IDA 或 Kuna 吗?

深入的原生分析需要其中一个引擎。静态 JavaScript 和 .NET 检查不需要原生分析引擎。设置流程可以在你批准后安装 Hopper;Ghidra、IDA 和 Kuna 则使用已有安装。见提供方设置。

需要先启动 Hopper 吗?

REA 会在操作需要时启动 Hopper。在 macOS 上,首次运行时可能会出现对话框,让你选择演示模式或激活许可证。见 Hopper 启动与故障排查。

从 skills.sh 安装 skill 有什么作用?

skill 为智能体提供调查指引。使用 npx rea-agents setup 注册 REA 的 MCP 服务并安装匹配的指引,然后重启智能体。见仅安装 skill。

REA 返回什么代码?

原生分析返回伪代码和汇编。JavaScript/Electron 分析恢复模块及其关系。智能体利用这些发现编写并测试实现;案例提供了完整示例。

REA 会上传我的应用吗?

REA 在本机分析目标。智能体会接收工具结果,其模型提供商有自己的数据政策。

遇到错误时该怎么办?

先更新;最近的版本可能已经修复了问题。

通过 npm 安装的 CLI 使用:

rea update

通过 npx 设置智能体时使用:

npx rea-agents@latest setup

如果正在使用智能体,请完成设置更新并重启智能体。重试同一任务。如果问题仍然存在,请提交 issue,附上 REA 版本、目标类型、复现步骤和错误输出。

文档

可以先阅读网站上的实操指南。具体选项、前提条件和结果契约见:

请按照 SECURITY.md 报告漏洞。

Star 历史

🎉 GitHub Star 达到 400,000 个,感谢大家!

感谢每一位使用 REA、报告错误、提出功能需求、测试构建和贡献修复的朋友。

REA 的 GitHub Star 历史

免责声明

负责任使用的相关指引请见 DISCLAIMER.md。

REA 用于合法的研究、教育、互操作性、软件保存,以及分析你拥有或获准检查的软件。

本项目对非法或未经授权使用的立场涵盖所有 REA 版本、分发渠道和运行平台; 每份副本仍适用其随附的许可。

参与贡献

欢迎帮助改进 REA!你可以提交 issue 报告错误或建议功能,也可以提交 pull request 改进代码或文档。

开发设置和检查见 CONTRIBUTING.md,验证流程见测试指南,项目结构见架构图。

许可证

MIT

REA 自行编写的代码采用 MIT 许可;第三方内容保留各自的许可和著作权声明。 依赖清单、许可原文及外部工具条款见第三方声明。

用户须自行合法取得商用工具及所需使用权,包括 IDA Pro / Hex-Rays 反编译器、 Hopper 和 JEB,并遵守各自许可。REA 不提供工具许可、密钥或激活权利;试用版和 演示版也须遵守厂商对用户、功能、自动化及输出分享的限制。不得使用破解副本、 窃取或违规共用密钥,也不得绕过许可限制。本指引不变更 MIT 或第三方许可。