Skip to content

LS-STRIPE-004: Stripe Restricted Key

Severity HIGH
Blast radius Payment processing and customer financial data
Rotate at https://dashboard.stripe.com/apikeys
--verify GET https://api.stripe.com/v1/balance

If this leaks

Grants the specific Stripe permissions chosen for this key, which can include charges, refunds and customer data.

What to do

  1. Rotate or revoke the credential at https://dashboard.stripe.com/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

\brk_live_[0-9a-zA-Z]{24,}\b

Suppress

On one line: # leakscan:ignore LS-STRIPE-004. For the whole project:

disable_rules: [LS-STRIPE-004]