Skills / Frontend

reverse-engineer-anything

Reverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip…

Source morluto/reaLicense MITSafety scan Clear

No fetch-and-execute, destructive, credential, exfiltration or rules-override patterns in 9 files, checked on Nov 30, 2026. This is not a guarantee of safety. How the scan works.

Author? Show the scan result in your README
[![Scan: clear on Use This Skill](https://usethisskill.com/badge/scan/morluto-reverse-engineer-anything.svg)](https://usethisskill.com/skills/morluto-reverse-engineer-anything)

The badge updates with each weekly scan.

npx degit morluto/rea/.cursor-plugin/skills/reverse-engineer-anything .claude/skills/reverse-engineer-anything

12 alternatives · Best frontend skills · Author? Prove this skill

SKILL.md
# REA

Use REA when a claim depends on a shipped binary or package, decompilation,
requested runtime evidence, or comparison with
behavior not established by available source. For ordinary analysis of a
complete source repository, use normal repository tools and do not run REA
readiness or provider commands.

## Connect only when needed

Installing this skill supplies instructions; it does not register the REA MCP
server, install analysis engines, or add tools to an already-running agent.
The exception is a Claude Code, Codex, or Cursor Marketplace plugin install:
the plugin bundles this skill and registers its own `rea` server, outside the
state that `rea setup` and `rea doctor` manage.

If REA tools are available and their registration is not known to be stale,
proceed directly to the target. Do not run diagnostics or setup before every
investigation. Use the connected server's actual tool list and input schemas;
a skill installed from repository main may describe capabilities absent from
an older npm release. Keep complete inline Evidence when that server does not
advertise retained references.

If tools are absent, a call is blocked by the client, or a required provider is
unavailable, read [connection and recovery](references/connection-and-recovery.md).
Diagnose the observed blocker, continue useful supported work, and resume the
original task after repair. Client approval, shell PATH, registration and engine
availability have different remedies; avoid repeating setup for all of them.
If the host times out without a REA result, do not repeat the unchanged call or
assume work stopped; read the guide's
[deadline distinction](references/connection-and-recovery.md#distinguish-client-and-server-deadlines).
When the MCP connection drops, REA could not start, or a call returns
`cleanup_incomplete`, a retryable capacity limit or `configuration_invalid`,
follow its [recovery ladder](references/connection-and-recovery.md#recovery-ladder)
before retrying, restarting or repairing.

Choose the installation owner before repairing registration. Plugin installs use
[plugin recovery](references/connection-and-recovery.md#rea-installed-as-a-client-plugin);
only setup-owned registrations use the guide's
[registration repair plan](references/connection-and-recovery.md#repair-registration-when-needed).
A plugin-only doctor result of `missing` does not call for `rea setup`.

REA setup never installs or upgrades Node.js, npm, Homebrew, Java, Ghidra, IDA,
JADX, Kuna, Binwalk, or Unblob. Use existing prerequisites; do not install unrelated
software to repair MCP registration. For an unsupported client, use manual stdio
registration with an existing installation’s absolute runtime and entry script, or continue through the CLI.

When a person asks you to update REA, run `rea update` for a global npm or Bun
installation. Otherwise, including a setup made with `npx rea-agents setup`, run
`npx rea-agents@latest setup` from a trusted directory outside the target
project. Show its setup plan, apply it only after their approval, then ask them
to restart this agent so it loads the new version.

A concrete CLI fallback for an operator-supplied JavaScript tree or ASAR is:

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

No MCP registration or native engine is required. Read the returned Evidence,
graph, limitations, and unknowns with the same care as an MCP result; the CLI
returns the Evidence record directly. This fallback does not establish that
MCP is configured. Native CLI tasks still require their selected engine.
Prefer an existing `rea` CLI. When none is installed and REA package acquisition
is within the authorized scope, use `npx -y rea-agents@latest` in its place from a
trusted directory outside the target project, with absolute target paths. Managed
setup binds the current installation directly; retain its runtime and package
cache entry, or restore that installation before repairing its registration.
For setup-owned registration, configuration repair starts with a read-only setup plan; show paths, backups and
skill replacement before applying authorized changes. Preserve existing approval
and target-execution boundaries.

## Route the target first

Choose the first tool from the target the user supplied. Use `open_binary` for
active-target native or archive workflows; target-free tools take their own
explicit path or endpoint and do not need it.

- ASAR or extracted JavaScript/Electron tree:
  `analyze_javascript_application`. To find a few files in a packaged
  `app.asar`, open it with `open_binary`, start with `inspect_artifact`
  using `detail: "summary"`, then analyze the selected files with
  `source_paths`. When you intend to retain digest contradictions from
  re-signed unpacked companions, pass `integrity_policy: "record-and-continue"`
  starting with `inspect_artifact`. See the
  [JavaScript applications reference](references/javascript-applications.md).
- Archive/package member inventory (ZIP/APK/IPA/MSIX/AppX, DMG, or a PyInstaller
  executable): `open_binary` with the supplied local path; use `inspect_artifact`
  when its graph and findings help answer the question. A PyInstaller CArchive
  is the application layer; the bootloader is only the native prefix. Start with
  `detail: "summary"` for large inventories, then use retained inventory views
  for selected member fields/pages. A complete small inventory can cost less
  than extra calls and schemas. Runtime options are metadata, not files.
  Compact delivery still inventories and hashes members. See the
  [Python packaged applications guide](https://github.com/morluto/rea/blob/main/docs/python-packaged-applications.md).
- Bun `--compile` executable: `open_binary`, then `inspect_artifact`; the Bun
  module graph is the application layer. Extract stored modules and analyze the
  JavaScript. See [Bun standalone executables](https://github.com/morluto/rea/blob/main/docs/bun-standalone.md).
- Deno `deno compile` executable: `open_binary`, then `inspect_artifact`; the
  embedded virtual filesystem is the application layer. Extract stored files and
  analyze compatible JavaScript. Environment-file values and CA certificate bytes
  are retained in local Evidence with their counts and byte lengths. The npm
  snapshot length is reported and not decoded, and the executable is not run. See
  [Deno compile executables](https://github.com/morluto/rea/blob/main/docs/deno-standalone.md).
- Apple app plist, Interface Builder, asset catalog, or keyed archive resources:
  `open_bundle_resources`, then the selected resource tool. This does not
  require `CFBundleExecutable` or a deep provider. Resource sessions have no
  executable digest or binary snapshot; use `open_binary` for native code.
- Android APK code, classes, methods, or incoming references:
  `inspect_android_package`, then focused Android tools when advertised.
  Archive member inventory still uses the archive route above.
- Managed PE/CLI assembly: `inspect_managed_artifact`.
- UEFI firmware volumes and NVAR stores: use bundled `inspect_artifact`.
  For external firmware scanning or extraction on Linux, use
  `inspect_firmware_regions` or `extract_firmware` with caller-supplied
  Binwalk or Unblob. Extraction needs a caller-selected new absolute output
  directory. See the [firmware guide](https://github.com/morluto/rea/blob/main/docs/guides/firmware/firmware-analysis.md).
- ESP32-family app or bootloader image (`0xE9` magic): `inspect_artifact`
  without a provider; see the ESP section of `references/native-and-artifacts.md`.
- .NET NativeAOT PE/ELF: native Ghidra analysis. Native code can yield pseudocode;
  consult the NativeAOT workflow in `references/native-and-artifacts.md` for
  optional metadata recovery and its supported host/layout boundary.
- Native program behavior, live calls, instrumentation, or command-run effects:
  choose the matching [native runtime workflow](references/runtime-observation.md#native-runtime-questions).
  `open_binary` and `trace_native_values` establish static facts; they do not
  observe execution. Runtime tools have distinct launch, attach, mutation and
  cleanup effects, and do not require a preliminary static session unless their
  own contract says so.
- User-owned browser page already open: `list_browser_targets`.
- Passive traffic capture of a SPA: the default scope is the page's own origin,
  and data APIs usually live on another origin. Discover API origins from
  absolute URLs in loaded bundles or script text via JavaScript analysis tools
  (another passive capture without those origins still scopes to the page
  origin, and `completeness.excluded` counts lack URLs). Pass both the page
  origin and those API origins in `allowed_origins` — the list replaces the
  default scope — and read `completeness.excluded` before reporting that an
  API is absent. For long captures with body shapes, use
  `export_evidence_bundle` instead of expecting an inline result.
- Browser action the agent must perform (click, type, navigate):
  `capture_browser_scenario` with declared actions. See
  [runtime observation](references/runtime-observation.md) for connect/launch
  and the focused follow-up browser tools.
- Agent environment (AgentEnv bundle) of a web application: read
  [environments](references/environments.md) before recording; it records with
  `capture_browser_scenario` and writes the bundle with `export_environment_bundle`.
- Task for a desktop application's exported environment, from a
  `capture-desktop-application` folder: read
  [desktop application tasks](references/environments.md#tasks-for-a-desktop-application-environment).
- Environment of a Linux desktop app with a task, from a request such as
  "build me an Inkscape environment where the agent changes a poster's
  headline": read [desktop builds](references/desktop-build.md). You drive the
  app on a build computer from `start_build_computer`, then export and witness.
- Fiddler Everywhere traffic or a native `.saz` capture: read the
  [Fiddler workflow](references/runtime-observation.md#fiddler-everywhere-traffic-debugging).
  Inspect saved SAZ with `inspect_web_network_capture` and `format: "saz"`;
  connect Everywhere's separate MCP server for live traffic.
- Retained HAR/SAZ/native mitmproxy/aioquic qlog capture: `inspect_web_network_capture`. Select
  original record ordinals when useful; inspect producer fields and byte/number
  sidecars without fetching recorded URLs or claiming live attribution. HAR/SAZ/qlog
  old-generation heap is `REA_CAPTURE_DECODER_OLD_GENERATION_MIB` (default 192 MiB,
  floor 8, maximum 16384), set where REA starts. Host memory and `NODE_OPTIONS` do not
  raise it. See
  [historical captures](https://github.com/morluto/rea/blob/main/docs/guides/web/web-network-captures.md) for the exact upstream
  profile and credential exclusions. Qlog support starts with aioquic 1.5.0
  JSON 0.3; stream coverage and endpoint loss declarations do not recover bodies
  or establish network loss. Prefer detail summary, then kind qlog trace/stream
  pages; select one trace, stream ID and direction for contribution/range pages.
  Facts retain all-recorded-events-before-selection scope. Other qlog layouts
  and PCAP correlation are unsupported.
- User-owned Electron runtime already open: `list_electron_targets`. Before an electron-main Inspector attempt, check packaged fuses with `inspect_electron_fuses`; disabled `EnableNodeCliInspectArguments` means the app ignores `--inspect`.
- Shipped application exposure for a local `.app`, install directory, ASAR, or executable: `audit_release_exposure` / `rea audit-release-exposure`. Each check has a stable id, a status, and fixed remediation. Unknown and unassessed checks stay in the report. This does not establish that an application is secure. Credential-marker hits report the rule id and location only. See [release exposure](https://github.com/morluto/rea/blob/main/docs/release-exposure.md).
- Packet-field discovery: `inspect_packet_fields` searches installed protocols
  and field names/types before choosing fields for `inspect_packet_capture`.
  Query/page the relevant records; registrations do not establish observed traffic.
- Recorded packet captures: `inspect_packet_capture` with selected TShark fields,
  display filters and decode-as rules. Requires Linux, util-linux prlimit and
  TShark 4.x on an absolute `PATH` entry or via the optional absolute
  `REA_TSHARK_COMMAND` override; see
  [capture guide](https://github.com/morluto/rea/blob/main/docs/guides/data/packet-captures.md).
  Packet limits count input packets before filtering. Output defaults to 50 matching
  frames; use `match_offset` / `match_limit` for later pages, or explicit null
  limit for complete matching output. Preserve the source digest across pages.
  This does not perform live capture.
  For address/DNS/SNI/protocol summaries use `inspect_pcap_capture` with MCP
  detail summary, then retained kind pcap pages. Requires Wireshark 4.x tshark
  and capinfos, with Linux prlimit or Windows Job Objects; see
  [packet summaries](https://github.com/morluto/rea/blob/main/docs/guides/data/pcap-analysis.md).
  Select an exact DNS question for address pages; page exhaustion does not prove
  network completeness. This reads recordings and does not acquire traffic.
- Decoder discovery: `inspect_signal_decoders` searches installed decoder IDs
  or selected decoder help, including channels and options. Query and page the
  relevant details before choosing settings; this does not scan hardware.
- Recorded logic/signal traces: `decode_signal_recording` with explicit decoder,
  channel and protocol settings. On Linux with util-linux prlimit, supply sigrok-cli 0.7.2 through
  `REA_SIGROK_COMMAND`; see [recording guide](https://github.com/morluto/rea/blob/main/docs/guides/signals/signal-recordings.md).
  Output defaults to 50 literal lines; select annotation classes and page with
  `line_offset` / `line_limit`, or explicit null for all remaining output.
  Window counts are display lines, not annotations or samples. Preserve source digests across pages.
  This reads existing files; it does not acquire hardware signals.
- Explicit local file in a format with a dedicated target-free tool: call that
  tool with the file path. These tools need no active target or disassembler
  unless their description names a caller-supplied host tool. Their descriptions
  state supported layouts, defaults, paging and limits; the linked guides give
  the workflow. Prefer `detail: "summary"` with retained `inspect_analysis_view`
  pages when the tool offers them and the inventory is large. A missing table or
  section is observed absence of that declaration in this file, not proof the
  behavior or metadata never existed.
  - WebAssembly: `inspect_wasm_artifact` with WABT through
    `REA_WABT_BIN_DIRECTORY`; select JavaScript glue and candidate paths
    explicitly ([WASM guide](https://github.com/morluto/rea/blob/main/docs/guides/wasm/wasm-artifacts.md)).
  - APK, ZIP or AAB signing: `inspect_apk_signature`, identity and integrity
    rather than a trust verdict ([APK signature guide](https://github.com/morluto/rea/blob/main/docs/apk-signature.md)).
  - EVM bytecode: `inspect_evm_interface`; selectors, arguments and mutability
    are inferred candidates ([EVM bytecode guide](https://github.com/morluto/rea/blob/main/docs/guides/evm/evm-bytecode.md)).
  - Go build metadata or static `(ptr, len)` strings: `inspect_go_binary`
    ([Go binary guide](https://github.com/morluto/rea/blob/main/docs/guides/native/go-binaries.md)).
  - Rust cargo-auditable dependencies: `inspect_rust_binary`; for selected
    crates, pass a `packages` `view` on the first call
    ([Rust binary guide](https://github.com/morluto/rea/blob/main/docs/rust-binaries.md)).
  - Embedded CUDA/HIP code objects: `inspect_gpu_code_objects`; inventory
    targets first, then decode selected payloads.
  - GGUF or safetensors declarations: `inspect_model_artifact`; do not infer
    model behavior from declared architecture or tensor types
    ([model file guide](https://github.com/morluto/rea/blob/main/docs/model-artifacts.md)).
  - Unity IL2CPP `global-metadata.dat`: `inspect_il2cpp_metadata`; pass the
    matching native binary as `binary_path` to link method addresses
    ([IL2CPP metadata guide](https://github.com/morluto/rea/blob/main/docs/il2cpp-metadata.md)).
  - Maven `pom.xml` or Gradle `.module`: `inspect_maven_gradle_metadata`
    ([Maven and Gradle guide](https://github.com/morluto/rea/blob/main/docs/maven-gradle-metadata.md)).
  - PE tables: `inspect_pe_certificates`, `inspect_pe_imports`,
    `inspect_pe_load_config` and `inspect_pe_resources`; PE or ELF exports:
    `inspect_native_exports`. Signatures are not verified
    ([certificates](https://github.com/morluto/rea/blob/main/docs/pe-certificates.md),
    [imports](https://github.com/morluto/rea/blob/main/docs/pe-imports.md),
    [load configuration](https://github.com/morluto/rea/blob/main/docs/pe-load-config.md)).
  - Windows `.lnk` shortcut: `inspect_windows_shortcut`; the target is not
    resolved ([shortcut guide](https://github.com/morluto/rea/blob/main/docs/guides/native/windows-shortcut.md)).
  - ELF, PE and Mach-O hardening: `inspect_binary_hardening`; use
    `inspect_signature` for Mach-O hardened runtime
    ([hardening guide](https://github.com/morluto/rea/blob/main/docs/binary-hardening.md)).
  - ELF declarations: `inspect_elf_notes`, `inspect_elf_debug_link` (pass
    `candidate_path` only for a debug file you already selected),
    `inspect_elf_dependencies` and `inspect_elf_unwind_ranges`. Relocatable
    objects use `inspect_kernel_module`; core dumps use
    `inspect_recorded_crash`
    ([notes](https://github.com/morluto/rea/blob/main/docs/elf-notes.md),
    [debug files](https://github.com/morluto/rea/blob/main/docs/guides/native/elf-debug-link.md),
    [dependencies](https://github.com/morluto/rea/blob/main/docs/elf-dependencies.md),
    [unwind ranges](https://github.com/morluto/rea/blob/main/docs/guides/native/elf-unwind-ranges.md)).
  - DWARF compile units, including the DWARF file inside a `.dSYM`:
    `inspect_dwarf_units` ([DWARF guide](https://github.com/morluto/rea/blob/main/docs/guides/native/dwarf-units.md)).
  - Code that runs before `main` or at exit in ELF or Mach-O:
    `inspect_native_initializers`
    ([initializer guide](https://github.com/morluto/rea/blob/main/docs/guides/native/native-initializers.md)).
  - Apple `.ips` crash report: `inspect_apple_ips`; `join_path` matches one
    local Mach-O or dSYM ([Apple IPS guide](https://github.com/morluto/rea/blob/main/docs/apple-ips.md)).
  - Linux kernel module: `inspect_kernel_module`; kernel version and
    `CONFIG_*` options: `inspect_kernel_build_config`. Decompress unsupported
    containers into a separate file with an external codec, then inspect the
    result ([kernel modules](https://github.com/morluto/rea/blob/main/docs/kernel-modules.md),
    [kernel build config](https://github.com/morluto/rea/blob/main/docs/guides/native/kernel-build-config.md)).
  - Debian `.deb`: `inspect_deb_package` for control metadata and archive
    inventory. See [Debian packages](references/native-and-artifacts.md#debian-packages).
  - CPython `.pyc`: `inspect_python_pyc`; Erlang `.beam`:
    `inspect_erlang_beam`; NuGet `.nupkg`: `inspect_nuget_nupkg`; VS Code
    `.vsix`: `inspect_vsix_package`
    ([pyc](https://github.com/morluto/rea/blob/main/docs/python-pyc.md),
    [BEAM](https://github.com/morluto/rea/blob/main/docs/erlang-beam.md),
    [NuGet](https://github.com/morluto/rea/blob/main/docs/guides/managed/nuget-nupkg.md),
    [VSIX](https://github.com/morluto/rea/blob/main/docs/guides/managed/vsix-package.md)).
  - YARA rules the caller supplies against one local file:
    `inspect_yara_matches` with the file and `rule_paths`, run by the installed
    `yara` command ([YARA guide](h

Shown under the source repo’s MIT license. Read the full folder on GitHub.