Skip to content
Code & CI · Secret guide

Leaked Shortcut API Token: what to do in the first hour

Medium severityDetected onlyLast verified · 5 min read

A Shortcut API token lets a program work with Shortcut, the project management tool for software teams, on behalf of a user in a workspace. With it, an attacker can read stories, epics and their comments, which often describe unreleased features and internal bugs. They can also create or change stories, move work between states and add comments under a team member’s name. The token is tied to the user who created it and to the workspace, so the damage depends on that person’s permissions.

Check your GitHub account for leaked secrets — free

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

What a Shortcut API token looks like

Shortcut API tokens are identifier-shaped values: a run of hexadecimal characters arranged in five groups separated by hyphens. They have no public prefix, so they are recognized by their context. They are generated under your account settings in a workspace, where you give the token a name first, and they are usually stored in a script or a configuration file next to the word shortcut:

SHORTCUT_API_TOKEN=<identifier-shaped value, masked as XXXX…>

Shortcut’s help center says that a token is specific to the user and the workspace. If the user who created it leaves the workspace, the token stops working as expected, so a token that appears in a shared automation may belong to someone who has since moved on. Check who created the token before you decide what to change.

How Shortcut tokens get leaked

  • Automation scripts. A script that syncs stories with another tool, with the token typed into the source code and then committed.
  • Chat integrations. A bot or a plug-in configured with the token, where the configuration file is exported and shared.
  • Shared examples. A snippet pasted into a blog post, a forum or a support request to show the API, with the real token left in.
  • CI logs. A release script that posts updates to Shortcut and prints its request headers.
  • Copied repositories. A template or a fork that still holds a configuration file with the original token.

What to do in the first hour

  1. Delete the token. Open your Shortcut account settings, go to the API tokens section for the workspace, and delete the token that leaked. Shortcut’s help center describes deletion as a single action, using the bin icon next to the token. Do this before you clean the repository.
  2. Create a new token with a clear name that says which integration uses it, and store it in a secret manager or an environment variable. Update the scripts that used the old token and run one test that reads a story.
  3. Review the stories. Look at the stories, epics and comments changed since the token may have been exposed. Look for changes in state or ownership you did not make, for comments under a team member’s name that they did not write, and for stories you do not recognize.
  4. Check the membership. Review the members of the workspace and remove anyone who should no longer be there. Because the token belongs to a user, make sure that user’s account is still in the right state.
  5. Check the other secrets in the same file. Project tools are often connected to chat, code hosting and documentation, so rotate the tokens stored alongside this one.
  6. Clean the repository after the rotation: remove the value from the files, add the file to .gitignore and decide whether to rewrite history. The order of steps is in I accidentally pushed an API key to GitHub.

Not sure what else leaked? Run a free scan.

Not sure what else leaked? Run a free scan.

Revoke it at Shortcut

Open the account settings in your Shortcut workspace, go to Settings, then your account, then the API tokens section. Find the token, click the bin icon next to it, and confirm. Shortcut’s help center describes the token list and the generate button, and it notes that the generate button stays inactive until you enter a name. We could not confirm the current permission controls on Shortcut’s own pages during this review, so check the options in the app before you create the replacement.

How LeakWatch detects it

The rule is called Shortcut API Token. It looks for the word shortcut followed, within about 40 characters, by a value of the identifier shape: eight, four, four, four and twelve hexadecimal characters separated by hyphens. The match can cross a line break. A value with no Shortcut context nearby, or one with a different shape, is not reported. The severity is medium, with the impact class for SaaS services. This type is not checked live: LeakWatch does not send the token to Shortcut.

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 deleting a token affect the people in my workspace?

No. The token is only a credential for one integration. Team members keep their own access, but any script that used the token will stop working until it receives the new one.

Why does the owner of the token matter?

Because the token acts as that user. If the user has more rights than the integration needs, the token carries those rights too. Consider making the replacement token from a user with only the permissions the job requires.

Is a token in a private repository still a problem?

It is less urgent than a public leak, but everyone with repository access and every clone can read it. Treat it as exposed if the repository was ever public or shared with outside contractors.

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

LeakWatch is not affiliated with Shortcut.