LS-AI-014: xAI API Key¶
| Severity | HIGH |
| Blast radius | API usage and billing abuse |
| Rotate at | https://console.x.ai/ |
--verify |
GET https://api.x.ai/v1/api-key |
If this leaks¶
Allows calling the xAI 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://console.x.ai/.
- 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¶
\bxai-[A-Za-z0-9]{80}\b
Suppress¶
On one line: # leakscan:ignore LS-AI-014. For the whole project:
disable_rules: [LS-AI-014]