The global-install postinstall automatically registers Cosmo integrations in Claude, Codex, and Antigravity locations. This is a warning-level agent extension lifecycle risk; the inspected integration content is focused on Cosmo and does not show broader agent hijacking or data collection.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
npm postinstall during a global install, or when COSMO_POSTINSTALL_FORCE=1 is set.
Impact
Agent configuration changes without a separate setup command or confirmation. The inspected content is product-oriented and does not show permission changes, concealment, data sending, or instructions to bypass approval.
Mechanism
The hook installs Cosmo’s Claude plugin, Codex skill, and Antigravity workflow, replacing existing Cosmo-owned copies. The copied skill guides agent behavior for Cosmo tasks.
Evidence
package.jsonscripts/postinstall.mjspackages/cli/lib/agent-adapters.mjspackages/cli/lib/claude-plugin.mjsplugins/agent-skills/cosmo/SKILL.mdplugins/antigravity/cosmo.md~/.claude/skills/cosmo~/.agents/skills/cosmo