Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

clean   confidence 75%   action allow   analyzed 2026-09-24 16:15 UTC by yolo in 10 tool calls, with lab detonation

Summary

Legitimate terminal application. The postinstall hook (scripts/postinstall.mjs) rebuilds node-pty and may install tmux via system package managers — expected for a PTY-based terminal. The Electron main process (.desktop-dist/main.js) passes ...process.env to child processes (line 1084) and reads clipboard images via clipboard.readImage() (line 1875) — both are standard terminal emulator features. No unexpected network egress or credential theft observed.

Intent

A complete web-based terminal application (self-hosted Terminal.app / WebSSH) with Electron desktop wrapper. The postinstall hook rebuilds node-pty and auto-installs tmux if missing — standard for terminal emulators. The Electron main process passes the user's environment to spawned shells and provides clipboard read access for rich terminal copy/paste, both expected behaviors.

code_execution

Findings

Postinstall rebuilds node-pty and installs tmux info
scripts/postinstall.mjs line 52-101: resolves node-pty, tests spawn, may run node-gyp rebuild. Lines 105-156: checks for tmux, may run brew/apt-get/dnf install — all with user consent via sudo prompts.
Environment passed to spawned shells info
.desktop-dist/main.js:1084: ...process.env is merged into the environment for tmux and node child processes. This is required for a terminal emulator to provide the user's shell environment.
Clipboard read for rich terminal copy info
.desktop-dist/main.js:1875: clipboard.readImage() is only callable from authorized Electron service windows (origin-validated on line 1873). Standard terminal functionality.
Local network discovery via mDNS info
.desktop-dist/main.js:69: UDP multicast to 224.0.0.251:5353 (mDNS/Bonjour) for local service discovery. Expected for a local terminal server.
Downloads Node.js runtime from nodejs.org info
scripts/prepare-desktop-runtime.mjs:129-143: curl https://nodejs.org/dist/... — official Node.js releases, expected for Electron desktop bundle preparation.

Lab evidence

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