Electron release review · MIT
Know what changed inside your Electron release.
Give hexvero the build you shipped and the one you are about to ship. It lists the IPC channels, preload members, window settings and hosts that changed, points at the line in both builds, and fails CI when a change breaks your policy. Neither build is run.
npx hexvero demo
-
Reads an
app.asar, a.app, an install directory or the release ZIP - Every change with its file and line, in the old build and the new one
- What it cannot resolve is reported as unknown, never as removed
-
Exit
3when your policy is violated; SARIF 2.1.0 for code scanning
$ hexvero compare notesdesk-1.4.0.asar notesdesk-1.5.0.asarWhat changed between notesdesk-1.4.0.asar and notesdesk-1.5.0.asar Two builds of a small example Electron app, read statically. Nothing was executed. interfaces (2) + preload.js::notesdesk::checkUpdate @ b: preload.js:9, handler main.js:30 · link direct - preload.js::notesdesk::openInShell @ a: preload.js:9, handler main.js:30 · link direct ipcChannels (2) + update:check @ b: receiver main.js:30, sender preload.js:9 ? shell:open @ a: receiver main.js:30, sender preload.js:9 the other side has values there that could not be resolved windows (1) ~ main.js::win @ b: main.js:8 nodeIntegration: true → false, sandbox: false → true endpoints (1) + https://updates.notesdesk.example/latest.json @ b: main.js:30 · literal Not established ! b: an IPC channel at main.js:33 comes from process.env (ipc_channel_unresolved)
$ hexvero check notesdesk-1.4.0.asar notesdesk-1.5.0.asar --policy policy.jsonhexvero check fail: the policy is violated before notesdesk-1.4.0.asar · after notesdesk-1.5.0.asar · policy policy.json ✗ new-interface-member notesdesk.checkUpdate new · fail New interface member notesdesk.checkUpdate is exposed to pages. @ b: preload.js:9, handler main.js:30 · link direct fingerprint 40aa15f76bfd9988f9302d187c03c61d ✗ new-external-host updates.notesdesk.example new · fail New external host updates.notesdesk.example, not in the allow list. @ b: main.js:30 · literal fingerprint 68312dcec55422c3b8affec165b21b83 Accept what is there now: --baseline <file> --update-baseline, or a suppression with the fingerprint and a reason in the policy.$ echo $?3
$ hexvero audit notesdesk-1.5.0.asarhexvero audit fail: a rule is violated build notesdesk-1.5.0.asar · unknown fail ✗ open-external shell.openExternal(unknown) opens a URL that is not read, whose scheme the app does not fix to http, https or mailto (Electron's security guide, section 15) @ main.js:20 ✗ permission-handler-missing no setPermissionRequestHandler without one, Electron grants every permission a page asks for no place: an absence in the files read ✗ csp-missing no Content-Security-Policy no <meta http-equiv> in the app's HTML, no header set in webRequest.onHeadersReceived no place: an absence in the files read
npx hexvero demo; long lines shortened.
- npxno install, Node 22.12+
- 0 · 3 · 4pass · violated · cannot decide
- SARIF2.1.0, for code scanning
- 16MCP tools for coding agents
- 1 fileoffline HTML report
- MITlocal, no account, no upload
$ hexvero compare … interfaces
From a page to the network, in five places you can open.
Release 1.5.0 of the example gives pages one new function. hexvero follows it from the window that loads the preload to the main-process handler and the host it calls, and names the file and line at every step.
$ hexvero compare … --report report.html
Both builds, side by side, at the line that changed.
The HTML report and the local UI open each change at its place in the old build and the new one. Here, the main window of 1.4.0 and 1.5.0, read from inside the archives.
notesdesk-1.4.0.asar · main.js
8 const win = new BrowserWindow({9 width: 1100,10 height: 720,11 webPreferences: {12 preload: path.join(__dirname, "preload.js"),13 contextIsolation: true,14 nodeIntegration: true,15 sandbox: false,16 },17 });
notesdesk-1.5.0.asar · main.js
8 const win = new BrowserWindow({9 width: 1100,10 height: 720,11 webPreferences: {12 preload: path.join(__dirname, "preload.js"),13 contextIsolation: true,14 nodeIntegration: false,15 sandbox: true,16 },17 });
~Changed, and in which direction
nodeIntegration on → off, sandbox off → on: reported as less
permissive. The same change the other way fails window-more-permissive.
?Unknown is not removed
shell:open exists only in 1.4.0, but 1.5.0 registers channels named from
an environment variable (main.js:33). It may be one of them, so it is
reported as unknown, with the reason.
+A fact, not a verdict
A static finding says what the code contains. It does not show that the code runs, or that anything is exploitable. That judgement stays with the reviewer.
$ hexvero check … --policy .hexvero/policy.json
A release gate that fails on what changed, not on what was always there.
A JSON policy over the comparison: new preload member, new external host, more permissive
window, weakened fuse, new openExternal, a permission handler that grants
everything, a weaker CSP. Accept today's state once with a baseline; later runs fail only
on new findings.
$ npx hexvero init old/YourApp.app # a starting policy, current hosts allowed$ npx hexvero check old/YourApp.app new/YourApp.app \ --policy .hexvero/policy.json --baseline .hexvero/baseline.json \ --format sarif > hexvero.sarif # Inputs: app.asar, a macOS .app, a Windows or Linux install directory,# or the release .zip. Installers (.dmg, setup .exe, AppImage) need unpacking first.
- 0
- the policy passes
- 3
- violated: a finding at level fail
- 4
- cannot decide: an unknown under
"unknown": "fail" - 1 · 2
- technical error · usage or invalid policy
The GitHub Actions job, pinned to a version (docs/ci.md has the SARIF
upload)
jobs:
hexvero:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version: 24
# Build your app and fetch the previous release here, e.g. into previous/ and dist/.
- run: npx --yes hexvero@0.12.0 check previous/app.asar dist/app.asar --policy .hexvero/policy.json
$ hexvero audit YourApp.app
One build, the checks people know from Electronegativity.
Electronegativity, Doyensec's open-source checker, has been archived since 2026-10-24; its
last npm release is from March 2023. hexvero audit reads one packaged build
with the same exit codes and SARIF as check. It covers part of
Electronegativity's checks, not all of them, and the list below says which.
Judged by an audit rule in 0.12.0
- nodeIntegration, contextIsolation, sandbox in effect per windowcovered
-
shell.openExternalwith a URL that is not fixedcovered -
missing or allow-all
setPermissionRequestHandlercovered - missing or weak Content-Security-Policy (meta and header)covered
- remote module, certificate bypasses, unsafe command-line switchescovered
- webSecurity, allowRunningInsecureContentread, not judged yet
-
navigation limits (
will-navigate)read, not judged yet -
<webview>attributes, protocol handlers,executeJavaScriptnot read yet
Every row, with its Electronegativity check id: docs/engineering/audit-plan.md. Audit baselines and suppressions are not shipped yet. ElectroNG is Doyensec's commercial successor; hexvero is not affiliated with Doyensec.
Open Electronegativity issues, and what hexvero does
-
#113
Packaged, minified
.appreported as having no CSP: hexvero opens the.app, a directory or the ZIP and reads bundled and minified code by scope. -
#108 An exit
code when issues are found:
0,3,4, as incheck. - #106 Unknown Electron release breaks the run: an unknown line is reported as unknown, not as an error.
- #93 Suppression comments broken by Prettier: fingerprints name the item, never the line.
-
#58 Old
webPreferencesdefaults assumed: defaults follow the Electron major inpackage.json, and say so.
Which tool for which question
Compared with REA and Electronegativity.
Different tools answer different questions. If you want to know how a feature of someone else's app works, down to decompiled functions and run-time traffic, REA is built for that. If you need to know what your release changed and whether it may ship, that is the job hexvero is built around.
| Question | hexvero 0.12 | REA | Electronegativity |
|---|---|---|---|
| Main question | What changed between two Electron builds, and may it ship? | How does this app work, and how can an agent rebuild it? | Which known anti-patterns does this code contain? |
| Runs the target | never, by design | static by default; runtime capture runs or interacts with it | no |
| Two-version comparison | per list, file and line in both builds | documented (compare_application_versions) |
Electron API upgrade checks only |
| Preload → channel → handler map | with how each link was read | documented IPC and bridge tracing | not found |
| Release policy, baseline, suppressions | hexvero check |
not found in its docs | per-line comments |
| SARIF | 2.1.0 | not found in its docs | yes |
| Decompiler and runtime capture | no (radare2, rizin or Ghidra if installed) | Hopper, Ghidra, IDA; browser, process, adb | no |
| Maintained | yes | yes | archived 2026-10-24 |
REA and Electronegativity cells come from their own documentation, read 2026-10-17; Electronegativity's archive status checked 2026-10-31. "Not found" means their docs did not show it, which is not proof it is absent. Details and measurements on the same inputs: docs/comparison.md.
$ hexvero ui --demo --open
The same review in a local UI, a report, or your coding agent.
The UI binds to 127.0.0.1 with a per-session token and loads nothing from the network. The HTML report is one offline file. The MCP server gives an agent the same comparison and the same policy in small, paged answers.
$ npx hexvero setup --apply # register the MCP server $ npx hexvero setup --skill --apply # install the skill
16 tools, including hexvero_check. Text read from a target is marked as
data, not instructions. With a cloud-hosted agent, what the agent reads goes to its
model provider.
Accuracy and limits
What it cannot tell you.
- It reads files and never observes a running program. A finding is what the code contains, not what it does.
- Values computed at run time are listed as unresolved, never guessed; an item they might hide is unknown, not removed.
- It misses things. On a blind set written by someone without access to hexvero (measured once, 2026-10-17) it found 52 of 64 IPC channels with none false, and 22 of 41 storage keys.
- Window settings were weaker on that set: 44 of 52, with 15 false rows, fixed after the measurement. Absence from a list is weaker evidence than presence.
- Not executing the target is not a safety guarantee: parsing a hostile file still processes attacker-controlled bytes, within size, depth and time limits.
- No disassembly without radare2, rizin or Ghidra installed, and no dynamic analysis.
Accuracy and limits · blind set holdout6 · Electron Fiddle 0.38 → 0.39 case study · GitHub Desktop 3.6.7 → 3.6.10 case study · also reads ELF, PE, Mach-O, Go, .NET, APK, Wasm, SQLite and more: formats
Try it on the example, then on your last two releases.
If it showed you something true about a release, a star helps other people find it. A report naming a wrong or missing fact helps more.