The global-install hook automatically performs first-party agent setup, including writing a package-owned skill and changing harness settings. This leaves a concrete lifecycle risk, but the inspected behavior does not establish a block-level attack.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
Global npm installation, unless NAM_SKIP_SETUP is set to 1.
Impact
Agent skill directories and user harness settings can be changed automatically during installation.
Mechanism
The postinstall hook imports the CLI with the postinstall command; setup installs the package-owned skill and changes detected harness settings.
Evidence
package.jsonscripts/postinstall.mjsdist/setup.jsdist/cli.js