LS-AI-003: OpenAI Project 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¶
Scoped to a single OpenAI project, but still allows API usage billed to that project and access to its resources.
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¶
sk-proj-[A-Za-z0-9\-_]{100,}
Suppress¶
On one line: # leakscan:ignore LS-AI-003. For the whole project:
disable_rules: [LS-AI-003]