Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of claude-code-session-manager

[email protected]

clean   confidence 65%   action allow   analyzed 2026-09-24 21:30 UTC by yolo in 36 tool calls, with lab detonation

Summary

The postinstall hook runs electron-rebuild on node-pty (standard for Electron+pty packages). The app reads ~/.claude/.credentials.json and the macOS Keychain for its own Anthropic OAuth tokens, writes config under ~/.claude/, and connects to api.anthropic.com and 127.0.0.1 (local admin API). No credential theft from other tools, no unexpected egress, no obfuscated payload execution. Lab canary reads (.npmrc, .gitconfig) were npm internals, not the package.

Intent

Local Electron cockpit wrapping the Claude Code CLI — multi-tab terminal, config editor, PRD scheduler, voice dictation. Reads ~/.claude/.credentials.json for its own OAuth flow; postinstall rebuilds node-pty against bundled Electron.

Findings

Postinstall runs electron-rebuild on node-pty info scripts/postinstall.cjs:14-31
scripts/postinstall.cjs spawns electron-rebuild (-f -w node-pty) to match the bundled Electron ABI. Exits 0 always. Standard pattern for Electron packages using node-pty.
Reads own OAuth credentials from disk and macOS Keychain info src/main/lib/credentials.cjs:11-33
src/main/lib/credentials.cjs reads ~/.claude/.credentials.json and calls security find-generic-password for the macOS Keychain item 'Claude Code-credentials'. These are the app's own tokens, not other tools' credentials.
Network egress to api.anthropic.com for usage polling info src/main/usage.cjs:27
src/main/usage.cjs:27 fetches https://api.anthropic.com/api/oauth/usage with the app's OAuth bearer token. Legitimate endpoint for the claimed feature.
Local loopback admin API for MCP server info scripts/scheduler-mcp-server.cjs:33,56
scripts/scheduler-mcp-server.cjs:56 connects to http://127.0.0.1:${port} with a Bearer token from ~/.claude/session-manager/admin-api.json. Local IPC only.
Modifies ~/.claude/ config files (claimed purpose) info src/main/config.cjs:67, src/main/agentLibrary.cjs, src/main/memoryTool.cjs
config.cjs, agentLibrary.cjs, memoryTool.cjs, scheduler.cjs and others read/write ~/.claude/settings.json, ~/.claude/projects/, ~/.claude/agents/, ~/.claude/session-manager/. This is the app's own config surface, not tampering with another tool.
Passes full process.env to Electron child (bin/cli.cjs:36) info bin/cli.cjs:36
Spawns Electron with env: process.env. API keys in the environment are visible to the app, but these are the user's own keys.
Canary credential reads were npm internals info lab report
Lab reported reads of /home/andy/.npmrc and /home/andy/.gitconfig, but grep found zero references to these paths in the package. Likely Node.js/npm module resolution reading .npmrc during require().

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