The Cowork helper conditionally forwards an existing Allternit token to an unrestricted configured endpoint, which is a credential-exposure risk. The manifest’s hooks are publish checks, and the plugin setup is explicitly invoked; neither establishes an install-time attack.
Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
A user invokes a Cowork API operation while an Allternit token is available and ALLTERNIT_API_URL points to a server they do not trust.
Impact
The configured server could receive the saved token, creating conditional credential exposure.
Mechanism
The API helper uses ALLTERNIT_API_URL or defaults to localhost, loads a token from the environment or saved session, and attaches it as a Bearer header without a destination allowlist.
Evidence
src/cli/commands/cowork.ts