A Gitter access token is a personal credential that lets a program act as your Gitter account. Gitter is a chat service for developer communities, and tokens are commonly used by bots and integrations that post messages, read room history or manage rooms. Whoever holds the token can do what your account can do in every room you belong to, including reading private discussions. The token is tied to a person, so a leak exposes that person’s access, not only a bot.
Check your GitHub account for leaked secrets — free
- Provider
- Gitter
- Severity
- High
- Impact
- SaaS account access and billing
- Checked live by LeakWatch
- No
What a Gitter access token looks like
A Gitter token is a long string of lower-case letters, digits, underscores and hyphens, about 40 characters in the form the rule expects. It has no public prefix. It is normally issued from the developer area of the Gitter site, where it is displayed with the applications you have registered. In use, it is sent in an authorization header, and it is often kept in a variable whose name contains the word gitter:
GITTER_TOKEN=<40-character value, masked as XXXX…>
Because the value has no prefix, the clue is the context. A token in a bot’s configuration, next to a room name, in a script that posts to chat or in a CI variable is a live credential until it has been revoked. Gitter tokens are tied to the account that created them, so one account can have several tokens for different bots.
How Gitter tokens get leaked
- Bot configuration. A settings file for a chat bot, committed to a repository because it was not added to the ignore rules.
- Scripts that post updates. A notification script for a build or a release, with the token typed into its source code.
- Shared examples. A snippet pasted into a tutorial, a gist or a support thread, with the real token left in.
- Logs. A debug mode that prints the request headers, including the authorization header.
- Copied projects. A fork or a template repository that still holds a file with the token from the original author.
What to do in the first hour
- Revoke the token. Sign in to Gitter and open the developer area that lists your tokens and applications. Find the token and remove or regenerate it. Do this before you clean the code, because the old value keeps working until you act. If you cannot find it, ask Gitter support for help, and do not assume the token is gone until you have confirmed it.
- Create a replacement for each bot or integration that needs one, and store it in a secret manager or an environment variable. Update each service and confirm that it can still post.
- Check the rooms. Review the recent messages in the rooms the token could reach, especially rooms with private or internal discussion. Look for messages you did not write and for changes to room settings or membership.
- Check your membership. Review the rooms that the account has joined and remove any that no longer belong to you. A token can read history in every room the account can see.
- Check the other secrets in the same file. Bots are often set up with several services, such as a chat platform, a build server and a hosting provider, so rotate those too.
- Clean the repository after the rotation: remove the value from the files, add the file to
.gitignore, and decide whether to rewrite history. Old clones keep the value until they are deleted.
Not sure what else leaked? Run a free scan.
Revoke it at Gitter
Sign in to Gitter and open the account settings of the developer area, where the account’s tokens and applications are listed. Remove the leaked token there, and create a new one for the replacement integration. We could not confirm the current menu wording or the revocation steps from Gitter’s own documentation during this review. The developer site has changed over time, so check the labels when you act, and if the token is not listed in the place described, ask the Gitter support team for help before assuming it is gone.
How LeakWatch detects it
The rule is called Gitter Access Token. It looks for the word gitter close to a value of exactly 40 lower-case letters, digits, underscores or hyphens, with a separator such as an equals sign, a colon or a comma between them. A 40-character string with no Gitter context is not reported, and a longer or shorter value is not matched. The severity is high, with the impact class for SaaS services. This type is not checked live: LeakWatch does not try the token against Gitter.
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
Does revoking the token affect other people in my rooms?
No. The token only affects the account it belongs to. Other members keep their own access, but any bot that used the token will stop posting until it receives a new one.
Is a token in a private repository still a risk?
Yes, although the risk is lower. Anyone with repository access, every clone and every CI log can read the value. Treat it as exposed if the repository was ever public or shared outside the team.
Should I change my Gitter password?
If the token was found next to your login details, yes. A token and a password are separate, so revoking the token is the main step, but a password that was stored in the same file needs a change too.