The postinstall hook automatically launches the package’s agent-plugin installer for global installs, and that installer updates global agent configuration and skill directories. This is automatic setup of the package’s own integration, so it is suspicious under the lifecycle-risk rule; the DNS exfiltration hint was not confirmed.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
npm postinstall during a global package install, or when CONTEXT_CLI_AUTO_PLUGIN_INSTALL=1 is set.
Impact
Global agent plugin configuration and skill files can be added or refreshed without a separate plugin-install command.
Mechanism
The hook launches the bundled CLI’s `plugin install` command, which installs the package’s agent plugin and materializes bundled skills.
Evidence
package.jsonscripts/postinstall.mjscli.js~/.codex/config.toml~/.agents/skills/<provider-skill>~/.claude/skills/<provider-skill>~/.cursor/plugins/local/context