LS-MAIL-001: Mailgun API Key¶
| Severity | HIGH |
| Blast radius | Email sending abuse and phishing |
| Rotate at | https://app.mailgun.com/app/account/security/api_keys |
--verify |
GET https://api.mailgun.net/v3/domains |
If this leaks¶
Allows sending email through every domain configured on the account and reading mailing lists and logs, commonly abused for phishing.
What to do¶
- Rotate or revoke the credential at https://app.mailgun.com/app/account/security/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¶
\bkey-[0-9a-zA-Z]{32}\b
Suppress¶
On one line: # leakscan:ignore LS-MAIL-001. For the whole project:
disable_rules: [LS-MAIL-001]