The postinstall hook automatically launches setup that writes hooks, skills, and settings into the user's AI-agent configuration outside the package directory. Under the install-time agent-configuration rule, this is malicious even though the changes serve the package's stated integration purpose.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review
Trigger
Installing globally with npm, or using a package manager that runs the postinstall hook when CI is not detected.
Impact
The package registers its commands to run in future Claude Code or Codex sessions without a separate setup request.
Mechanism
The hook launches `sprag install`, which installs Claude Code skills, statusline settings and hooks, and configures Codex hooks when Codex is present.
Policy narrative
During eligible package installation, the postinstall hook launches `sprag install`. That command writes Claude Code skills, statusline configuration and hooks into the user's home configuration, and configures Codex hooks when Codex is installed. These changes happen without a separate setup request, so the package receives future session and tool-event execution through the registered hooks.
Evidence
package.jsonbin/postinstall.jssrc/commands/install.jssrc/installer.js