LS-GEN-002: Generic Secret¶
| Severity | MEDIUM |
| Blast radius | Unknown application credential exposure |
| Rotate at | https://vasishta03.github.io/leakscan/rules/ |
If this leaks¶
An unidentified secret or client secret. If valid, it can typically be used together with a client ID to authenticate as an application.
What to do¶
- Rotate or revoke the credential at https://vasishta03.github.io/leakscan/rules/.
- 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)(?:secret|secret_key|client_secret)\s*[=:]\s*['\"]?([0-9a-zA-Z\-_]{16,})['\"]?
Suppress¶
On one line: # leakscan:ignore LS-GEN-002. For the whole project:
disable_rules: [LS-GEN-002]