Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

clean   confidence 85%   action allow   analyzed 2026-09-24 16:37 UTC by yolo in 14 tool calls, with lab detonation

Summary

Install hook (scripts/postinstall.mjs) rebuilds node-pty native binaries and attempts to install tmux via the system package manager — expected for a terminal application. The Electron main process (.desktop-dist/main.js) spawns child processes for terminal sessions, uses dgram mDNS broadcast (224.0.0.251:5353) for local service discovery, and reads clipboard images via Electron's clipboard API for paste-into-terminal. No credential exfiltration, no unexpected network egress.

Intent

A web-based terminal application with an Electron desktop wrapper. The postinstall hook rebuilds native modules (node-pty) and auto-installs tmux if missing — standard for a terminal emulator. The Electron main process manages local terminal sessions via tmux, uses mDNS for local network discovery, and reads the system clipboard for image-paste features. Nothing exfiltrates credentials or connects to unexpected external hosts.

Findings

Native module rebuild at install time info scripts/postinstall.mjs:52
scripts/postinstall.mjs:52-95 resolves node-pty's package.json and rebuilds prebuilds if the prebuilt binary is incompatible. This is standard node-gyp behavior for packages with native addons.
Auto-install tmux via system package manager low scripts/postinstall.mjs:105
scripts/postinstall.mjs:105-146 detects missing tmux and runs brew/port/nix/apt-get/dnf/yum/apk/pacman/zypper install — with sudo where needed. Harmless for a terminal application but unexpected for a general npm package.
mDNS local network discovery info .desktop-dist/main.js:59
.desktop-dist/main.js:59-69 creates a UDP socket and broadcasts 'Termdock' to 224.0.0.251:5353 on macOS for local service discovery (standard Bonjour/mDNS).
Clipboard image read via Electron API info .desktop-dist/main.js:1871
.desktop-dist/main.js:1871-1879 exposes clipboard.readImage() through an IPC handler gated by window origin validation. Used for paste-image-into-terminal feature, not exfiltration.
Process environment spread for child process configuration info .desktop-dist/main.js:1084
.desktop-dist/main.js:1084 spreads process.env into an object passed to spawn() as the child process environment. This is standard Electron practice, not credential exfiltration.

Lab evidence

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