registry  /  thinkpool-pair  /  0.7.154

thinkpool-pair@0.7.154

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 by static inspection. The package is a user-invoked ThinkPool bridge for sharing local coding-agent sessions, with optional explicit background service installation.

Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
user runs thinkpool-pair commands such as <ROOM>, login, provider, or install-service
Impact
Room participants can drive local agent sessions when the user intentionally runs or installs the bridge; no install-time compromise was found.
Mechanism
package-aligned remote agent bridge with optional user-installed service
Rationale
The risky primitives are aligned with the package's documented purpose and require explicit runtime commands; there is no npm lifecycle execution or unconsented mutation of broad/foreign agent control surfaces. Static inspection did not find harvesting, hidden exfiltration, staged payloads, or malicious persistence.
Evidence
package.jsonbridge.mjsservice.mjsaccount.mjsclaude-session.mjsauth-store.mjsprovider.mjsREADME.md~/.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.claude/worktrees
Network endpoints3
daytvtakmlixpfbbqzjd.supabase.cothinkpool.ioregistry.npmjs.org/thinkpool-pair/latest

Decision evidence

public snapshot
AI called this Clean at 88.0% confidence as Benign with low false-positive risk.
Evidence for block
  • bridge.mjs exposes a powerful remote room bridge that can drive local coding-agent CLIs at runtime.
  • service.mjs can install launchd/systemd/Windows Startup persistence, but only via explicit install-service CLI.
  • claude-session.mjs supports bypassPermissions and spawned agent lanes, a dangerous package-aligned capability.
Evidence against
  • package.json has no npm lifecycle hooks; install/import does not auto-run service or agent setup.
  • bridge.mjs gates execution behind user-invoked bin commands and validates room codes before use.
  • service.mjs persistence is an explicit documented CLI feature with uninstall-service support and pinned default version.
  • README.md documents the remote-agent trust model and warns that room codes can drive the agent.
  • Secrets flagged in bridge.mjs are Supabase anon/public client credentials; user tokens are stored under package-owned ~/.thinkpool-pair.
  • No evidence of credential harvesting, arbitrary exfiltration, destructive install-time behavior, or foreign AI-agent control-surface mutation.
Behavioral surface
Source
ChildProcessCryptoEnvironmentVarsFilesystemNetworkShell
Supply chain
HighEntropyStringsUrlStrings
Manifest
NoLicense
scanned 27 file(s), 573 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

6 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
matchType = previous_version_dangerous_delta matchedPackage = thinkpool-pair@0.7.152 matchedIdentity = npm:dGhpbmtwb29sLXBhaXI:0.7.152 similarity = 0.889 summary = stored previous version shares package body but lacks this dangerous source file
Critical
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
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
flow-assembly.mjsView file
14// L15: // Node built-ins ONLY (fs, path, child_process, zlib) — bridge ships as npm L16: // thinkpool-pair with no new deps. Pure over injected fs/git/gh/readFile so the
High
Child Process

Package source references child process execution.

flow-assembly.mjsView on unpkg · L14
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
account.mjsView file
1/* account.mjs — account-mode bridge (Phase 1). L2: One `npx thinkpool-pair` per ACCOUNT instead of per room: L3: login — link this device to your ThinkPool account (realtime handoff). ... L8: Spec: docs/specs/2026-06-16-account-bridge.md */ L9: import { spawn } from 'node:child_process' L10: import { fileURLToPath } from 'node:url'
High
Runtime Package Install

Package source invokes a package manager install command at runtime.

account.mjsView on unpkg · L1

Findings

3 Critical3 High4 Medium5 Low
CriticalCritical Secretbridge.mjs
CriticalPrevious Version Dangerous Deltabridge.mjs
CriticalSecret Patternbridge.mjs
HighChild Processflow-assembly.mjs
HighShell
HighRuntime Package Installaccount.mjs
MediumNetwork
MediumEnvironment Vars
MediumInstall Persistenceservice.mjs
MediumStructural Risk Force Deep Review
LowScripts Present
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings
LowNo License