sk_live_…

Exposed Stripe Secret Key? Here's how to detect and rotate it

A live Stripe key (sk_live_…) lets anyone move money and read customer data. Scan free with Trust, then roll the key in your Stripe Dashboard in seconds.

A Stripe secret key beginning with sk_live_ is the master credential for your live Stripe account. It authorizes real charges, refunds, and payouts, and gives full read access to customer and payment data via the API. Stripe shows a live secret key only once.

What an attacker can do with a leaked Stripe Secret Key

How Stripe Secret Keys get exposed

Scan your repo and live site for exposed Stripe Secret Keys — free

Trust checks your code, git history, and shipped JavaScript. No signup, results in about a minute.

Run a free scan →

How to rotate a leaked Stripe Secret Key

  1. Go to the Stripe Dashboard → Developers → API keys.
  2. Find the compromised secret key row and click the ‘…’ menu → Roll key.
  3. Pick an expiration window for the old key long enough to test the new one (use ‘expire immediately’ only for an active emergency).
  4. Copy the new key and update your backend environment variables.
  5. Verify live traffic works by checking request logs for the new key.
  6. Once confirmed, delete the old key from the same ‘…’ menu.

Open the Stripe Secret Key dashboard →