Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

clean   confidence 92%   action allow   analyzed 2026-09-24 22:58 UTC by yolo in 19 tool calls, with lab detonation

Summary

The postinstall hook (scripts/postinstall.mjs) tests node-pty and, if incompatible, runs node-gyp rebuild; it also auto-installs tmux via brew/apt-get/dnf/pacman/etc. and writes a boot-check marker to ~/.termdock/. The Electron main (.desktop-dist/main.js) spawns child processes and reads the system clipboard via standard Electron APIs; the UDP multicast to 224.0.0.251:5353 is a macOS local-network permission trigger. The static pre-screen capability hits on client JS bundles are false positives from regex matching standard library code.

Intent

A web-based terminal application (xterm-based) with Electron desktop bundle. The postinstall hook rebuilds the node-pty native module if needed and auto-installs tmux via the system package manager — standard for a terminal emulator. The Electron main process uses standard desktop APIs (clipboard, dgram multicast for local-network permission on macOS, child_process for runtime management). No credential theft, no unexpected network egress, no obfuscated payloads.

Findings

Native module rebuild on postinstall info
scripts/postinstall.mjs:52-101 — Resolves node-pty, tests spawn; if failing, deletes prebuilds and runs npx node-gyp rebuild.
Auto-install tmux via system package manager info
scripts/postinstall.mjs:105-156 — Detects missing tmux, tries brew/port/nix (macOS) or apt-get/dnf/yum/apk/pacman/zypper (Linux), using sudo when available.
Boot-check marker written to user home info
scripts/postinstall.mjs:160-171 — Writes ~/.termdock/.boot-check-ok with node-pty and tmux status when both pass.
Electron clipboard read (standard API) info
.desktop-dist/main.js:1874 — clipboard.readImage() called via IPC handler desktop:read-clipboard-image, origin-validated to service windows.
macOS local-network permission trigger info
.desktop-dist/main.js:59-69 — UDP multicast send to 224.0.0.251:5353 on macOS to trigger firewall permission dialog.
Child process spawning for runtime management info
.desktop-dist/main.js:7 — execFile/spawn used for desktop runtime lifecycle; env includes ...process.env (standard, not exfiltration).
Static pre-screen false positives on client bundles info
Multiple dist/client/assets/*.js flagged for ransomware, crypto_wallet, credential_harvest — these are minified React/Vite bundles containing standard library patterns; no actionable malicious code found.

Lab evidence

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