Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

clean   confidence 88%   action allow   analyzed 2026-09-24 21:34 UTC by yolo in 23 tool calls, with lab detonation

Summary

Clean. The postinstall hook (scripts/postinstall.mjs) rebuilds node-pty and auto-installs tmux — standard for a terminal app. The Electron main process (.desktop-dist/main.js) reads clipboard images only from origin-gated service windows and performs LAN multicast DNS discovery. Server agent hooks (dist/server/agent/installers.js) write entries into ~/.claude/settings.json, ~/.codex/hooks.json, etc. — explicit, documented integration points. Lab run produced 0 network connections.

Intent

A web-based terminal application with Electron desktop support, tmux integration, and peer-to-peer collaboration. The postinstall hook rebuilds native modules and optionally installs tmux; the desktop runtime script bundles a portable Node.js. Server-side hooks install into AI-agent config files (Claude Code, Codex, Copilot, etc.) to relay session status — a user-facing feature, not covert.

Findings

Postinstall rebuilds node-pty and installs tmux info scripts/postinstall.mjs:52-171
scripts/postinstall.mjs runs npx node-gyp rebuild on node-pty and tries brew/apt-get/dnf to install tmux if missing. Writes ~/.termdock/.boot-check-ok marker.
Electron main passes full process.env to spawned children info .desktop-dist/main.js:1084
.desktop-dist/main.js:1084 constructs child environment as { ...process.env, LANG, PATH, TERMDOCK_DESKTOP: '1', … }. Standard for a terminal emulator; env var TERMDOCK=1 gates the agent-hook emitter.
Clipboard image read origin-gated info .desktop-dist/main.js:1870-1878
.desktop-dist/main.js:1870-1878 exposes clipboard.readImage() via IPC only to windows whose origin matches windowServiceOrigins. Not a covert capture.
Agent config hook installer info dist/server/agent/installers.js:38-64,243-286
dist/server/agent/installers.js writes termdock-owned hook entries into ~/.claude/settings.json, ~/.codex/hooks.json, ~/.copilot/hooks/termdock.json, ~/.config/opencode/plugins/termdock.js, ~/.pi/agent/extensions/termdock/index.ts, ~/.grok/hooks/termdock.json, ~/.kimi-code/config.toml. All gated on TERMDOCK env; only touch their own marker-carrying entries.
LAN multicast DNS discovery info .desktop-dist/main.js:59-69
.desktop-dist/main.js:59 sends a single UDP datagram to 224.0.0.251:5353 (mDNS) on macOS to trigger a local-network permission prompt. No external network.
Desktop runtime bundles Node.js from nodejs.org info scripts/prepare-desktop-runtime.mjs:129-216
scripts/prepare-desktop-runtime.mjs downloads node tarball from https://nodejs.org/dist/ and bundles system binaries (tmux, rg, git, mkcert) for the Electron app. Expected for a portable desktop runtime.

Lab evidence

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