Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

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

Summary

The postinstall hook (scripts/postinstall.mjs) rebuilds node-pty native binaries if needed and auto-installs tmux via system package managers — standard for a terminal app. The Electron main process (.desktop-dist/main.js) sends a single mDNS probe (UDP 224.0.0.251:5353) on macOS for local-network permission and reads the system clipboard via the Electron clipboard API. The lab detonation produced zero network connections, zero canary reads, and zero files written outside the package. All high-flagged capabilities (code_execution, reverse_shell, credential_harvest) are false positives from terminal-process spawning and bundled client assets.

Intent

A complete web-based terminal application (xterm + Electron desktop + Express server) with tmux integration, agent collaboration, and file/diff browsing.

Findings

Native module rebuild at install info
scripts/postinstall.mjs:51-101 — requires node-pty, tests spawn, and runs node-gyp rebuild if prebuilds are incompatible. Legitimate for a terminal package.
Auto-install tmux via system package manager info
scripts/postinstall.mjs:105-145 — Detects brew/apt-get/dnf/yum/pacman/zypper and runs install. Harmless if it fails; requires sudo on some managers.
Boot-check marker written to ~/.termdock/ info
scripts/postinstall.mjs:160-171 — Writes a small JSON file recording PTX/tmux readiness. No credential or secret access.
mDNS probe on macOS for local-network permission info
.desktop-dist/main.js:69 — UDP datagram to 224.0.0.251:5353 triggers the macOS firewall prompt. Expected for desktop apps using local sockets.
Clipboard image read via Electron API info
.desktop-dist/main.js:1874 — clipboard.readImage() exposed over IPC to a service web-frame origin. Normal for a terminal with copy-paste.
Downloads Node.js from nodejs.org (desktop packaging only) info
scripts/prepare-desktop-runtime.mjs:129 — curl from https://nodejs.org/dist/… This script is part of the desktop build pipeline, not run during npm install.

Lab evidence

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