LS-CLERK-001: Clerk Secret Key¶
| Severity | HIGH |
| Blast radius | Identity provider compromise |
| Rotate at | https://dashboard.clerk.com/last-active?path=api-keys |
If this leaks¶
Allows managing users and sessions in your Clerk instance from the backend API.
What to do¶
- Rotate or revoke the credential at https://dashboard.clerk.com/last-active?path=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)(?:clerk)[\w.\-]{0,25}['\"]?\s*(?::=|=>|[=:])\s*['\"]?(sk_(?:live|test)_[A-Za-z0-9]{40,})(?![A-Za-z0-9])
Suppress¶
On one line: # leakscan:ignore LS-CLERK-001. For the whole project:
disable_rules: [LS-CLERK-001]