The postinstall hook performs agent configuration setup without requiring a separate user-invoked command, and the CLI writes the bundled MCP entry to Claude Code’s configuration. The source supports a first-party agent extension lifecycle risk warning, but not a malicious verdict.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review; source fingerprint signature matched known malicious package; routed for review
Trigger
npm install runs the package’s postinstall hook.
Impact
Claude Code configuration is changed so the package’s MCP server is registered for agent use; no credential theft or further attack was established.
Mechanism
The hook invokes the CLI’s MCP registration command, which writes the bundled server entry to Claude Code’s MCP configuration.
Evidence
package.jsonscripts/postinstall.mjsdist/cli.js~/.claude.json