Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

clean   confidence 72%   action allow   analyzed 2026-09-24 15:10 UTC by yolo in 24 tool calls, with lab detonation

Summary

The install hook scripts (postinstall.mjs, prepare-desktop-runtime.mjs) only rebuild native modules (node-pty via node-gyp), fix binary permissions, and optionally install tmux via the system package manager. The Electron main process (.desktop-dist/main.js) performs local network service discovery (mDNS on 224.0.0.251:5353) and health-checks a local HTTPS service with a custom CA — both consistent with a desktop terminal app. No credential exfiltration, no reverse shell, no download-and-execute. Lab run crashed on missing node-pty (expected offline).

Intent

A web-based terminal application with an Electron desktop wrapper. The postinstall hook rebuilds the node-pty native module and auto-installs tmux if missing — standard setup for a terminal-emulation package.

Findings

Native module rebuild at install time info
scripts/postinstall.mjs:52-95 resolves node-pty and runs node-gyp rebuild if the prebuilt binary is incompatible. This is standard for packages using native addons.
Auto-install tmux via system package manager info
scripts/postinstall.mjs:105-145 detects the system package manager (brew, apt, dnf, pacman, etc.) and runs `sudo <mgr> install tmux` if tmux is missing. Legitimate for a terminal application.
Boot-check marker written to ~/.termdock/ info
scripts/postinstall.mjs:160-171 writes a small JSON marker file. Not persistence; just a local cache.
mDNS multicast UDP packet on startup info
.desktop-dist/main.js:59-69 creates a UDP socket and sends 'Termdock' to 224.0.0.251:5353 — standard DNS-SD/mDNS for local service discovery.
HTTPS health-check with custom CA info
.desktop-dist/main.js:756-759 uses https.get with agent:false and a custom certificateAuthority — consistent with checking a local mkcert-secured service.
Full process.env spread into child process environment info
.desktop-dist/main.js:1084 spreads process.env into the environment passed to spawned terminal children. This is normal for a terminal emulator; not exfiltration.
clipboard.readImage() in Electron main process info
.desktop-dist/main.js:1874 reads the system clipboard image. Desktop UX feature, not exfiltration (data stays in-process).

Lab evidence

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