Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

clean   confidence 65%   action allow   analyzed 2026-09-24 23:00 UTC by yolo in 12 tool calls, with lab detonation

Summary

Legitimate terminal application. The postinstall hook (scripts/postinstall.mjs) rebuilds node-pty native code and attempts to install tmux — expected to crash in an isolated lab without dependencies. The desktop entry (.desktop-dist/main.js) uses Electron clipboard and spawns child processes for the local service, which is normal. Agent integration writes small hook markers into ~/.claude/settings.json, ~/.codex/hooks.json, etc. — idempotent, ownership-guarded, for status display only. No unexpected network egress, no credential exfiltration, no persistence beyond the package.

Intent

A web-based terminal application with Electron desktop support, tmux multiplexing, and integration hooks for AI coding agents (Claude Code, Codex, Copilot, etc.) to display status in a floating pane. The install hook rebuilds node-pty and auto-installs tmux; it crashes in the isolated lab because node-pty is not a declared dependency and is absent.

code_execution agent_config_tamper

Findings

Install hook rebuilds node-pty and installs tmux info scripts/postinstall.mjs:1-178
scripts/postinstall.mjs:51-156 — resolves node-pty from node_modules, tests spawn, rebuilds if incompatible, auto-installs tmux via brew/apt/dnf/nix. Crashes in isolated lab because node-pty is not installed.
Agent hook installers write into CLI agent configs low dist/server/agent/installers.js:54-63
dist/server/agent/installers.js:54-63,176- — writes ownership-guarded hook 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. Idempotent.
Desktop app spawns local server process info .desktop-dist/main.js:1196-1214
.desktop-dist/main.js:1196-1214 — spawns the Termdock server as a detached child process with logged stdio. Normal for a desktop wrapper.
Origin discovery via mDNS/SSDP info .desktop-dist/main.js:59-69
.desktop-dist/main.js:59-69 — sends a UDP datagram to 224.0.0.251:5353 on macOS to discover local services. Legitimate local-network service discovery.
Clipboard API used by Electron app info .desktop-dist/main.js:1-6
.desktop-dist/main.js — imports Electron clipboard, reads/writes images and text. Normal for a desktop terminal app.
Long base64-like blobs in client assets info dist/client/assets/App-CmlGDKDj.js:61
dist/client/assets/App-CmlGDKDj.js:61 — WebAssembly base64-encoded blobs for the xterm renderer. Standard bundler output.

Lab evidence

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