Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of claude-code-session-manager

[email protected]

clean   confidence 82%   action allow   analyzed 2026-09-19 15:00 UTC by dsv41-flash in 31 tool calls, with lab detonation

Summary

[email protected] is a large (≈129 MB, 670-file) but coherent Electron application, not a dropper. The only install hook is scripts/postinstall.cjs, which spawns electron-rebuild (npx fallback) to rebuild node-pty and always exits 0; detonation confirmed one blocked registry.npmjs.org DNS lookup from npm/npx and no other egress, no file writes outside the package, and only npm's own canary reads (~/.npmrc, ~/.gitconfig). At runtime it does read Claude Code's OAuth token (~/.claude/.credentials.json, or the macOS Keychain item "Claude Code-credentials") and POSTs it only to claude.ai/api/auth/oauth/token and api.anthropic.com/api/oauth/usage for the in-app usage meter, and it writes product telemetry (default on, SM_TELEMETRY=0 to disable, README-disclosed) to https://bilko.run with path/secret redaction. The pre-screen's reverse_shell/crypto_wallet/ransomware/download_execute tags come from minified vendor bundles (monaco, marked, tiptap, onnxruntime-web) and from the app's own guard-hook strings that already block `rm -rf /`, fork bombs and `curl|sh`; they are regex false positives. Findings below are capabilities an operator should know about, not evidence of malice.

Intent

A genuine Electron cockpit for the Claude Code CLI (multi-tab terminal, config editor, scheduler, voice dictation, usage meter). Its install-time and runtime behaviour — a best-effort node-pty/electron-rebuild postinstall, reading Claude Code's own OAuth credentials to poll Anthropic's usage endpoint, and disclosed anonymous telemetry to the author's bilko.run — matches the stated purpose; no concealment, no exfiltration of secrets to third parties, no download-and-execute.

credential_access network_egress agent_config_tamper reconnaissance code_execution

Findings

Install hook is a standard native rebuild, no egress or payload info scripts/postinstall.cjs:21-52
scripts/postinstall.cjs:14-34 resolves the local electron-rebuild binary (falling back to `npx electron-rebuild -f -w node-pty`) for node-pty only, and process.exit(0)s even on failure. Lab run: exit 0, one connect() to the DNS sink from npm/npx resolving registry.npmjs.org, no HTTP/TLS, no writes outside the package.
Reads Claude Code OAuth credentials (file + macOS Keychain) and can write them back medium src/main/lib/credentials.cjs:11-135, src/main/usage.cjs:28
src/main/lib/credentials.cjs:11 reads ~/.claude/.credentials.json; :20-33 runs `security find-generic-password -s 'Claude Code-credentials' -w` on darwin; :50-56 and :123-135 write a refreshed token back (file 0600, or Keychain -U). The access/refresh token is sent only to https://claude.ai/api/auth/oauth/token (:63,156) and, in src/main/usage.cjs:28,194, to https://api.anthropic.com/api/oauth/usage as a Bearer token. No third-party host receives it.
Default-on anonymous telemetry to the author's host bilko.run medium src/main/lib/telemetrySettings.cjs:35-44, src/main/lib/telemetryClient.cjs:1-8,182-242
src/main/lib/telemetrySettings.cjs:35-44 sets enabled:true with endpoint https://bilko.run; src/main/lib/telemetryClient.cjs posts event/log/error/install records to /api/telemetry/*. Payload is bounded and redacted (telemetryClient.cjs:62-67,182-242: REDACT_KEY secrets -> [redacted], cwd -> sha256 prefix, homedir -> ~), machineProfile.cjs:132-151 sends platform/CPU/version only (no hostname, user, MAC or serial). Hard kill switch SM_TELEMETRY=0 (telemetrySettings.cjs:141-144) or Settings UI; disclosed in README.md:47. No environment dump.
First-launch modification of Claude Code agent configuration medium src/main/seedSchedulerMcp.cjs:105-110, src/main/seedDevPlugin.cjs:68-104
src/main/seedSchedulerMcp.cjs:105-110 registers `session-manager-scheduler` at user scope in ~/.claude.json via `claude mcp add`, and src/main/seedDevPlugin.cjs:68-104 installs the bundled session-manager-dev plugin from the package's own marketplace (.claude-plugin/marketplace.json) via `claude plugin install`. Both are idempotent, marker-gated, never overwrite/remove existing entries, and have kill switches (SM_SEED_SCHEDULER_MCP_DISABLE=1, SM_SEED_DEV_PLUGIN_DISABLE=1). This is the product's stated purpose but it does add instruction/MCP surface to an agent's environment without an interactive prompt at first boot.
Bundled plugin skills contain no malicious instruction; injection hints are false positives info plugins/session-manager-dev/skills/
The 37 pre-screen 'prompt-injection / hidden-text' hits are ordinary engineering prose containing the word 'silently' (e.g. plugins/session-manager-dev/skills/builder/4-manual/SKILL.md:10, pr-review-sweep/2-check-fixed/SKILL.md) or an editor-inserted zero-width space (skills/discover-features/SKILL.md:56). Reviewed skill bodies describe a develop -> queue -> review -> status workflow (writing PRDs, running git/gh, triaging review threads); none instructs an agent to hide actions, exfiltrate data, disable guardrails or contact a third party. plugin.json (plugins/session-manager-dev/.claude-plugin/plugin.json) declares no hooks, only skills.
Local admin HTTP server is loopback-only and token-authenticated info src/main/lib/localAdminHttp.cjs:104-202, src/main/index.cjs:1208-1215
src/main/lib/localAdminHttp.cjs:182-202 binds 127.0.0.1 on an ephemeral port; :104-110 mints a 32-byte random bearer token written to ~/.claude/session-manager/admin-api.json with 0600 and compared with crypto.timingSafeEqual (:55-66,118-123). Renderer CSP (src/main/index.cjs:1208-1215) restricts connect-src to 'self', api.anthropic.com, registry.npmjs.org and schemastore. Spawns throughout the codebase use argv arrays, with `shell: true` confined to the documented Claude Code hook-field and user-defined watcher features (src/main/index.cjs:783, src/main/watchers.cjs:71).
Pre-screen high/critical tags originate in minified vendor bundles info dist/assets/Library-BaXcboWX.js:1, dist/assets/index-B3emy2oI.js
dist/assets/Library-BaXcboWX.js, index-B3emy2oI.js, TiptapBody-CXih4xrc.js, whisperWorker-C7ZGQwKg.js and dist/vad/*.mjs are bundled third-party code (monaco, marked/tiptap, onnxruntime-web, VAD worklets). The 'curl|sh', 'rm -rf /', 'credentials.json', '.aws/credentials' and clipboard strings the regexes matched are MCP-catalog entries, the app's own guard-hook definitions and a copy button — defensive text, not executed payload. No eval(), new Function(), atob(), or Buffer.from(...,'base64') invocation exists outside src/main/files.cjs:329 (writing a user-supplied binary file).

Lab evidence

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

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