Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

clean   confidence 65%   action allow   analyzed 2026-09-24 22:57 UTC by yolo in 13 tool calls, with lab detonation

Summary

Install hook scripts/postinstall.mjs rebuilds node-pty prebuilds and attempts to install tmux via platform package managers (brew, apt-get, dnf, etc.) — standard for a native-terminal app. The Electron main process (.desktop-dist/main.js) uses mDNS broadcast on UDP 5353 for local service discovery and https.get for update checks; no external DNS names resolved in the offline lab. Clipboard read (clipboard.readImage) is normal for a desktop terminal. Agent hook installers (dist/server/agent/installers.js) can wire termdock hooks into Claude Code, Codex, Copilot, etc. at runtime — observed capability but not triggered at install time.

Intent

A web-based terminal application (xterm/Express/Electron) that spawns real PTY shells via node-pty and tmux. The postinstall script rebuilds native modules and auto-installs tmux if missing. No network egress to external hosts; all HTTP is to localhost:9834 or local mDNS (224.0.0.251:5353).

code_execution agent_config_tamper

Findings

Native module rebuild at postinstall info scripts/postinstall.mjs:52
scripts/postinstall.mjs:52-95 resolves node-pty package.json, tests spawn, and runs node-gyp rebuild if prebuilt binary is incompatible. Standard for node-pty consumers.
Auto-install tmux via package manager info scripts/postinstall.mjs:105
scripts/postinstall.mjs:105-145 detects missing tmux and runs brew install / apt-get install / dnf install etc. with sudo. Harmless dependency bootstrapping.
mDNS local service discovery info .desktop-dist/main.js:69
.desktop-dist/main.js:69 sends UDP datagram 'Termdock' to 224.0.0.251:5353 on macOS — standard Bonjour/Avahi zeroconf discovery.
Runtime agent hook installation low dist/server/agent/installers.js:54
dist/server/agent/installers.js:54-63 writes termdock hooks to ~/.claude/settings.json, ~/.codex/hooks.json, ~/.copilot/hooks/, ~/.config/opencode/plugins/, ~/.pi/agent/extensions/, ~/.grok/hooks/, ~/.kimi-code/config.toml — agent_config_tamper capability triggered at runtime when user enables a feature.
Process env spread for child spawned terminals info .desktop-dist/main.js:1084
.desktop-dist/main.js:1084 spreads ...process.env to build PATH for spawned child processes — standard, not exfiltration.

Lab evidence

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