Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of local-operator-ui

[email protected]

clean   confidence 92%   action allow   analyzed 2026-09-24 20:14 UTC by yolo in 36 tool calls, with lab detonation

Summary

postinstall runs bin/postinstall.js which (1) fetches the Electron runtime to node_modules/electron/dist (needed by electron-vite's bytecode step) and (2) on Linux, restores the setuid bit on chrome-sandbox. No credential reading, no unexpected egress. CREDENTIAL_NAME_PATTERNS in out/main/index.js:14781 is a static array for download filename validation, not a scanner.

Intent

A legitimate Electron desktop app for running Python code locally through a chat interface. Install hooks fetch the Electron runtime and restore a setuid helper — standard packaging for this class of app.

Findings

Electron runtime fetch at install time info bin/postinstall.js:44
bin/postinstall.js:44 calls ensureElectronDist() which downloads electron-44.3.0 to node_modules/electron/dist from the GitHub releases CDN. This is the one call that would fetch the runtime on demand in a regular install; here it runs unconditionally on pnpm install.
chrome-sandbox setuid restoration on Linux info bin/postinstall.js:90
bin/postinstall.js:90 calls repairSandboxHelper() which does chown root:root + chmod 4755 on node_modules/electron/dist/chrome-sandbox. npm strips setuid bits by design; this restores what Chromium needs. Linux only.
Credential-name array is for download validation, not scanning info out/main/index.js:14781
out/main/index.js:14781 defines CREDENTIAL_NAME_PATTERNS (id_rsa*, .npmrc, .env, etc.). It is only mapped to regex objects on line 14876 for use in download filename sanitization — preventing downloaded files from colliding with credential file names. Never reads or scans home directories.
PostHog analytics to us.i.posthog.com info out/main/index.js:28104
out/main/index.js:5652-5653, 28104-28105: PostHog client initialized with a public project key (phc_…) pointing to us.i.posthog.com. Standard client-side telemetry; the key is publishable by design.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 6. Hooks: postinstall (exit 0), require (exit 0).