feat(ghidra): implement read-only inventory operations

This commit is contained in:
N0zoM1z0
2026-07-16 02:59:37 +09:00
committed by N0zoM1z0
parent f0e625d7ee
commit b1c07dd9c6
101 changed files with 3825 additions and 377 deletions
+12 -4
View File
@@ -68,10 +68,11 @@ desktop display. Unattended package-manager access requires
## Ghidra
REA's initial Ghidra provider layer is bring-your-own and currently supports
Linux x64 with the exact official Ghidra 12.1.2 release and a 64-bit full JDK 21. It supplies discovery, analysis-profile commitment, and an isolated
read-only headless session; it intentionally declares no binary-analysis
operations yet.
REA's Ghidra provider is bring-your-own and currently supports Linux x64 with
the exact official Ghidra 12.1.2 release and a 64-bit full JDK 21. It supplies
discovery, analysis-profile commitment, an isolated read-only headless session,
and ten bounded inventory/name/search operations. Decompilation, calls, xrefs,
GUI state, and analysis mutations remain unavailable through Ghidra.
Extract Ghidra and install the JDK outside REA, then export absolute paths:
@@ -96,6 +97,13 @@ per-file analysis timeout, CPU and heap bounds, and its packaged Java bridge via
and descriptor are current-user-only, and all owned runtime paths and processes
are removed on every terminal lifecycle path.
Operations begin only after default auto-analysis completes. A timeout fails
the open rather than exposing partial analysis. One session contains exactly
one imported Program; use `provider_id: "ghidra"`, `--provider ghidra`, or
`REA_ANALYSIS_PROVIDER=ghidra` when both Hopper and Ghidra support the target.
Run `GHIDRA_INSTALL_DIR=... npm run verify:ghidra` from a source checkout to
compile and analyze the source-owned debug and stripped conformance fixtures.
## Diagnose, update, and remove
`rea doctor --json` is strictly read-only. `rea upgrade` updates only the npm installation that owns the running CLI. `rea uninstall` removes only REA-owned agent registrations and skill files; `--purge-data` additionally removes REA cache and state paths.