Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

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

Summary

Install hook scripts/postinstall.mjs rebuilds node-pty and auto-installs tmux — standard setup for a terminal app, failed in the isolated lab only because node-pty isn't pre-installed. Desktop entry .desktop-dist/main.js passes process.env to spawned child processes (not exfiltration). Server reads API tokens from env for quota-checking against known providers (api.openai.com, chatgpt.com). Agent hook installers write marker-carrying entries into ~/.claude/settings.json, ~/.codex/hooks.json, etc. for status telemetry — legitimate integration, not hijacking. No unexpected network egress, no credential exfiltration, no persistence outside the package.

Intent

A web-based terminal application with Electron desktop support, native PTY shell spawning, tmux integration, and federated collaboration between terminals.

code_execution credential_access network_egress agent_config_tamper

Findings

Native module rebuild at install time info scripts/postinstall.mjs:95
scripts/postinstall.mjs calls node-gyp rebuild on node-pty prebuilds when the prebuilt binary is incompatible. This is expected for a terminal package but crashed in the isolated lab (node-pty not installed).
System package manager invocation info scripts/postinstall.mjs:114
scripts/postinstall.mjs runs brew install tmux, apt-get install -y tmux, etc. on macOS/Linux when tmux is missing. Local-only, no network exfiltration.
Environment passed to child processes info .desktop-dist/main.js:1084
.desktop-dist/main.js:1084 spreads ...process.env into the env of spawned child processes. This is standard Electron practice for forwarding the host environment — not credential exfiltration.
DNS-SD multicast for local service discovery info .desktop-dist/main.js:69
.desktop-dist/main.js:69 sends a UDP packet to 224.0.0.251:5353 (mDNS/DNS-SD) on macOS to trigger local-network permission. Local-only broadcast.
API token discovery for quota tracking low dist/server/quota/tokenDiscovery.js:241
dist/server/quota/tokenDiscovery.js reads GITHUB_TOKEN, GEMINI_API_KEY, GROK_API_KEY from process.env and ~/.config to check usage quotas with the respective APIs.
Agent hook installer writes to AI agent config files low dist/server/agent/installers.js:54-63
dist/server/agent/installers.js writes marker-carrying hook entries into ~/.claude/settings.json, ~/.codex/hooks.json, ~/.copilot/hooks/termdock.json, ~/.config/opencode/plugins/termdock.js, etc. Entries are tagged with agent-hook <slug> and are idempotent.
Clipboard read via Electron API info .desktop-dist/main.js:1874
.desktop-dist/main.js uses Electron clipboard API for terminal copy/paste — standard for a desktop terminal app.

Lab evidence

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