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:48 UTC by yolo in 11 tool calls, with lab detonation

Summary

Install hook (bin/postinstall.js) downloads Electron from the official GitHub releases and repairs the chrome-sandbox setuid bit on Linux (issue #91). Runtime communicates with localhost backend and sends telemetry to us.i.posthog.com (public project key phc_u6n9doAtCUbpFbydIqzupCxqCaGUO4SiHMEU5ESvQRL). No credential theft, no persistence outside the package, no unexpected egress.

Intent

Local Operator UI is an Electron chat interface for running Python code locally. The postinstall hook downloads the official Electron runtime and restores the chrome-sandbox setuid bit on Linux — both required for the app to launch. The app reports analytics to PostHog (us.i.posthog.com) using a public project key.

Findings

Electron runtime download at install time info bin/postinstall.js:54
bin/postinstall.js calls ensureElectronDist() which fetches the Electron binary from the official GitHub releases (electron's own installer). This is needed because Electron 42+ has no postinstall that downloads dist/.
chrome-sandbox setuid repair on Linux info bin/postinstall.js:90
bin/postinstall.js repairs root:root 4755 on node_modules/electron/dist/chrome-sandbox using O_NOFOLLOW to prevent symlink attacks. This fixes issue #91 where npm strips setuid bits.
PostHog analytics (public project key) info out/main/index.js:20899
out/main/index.js:20899-20900 initializes PostHog with public project key phc_u6n9doAtCUbpFbydIqzupCxqCaGUO4SiHMEU5ESvQRL to us.i.posthog.com. This is a known analytics service; the key is publishable by design.
LOCAL_OPERATOR_DESKTOP_TOKEN read from environment info out/main/index.js:6237
out/main/index.js:6237 reads its own app's token from process.env.LOCAL_OPERATOR_DESKTOP_TOKEN. This is the application's own auth token, not another service's credential.

Lab evidence

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