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¶
- Rotate or revoke the credential at https://www.comet.com/account-settings/apiKeys.
- Check the provider's audit logs for use you don't recognise.
- 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]