registry  /  thinkpool-pair  /  0.7.145

thinkpool-pair@0.7.145

Share a local coding-agent CLI (Claude Code, Codex, Gemini, Aider, …) into a ThinkPool Code room, live.

AI Security Review

scanned 7d ago · by lpm-firewall-ai

No confirmed malicious attack surface. The package is a user-invoked bridge for sharing local coding-agent CLIs into ThinkPool rooms, with expected network, subprocess, local state, and optional service persistence capabilities.

Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
User runs thinkpool-pair, login, provider, install-service, or interacts with a paired ThinkPool room.
Impact
Runtime can relay terminal/agent input and output, download room files, upload mockup/image artifacts, and optionally install a persistent service when explicitly requested.
Mechanism
Package-aligned remote coding-agent bridge with permission-gated agent controls.
Rationale
Static inspection found powerful but product-aligned functionality for a remote coding-agent bridge, not install-time execution, hidden exfiltration, or unconsented AI-agent control-surface mutation. The scanner's critical secret is a public Supabase anon key and persistence is explicit install-service behavior.
Evidence
package.jsonbridge.mjsservice.mjsaccount.mjsauth-store.mjsprovider.mjsclaude-session.mjs~/.thinkpool-pair/*~/Library/LaunchAgents/io.thinkpool.pair.*.plist~/.config/systemd/user/io.thinkpool.pair.*.service%APPDATA%/Microsoft/Windows/Start Menu/Programs/Startup/thinkpool-pair-*.cmd
Network endpoints3
daytvtakmlixpfbbqzjd.supabase.cothinkpool.ioregistry.npmjs.org/thinkpool-pair/latest

Decision evidence

public snapshot
AI called this Clean at 86.0% confidence as Benign with medium false-positive risk.
Evidence for block
  • bridge.mjs exposes user-invoked remote coding-agent control over Supabase room channels.
  • service.mjs can install boot-persistent launchd/systemd/Startup service, but only via install-service command.
  • bridge.mjs downloads room-supplied file URLs to temp dir during runtime file-put events.
  • claude-session.mjs supports bypassPermissions and agent lane spawning when chosen/approved in room.
Evidence against
  • package.json has no install/preinstall/postinstall lifecycle hooks; bin is bridge.mjs only.
  • Embedded Supabase JWT in bridge.mjs is documented anon public client key, not a private secret.
  • bridge.mjs validates room codes before filesystem/service label use and gates service install behind explicit CLI subcommands.
  • claude-session.mjs implements PreToolUse risk classification, permission cards, deny-fail behavior, and caps/kill switches for cross-terminal tools.
  • account.mjs/auth-store.mjs store only ThinkPool login tokens locally under ~/.thinkpool-pair after explicit login.
  • Network hosts are package-aligned: ThinkPool web, Supabase backend, npm registry update checks.
Behavioral surface
Source
ChildProcessCryptoEnvironmentVarsFilesystemNetworkShell
Supply chain
HighEntropyStringsUrlStrings
Manifest
NoLicense
scanned 27 file(s), 555 KB of source, external domains: api.anthropic.com, api.z.ai, daytvtakmlixpfbbqzjd.supabase.co, openrouter.ai, registry.npmjs.org, thinkpool.io, www.apple.com

Source & flagged code

4 flagged · loading source
bridge.mjsView file
94patternName = supabase_service_key severity = critical line = 94 matchedText = const SU...tqo'
Critical
Critical Secret

Package contains a critical-looking secret pattern.

bridge.mjsView on unpkg · L94
94patternName = supabase_service_key severity = critical line = 94 matchedText = const SU...tqo'
Critical
Secret Pattern

Supabase service role key (JWT) in bridge.mjs

bridge.mjsView on unpkg · L94
matchType = previous_version_dangerous_delta matchedPackage = thinkpool-pair@0.7.144 matchedIdentity = npm:dGhpbmtwb29sLXBhaXI:0.7.144 similarity = 0.926 summary = stored previous version shares package body but lacks this dangerous source file
High
Previous Version Dangerous Delta

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

bridge.mjsView on unpkg
service.mjsView file
22import path from 'node:path' L23: import { execSync } from 'node:child_process' L24: ... L26: // exactly one account service per machine (a second install replaces it). L27: // Room codes flow UNESCAPED into launchctl/systemd shell strings + plist paths, so L28: // this is the security chokepoint: reject anything that isn't a plain alnum code ... L44: // `home` is the platform-correct, runtime-expanded home token ("$HOME" on darwin under L45: // /bin/bash; "$$HOME" inside a systemd unit so systemd emits a literal $HOME to bash). L46: const cacheWipe = (home) => `rm -rf ${home}/.npm/_npx/*/node_modules/thinkpool-pair 2>/dev/null` ... L48: // The version installing the service. By DEFAULT the service is pinned to this exact L49: // version (not @latest) so a future bad npm publish can't auto-roll to every machine's L50: // always-on bridge — that's what spread the broken 0.7.49 on 2026-06-22. Updates become
Medium
Install Persistence

Source writes installer persistence such as shell profile or service configuration.

service.mjsView on unpkg · L22

Findings

2 Critical1 High3 Medium5 Low
CriticalCritical Secretbridge.mjs
CriticalSecret Patternbridge.mjs
HighPrevious Version Dangerous Deltabridge.mjs
MediumNetwork
MediumEnvironment Vars
MediumInstall Persistenceservice.mjs
LowScripts Present
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings
LowNo License