rea-reverse

ASAR unpacker and Electron IPC analyzer

Open an Electron app.asar to browse and download its files, see the main, preload and renderer entry points, and list the IPC channels and contextBridge APIs the app exposes between its processes.

Your archive never leaves your browser. The archive is read locally in a Web Worker that has no network access. Nothing is uploaded. How to verify this yourself

Open the tool on its own page (no ads, no analytics)

Most Electron apps ship their JavaScript, HTML and assets in a single file called app.asar, found in the app’s resources folder. ASAR is a simple archive format: a JSON header that describes a directory tree, followed by the file contents stored back to back, uncompressed. Inside are the three parts that define an Electron app’s security model: the main process code, which has full Node.js access; the preload scripts, which decide what the web page may reach; and the renderer pages. They talk to each other over IPC channels.

This tool opens an app.asar in your browser, lists every file, lets you download or preview any packed file, and builds a table of the IPC channels that the code registers and calls. The archive is never uploaded.

How to use

  1. Find the archive: resources/app.asar next to the executable on Windows and Linux, Contents/Resources/app.asar inside the .app bundle on macOS.
  2. Drop it onto the drop zone above or press Choose a file. Only the archive header is parsed; files are read when you open them.
  3. Read the Overview first (main entry, preload scripts, header SHA-256), then the IPC channels and contextBridge APIs, then preview the files they point to.

Real example output

We took resources/default_app.asar from the official Electron 45.2.1 linux-x64 release zip, opened it on this page and copied what it displayed. Layout condensed (label and value on one line, tables re-aligned, Download and Preview buttons left out); every value is verbatim.

Sample: default_app.asar (110,835 bytes, SHA-256 eac55d6c…f510), the default app shipped in Electron 45.2.1 (MIT), electron-v45.2.1-linux-x64.zip downloaded 2026-11-02 (github.com/electron/electron/releases/tag/v45.2.1)

Overview
App name         electron
Version          —
Main entry       main.js
Preload scripts  preload.js set in default_app.js:74
Renderer entries —
Files            13 files, 1 directories, 0 links
Total size       105.0 KB
Archive size     108.2 KB
Header SHA-256   e6e13aba82feefcd857797ebf919a7611cae3b5664f0733548898ed3c48cad7d
Unpacked entries 0
Source maps      0 .map files, 3 JS files with a sourceMappingURL

Largest files
icon.png        72.1 KB
index.html      11.8 KB
main.js         9.6 KB
default_app.js  3.9 KB
…

IPC channels (2)
Channel    Direction        Call                Process  File:line
bootstrap  renderer → main  ipcMain.handle      main     default_app.js:63
bootstrap  renderer → main  ipcRenderer.invoke  preload  preload.js:34

contextBridge APIs (1)
window.<name>       Exposed keys  File:line
electronDefaultApp  initialize    preload.js:59

Native modules (0)
Unpacked entries (0)

What it does

Input. An ASAR archive, usually resources/app.asar. Only the 16-byte prefix and the JSON header are read up front; file contents are read on demand, so a large archive costs little more than its header. Limits: a header of up to 32 MiB, up to 1,000,000 entries, directory nesting up to 128 levels, and a two-minute time limit.

Archive. You get:

  • File tree: every file, directory and symbolic link as a collapsible, searchable tree with sizes. The JSON export adds each file’s offset, the executable flag and the per-file integrity record (algorithm and hash) when the archive has one.
  • Statistics: counts of files, directories, links and unpacked files, total size, a breakdown by file extension, and the 20 largest files.
  • Download and preview: any file that is stored inside the archive can be downloaded on its own or shown as text, without extracting the rest. Links are followed.
  • app.asar.unpacked entries: files marked as unpacked are listed, but their bytes are not in the .asar file; Electron keeps them in the app.asar.unpacked/ folder next to it. Native modules are typically stored there.

Electron analysis. The report adds:

  • package.json: name, version and main. The main entry is resolved the way Node does it, with index.js as the default.
  • Preload scripts: string values assigned to a preload property, as in webPreferences: { preload: path.join(__dirname, 'preload.js') }, resolved to files in the archive, with the file and line where each one is configured.
  • Renderer entries: <script src> tags in the archive’s HTML files, resolved to archive paths. Remote URLs are ignored.
  • IPC channel table: every call to ipcMain.handle, ipcMain.on, ipcMain.once, ipcRenderer.invoke, ipcRenderer.send, ipcRenderer.sendSync, ipcRenderer.on and webContents.send (including forms such as win.webContents.send). Each row shows the channel, the API, the direction (renderer to main, or main to renderer), the process, and the file:line. When the channel is not a plain string literal, the row is marked dynamic and shows the expression instead.
  • contextBridge exposures: each contextBridge.exposeInMainWorld(name, { ... }) with the exposed name and the keys of the API object. This is the exact surface the web page can call.
  • Native modules: .node files (Node add-ons compiled to Mach-O, ELF or PE), with their size and whether they are unpacked.
  • Source maps: .map files in the archive and the number of scanned JavaScript files that end with a sourceMappingURL comment.
  • Warnings: entries with suspicious names (.., slashes, absolute paths) or links that point outside the archive, malformed entries, files that extend past the end of the archive, and JavaScript files that were only partly scanned.

