Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

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

Summary

The postinstall hook (scripts/postinstall.mjs) rebuilds the node-pty native module and attempts to install tmux via platform package managers — expected for a terminal app. The Electron main process uses clipboard.readImage() and screen APIs (desktop features). Agent hook installers modify ~/.claude/settings.json, ~/.codex/hooks.json, etc. with ownership-guarded, marker-carrying entries (agent_config_tamper, but intentional). No credential exfiltration, no unexpected network egress, no system persistence. Lab run crashed on missing node-pty (expected offline).

Intent

A web-based terminal application with Electron desktop support, tmux integration, and AI coding agent hook installation. The install hook rebuilds node-pty and auto-installs tmux; nothing is exfiltrated.

code_execution clipboard_screen agent_config_tamper

Findings

postinstall rebuilds node-pty and installs tmux info
scripts/postinstall.mjs:52-101 calls node-gyp rebuild on node-pty prebuilds; scripts/postinstall.mjs:105-145 installs tmux via brew/apt-get/dnf/yum/apk/pacman/zypper.
Electron clipboard and screen access info
.desktop-dist/main.js:1874 clipboard.readImage(); .desktop-dist/main.js:300 screen.getPrimaryDisplay() — desktop app features.
Agent config hook installation low
dist/server/agent/installers.js:38-64 writes owned hooks 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. Entries are ownership-guarded and idempotent.
mDNS local network probe info
.desktop-dist/main.js:69 sends UDP datagram to 224.0.0.251:5353 — standard Bonjour/mDNS local discovery.
Process env passed to child processes info
.desktop-dist/main.js:1084 spreads ...process.env into child process env for the bundled desktop runtime. Not exfiltration; env is passed TO spawned processes.
Quota API calls to OpenAI info
dist/server/quota/providers/codex.js:11-13 contacts chatgpt.com/backend-api/wham/usage and api.openai.com/v1/organization/usage — legitimate API endpoints for usage quota display.

Lab evidence

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