The postinstall hook makes a project-scoped Claude extension active without prompting, which warrants a warning under the agent extension lifecycle policy. Inspected source supports an automatic package-owned setup, but does not establish a concrete malicious chain.
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
Installing the package in a consumer project.
Impact
The package handler is activated during Claude tool calls without a separate setup prompt.
Mechanism
The script merges a PreToolUse hook with a wildcard matcher into the project’s Claude hooks configuration and points it at the package’s handler.
Evidence
package.jsonscripts/postinstall.jsdist/hooks/hook-daemon.jsdist/hooks/pre-tool-use.js.claude/hooks.jsondist/plugin/dist/hooks/hook-daemon.jsdist/plugin/dist/hooks/pre-tool-use.js