The npm postinstall automatically configures a first-party agent integration in consumer projects, which leaves a concrete agent extension lifecycle risk. Source safeguards and opt-outs reduce the risk, and the inspected behavior does not establish a publish-blockable attack.
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; previous stored version diff introduced dangerous source
Trigger
Installing the package in a consumer project outside CI and without the setup opt-out.
Impact
An agent using the project may load the package's MCP server and guidance automatically.
Mechanism
The hook adds or refreshes a pinned MCP server entry and writes managed guidance and rules into consumer project files.
Evidence
package.jsonscripts/postinstall.mjsscripts/_agent-setup.mjsscripts/cli.mjs.mcp.jsonCLAUDE.md.claude/godxjp-ui-workflow.md.ai/rules/godxjp-ui.md