Skip to content
Databases & keys · Secret guide

Leaked Clearbit API key: what to do in the first hour

Medium severityDetected onlyLast verified · 4 min read

A Clearbit API key was used to look up company and person data for sales and marketing tools. Clearbit is now part of HubSpot, and public reports say that standalone Clearbit APIs are being retired and that new API keys are no longer issued for newer accounts. A key you still have may belong to an older account, or to a tool that still calls a legacy endpoint. Whatever its status, a leaked key lets someone run lookups and consume your quota, and it may be linked to customer records in your own tools. Find the account first, then decide what to revoke.

Check your GitHub account for leaked secrets — free

Provider
Clearbit
Severity
Medium
Impact
SaaS account access and billing
Checked live by LeakWatch
No

What a Clearbit API key looks like

Clearbit keys are strings of 35 characters made of lowercase letters, digits and underscores, with no distinctive prefix. The word clearbit placed near the value is what identifies it in a file, a script or a log:

<35 characters of lowercase letters, digits and underscores>   Clearbit API key (masked)

Keys were typically sent as bearer credentials to the enrichment endpoints. Many integrations stored the key in a plugin setting or an environment variable, which is where it tends to be copied from.

How Clearbit API keys get leaked

  • Integration settings in a repository. A configuration file for a sales or marketing tool that stored the key in plain text.
  • Scripts that enrich leads. A batch script that calls the API, with the key written inline, then shared with a colleague.
  • Front-end code. A key placed in a sign-up form or a web page to enrich visitors, where anyone can read it.
  • Old tutorials. Sample code that still shows a working key or a placeholder that was replaced with a real value.
  • Logs. A request logger that records the authorization header.

What to do in the first hour

  1. Find the account. Identify which Clearbit or HubSpot account issued the key, and who has access to it. A key from an old account may be the only one left.
  2. Remove the key from the tool that uses it. Disconnect the integration or replace the key in its settings, so that nothing continues to send requests with it.
  3. Revoke the key through the account settings of the account that issued it, if the page offers the option. This guide could not confirm the revocation path for every account type, so check the live page.
  4. Review the usage. Check the request history and quota for the period since the exposure. Look for lookups you did not start, especially in bulk.
  5. Check your records. Enrichment writes data into CRM records, so look for contacts or companies that were changed or added by an integration you did not expect.
  6. Clean the repository. Remove the value from files and history, and check logs. See I accidentally pushed an API key to GitHub.

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

Not sure what else leaked? Run a free scan.

Revoke it at Clearbit

Open the account settings of the account that issued the key and look for the API keys section. If the key belongs to a legacy Clearbit account, the option to delete it may no longer be offered, in which case the practical step is to disconnect every integration that uses it and stop using the endpoints. HubSpot’s developer changelog documents the sunset of parts of the Clearbit product and is the best place to check the current status. This guide has not confirmed the revocation path for legacy keys.

How LeakWatch detects it

The rule is called “Clearbit API Key”. It looks for the word clearbit within about 40 characters of a 35-character run of lowercase letters, digits and underscores, with word boundaries around the value. The word is required. The severity is medium. This type is not checked live: LeakWatch does not call Clearbit with the value it finds, so a hit does not tell you whether the key still works.

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 a Clearbit key still useful to an attacker?

Possibly, if the account still runs. Treat it as usable until you have confirmed that it is not.

Does this key expose my CRM data?

Not directly. It can run lookups and, through an integration, may have written data into your records. Review both.

What should I use instead?

Check HubSpot’s current options and the replacement providers your team chooses. Plan the switch so that no integration is left running with a key you have not reviewed.

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

LeakWatch is not affiliated with Clearbit.