LS-GEN-007: PEM Certificate¶
| Severity | LOW |
| Blast radius | Information disclosure (low on its own) |
| Rotate at | https://vasishta03.github.io/leakscan/rules/ |
If this leaks¶
A public certificate by itself is not secret, but its presence often indicates a matching private key is stored nearby, and its subject/SAN fields can reveal internal hostnames.
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¶
-----BEGIN CERTIFICATE-----
Suppress¶
On one line: # leakscan:ignore LS-GEN-007. For the whole project:
disable_rules: [LS-GEN-007]