Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

clean   confidence 85%   action allow   analyzed 2026-09-24 21:17 UTC by yolo in 20 tool calls, with lab detonation

Summary

Clean. The postinstall (scripts/postinstall.mjs) rebuilds node-pty and auto-installs tmux — no network egress. The desktop runtime script downloads Node.js from the official nodejs.org release URL. The Electron main process reads the clipboard with origin checks (standard Electron API). The agent hook installer writes into ~/.claude, ~/.codex, ~/.copilot, etc. — intentional, not stealthy.

Intent

A web-based terminal application (xterm.js + tmux + Express) with an Electron desktop wrapper. The postinstall rebuilds native modules and installs tmux; the desktop runtime bundles Node.js from nodejs.org; the server installs hooks into AI agent config dirs (~/.claude, ~/.codex, etc.).

code_execution agent_config_tamper

Findings

Native module rebuild at install time info scripts/postinstall.mjs:51-54
scripts/postinstall.mjs:51-54 tries to require node-pty; if it fails (offline lab), the hook crashes. On a real machine with dependencies installed it rebuilds the native module in place.
System package manager invocation for tmux info scripts/postinstall.mjs:105-145
scripts/postinstall.mjs:105-145 detects missing tmux and attempts to install via brew/port/nix/apt/dnf/yum/apk/pacman/zypper, possibly with sudo.
Official Node.js download for desktop runtime info scripts/prepare-desktop-runtime.mjs:129
scripts/prepare-desktop-runtime.mjs:129 constructs https://nodejs.org/dist/${version}/${archive} and downloads it with curl to bundle a self-contained runtime.
Agent config hook installation low dist/server/agent/installers.js:54-63
dist/server/agent/installers.js:54-63 resolves paths to ~/.claude/settings.json, ~/.codex/hooks.json, ~/.copilot/hooks/termdock.json, ~/.config/opencode/plugins/termdock.js, etc. and writes hooks there.
Clipboard image read (origin-checked) info .desktop-dist/main.js:1870-1878
.desktop-dist/main.js:1870-1878 reads clipboard.readImage() only if the IPC caller originates from a known service window.

Lab evidence

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