Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of termdock

[email protected]

suspicious   confidence 55%   action isolate   analyzed 2026-09-24 21:42 UTC by yolo in 15 tool calls, with lab detonation

Summary

Install hook (scripts/postinstall.mjs) rebuilds node-pty and auto-installs tmux — standard for this class of app. Runtime entry (.desktop-dist/main.js) reads clipboard images via origin-checked Electron IPC. Server-side dist/server/agent/installers.js writes hook files into other AI agents' config directories (.claude/settings.json, .codex/hooks.json, .copilot/hooks/termdock.json, etc.) — a real agent_config_tamper capability. Lab detonation: no network egress, no canary reads (hook crashed on missing node-pty, expected).

Intent

A web-based terminal application that, at runtime, installs hooks into other AI coding agents' config directories (.claude, .codex, .copilot, .opencode, .pi, .grok, .kimi-code) to intercept their terminal output via OSC 777 sequences. The Electron desktop app can read the system clipboard image on origin-checked IPC calls.

agent_config_tamper clipboard_screen

Findings

Agent hook installer writes to other AI agent config dirs medium dist/server/agent/installers.js:54-63
dist/server/agent/installers.js:54-63 resolves target paths for 7 agents (claude, codex, copilot, opencode, pi, grok, kimi) and writes owned files (termdock.json/js) into them. Header documents this as a feature移植自 tty7 core/agent_hooks.rs.
Electron clipboard.readImage() on origin-checked IPC low .desktop-dist/main.js:1871-1879
.desktop-dist/main.js:1871-1879: ipcMain handler 'desktop:read-clipboard-image' reads system clipboard image. Source window origin is checked against windowServiceOrigins — not a direct exfiltration vector but a real capability.
mDNS UDP probe on startup info .desktop-dist/main.js:59-69
.desktop-dist/main.js:59-69: sends UDP datagram to 224.0.0.251:5353 (multicast DNS) for local network service discovery. Standard Electron/Zeroconf behavior.
Install hook crashes on missing node-pty (expected in isolated lab) info scripts/postinstall.mjs:52
scripts/postinstall.mjs:52 resolves node-pty/package.json which is not installed. Hook exits 1. In a real install with dependencies, this would rebuild the native module.

Lab evidence

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