The install hook performs unrequested cleanup that can delete user credential and settings files, creating a real destructive-action risk. Its cleanup is conditional and appears intended for migration, so this is suspicious rather than clear malicious behavior.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review; source fingerprint signature matched known malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
npm install, via the postinstall lifecycle script.
Impact
Users may lose locally stored credentials or settings without a clear request; account provisioning also occurs automatically during installation.
Mechanism
It checks files under the user’s Cody configuration directories, deletes selected credential or settings files and the cache, then may request a trial account and save the returned credentials.
Evidence
package.jsonbin/postinstall.cjs~/.cody/credentials.json~/.cody/oauth.json~/.cody/tokens.json~/.cody/.credentials~/.cody/settings.json~/.cody/cache/~/.config/cody-cli/credentials.json