The postinstall can automatically install a first-party OpenCode extension that changes agent tool handling, leaving a lifecycle-related agent extension risk. The inspected behavior is consistent with the package's gate functionality and does not establish a concrete attack, so a warning is appropriate.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
Installing the package runs its postinstall hook, which invokes the core installer automatically.
Impact
The package can change OpenCode behavior during installation without a separate setup command.
Mechanism
The installer defers OpenCode setup until npm exits, then can copy the package plugin into the OpenCode plugins directory and create configuration when none exists. The plugin gates selected tool calls.
Evidence
package.jsoninstall/install.mjsadapters/opencode/novahiz-plugin.ts