Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of claude-code-session-manager

[email protected]

clean   confidence 78%   action allow   analyzed 2026-09-19 23:19 UTC by dsv41-flash in 23 tool calls, with lab detonation

Summary

[email protected] is a legitimate ~130 MB Electron application, not a loader or stealer. The only install-time action is scripts/postinstall.cjs, which runs `electron-rebuild -f -w node-pty` (or npx fallback) and always exits 0 — no network, no writes outside the package, no decode-and-execute. The noisy static hits are regex false positives on a very large codebase: the "credential" files read the user's own ~/.claude/.credentials.json (or macOS Keychain) solely to refresh the OAuth token and read the billing/usage endpoint, the "reverse shell" hits are terminal/pty and `claude plugin install` wrappers, and the "shell:true" uses execute user-defined Claude Code hooks. Third-party egress is limited to disclosed, opt-out anonymous telemetry to https://bilko.run. I could not complete andy_detonate (tool returned malformed output twice), so the lab confirmation is missing — hence confidence below 0.9.

Intent

A large single-author Electron desktop app ("cockpit") for the Claude Code CLI: multi-tab terminal, config editor, PRD scheduler, voice dictation and telemetry. The install hook does nothing but rebuild node-pty against the bundled Electron ABI; all credential/config/network behavior matches the documented product.

network_egress credential_access agent_config_tamper reconnaissance

Findings

Install hook is a best-effort electron-rebuild only info scripts/postinstall.cjs:14-52
scripts/postinstall.cjs:14-34 spawnSync's the local electron-rebuild (or `npx electron-rebuild -f -w node-pty`) with stdio inherit, and lines 34-52 print manual-fix guidance and exit 0 on failure. No network fetch, no decoded payload, no writes outside the package.
Reads the user's own Claude Code OAuth credentials to refresh/query usage medium src/main/lib/credentials.cjs:11,63; src/main/usage.cjs:28
src/main/lib/credentials.cjs:11 reads ~/.claude/.credentials.json (or the macOS Keychain item 'Claude Code-credentials') and can refresh it via POST https://claude.ai/api/auth/oauth/token (line 63). This is the token the app uses for its /usage panel and is sent only to claude.ai/api.anthropic.com — no attacker host. usage.cjs:28 calls https://api.anthropic.com/api/oauth/usage.
Anonymous telemetry is on by default and posts to a third-party host low src/main/lib/telemetrySettings.cjs:38; src/main/lib/telemetryClient.cjs:3-62
src/main/lib/telemetrySettings.cjs:38 defaults endpoint to https://bilko.run; telemetryClient.cjs POSTs event/log/error/install records (boot/daily/quit cadence) with redaction of secret keys and path/homedir scrubbing (REDACT_KEY, redactString, hashCwd). Disclosed in README.md:45-51 and opt-out via SM_TELEMETRY=0. No prompt/transcript contents are sent.
First app boot installs a bundled plugin and seeds agent personas into ~/.claude low src/main/seedDevPlugin.cjs:33-83
seedDevPlugin.cjs:33-83 runs `claude plugin install session-manager-dev@session-manager` from the bundled marketplace on first launch (marker ~/.claude/session-manager/.dev-plugin-seeded, kill-switch SM_SEED_DEV_PLUGIN_DISABLE=1); seedAgentPersonas.cjs copies three personas into ~/.claude/agents/. This is intended config management for a Claude Code cockpit, not install-time tampering — npm install itself does not touch ~/.claude.
Local-only loopback HTTP admin API with bearer token info src/main/lib/localAdminHttp.cjs:99-202
localAdminHttp.cjs binds 127.0.0.1 on an ephemeral port, requires a per-boot 32-byte bearer token (timing-safe compare) stored 0600 at ~/.claude/session-manager/admin-api.json. Never externally reachable; used by the scheduler MCP server.
Explicit defensive controls against credential/secret theft info src/main/files.cjs:37-52; src/main/lib/cleanEnv.cjs:4,63-79
files.cjs:37-52 refuses to write .credentials.json, anything under ~/.ssh, and ~/.config/autostart; cleanEnv.cjs:4,63-79 strips *_TOKEN/API_KEY/SECRET/PASSWORD/AUTHORIZATION/COOKIE and CLAUDE_CODE_*/npm_config_* vars from child environments. These run counter to a credential-harvesting payload and explain many of the prescreen 'credential_access/credential_harvest' hits as false positives.
'Download-and-execute' / 'destructive' static hits are guard-hook templates info dist/assets/Library-CoiLZTKh.js:1,14
dist/assets/Library-CoiLZTKh.js:1,14 contains Claude Code PreToolUse hook templates that BLOCK 'rm -rf /', fork bombs and 'curl|sh' pipes, and deny Bash(curl:*) etc. — the regexes fire on the very strings the guards are designed to catch. Likewise the 'reverse_shell' hits in pty.cjs/pluginInstall.cjs are node-pty terminal spawns and `claude plugin install` wrappers (argv arrays, no shell:true).

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