Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of termdock

[email protected]

clean   confidence 85%   action allow   analyzed 2026-09-24 19:38 UTC by yolo in 18 tool calls, with lab detonation

Summary

Postinstall rebuilds node-pty and attempts to install tmux via system package managers — standard for a terminal product. The Electron main process spawns shells via node-pty (the product's core feature), does local mDNS discovery on 224.0.0.251:5353, and passes process.env to child processes (standard Electron child-process behavior). The lab recorded 0 network connections and 0 files written outside the package.

Intent

A web-based terminal application with Electron desktop packaging. Installs native modules (node-pty), auto-installs tmux, and bundles a runtime for the desktop app.

Findings

node-pty native module rebuild at install time info
scripts/postinstall.mjs:51-101 — resolves node-pty path and runs node-gyp rebuild if the prebuilt binary fails a spawn test. Expected for a terminal package.
System package manager invocation (tmux auto-install) info
scripts/postinstall.mjs:105-145 — tries brew/port/nix on macOS and apt-get/dnf/yum/apk/pacman/zypper on Linux to install tmux. User-visible, requires sudo on some distros.
Local mDNS service discovery socket info
.desktop-dist/main.js:59-69 — creates a UDP4 socket and sends a datagram to 224.0.0.251:5353 (standard macOS Bonjour/mDNS multicast).
process.env spread to child processes info
.desktop-dist/main.js:1084 — { ...process.env, LANG, TERMDOCK_DESKTOP, … } is passed as env to spawned runtime processes. Standard Electron practice, not credential exfiltration.
Shell spawning via node-pty info
dist/server/routes/terminal.js:3761,3836 — spawns /bin/sh or /bin/bash through node-pty. This is the terminal application's primary function, not a reverse shell.

Lab evidence

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