registry  /  thinkpool-pair  /  0.7.159

thinkpool-pair@0.7.159

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

AI Security Review

scanned 5d ago · by lpm-firewall-ai

Review flagged AI-agent configuration or capability changes. This remains warn-only unless evidence shows foreign-agent hijack through preinstall/install/postinstall, hidden persistence, exfiltration, remote code execution, or other concrete malicious behavior.

Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
User runs thinkpool-pair, selects account/room pairing, provider setup, flow dispatch, or install-service.
Impact
Remote room participants can drive the host's chosen agent within the package workflow; persistence and auto-update require explicit CLI/menu action.
Mechanism
agent bridge with optional OS service and room-scoped MCP tools
Rationale
Static inspection shows a legitimate but powerful agent-sharing bridge with no lifecycle execution and no unconsented mutation of foreign AI-agent control surfaces. Because it provides remote room-driven agent capabilities, spawn/post tooling, bypass-permission flow lanes, and optional service persistence, warn rather than block.
Evidence
package.jsonbridge.mjslauncher.mjsservice.mjsaccount.mjsauth-store.mjsprovider.mjsclaude-session.mjs~/.thinkpool-pair/auth.json~/.thinkpool-pair/provider.json~/.thinkpool-pair/dirs.json~/.thinkpool-pair/served.json~/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/flow-*-assembled
Network endpoints5
daytvtakmlixpfbbqzjd.supabase.cothinkpool.ioregistry.npmjs.org/thinkpool-pair/latestapi.z.ai/api/anthropicopenrouter.ai/api

Decision evidence

public snapshot
AI called this Suspicious at 86.0% confidence as Dangerous Capability with medium false-positive risk.
Evidence for warning
  • bridge.mjs exposes agent-facing tools for cross-terminal posting, spawning lanes, research runs, and flow dispatch.
  • bridge.mjs can open flow lanes with mode 'bypassPermissions' after user-approved flow dispatch.
  • service.mjs can install launchd/systemd/Startup persistence, but only through explicit install-service actions.
  • provider.mjs and auth-store.mjs persist user tokens under ~/.thinkpool-pair with mode 0600.
Evidence against
  • package.json has no preinstall/install/postinstall lifecycle hooks; only bin thinkpool-pair.
  • bridge.mjs service install prompt is interactive TTY and default-no; launcher install-service is user-selected.
  • No unconsented writes to foreign agent control surfaces such as MCP config, CLAUDE.md, Codex/Cursor settings, or shell profiles were found.
  • Service files are package-owned io.thinkpool.pair launchd/systemd/Startup entries and include uninstall paths.
  • Network use is package-aligned: ThinkPool/Supabase room bridge, npm update checks, provider model fetches, and user-requested web research.
  • Room codes and service labels have validation against shell/path injection.
Behavioral surface
Source
ChildProcessCryptoEnvironmentVarsFilesystemNetworkShell
Supply chain
HighEntropyStringsUrlStrings
Manifest
NoLicense
scanned 30 file(s), 601 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
96patternName = supabase_service_key severity = critical line = 96 matchedText = const SU...tqo'
Critical
Critical Secret

Package contains a critical-looking secret pattern.

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

Supabase service role key (JWT) in bridge.mjs

bridge.mjsView on unpkg · L96
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
matchType = previous_version_dangerous_delta matchedPackage = thinkpool-pair@0.7.158 matchedIdentity = npm:dGhpbmtwb29sLXBhaXI:0.7.158 similarity = 0.933 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.

account.mjsView on unpkg
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 Deltaaccount.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