hexvero 0.12.0

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
Open the example comparison
  • 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 3 when 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)
Real output on NotesDesk 1.4.0 and 1.5.0, the example builds in npx hexvero demo; long lines shortened.

$ 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.

window
main.js::win
main.js:8
loads preload.js (main.js:12); sandbox and contextIsolation on
+ new
preload member
window.notesdesk .checkUpdate
preload.js:9
exposed through contextBridge.exposeInMainWorld
+ new
IPC channel
update:check
preload.js:9 → main.js:30
ipcRenderer.invoke on one side, ipcMain.handle on the other: link direct
handler
ipcMain.handle
main.js:30
the only receiver of the channel in the files read
+ new
host
updates.notesdesk .example
main.js:30 · literal
fetch of a URL written in the code, not in the policy's allow list
a link read from the code confirmed: read as written inferred: derived, and marked so everywhere

$ 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.
exit code of the example 3
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.openExternal with 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 .app reported 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 in check.
  • #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 webPreferences defaults assumed: defaults follow the Electron major in package.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.

The changed window main.js::win in the hexvero web UI: nodeIntegration true to false and sandbox false to true, with the source lines of main.js:8 in the build before and the build after
The local UI on the example builds: the changed window, with both builds' source. A screenshot of real output.
$ 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.

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.

$ npx hexvero demo
GitHub Report a wrong fact