Aller au contenu principal

Google OAuth2 Keys

Description​

General​

  • Documentation: https://developers.google.com/identity/protocols/oauth2
  • Summary: A Google OAuth2 client ID and client secret are the credentials of an application. They identify and authenticate the application to Google when it asks users for access to their Google account. On their own, they do not give access to any user's data: the application only gets access to an account after its user authorizes it, and accessing APIs without a user requires a service account instead.

A leaked client secret lets an attacker impersonate the application, for example in OAuth consent screens. When a refresh token leaks next to the client ID and secret, it gives access to the user's account: this is covered by the Google OAuth2 Refresh Token detector.

The client secret of an installed (desktop) application is public by design, such as the one embedded in the gcloud CLI. This detector doesn't report this kind of public app credentials.

Revoke the secret​

Reset the client secret, or delete the OAuth client, from the Credentials page of the Google Cloud console: https://console.cloud.google.com/apis/credentials.

Details for Base64 Google OAuth2 Keys​

  • Family: credentials

  • Category: cloud_provider

  • Company: Google

  • High recall: False

  • Validity check available: True

  • Analyzer available: False

  • Revoker available: False

  • On-premise instances exist: False

  • Only valid secrets raise an alert: False

  • Occurrences found for one million commits: 0.25

  • Prefixed: False

Details for Google OAuth2 Keys​

  • Family: credentials

  • Category: cloud_provider

  • Company: Google

  • High recall: True

  • Validity check available: True

  • Analyzer available: False

  • Revoker available: False

  • On-premise instances exist: False

  • Only valid secrets raise an alert: False

  • Occurrences found for one million commits: 3.04

  • Prefixed: True

Details for Google OAuth2 Keys​

  • Family: credentials

  • Category: cloud_provider

  • Company: Google

  • High recall: True

  • Validity check available: True

  • Analyzer available: False

  • Revoker available: False

  • On-premise instances exist: False

  • Only valid secrets raise an alert: False

  • Occurrences found for one million commits: 33.7

  • Prefixed: True