Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

clean   confidence 75%   action allow   analyzed 2026-09-24 17:57 UTC by yolo in 13 tool calls, with lab detonation

Summary

postinstall rebuilds node-pty and installs tmux — standard native-module setup (crashes in lab only because dependencies are absent). Electron main reads clipboard for paste, uses mDNS for local service discovery, spawns shells. Token discovery reads env vars and .copilot/config.json only to fetch usage quotas from api.openai.com, api.anthropic.com, api.github.com — not exfiltration. Lab: 0 network, 0 canary reads, 0 external writes.

Intent

A complete web-based terminal application with a modern UI and optional Electron desktop wrapper. Installs native modules and tmux; desktop app provides local service discovery and clipboard paste.

Findings

Native module rebuild at install time info scripts/postinstall.mjs:51-101
scripts/postinstall.mjs deletes node-pty/prebuilds and runs node-gyp rebuild; fixes spawn-helper +x permissions. Legitimate for a terminal package depending on node-pty.
mDNS local service discovery info .desktop-dist/main.js:69
.desktop-dist/main.js:69 sends UDP to 224.0.0.251:5353 (Bonjour/mDNS) to discover local Termdock services on the LAN.
Clipboard image read for paste info .desktop-dist/main.js:1875
.desktop-dist/main.js:1875 calls clipboard.readImage() — used for image paste into terminal sessions.
API quota fetching (not exfiltration) info dist/server/quota/providers/codex.js:11-13
dist/server/quota/providers/*.js use discovered tokens as Authorization headers to fetch usage from official APIs (api.openai.com, api.anthropic.com, api.github.com, api.x.ai, api.kimi.com).
Self-signed local TLS certificate info .desktop-dist/main.js:41
.desktop-dist/main.js:41 writes a local TLS cert to ~/.termdock/certs/termdock-local.pem for the local HTTPS service.

Lab evidence

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