LS-SG-001: SendGrid API Key¶
| Severity | HIGH |
| Blast radius | Email sending abuse and phishing |
| Rotate at | https://app.sendgrid.com/settings/api_keys |
--verify |
GET https://api.sendgrid.com/v3/user/profile |
If this leaks¶
Allows sending email as any verified sender on the account, harvesting contact lists, and reading email activity, often used for phishing campaigns.
What to do¶
- Rotate or revoke the credential at https://app.sendgrid.com/settings/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¶
SG\.[0-9a-zA-Z\-_]{22}\.[0-9a-zA-Z\-_]{43}
Suppress¶
On one line: # leakscan:ignore LS-SG-001. For the whole project:
disable_rules: [LS-SG-001]