Skip to content

LS-AI-016: Comet API Key

Severity HIGH
Blast radius ML experiment and model data exposure
Rotate at https://www.comet.com/account-settings/apiKeys

If this leaks

Allows reading and writing experiments, models and assets in the Comet workspace.

What to do

  1. Rotate or revoke the credential at https://www.comet.com/account-settings/apiKeys.
  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)(?:comet)[\w.\-]{0,25}['\"]?\s*(?::=|=>|[=:])\s*['\"]?([A-Za-z0-9]{25})(?![A-Za-z0-9])

Suppress

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

disable_rules: [LS-AI-016]