Skip to content

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

  1. Rotate or revoke the credential at https://dashboard.stripe.com/test/apikeys.
  2. Check the provider's audit logs for use you don't recognise.
  3. 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]