The postinstall hook conditionally runs setup, which modifies the user's Codex integration without an install-time consent prompt. Codex trust is required before hooks activate, and the inspected sender restricts forwarding to loopback, so this warrants a warning rather than a block.
Static reason
High-risk behavior combination matched malicious policy.
Trigger
A global npm install on macOS outside CI, unless setup is skipped; root installs are excluded.
Impact
After hook trust, selected session, prompt, and tool-event details can be forwarded to the local AgentOnWeb service. No remote exfiltration was established.
Mechanism
The postinstall hook invokes setup, which writes Codex hooks and notify configuration and installs the local service integration.
Evidence
package.jsonpostinstall.mjslib/cli.js~/.codex/hooks.json~/.codex/config.toml