Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

clean   confidence 85%   action allow   analyzed 2026-09-24 17:56 UTC by yolo in 12 tool calls, with lab detonation

Summary

Postinstall runs node scripts/postinstall.mjs which rebuilds node-pty (node-gyp) and auto-installs tmux (brew/apt-get/dnf/...). No network connections, no credential reads. Static pre-screen capability hits are false positives from Electron desktop features (clipboard, dgram mDNS, child_process spawn) and minified React bundles.

Intent

A web-based terminal application with desktop (Electron) support. The postinstall hook rebuilds the native node-pty module and auto-installs tmux via system package managers — standard behavior for a terminal app with native dependencies. No network egress or credential access detected.

Findings

Native module rebuild on install info
scripts/postinstall.mjs:51-101 calls node-gyp rebuild on node-pty prebuilds if the native binary is incompatible. Downloads compilation toolchain if needed. Standard for packages with native addons.
System package manager auto-install info
scripts/postinstall.mjs:105-156 tries brew, macports, nix, apt-get, dnf, yum, apk, pacman, zypper to install tmux if not found. Requires sudo for some. Legitimate for a terminal emulator that depends on tmux.
Boot-check marker written to ~/.termdock/ info
scripts/postinstall.mjs:160-171 writes ~/.termdock/.boot-check-ok on success. Self-contained app state directory, not a credential path.
Electron clipboard API (false positive for credential_access) info
.desktop-dist/main.js:1874 uses clipboard.readImage() — an Electron API for desktop copy-paste support in terminal sessions, not credential theft.
Process env spread to child processes (false positive for credential_harvest) info
.desktop-dist/main.js:1084 spreads ...process.env into the environment of spawned terminal processes. Normal for a terminal emulator to inherit the user's environment.

Lab evidence

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