Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of local-operator-ui

[email protected]

clean   confidence 85%   action allow   analyzed 2026-09-24 19:49 UTC by yolo in 19 tool calls, with lab detonation

Summary

Clean. The install hook (bin/postinstall.js) only fetches the Electron runtime and, on Linux, fixes the chrome-sandbox setuid bit (npm strips it by design). The main process sends analytics to PostHog (public API key, us.i.posthog.com) and communicates only with a local backend on 127.0.0.1:1111. No credential stores, no unexpected egress, no hidden code execution.

Intent

A local Electron app that provides a chat UI for AI agent assistants running Python code on the user's device. The postinstall hook fetches the pinned Electron runtime (missing from the electron package since v42) and, on Linux, restores the setuid bit on chrome-sandbox — both standard for this kind of packaged Electron app.

Findings

Electron runtime fetch at install time info bin/postinstall.js:54
bin/postinstall.js calls ensureElectronDist() which downloads the Electron binary from GitHub releases to node_modules/electron/dist — necessary because electron package v42+ no longer ships a postinstall that does this.
Linux chrome-sandbox setuid restoration info bin/postinstall.js:90
bin/postinstall.js chmod 4755 node_modules/electron/dist/chrome-sandbox — npm strips setuid from package contents; this restores it so Chromium can use its sandbox.
PostHog analytics (public key) info out/main/index.js:4866-4867
out/main/index.js:4866 defaults VITE_PUBLIC_POSTHOG_KEY to phc_u6n9doAtCUbpFbydIqzupCxqCaGUO4SiHMEU5ESvQRL (a publishable project key) and sends events to us.i.posthog.com.
Local backend health checks info out/main/index.js:5648
out/main/index.js:5648,7187,7532,7778: fetches to http://127.0.0.1:1111/health — the app's own local daemon, not remote egress.
macOS keychain path reference info out/main/index.js:13658
out/main/index.js:13658 references login.keychain-db for session-cookie encryption — standard Electron safeStorage behavior, not credential harvesting.

Lab evidence

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