Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

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

Summary

Install hook (scripts/postinstall.mjs) rebuilds node-pty and attempts tmux auto-install via brew/apt/dnf — standard for a terminal app. Electron main (.desktop-dist/main.js) uses clipboard.readImage() for user-facing clipboard operations and passes process.env only to spawned child processes, not to the network. Lab run: no unexpected network egress, no canary credential reads. Static pre-screen hits on "ransomware", "reverse_shell" are false positives from legitimate pty/terminal spawning code.

Intent

A web-based terminal application with Electron desktop support. The postinstall hook rebuilds node-pty native modules and auto-installs tmux via system package managers if absent. The Electron main process reads clipboard images (via standard Electron API with origin validation) and passes the full process environment only to its own child processes (the bundled local server).

Findings

Native module rebuild at install time info scripts/postinstall.mjs:51
scripts/postinstall.mjs:51-101 calls ensureNodePty() which tests node-pty and, on failure, runs npx node-gyp rebuild. This is expected for a terminal application but may fail in offline/dependency-stripped installs.
System package manager invocation low scripts/postinstall.mjs:105
scripts/postinstall.mjs:105-156 probes for tmux and, if absent, attempts installation via brew/port/nix (macOS) or apt-get/dnf/yum/apk/pacman/zypper (Linux), sometimes with sudo. Legitimate for a terminal app but may prompt the user for credentials.
Clipboard image read via Electron API info .desktop-dist/main.js:1874
.desktop-dist/main.js:1874 uses clipboard.readImage() to read the system clipboard image for user-facing operations. Origin-checked via IPC (line 1872). Standard Electron API, not exfiltration.
Environment passed to child processes only info .desktop-dist/main.js:1084
.desktop-dist/main.js:1084 spreads process.env into the environment object for spawned child processes (the local server runtime). Not sent over the network.
mDNS local-network probe info .desktop-dist/main.js:69
.desktop-dist/main.js:69 sends a UDP datagram to 224.0.0.251:5353 (Bonjour/mDNS) for local service discovery. Standard desktop behavior.

Lab evidence

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