Skip to content
Messaging · Secret guide

Leaked Intercom Access Token: what to do in the first hour

High severityDetected onlyLast verified · 5 min read

An Intercom access token authenticates calls to the Intercom API for your workspace. Depending on the permissions granted to the app, it can read and change contacts and companies, read customer conversations, send messages, and manage tags, articles and other data. That is customer data: names, emails, support history and anything customers wrote in the chat. The main danger is therefore a data leak about your users, with abuse of the messaging channel as a second one. Rotate the token first, then investigate what was read.

Check your GitHub account for leaked secrets — free

Provider
Intercom
Severity
High
Impact
Payments and customer data
Checked live by LeakWatch
No

What an Intercom access token looks like

Intercom’s documentation says that you find the access token of your own workspace in the Developer Hub, in your app, under the authentication settings, and that it must be treated like a password. It is sent as a bearer token in the Authorization header to the Intercom API. Access tokens are long, random, URL-safe strings, with letters, digits, dashes, underscores and sometimes = characters:

INTERCOM_ACCESS_TOKEN=XXXXXXXXXXXX…XXXX   (long token, masked)
Authorization: Bearer XXXXXXXXXXXX…XXXX

Typical names are INTERCOM_ACCESS_TOKEN, INTERCOM_TOKEN and INTERCOM_API_KEY. Intercom distinguishes the access token, for your own workspace, from OAuth tokens issued to an app that other workspaces install; the latter are obtained per customer and are stored by the app. Several other Intercom values look harmless but are not interchangeable: the app ID used by the Messenger snippet in web pages is public by design, while an identity verification secret is a server-side secret and must never appear in client code.

How Intercom access tokens get leaked

  • Server configuration in code. INTERCOM_ACCESS_TOKEN in a committed .env, a settings file or a deployment manifest.
  • Frontend bundles. The Messenger needs only the public app ID, but developers sometimes add the access token to the same configuration object, and it ships to every visitor.
  • Integration scripts. CRM synchronization, support-ticket exports and data migration scripts kept in repositories or notebooks.
  • CI and logs. A token printed by a debug step, or an authenticated request pasted in an issue with its header.
  • Support threads and screenshots. A capture of the authentication page of the Developer Hub with the token visible.

What to do in the first hour

  1. Open your app in the Developer Hub. Find the app that owns the token, in the Intercom workspace, and its authentication page (see the link below).
  2. Generate a new token and revoke the old one. Intercom’s own pages do not describe the rotation in detail, and the usual sequence is to create the new token, deploy it, check that requests succeed, then revoke the exposed one. If the token is being abused, revoke it at once and accept a short interruption.
  3. Deploy the new token to your application and secret store.
  4. Review what could be read. Check the permissions of the app: contacts, conversations, companies, articles. This defines the scope of the data exposure.
  5. Look for signs of use. Check the workspace for new or changed contacts, messages you did not send, exported data and new admins, apps or webhooks. Intercom may not give a full per-request audit of API calls, so compare with your own logs.
  6. Assess the data exposure. If personal data could have been read, your privacy obligations may require notifying users or authorities. Involve whoever handles that in your company.
  7. Clean up the code. See I accidentally pushed an API key to GitHub and remove the token from the history if the repository is public.

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

Not sure what else leaked? Run a free scan.

Revoke it at Intercom

Access tokens are managed in the Developer Hub of your Intercom workspace, in the authentication section of the app: Intercom Developer Hub. You need to sign in with a workspace member who can manage apps. A person has not confirmed the exact menu wording for this guide, and the interface can change, so if the page differs from this description, look for the section where the access token of the app is shown, and follow the Intercom developer documentation on authentication.

How LeakWatch detects it

The rule called Intercom API Key looks for the word intercom, in any letter case, possibly inside a longer name such as INTERCOM_ACCESS_TOKEN, followed by up to 20 name characters and then an assignment such as =, : or =>, with optional quotes and spaces. The value must be exactly 60 characters among letters, digits, =, _ and -, followed by a quote, whitespace, a semicolon, a line break or the end of the text. A shorter or longer value, or one that is not assigned next to the word, is refused. An Intercom token pasted in a bearer header without the word nearby can be missed. The severity is high. This type is not checked live: LeakWatch does not send any request to Intercom with the value it found.

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 Intercom app ID a secret?

No. The app ID used by the Messenger on your website is public by design. The access token and the identity verification secret are the sensitive values.

Can the token read customer conversations?

It can if the app was granted that permission. Check the permissions of the app in the Developer Hub to know what was within reach.

Will rotating the token break my integration?

Yes, until the new value is deployed. Prepare the deployment first, unless the token is already being abused.

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

LeakWatch is not affiliated with Intercom.