The package performs guarded, first-party agent integration refreshes from a global postinstall hook. This is a lifecycle extension risk, but the inspected code does not establish unconsented broad mutation or concrete malicious behavior.
Static reason
High-risk behavior combination matched malicious policy.
Trigger
A global npm installation or upgrade when the postinstall hook is allowed to run.
Impact
Previously installed Kcap agent integrations may be refreshed. The inspected source does not establish credential theft, broad control-surface mutation, or another active attack.
Mechanism
The hook invokes Kcap refresh commands for agent integrations with --if-installed. It also conditionally patches canonical Kcap server commands in the shipped Claude plugin configuration.
Evidence
package.jsonbin/postinstall.jsbin/refresh.js