Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

suspicious   confidence 60%   action isolate   analyzed 2026-09-24 23:01 UTC by yolo in 24 tool calls, with lab detonation

Summary

Termdock reads stored OAuth tokens from ~/.claude/settings.json, ~/.codex/auth.json, ~/.local/share/opencode/auth.json, and env vars, then calls each provider's usage API directly (chatgpt.com, api.openai.com, api.anthropic.com, etc.). It also writes hook files into agent config dirs (~/.claude, ~/.codex, ~/.copilot, ~/.config/opencode, ~/.pi). No data exfiltration to third parties observed.

Intent

A web-based terminal application with Electron desktop wrapper. Reads OAuth tokens from multiple AI agent config files and env vars to check provider usage quotas via the providers' own APIs; installs hooks into those agents' configs.

credential_access agent_config_tamper

Findings

Token discovery from agent config files high dist/server/quota/tokenDiscovery.js:14-243
dist/server/quota/tokenDiscovery.js reads ~/.claude/settings.json (oauth.accessToken), ~/.codex/auth.json (tokens.access_token), ~/.local/share/opencode/auth.json (entry.access), ~/.kimi-code/credentials/kimi-code.json (cred.access_token), plus env vars OPENAI_API_KEY, CODEX_API_KEY, CHATGPT_TOKEN, GH_TOKEN, GITHUB_TOKEN, GEMINI_API_KEY, GROK_API_KEY, KIMI_API_KEY.
Agent config hook installer medium dist/server/agent/installers.js:54-60
dist/server/agent/installers.js writes termdock hook files into ~/.claude/settings.json, ~/.codex/hooks.json, ~/.copilot/hooks/termdock.json, ~/.config/opencode/plugins/termdock.js, ~/.pi/agent/extensions/termdock/index.ts.
Clipboard read (expected for terminal) info .desktop-dist/main.js:1874
.desktop-dist/main.js:1874 calls clipboard.readImage() for paste support.
Local mDNS discovery (expected) info .desktop-dist/main.js:69
.desktop-dist/main.js:69 sends UDP to 224.0.0.251:5353 for local service discovery.
Postinstall spawns native rebuild (expected) info scripts/postinstall.mjs:51-156
scripts/postinstall.mjs rebuilds node-pty prebuilds and auto-installs tmux via system package managers.

Lab evidence

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