LS-AI-002: OpenAI API Key¶
| Severity | HIGH |
| Blast radius | API usage and billing abuse |
| Rotate at | https://platform.openai.com/api-keys |
--verify |
GET https://api.openai.com/v1/models |
If this leaks¶
Allows making OpenAI API calls billed to the account owner, including high-cost model usage, and may expose any fine-tuned models or files on the account.
What to do¶
- Rotate or revoke the credential at https://platform.openai.com/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¶
\bsk-[0-9a-zA-Z]{48}\b
Suppress¶
On one line: # leakscan:ignore LS-AI-002. For the whole project:
disable_rules: [LS-AI-002]