Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

clean   confidence 65%   action allow   analyzed 2026-09-22 20:48 UTC by yolo in 21 tool calls, with lab detonation

Summary

The postinstall hook (scripts/postinstall.mjs) rebuilds node-pty and auto-installs tmux via the system package manager — standard native-module setup. The Electron main process (.desktop-dist/main.js) uses clipboard.readImage() for paste support and communicates on localhost — both expected for a desktop terminal app. The server-side agent installers (dist/server/agent/installers.js) write idempotent, marker-prefixed hook configs into ~/.claude/settings.json, ~/.codex/hooks.json, ~/.copilot/hooks/termdock.json, etc. — agent_config_tamper capability, but only to its own owned files, never overwriting user content. No credential exfiltration, no unexpected network egress, no download-and-execute. Lab run: postinstall failed (node-pty not present — expected in throwaway); zero network connections.

Intent

A web-based terminal application with an Electron desktop wrapper. Installs native modules (node-pty), auto-installs tmux if missing, and can optionally register hooks into other AI coding agents (Claude Code, Codex, Copilot, Grok, etc.) for session-status collaboration. Nothing hidden beyond its stated purpose.

code_execution agent_config_tamper

Findings

Native module rebuild at install time info
scripts/postinstall.mjs:52-96 resolves node-pty and rebuilds prebuilds if the binary is incompatible with the running Node version.
Auto-install tmux via system package manager info
scripts/postinstall.mjs:105-153 detects missing tmux and installs it via brew/port/nix (macOS) or apt-get/dnf/yum/apk/pacman/zypper (Linux), optionally with sudo.
Electron clipboard read for paste support info
.desktop-dist/main.js:1874 calls clipboard.readImage() — legitimate for a desktop terminal app to paste image content.
Agent hook installation (idempotent, owned files only) low
dist/server/agent/installers.js:54-63 writes termdock.json/js markers 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. Only appends its own marker-carrying entries; never touches user-authored hooks.
Process env spread to child processes (not exfiltration) info
.desktop-dist/main.js:1084 spreads ...process.env into an object passed to spawned terminal processes — standard practice, not network egress.

Lab evidence

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