Skip to content
Cloud · Secret guide

Leaked Looker API client secret: what to do in the first hour

High severityDetected onlyLast verified · 4 min read

A Looker API client secret is the secret half of an API3 credential pair that a Looker user uses to call the Looker API. Whoever holds it can act as that Looker user: running queries, reading dashboards and exporting data the user is allowed to see. Business intelligence data often includes customer records and financial figures, so a leaked credential is a data exposure. Reset the secret first, then review what the account queried.

Check your GitHub account for leaked secrets — free

Provider
Looker
Severity
High
Impact
Source code and build access
Checked live by LeakWatch
No

What a Looker client secret looks like

Looker API3 credentials come as a pair: a client ID and a client secret. The client ID identifies the credential, and the client secret is the value to protect. The secret is a long string of lowercase letters and digits with no distinctive prefix, so context matters more than shape:

<client secret, 24 characters>   Looker client secret (masked)

The rule depends on the word looker appearing near the value in a configuration file, a script or a log. Looker’s own examples show the pair being passed to a client library, which is where the secret most often gets copied into code.

How Looker client secrets get leaked

  • Configuration committed to a repository. A file for a Looker SDK or a data pipeline that stores both the client ID and the secret.
  • Notebooks and scripts. A notebook or script that authenticates to Looker with the secret written inline, then shared with others.
  • Shared dashboards and embed code. Embedding code that includes a credential instead of a signed URL created on the server.
  • CI logs. A step that prints its environment or the client it creates.
  • Support threads. A pair pasted into a ticket to debug an authentication error.

What to do in the first hour

  1. Reset the credential. Open the account settings for the Looker user that owns the API3 key, find the API keys section and reset or delete the key that leaked. Create the replacement first if the integration is running, then remove the old one.
  2. Deploy the new secret through your secret store, and test that the integration can still run its queries.
  3. Review the query history. Check the admin activity and query history for the period since the exposure. Look for queries you did not run, exports of large tables and unfamiliar IP addresses.
  4. Check the user. Confirm that the Looker user’s role and permissions have not changed, and that no new keys or schedules were added to the account.
  5. Review schedules and destinations. Scheduled deliveries can send data to outside addresses, so check them for changes.
  6. Clean the repository. Remove the secret from code and history, and check the logs. See I accidentally pushed an API key to GitHub.

Not sure what else leaked from the same pipeline? Run a free scan.

Not sure what else leaked? Run a free scan.

Revoke it at Looker

Open the account settings for the Looker user, go to the API keys section and reset or delete the API3 key that leaked. Public descriptions of this screen use different labels for the same action, so read the wording carefully. Use a dedicated service user for integrations, so that revoking one key does not affect people. This guide has not confirmed the exact labels against a live Looker instance, so check the page before you act.

How LeakWatch detects it

The rule is called “Looker Client Secret”. It looks for the word looker near an assignment, followed by a value of 24 lowercase letters and digits, with word boundaries around the value. The word is required, so a bare value with no Looker context is not reported. The severity is high. This type is not checked live: LeakWatch does not call Looker with the value it finds.

LeakWatch detects this format but does not check it live: it can tell you the key is exposed, not whether it still works. Assume it does until you have revoked it.

FAQ

Is the client ID also sensitive?

It is less sensitive on its own, but together with the secret it lets someone authenticate. Treat the pair as one credential.

Should integrations use an admin account?

No. Use a service user with the smallest role that the integration needs. A leaked key from an admin account exposes far more data.

Will resetting the key break my dashboards?

Only the integrations that use that key. Interactive dashboards for people use their own sign-in, so they keep working.

Get alerted next time a secret leaks — create a free account

LeakWatch is not affiliated with Looker.