The plugin silently performs a global npm install of its companion CLI on the first chat message when an update is available, with notification only afterward. The update targets the publisher’s own product, but it runs by default without advance disclosure, so this is a blocking remote-code update capability.
Static reason
No blocking static signals were detected.
Trigger
The first OpenCode chat.message event after plugin setup.
Mechanism
The background update check queries the npm registry and, by default, runs npm install -g for a newer @boyingliu01/xp-gate release. The config opt-out must already be set to disable this.
Attack narrative
On the first chat message, the plugin checks npm for a newer XP-Gate CLI and automatically installs it globally when one is available. The user receives a notice only after a successful upgrade; disabling this behavior requires a preexisting config opt-out. This is an undisclosed default update of the publisher’s companion package.
Evidence
index.tspackage.json~/.xp-gate/xp-gate-version-check.json~/.xp-gate/upgrade-notice.jsonglobal npm installation of @boyingliu01/xp-gate