Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

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

Summary

Install hook scripts/postinstall.mjs rebuilds node-pty and may auto-install tmux via the system package manager. The Electron main (.desktop-dist/main.js) reads clipboard images and sends a UDP multicast packet for local network service discovery. No network egress to external hosts, no canary credential reads, no files written outside the package observed in the lab. Static prescreen capability hits are mostly regex false positives on minified client assets (e.g., "ransomware" matching swiper gesture-lock code, "crypto_wallet" matching KaTeX, "reverse_shell" matching legitimate PTY spawn).

Intent

A web-based terminal application with Electron desktop support. The postinstall hook rebuilds the node-pty native module and auto-installs tmux if missing — standard for a terminal emulator. The Electron main process reads the system clipboard (for image copy-paste) and performs local mDNS service discovery — both expected for this class of software.

Findings

Postinstall rebuilds node-pty native module info scripts/postinstall.mjs:51
scripts/postinstall.mjs:51-101 — Resolves node-pty path, tests spawn, and if incompatible removes prebuilds and runs node-gyp rebuild. Benign for a terminal emulator.
Postinstall may auto-install tmux via system package manager info scripts/postinstall.mjs:105
scripts/postinstall.mjs:105-155 — Detects missing tmux and tries brew/port/nix (macOS) or apt-get/dnf/yum/apk/pacman/zypper (Linux), sometimes with sudo. Aggressive but expected for a terminal app.
Electron reads system clipboard image info .desktop-dist/main.js:1874
.desktop-dist/main.js:1870-1878 — IPC handler desktop:read-clipboard-image calls clipboard.readImage() and returns PNG buffer. Normal for a terminal that supports image paste.
UDP multicast for mDNS local service discovery info .desktop-dist/main.js:59
.desktop-dist/main.js:59-69 — Creates UDP4 socket and sends 'Termdock' to 224.0.0.251:5353 on macOS. Standard Bonjour/mDNS.
Spread of process.env into child process environment info .desktop-dist/main.js:1084
.desktop-dist/main.js:1084 — {...process.env} passed to child processes. Necessary for a terminal emulator; not exfiltrated.
HTTPS request with custom certificate authority info .desktop-dist/main.js:758
.desktop-dist/main.js:758-762 — https.get with agent:false and custom ca for certificate trust validation. Used for update checks and federation certificate validation.
Static prescreen false positive: 'ransomware' on swiper code info dist/client/assets/App-CZk_DziZ.js:69
dist/client/assets/App-CZk_DziZ.js:69 — Regex matched 'et.current.allowTouchMove=!ie.detail.locked' as 'file encryption'. Actually swiper gesture-lock.
Static prescreen false positive: 'crypto_wallet' on KaTeX info dist/client/assets/katex-DnlPpQZa.js
dist/client/assets/katex-DnlPpQZa.js — Regex matched KaTeX math rendering code as crypto wallet drain.
Static prescreen false positive: 'reverse_shell' on PTY spawn info dist/server/routes/terminal.js:311
dist/server/routes/terminal.js, dist/server/ptyHost.js — Regex matched legitimate pty.spawn() calls as reverse shell.

Lab evidence

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