LS-AI-010: Together AI API Key¶
| Severity | HIGH |
| Blast radius | API usage and billing abuse |
| Rotate at | https://api.together.xyz/settings/api-keys |
--verify |
GET https://api.together.xyz/v1/models |
If this leaks¶
Allows calling the Together AI API billed to the key owner, and reading any files, fine-tunes or usage data the account exposes.
What to do¶
- Rotate or revoke the credential at https://api.together.xyz/settings/api-keys.
- 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)(?:together)[\w.\-]{0,25}['\"]?\s*(?::=|=>|[=:])\s*['\"]?((?:tgp_v1_[A-Za-z0-9_\-]{43}|[a-f0-9]{64}))(?![A-Za-z0-9])
Suppress¶
On one line: # leakscan:ignore LS-AI-010. For the whole project:
disable_rules: [LS-AI-010]