Electron fuses and ASAR integrity. The same drop zone accepts two more files from an Electron app:

  • The Electron executable, to read its fuses: on Windows the app’s main .exe, on Linux the main binary, and on macOS Contents/Frameworks/Electron Framework.framework/Electron Framework (the fuses live in the framework, not in Contents/MacOS/<app>). The page shows each fuse as enabled, disabled or removed, what it controls (for example, RunAsNode enabled means ELECTRON_RUN_AS_NODE=1 turns the app into a plain Node.js process), and whether it matches the hardened value from Electron’s documentation. A universal macOS binary gets one table per architecture slice. Use it as a hardening check for apps you build or are authorized to audit.
  • A macOS Info.plist in XML form, to show its ElectronAsarIntegrity entries (path, algorithm and hash). When you open the app.asar, the overview shows its header SHA-256, which is the value Electron compares with that hash when the EnableEmbeddedAsarIntegrityValidation fuse is on.

How it works

The archive starts with two Chromium “pickle” records: the first gives the size of the header, the second holds the header as a JSON string. The page checks that these sizes agree, parses the JSON, and walks its files tree. A packed file is located at the start of the data area plus its offset, which ASAR stores as a decimal string. The format handling was checked against @electron/asar 4.3.1, and the prefix checks follow REA, the open-source project by morluto (MIT).

