Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

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

Summary

Legitimate terminal application. The postinstall hook rebuilds node-pty and auto-installs tmux via system package managers. The Electron main process uses mDNS multicast (224.0.0.251:5353) for local service discovery, spawns child processes for the web server and federation relay, and reads the clipboard only through origin-validated IPC handlers (a terminal feature). No unexpected network egress, no credential exfiltration, no download-and-execute.

Intent

A self-hosted web-based terminal application (similar to a local VS Code / Jupyter terminal). The Electron desktop client manages a local web service, discovers it via mDNS, and spawns PTY shells via node-pty. The postinstall hook rebuilds node-pty and optionally installs tmux — standard for a terminal multiplexer package.

Findings

Postinstall rebuilds native module node-pty info
scripts/postinstall.mjs:52-100 resolves node-pty/package.json, tests spawn, and runs npx node-gyp rebuild if the prebuilt binary is incompatible.
Auto-installs tmux via system package manager info
scripts/postinstall.mjs:105-155 detects macOS (brew/port/nix) or Linux (apt-get/dnf/yum/apk/pacman/zypper) and runs the appropriate install command (with sudo when needed).
mDNS local-network discovery info
.desktop-dist/main.js:59-69 creates a UDP4 socket and sends a datagram to 224.0.0.251:5353 on macOS — standard DNS-SD/mDNS for local service discovery.
Clipboard read via origin-validated IPC info
.desktop-dist/main.js:1870-1878 reads clipboard.readImage() only when the calling BrowserWindow has a registered service origin — a terminal paste feature, not exfiltration.
Spawns child processes for local service info
.desktop-dist/main.js:973,1200 spawn the bundled Node.js CLI as a local web server — expected for a self-hosted terminal app.

Lab evidence

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