Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

suspicious   confidence 55%   action isolate   analyzed 2026-09-24 17:56 UTC by yolo in 20 tool calls, with lab detonation

Summary

Install hook scripts/postinstall.mjs rebuilds node-pty and auto-installs tmux — benign. The Electron main process (.desktop-dist/main.js) reads clipboard images and performs local UDP multicast (mDNS) — standard desktop behavior. The server module dist/server/quota/tokenDiscovery.js reads OAuth tokens from ~/.claude/settings.json, ~/.codex/auth.json, ~/.kimi-code/credentials, and env vars for local quota checking. dist/server/agent/installers.js writes hooks into ~/.claude, ~/.codex, ~/.copilot, ~/.config/opencode, ~/.pi, ~/.grok, ~/.kimi-code — agent config tamper for bidirectional integration. No network egress to external hosts observed in the offline lab run.

Intent

A web-based terminal application with Electron desktop support that integrates with AI coding agents (Claude, Codex, Copilot, etc.). Reads their OAuth tokens locally for quota management and installs bidirectional hooks into agent config directories.

credential_access agent_config_tamper clipboard_screen

Findings

OAuth token reading from agent config files high
dist/server/quota/tokenDiscovery.js:18 reads ~/.local/share/opencode/auth.json; :42 reads ~/.claude/settings.json; :83 reads ~/.local/share/opencode/auth.json again; :107 reads ~/.codex/auth.json; :149 reads ~/.kimi-code/credentials/kimi-code.json. Extracts access tokens for Anthropic, OpenAI, Kimi providers.
Agent config hook installation high
dist/server/agent/installers.js:56-62 writes hook scripts into ~/.claude/settings.json, ~/.codex/hooks.json, ~/.copilot/hooks/termdock.json, ~/.config/opencode/plugins/termdock.js, ~/.pi/agent/extensions/termdock/index.ts, ~/.grok/hooks/termdock.json, ~/.kimi-code/config.toml.
Environment variable access for token discovery medium
dist/server/quota/tokenDiscovery.js:127 reads OPENAI_API_KEY, CODEX_API_KEY, CHATGPT_TOKEN from process.env.
Clipboard image read medium
.desktop-dist/main.js:1874 clipboard.readImage() — accessible from service windows.
Local UDP multicast (mDNS) low
.desktop-dist/main.js:59 dgram.createSocket('udp4') sends to 224.0.0.251:5353 for local network service discovery.
Postinstall crashes on missing node-pty (no deps installed in lab) info
Lab run: scripts/postinstall.mjs:52 exited 1 — Cannot find module 'node-pty/package.json'. Hook would succeed with dependencies installed.

Lab evidence

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