Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

clean   confidence 75%   action allow   analyzed 2026-09-24 16:13 UTC by yolo in 17 tool calls, with lab detonation

Summary

Clean. Install hook rebuilds node-pty and installs tmux if missing — no network egress, no credential access. Desktop main process spawns the local server and uses Electron clipboard only from trusted IPC handlers. Client assets are minified React bundles (standard web app).

Intent

A web-based terminal application (tmux + xterm.js + Express). The postinstall hook ensures native modules and tmux are available; the desktop build downloads a Node.js runtime from nodejs.org for bundling.

Findings

postinstall rebuilds node-pty, installs tmux info scripts/postinstall.mjs:51-175
scripts/postinstall.mjs runs node-gyp rebuild on node-pty prebuilds and auto-installs tmux via brew/apt-get/dnf/pacman if missing. Writes a marker to ~/.termdock/.boot-check-ok.
Downloads Node.js runtime from nodejs.org (official) info scripts/prepare-desktop-runtime.mjs:129-143
scripts/prepare-desktop-runtime.mjs:129 downloads node-{version}-{platform}-{arch}.tar.gz from https://nodejs.org/dist/{version}/ for desktop bundling.
Electron clipboard.readImage() from trusted IPC info .desktop-dist/main.js:1871-1879
.desktop-dist/main.js:1871-1879 reads clipboard image via IPC handler origin-validated against windowServiceOrigins.
mDNS local network discovery info .desktop-dist/main.js:69
.desktop-dist/main.js:69 sends a UDP datagram to 224.0.0.251:5353 for local service discovery (Apple mDNS).

Lab evidence

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