LS-STRIPE-003: Stripe Test Key¶
| Severity | MEDIUM |
| Blast radius | Low (test mode only) |
| Rotate at | https://dashboard.stripe.com/test/apikeys |
If this leaks¶
Test keys cannot move real money, but they can reveal the structure of the integration and, if mistaken for a live key, indicate the account exists.
What to do¶
- Rotate or revoke the credential at https://dashboard.stripe.com/test/apikeys.
- 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¶
sk_test_[0-9a-zA-Z]{24,}
Suppress¶
On one line: # leakscan:ignore LS-STRIPE-003. For the whole project:
disable_rules: [LS-STRIPE-003]