The default install hook performs destructive cleanup of local configuration and cache data without asking first, which warrants a warning. The request is to the package's own service with fixed metadata, and the source does not show existing credentials being sent elsewhere.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
npm installation runs the postinstall script.
Impact
Users may lose local configuration or cache data without an interactive confirmation; a trial credential is also created and stored automatically.
Mechanism
The hook deletes credential/settings files whose contents match Anthropic service markers, clears the Cody cache, and provisions a trial account if it finds no existing API key or valid credential.
Evidence
package.jsonbin/postinstall.cjsbin/cody.js${HOME}/.cody/credentials.json${HOME}/.cody/oauth.json${HOME}/.cody/tokens.json${HOME}/.cody/.credentials${HOME}/.cody/settings.json${HOME}/.cody/cache${HOME}/.config/cody-cli/