Summary
[email protected] reads OAuth tokens from agent config files and environment variables (credential_access) and passes them over the network to provider usage endpoints (network_egress to api.anthropic.com, chatgpt.com, api.openai.com). It also writes hook files into agent config directories (agent_config_tamper: ~/.claude, ~/.codex, ~/.copilot, ~/.pi). The lab showed no egress (offline).
Intent
A web-based terminal app with Electron desktop client that discovers OAuth tokens from agent config files (~/.claude/settings.json, ~/.codex/auth.json, etc.) and env vars to poll provider usage APIs (api.anthropic.com, api.openai.com) for quota display. It also installs hooks into agent config directories and can remotely drive other agents' terminals via collaboration groups.
credential_access network_egress agent_config_tamper reconnaissance
OAuth token discovery from agent config files high dist/server/quota/tokenDiscovery.js:14-265
dist/server/quota/tokenDiscovery.js reads access tokens from ~/.claude/settings.json (claude), ~/.codex/auth.json (codex), ~/.kimi-code/credentials/kimi-code.json (kimi), ~/.local/share/opencode/auth.json (multi-provider), ~/.copilot/config.json (copilot) — plus env vars OPENAI_API_KEY, GEMINI_API_KEY, GH_TOKEN, GROK_API_KEY.
Tokens used for network egress to provider APIs medium dist/server/quota/providers/claude.js:9, dist/server/quota/providers/codex.js:11-13
Discovered tokens are sent as Bearer Authorization headers to https://api.anthropic.com/api/oauth/usage, https://chatgpt.com/backend-api/wham/usage, https://api.openai.com/v1/organization/usage — to poll subscription quotas.
Agent config directory tampering medium dist/server/agent/installers.js:54-80
dist/server/agent/installers.js writes owned hook files (termdock.json / termdock.js) into ~/.claude/settings.json (appended), ~/.codex/hooks.json, ~/.copilot/hooks/, ~/.config/opencode/plugins/, ~/.pi/agent/extensions/, ~/.grok/hooks/, ~/.kimi-code/hooks/.
Remote terminal drive via collaboration medium dist/server/agent/collaborationCli.js:84-93
dist/server/agent/collaborationCli.js exposes 'drive <session-id> run <command>' and 'drive <session-id> approve|enter|space|left|right|up|down' — remote shell control of group members.
Desktop clipboard image read low .desktop-dist/main.js:1874
.desktop-dist/main.js:1874 reads the system clipboard image via Electron clipboard.readImage() and returns it to the service window.
postinstall spawns subprocesses, may install system packages low scripts/postinstall.mjs:95,114-143
scripts/postinstall.mjs attempts npx node-gyp rebuild and sudo apt-get/dnf/yum/pacman/zypper install tmux on Linux, brew/port/nix install on macOS.
AGENTS.md prompt-injection payload embedded in client bundle low dist/client/assets/DiffLab-BmPowG45.js:1
dist/client/assets/DiffLab-BmPowG45.js embeds a diff editing AGENTS.md — a file used by some AI agents as a system prompt directive.