Skip to content

LS-AI-006: Cohere API Key

Severity HIGH
Blast radius API usage and billing abuse
Rotate at https://dashboard.cohere.com/api-keys
--verify POST https://api.cohere.ai/v1/check-api-key

If this leaks

Allows making Cohere API calls billed to the account owner, potentially racking up large usage charges.

What to do

  1. Rotate or revoke the credential at https://dashboard.cohere.com/api-keys.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

(?i)cohere(?:.{0,20})?['\"]([A-Za-z0-9]{40})['\"]

Suppress

On one line: # leakscan:ignore LS-AI-006. For the whole project:

disable_rules: [LS-AI-006]