REA Web Bundle, WASM & Electron Recovery Skill
Scope & Authorization
Covers all first-party web bundle recovery, source map reconstruction, Electron app unpacking, WebAssembly decompilation, and browser extension inspection tasks (including Category 2 of the 500+ REA Prompt Vault and any custom web application recovery task).
Execution Pipeline
- Bundle & Module Graph Discovery:
- Use REA MCP tools:
analyze_web_bundle,recover_javascript_sources,trace_web_module_imports,trace_web_source_location,compare_source_to_bundle, andexport_web_scripts. - For Electron apps, use
inspect_electron_fuses,list_electron_targets,inspect_electron_page, andanalyze_javascript_application, and unpack.asararchives into clean workspace directories. - For WebAssembly (
.wasm), useinspect_wasm_artifactandcompare_wasm_interfacesalongsidewasm2wat/wasm-decompileto recover C/C++/Rust/Go logic.
- Use REA MCP tools:
- AST De-Minification & Component Reconstruction:
- Split minified Webpack/Vite/Next.js chunks into their original modular file tree (
src/components/,src/hooks/,src/state/,src/api/). - Restore meaningful TypeScript interfaces, React/Vue/Svelte component hierarchies, state stores (Zustand/Redux/Pinia), and CSS/Tailwind tokens.
- Split minified Webpack/Vite/Next.js chunks into their original modular file tree (
- Zero-Skeleton Project Delivery:
- Generate a complete, runnable project with
package.json,tsconfig.json, andvite.config.ts/next.config.js. - Verify that
npm install && npm run buildcompletes with 0 errors.
- Generate a complete, runnable project with
- Counter-Anti-REA Hardening & Deobfuscation (
$rea-anti-evasion):- Run
node scripts/rea-preflight-sanitize.mjs <target>first to detect$00_AAA_prompt poisoning,_bla_decoy markers, honey SourceMaps,7x^2 - 1 != y^2 (mod 7)opaque predicates, anda-pXOR piece splitters. - Never Trust Honey SourceMaps Blindly: Cross-check decoded
.mapfunctions against live stack frames/breakpoints; discard fake.mapfiles immediately. - Bypass AST Limits & ASAR/WASM Caps: Fold/sandbox-evaluate
(s, m, c)decoders dynamically rather than enumerating 256+ ternary combinations; stream.asarfiles> 16 MiBselectively; prune decoy WASM exports via live JS-WASMProxyboundary logging; scan full.rdata/.rodatawhen Electron fuse sentinels exceed 32; neutralize CDP>= 760-depth JSON envelopes by client-side depth clamping (<= 16).
- Run
