The postinstall hook can automatically write first-party hooks into agent configuration during qualifying global installs, so residual lifecycle risk remains. The inspected event transfer is limited to loopback, which does not establish malicious behavior or justify a block.
Static reason
High-risk behavior combination matched malicious policy.
Trigger
Global npm installation on macOS outside CI, unless AOW_SKIP_SETUP is set to 1.
Impact
Agent configuration changes occur during installation, and local terminal sessions may include prompt excerpts and tool descriptions in event reporting.
Mechanism
The postinstall hook launches setup, which writes Codex and Claude Code hook configuration and installs a local browser bridge. The hooks forward bounded event data to a loopback endpoint.
Evidence
package.jsonpostinstall.mjslib/cli.jslib/agent-hook.js