The package automatically writes agent skills, commands, MCP registrations, and configuration into user-level host directories during installation. Although these assets serve the package’s stated purpose, the install-time agent-control changes are unrequested and meet the package firewall’s hijack criteria.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
npm install invokes the package’s postinstall hook.
Impact
Agent hosts may load package-provided instructions or launch its MCP server after installation, without a separate user request.
Mechanism
The hook runs both host installers, which write package assets and MCP server entries to agent host configuration outside the package directory, and merge OpenCode configuration.
Policy narrative
On npm installation, the postinstall hook runs both host installers. They deploy package skills and commands into global agent directories, register the package’s MCP servers in host configuration, and modify OpenCode’s global config. These agent-control writes happen automatically without a separate user request.
Evidence
package.jsonscripts/postinstall.mjsscripts/audit/postinstall.mjsscripts/remediate/postinstall.mjs