Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

clean   confidence 60%   action allow   analyzed 2026-09-24 16:12 UTC by yolo in 14 tool calls, with lab detonation

Summary

Install hook scripts/postinstall.mjs rebuilds node-pty and attempts to auto-install tmux via system package managers — behavior consistent with the package's stated purpose as a terminal application. The Electron main process (.desktop-dist/main.js) uses child_process, dgram (mDNS), and clipboard APIs, all expected for a web-based terminal. The lab hook crashed on a missing node-pty module (expected in the isolated environment); no network egress, credential reads, or unexpected files were observed.

Intent

A web-based terminal application that rebuilds its native PTY module and auto-installs tmux at install time. The Electron desktop main process uses standard desktop APIs (clipboard, notifications, child_process) expected for a terminal app.

code_execution

Findings

Native module rebuild at install time info scripts/postinstall.mjs:52
scripts/postinstall.mjs:52-101 resolves node-pty and runs node-gyp rebuild if the prebuilt binary is incompatible. This is standard for terminal packages using node-pty.
Auto-install tmux via system package manager info scripts/postinstall.mjs:105
scripts/postinstall.mjs:105-145 detects missing tmux and attempts installation via brew, apt-get, dnf, yum, apk, pacman, or zypper. Aggressive but consistent with terminal application needs.
mDNS service discovery info .desktop-dist/main.js:59
.desktop-dist/main.js:59-69 sends a UDP datagram to 224.0.0.251:5353 for local network service discovery (Bonjour/mDNS). Expected for a desktop terminal app.
Clipboard image read info .desktop-dist/main.js:1875
.desktop-dist/main.js:1875 calls clipboard.readImage() — standard for terminal clipboard integration.
Child process spawning info .desktop-dist/main.js:973
.desktop-dist/main.js:7,973,1200 uses spawn/execFile for terminal sessions and runtime processes — inherent to a terminal application.
WebAssembly blob in client asset info dist/client/assets/App-BqE8LI-u.js:61
dist/client/assets/App-BqE8LI-u.js:61 contains a base64-encoded WebAssembly module (AGFzbQE... is the wasm magic number). Minified client bundle, not suspicious.

Lab evidence

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