LS-ALGOLIA-001: Algolia Admin Key¶
| Severity | HIGH |
| Blast radius | Search index compromise |
| Rotate at | https://dashboard.algolia.com/account/api-keys |
If this leaks¶
Admin keys can read, modify and delete every index and rotate other API keys.
What to do¶
- Rotate or revoke the credential at https://dashboard.algolia.com/account/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)(?:algolia)[\w.\-]{0,25}['\"]?\s*(?::=|=>|[=:])\s*['\"]?([a-f0-9]{32})(?![A-Za-z0-9])
Suppress¶
On one line: # leakscan:ignore LS-ALGOLIA-001. For the whole project:
disable_rules: [LS-ALGOLIA-001]