Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of claude-code-session-manager

[email protected]

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

Summary

An Electron desktop app wrapping the Claude Code CLI. The install hook rebuilds node-pty against the bundled Electron (standard for native deps). At runtime the app reads ~/.claude/.credentials.json and the macOS Keychain to refresh OAuth tokens (its own auth, not cross-app theft), spawns claude processes through node-pty PTYs, and writes config files under ~/.claude/ (its own config, not another tool's). The only outbound connections are api.anthropic.com for the billing panel and registry.npmjs.org for an opt-in version-check toast — both documented in README.md. Clipboard read is for paste-to-chat. Prompt-injection hints in SKILL.md files are content-generation instructions ("skip the hero image silently"), not concealment of app behavior.

Intent

Local Electron cockpit for the Claude Code CLI — manages sessions, a PRD scheduler, voice dictation, and config files under ~/.claude/. Network egress is limited to api.anthropic.com (billing) and registry.npmjs.org (version check), both documented.

Findings

Install hook rebuilds node-pty info scripts/postinstall.cjs:29-30
scripts/postinstall.cjs runs electron-rebuild -f -w node-pty best-effort (exits 0 always). Standard for Electron apps with native terminal modules.
Reads Claude Code OAuth credentials for refresh info src/main/lib/credentials.cjs:78-101
src/main/lib/credentials.cjs reads ~/.claude/.credentials.json and macOS Keychain (service 'Claude Code-credentials') to auto-refresh the app's own auth token via https://claude.ai/api/auth/oauth/token.
Network egress to api.anthropic.com info src/main/usage.cjs:173
src/main/usage.cjs fetches https://api.anthropic.com/api/oauth/usage with the OAuth bearer token for the in-app billing panel.
Network egress to registry.npmjs.org info README.md:52,78
CSP allows registry.npmjs.org; README.md documents an npm update checker that polls for newer versions and surfaces a toast.
Spawns claude CLI through PTYs info src/main/pty.cjs:84
src/main/pty.cjs spawns claude processes via node-pty for interactive terminal sessions. Standard terminal emulator behavior.
Manages ~/.claude/ config files info src/main/index.cjs (various IPC handlers)
Writes/reads .claude.json, settings.json, hooks, skills, agent personas under ~/.claude/ — this is the app's own configuration surface, not another tool's config.
Clipboard read for paste-to-chat info src/main/index.cjs:583
src/main/index.cjs:583 reads clipboard via Electron's main-process API when user pastes into a chat tab. Legitimate feature.
SKILL.md content instructions flagged as prompt-injection info plugins/session-manager-dev/skills/blog-for-project-feature/6-compose/SKILL.md:33
Multiple SKILL.md files contain phrases like 'skip the hero image silently' and 'do not silently omit it' — these are content-generation quality instructions for AI writing blog posts and code, not instructions to conceal the app's actions from the user.

Lab evidence

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

DNS names requested: registry[.]npmjs[.]org

Direct connections: socket 127[.]0[.]0[.]1:53

Canary credential files read: /home/andy/.npmrc, /home/andy/.gitconfig