Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of local-operator-ui

[email protected]

clean   confidence 60%   action allow   analyzed 2026-09-24 21:13 UTC by yolo in 30 tool calls, with lab detonation

Summary

Install hook node ./bin/postinstall.js downloads the Electron 44.3.0 runtime from GitHub (electron's own installer) and repairs the chrome-sandbox setuid bit on Linux. The CREDENTIAL_NAME_PATTERNS array in out/main/index.js is used only by the DownloadArmer to flag incoming browser downloads that match credential file names — it does not scan the filesystem. PostHog analytics use a public project key (phc_…). Lab was offline so the Electron download path was not exercised; confidence lowered accordingly.

Intent

A locally-run Electron desktop app for AI agent assistants that executes Python code on the user's device. The postinstall hook fetches the pinned Electron runtime from GitHub and, on Linux, restores the chrome-sandbox setuid bit — both standard for globally-installed Electron apps.

Findings

Electron runtime fetch at install time info bin/postinstall.js:54
bin/postinstall.js calls ensureElectronDist() which delegates to the electron package's installer to download node_modules/electron/dist from GitHub. Idempotent and cache-backed.
Chrome-sandbox setuid repair on Linux info bin/postinstall.js:66-90
bin/postinstall.js repairs root:root 4755 on node_modules/electron/dist/chrome-sandbox via an O_NOFOLLOW fd to prevent symlink abuse. Linux-only; silently skipped on macOS/Windows.
CREDENTIAL_NAME_PATTERNS is download-safety, not harvester info out/main/index.js:14925
The glob-pattern array at out/main/index.js:14925 is compiled to regexes and consumed only by DownloadArmer to set a notification banner when a browser download matches a credential filename. No filesystem walk, no exfiltration.
PostHog analytics with public key info out/main/index.js:5742
out/main/index.js:5734-5742, 28248-28249: posthog-node initialised with a public phc_ key, host us.i.posthog.com. Standard open-source telemetry.
Spawn Electron at runtime info bin/local-operator-ui.js:159
bin/local-operator-ui.js:159 spawns the Electron binary with the app path. Standard CLI launcher.

Lab evidence

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