The postinstall behavior is a narrow permission fix for node-pty. Runtime session setup automatically changes global Claude trust, prompt, and hook settings without an affirmative setup gate, so this warrants a warning for agent integration risk rather than an install-time malware block.
Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
The Bostrat node creates or relaunches a Claude session; the observed session creation path skips setup only when marked as a first run.
Impact
Project trust is accepted automatically and existing global hooks are replaced. Hook events include prompt text, leaving a concrete agent-configuration risk without establishing credential theft or install-time attack behavior.
Mechanism
The runtime edits Claude configuration and installs hooks for session start, prompts, stops, and tool use. Hook installation can be disabled with BOSTRAT_HOOKS=off, and BOSTRAT_HOOK_URL can override the loopback default.
Evidence
dist/index.js~/.claude.json~/.claude/settings.json