Skip to content

LS-GCP-003: Google OAuth Client Secret

Severity HIGH
Blast radius OAuth application impersonation
Rotate at https://console.cloud.google.com/apis/credentials

If this leaks

Combined with the client ID, lets an attacker impersonate your OAuth app and phish user consent.

What to do

  1. Rotate or revoke the credential at https://console.cloud.google.com/apis/credentials.
  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

\bGOCSPX-[A-Za-z0-9_\-]{28}\b

Suppress

On one line: # leakscan:ignore LS-GCP-003. For the whole project:

disable_rules: [LS-GCP-003]