For the IPC table, every .js, .cjs and .mjs file in the archive is scanned with a lightweight JavaScript tokenizer, application files first and node_modules last. The tokenizer skips comments, string contents and regular expressions, so text such as "ipcMain.handle('x')" inside a string is not reported. It then matches member calls such as ipcRenderer.invoke( and reads the first argument. A channel counts as literal only when that argument is a single string or a template without substitutions.

To decide which process a file belongs to, the page starts from the main entry, the resolved preload scripts and the renderer scripts, and follows relative require and import paths. A file that is not reached this way gets its process from the API it uses: ipcMain and webContents exist only in the main process, and a file that calls contextBridge is treated as a preload. Otherwise the process is shown as unknown.

For fuses, the page looks for the sentinel string dL7pKGdnNz796PbbjQWNKmHXBZaB9tsX that Electron places before the fuse wire, reading the file in 4 MiB slices so a 200 MB framework is never held in memory at once. After the sentinel come a version byte, a length byte and one byte per fuse: ASCII 0 (disabled), 1 (enabled) or r (removed). Fuse names and order follow FuseV1Options in @electron/fuses 2.1.3. We compared the result with npx @electron/fuses read on 11 binaries from the official Electron release zips: the stock 44.9.1 and 20.3.12 builds for Windows x64, Linux x64 and macOS x64 plus 44.9.1 macOS arm64, three copies hardened with @electron/fuses (44.9.1 Linux and Windows, 20.3.12 Windows), and a universal 44.9.1 framework that we built with lipo and then flipped. Every state matched. Electron 44 has nine fuses, Electron 20 has seven.

How your archive stays private

The archive is not uploaded:

  • The extractor runs in a separate frame served from rea-reverse.com. Everything described below happens inside that frame, on your device.
  • This page shows one ad, after the article. The ad script runs on tools.rea-reverse.com; the frame is a different origin, so the browser does not let the ad script, or any other script on this page, read the archive you drop, or the results.
  • The frame’s Content Security Policy blocks every request its scripts could make (connect-src 'none', no third-party resources at all). The frame cannot open windows or navigate this page by itself; only a link you click in the report can open a page. The only things it passes to this page are its height and the analytics events below.
  • Parsing, scanning and each file download run in a Web Worker on your device. The worker reads only the header and the slices it needs through the browser’s file APIs.
  • Analytics events are coarse: success or an error code, a coarse range for the number of files found (such as 11-100), for fuses the container type (ELF, PE, Mach-O, universal Mach-O or plist), a file-size bucket and a duration bucket. They never contain the file name, file paths, channel names or any other content. The frame hands them to this page, which sends them. The full list is on the privacy page.
  • Prefer no ads and no analytics at all? Open the extractor on its own page.

How to verify this yourself

  1. Open your browser’s developer tools on the Network tab and load this page. Requests to rea-reverse.com are the frame: its HTML, styles, fonts and scripts, and the worker script /_astro/asar-worker-*.js. Requests to Google domains are the ad on this page.
  2. Clear the log, then analyze an archive and download a file from it. Type domain:rea-reverse.com in the filter box. At most the worker script /_astro/asar-worker-*.js appears again (a fresh worker is prepared for the next run); no request carries your data. Ad requests may continue, but they come from this page and carry nothing from the frame.
  3. Click the asar-electron/ document from rea-reverse.com and open Headers: its Content-Security-Policy has connect-src 'none', and frame-ancestors https://tools.rea-reverse.com. In Chrome, Application > Frames also shows the frame’s origin and policy. The worker runs under default-src 'none'; script-src 'self'; connect-src 'none', so the browser does not let it make any network request.
  4. Check the isolation: in the Console, with the context set to top, run document.getElementById('tool-frame').contentDocument. It returns null. frames[0].document throws a SecurityError. That is what the ad script gets too.
  5. Or load the page, go offline (turn off Wi-Fi, or tick Offline in the Network tab) and analyze a file. It still works.

Limitations

  • Tokenizer, not a full parser. Calls are recognized by the literal names ipcMain, ipcRenderer and webContents followed by a method. Aliases are not followed: const { ipcRenderer: r } = require('electron'); r.send(...) or const r = ipcRenderer is missed, and so is a computed call such as ipc[name](...) or ipcMain['handle'](...). Minified bundles that rename these objects lose most rows.
  • Only the listed APIs. Methods such as ipcRenderer.once, ipcRenderer.postMessage, ipcRenderer.sendToHost, ipcMain.removeHandler and MessagePort-based channels are not in the table.
  • Dynamic channels stay dynamic. A channel built from a variable is shown with its expression, not resolved to a value.
  • Scan budget. Only the first 4 MiB of each JavaScript file are scanned, and at most 128 MiB in total. Files beyond the budget, usually in node_modules, are listed in a warning.
  • What is not scanned. Unpacked JavaScript (its bytes are outside the archive), inline <script> blocks in HTML, TypeScript sources and package.json or HTML files larger than 1 MiB.
  • Integrity is shown, not verified. The JSON export carries each file’s integrity hash from the header, but the page does not recompute the per-file hashes. It shows the header SHA-256 and the Info.plist hash side by side for you to compare; the Windows integrity resource inside the .exe is not read, and binary Info.plist files must be converted first with plutil -convert xml1.
  • Fuses are read, never written. The page does not change the binary. Fuses describe what the Electron runtime allows; they do not show whether the app enables a debugger or Node.js some other way.
  • Process attribution is heuristic. Bare package imports are not followed, so code reached only through a package may show as unknown.
  • Native code is out of scope. .node files are listed; analyze them with a native tool such as Ghidra.

Compliance

Analyze apps you built, apps you are authorized to assess, or open-source apps. Respect the licenses of the software you inspect, including any terms that restrict reverse engineering, and the laws that apply to you. The tool gives no advice on bypassing licensing or other protections. See the disclaimer.

Command-line equivalent

The same archive with the official @electron/asar CLI (4.3.1, run with bunx; npx @electron/asar takes the same arguments). List the files:

$ bunx @electron/asar list default_app.asar
/default_app.js
/icon.png
/index.html
/main.js
/octicon
/octicon/book-24.svg
…
/package.json
/preload.js
/styles.css

Extract everything, then find the IPC calls the page reported. The file and line numbers match:

$ bunx @electron/asar extract default_app.asar out
$ grep -n -E "ipcMain\.handle|ipcRenderer\.invoke|exposeInMainWorld" out/*.js
out/default_app.js:63:ipcMain.handle('bootstrap', (event) => {
out/preload.js:34:    const electronPath = await ipcRenderer.invoke('bootstrap');
out/preload.js:59:contextBridge.exposeInMainWorld('electronDefaultApp', {

FAQ

How do I unpack app.asar online without uploading it?

Drop the file on this page. The archive is read in your browser: the header is parsed, and each file is read from your copy only when you preview or download it. Nothing is sent to a server.

Can I extract the whole archive?

The page downloads files one at a time. For a full extraction, run npx @electron/asar extract app.asar out/ on your own machine, as in the commands above.

How do I start reverse engineering an Electron app?

Start from the main entry and the preload scripts in the Overview, then read the IPC table: each channel the renderer can invoke and the handler that answers it is where untrusted input meets privileged code. Preview those files here or extract the archive and open them in an editor.

Can it check Electron fuses?

Yes, from the executable rather than the archive: drop the main .exe on Windows, the main binary on Linux, or Electron Framework from Contents/Frameworks on macOS. The header SHA-256 of an app.asar is the value to compare with ElectronAsarIntegrity when the integrity fuse is on.

Why is a channel shown as dynamic?

The first argument is not a single string literal, for example a template string with a variable or a constant defined elsewhere. Open the file at the given line to see what it resolves to.

The IPC table is empty, but the app clearly uses IPC.

The code is probably minified with renamed objects, or the IPC calls live in an unpacked or oversized file. Check the warnings and the scan statistics.

Updated