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

The install hook (bin/postinstall.js) only downloads the Electron runtime and restores the chrome-sandbox setuid on Linux — both benign, expected duties for a global Electron install. The main process (out/main/index.js) initializes a PostHog analytics client and reads LOCAL_OPERATOR_DESKTOP_TOKEN from the environment for its own auth flow; it does not exfiltrate credentials. The CREDENTIAL_NAME_PATTERNS array at line 14746 is a download-safety blocklist (prevents saving files whose names look like keys), not a harvest list. Lab detonation produced zero network connections and zero canary reads.

Intent

Local Operator is a legitimate Electron desktop app that provides a chat interface for running Python code locally or via cloud LLMs. The postinstall hook fetches the Electron runtime and repairs the Linux chrome-sandbox setuid bit — standard for global Electron installs. The bundled main process uses PostHog for analytics and connects to api.radienthq.com, login.microsoftonline.com, and accounts.google.com for telemetry and OAuth, all documented in the app's own CSP.

Findings

Postinstall fetches Electron runtime, repairs chrome-sandbox info bin/postinstall.js:1-143
bin/postinstall.js calls ensureElectronDist() to download Electron's dist/ (offline, nothing connects) and, on Linux, chowns/chmods chrome-sandbox to root:root 4755 via an O_NOFOLLOW fd to prevent TOCTOU symlink attacks. Exit 0 always.
PostHog analytics client initialized at runtime info out/main/index.js:7;out/main/index.js:28069
out/main/index.js:7 instantiates posthog-node; out/main/index.js:28069 creates PostHog client with VITE_PUBLIC_POSTHOG_KEY, sending events to us.i.posthog.com. Documented in package.json dependencies.
CREDENTIAL_NAME_PATTERNS is a download blocklist, not a harvest list info out/main/index.js:14746
out/main/index.js:14746 defines patterns like id_rsa*, *.pem, .npmrc, .env — used in executableName() to reject downloading files whose names match credential filenames. This is a safety feature, not credential access.
LOCAL_OPERATOR_DESKTOP_TOKEN read from env for app auth info out/main/index.js:7085
out/main/index.js:7085 reads process.env.LOCAL_OPERATOR_DESKTOP_TOKEN for the app's own desktop-daemon auth. This is a single app-scoped token, not a credential store dump.
False positive: HTML comment misclassified as prompt injection info out/renderer/index.html:14
out/renderer/index.html:14 contains a technical CSP comment explaining why blob: is needed for transcript images. Not an instruction to hide actions from users.
False positive: README heading misclassified as system impersonation info README.md:8
README.md:8 is an <h1> heading 'Local Operator: AI Agent Assistants On Your Device'. Not impersonating a system message.

Lab evidence

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