LS-KEY-003: PGP Private Key¶
| Severity | CRITICAL |
| Blast radius | Identity impersonation and data decryption |
| Rotate at | https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key |
If this leaks¶
Allows an attacker to decrypt messages encrypted to this key and to forge signatures that appear to come from its owner.
What to do¶
- Rotate or revoke the credential at https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key.
- 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 PGP PRIVATE KEY BLOCK-----
Suppress¶
On one line: # leakscan:ignore LS-KEY-003. For the whole project:
disable_rules: [LS-KEY-003]