The postinstall automatically writes hooks, skills, and configuration into Claude Code and Codex user directories during a global npm install, without asking the user to authorize those agent changes. This meets the install-time AI-agent control hijack rule, even though the integrations match the package’s purpose.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review
Trigger
A global npm install outside CI; other package managers also run setup when their environment does not indicate a global npm install or CI.
Impact
Persistent hooks and settings affect future Claude Code or Codex sessions, and the shell wrapper changes how future `codex` commands are launched.
Mechanism
Postinstall launches `sprag install`, which registers Claude Code skills, hooks, and settings; it also configures Codex hooks when Codex is present, and can add a shell wrapper during Codex panel setup.
Policy narrative
On a global npm install, the postinstall launches `sprag install` by default. That command writes Claude Code skills, hooks, and settings and configures Codex hooks when Codex is installed; on eligible macOS zsh setups it can also modify `.zshrc`. These persistent agent-control changes happen without a setup prompt, so the install hook crosses the package’s stated consent boundary.
Evidence
package.jsonbin/postinstall.js