# Leaked GitLab Runner Token? Remove the Runner Now

> GitLab runner authentication token (glrt-) exposed? Remove the runner, audit jobs and CI variables it could read. Step-by-step guide.

Source: https://leakwatch.net/secrets/gitlab-runner-authentication-token

---

[LeakWatch](/)

[Product](/product)[Live feed](/leaks)[Guides](/secrets)[Blog](/blog)[Free scan](/)

1.  [Home](/)
2.  [Secrets](/secrets)
3.  GitLab Runner Authentication Token

Code & CI · Secret guide

# Leaked GitLab Runner Authentication Token: what to do in the first hour

Critical severityDetected onlyLast verified October 30, 2026 · 4 min read

A GitLab runner authentication token is the credential a runner uses to fetch jobs from GitLab. Whoever holds it can impersonate that runner: request pending jobs from the projects it serves, and with each job receive the repository code and the CI/CD variables that the job is allowed to read, including any deployment secrets. That is why a leaked runner token is more serious than it looks. The danger is stolen secrets and tampered builds. Remove the runner first, then investigate.

[Check your GitHub account for leaked secrets — free](/)

Provider

GitLab

Severity

Critical

Impact

Source code and build access

Checked live by LeakWatch

No

## What a GitLab runner authentication token looks like

A runner authentication token begins with `glrt-`. There are two shapes:

```text
glrt-XXXX…XXXX                    classic format (masked, 20 characters after the prefix)
glrt-t1_XXXX…XXXX.XX.XXXXXXXX     routable format (masked, with two dot-separated suffixes)
```

The routable format starts with `glrt-t` and a digit, followed by an underscore, a longer body, then two dot-separated parts of two and about seven to twelve characters. The token is written to the `config.toml` file of the runner after registration, in a `token` line, and it appears in the output of `gitlab-runner register`, in Helm values, in Kubernetes secrets and in Terraform variables. It is not the older registration token, which is covered in the [runner registration token guide](/secrets/gitlab-runner-registration-token): that one is only used to create runners. The authentication token identifies one runner that already exists.

## How GitLab runner tokens get leaked

-   **The runner configuration file.** A `config.toml` copied into a repository, a backup, an image or a support request.
-   **Helm and Kubernetes manifests.** A `runnerToken` value committed in chart values or a secret manifest.
-   **Infrastructure code.** A Terraform or Ansible file that registers runners and stores the token in plain text.
-   **Machine images and containers.** A runner image or snapshot built after registration and published with the token inside.
-   **Logs and chat.** Registration output pasted into an issue, a chat channel or a CI log.

## What to do in the first hour

1.  **Find the runner.** In GitLab, open the runners list of the project, group or instance that owns it (see the link below) and match it by its description or token ending.
2.  **Remove or replace the runner.** Delete the runner so that its token stops being accepted, then create a new runner and register it to get a fresh token. Some GitLab versions may also offer a reset action for the token. Use whichever is available.
3.  **Deploy the new token** to the runner host, the Helm values or the secret manager, and confirm that a test job runs.
4.  **Review recent jobs.** Look at pipelines on the projects the runner serves for jobs you did not expect, unusual commands or long run times, which can indicate a hijacked runner.
5.  **Rotate CI/CD variables.** Assume that every variable the runner could receive was read. Rotate cloud keys, deploy tokens and registry credentials exposed to those jobs.
6.  **Check the build output.** If an attacker ran jobs, review artifacts, images and packages produced since the exposure.
7.  **Clean up the code** and look for other secrets in the same file. See [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github).

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 GitLab

Runners are managed from the CI/CD settings of the project or group, or from the admin area for instance runners, in your GitLab account after you sign in with a role allowed to manage them. The runners list shows each runner and lets you delete it, which invalidates its authentication token. 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 runners are listed, and follow GitLab’s documentation. A self-managed GitLab uses its own address.

## How LeakWatch detects it

Two rules cover this guide, both with the severity **critical**.

The rule called GitLab Runner Authentication Token matches `glrt-` followed by exactly 20 letters, digits, underscores or dashes, and refuses a match if another letter, digit, underscore or dash comes right after. A longer run of such characters is therefore not reported as the classic format.

The rule called GitLab Runner Authentication Token Routable matches `glrt-t`, a digit, an underscore, a body of 27 to 300 characters, a dot, two lowercase letters or digits, another dot, and seven to twelve lowercase letters or digits, with word boundaries around the whole match.

Neither rule needs a variable name next to the token. Neither type is checked live: LeakWatch does not send any request to GitLab with the token 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

What is the difference between a registration token and an authentication token?

A registration token creates new runners and is deprecated by GitLab. An authentication token identifies one runner and is what it uses to request jobs. Both should be treated as secrets.

Can the attacker read my CI variables?

They can try to receive jobs from the projects the runner serves, and a job receives the variables it is allowed to read. Rotate those variables after replacing the runner.

Does deleting the runner stop the token at once?

Removing the runner invalidates its token. Confirm afterward by checking that the host can no longer fetch jobs.

## Related

-   [GitLab Deploy Token](/secrets/gitlab-deploy-token)
-   [GitLab Runner Registration Token](/secrets/gitlab-runner-registration-token)
-   [GitLab Personal Access Token](/secrets/gitlab-personal-access-token)
-   [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github)
-   [Which vendors leak most this week](/leaks/trends)
-   [All secret guides](/secrets)

[Get alerted next time a secret leaks — create a free account](/)

LeakWatch is not affiliated with GitLab.

![Gabriel Diyan, founder of LeakWatch](/brand/Photo-Gabriel-Diyan.webp)

Gabriel Diyan (0xCr0c0)

Cybersecurity student, founder of LeakWatch. I built and run the scanner described here — the detection patterns, the false-positive classifier and the provider validators are mine. [More about who I am](/about).

[GitHub](https://github.com/Leakwatch-Scan) · [X](https://x.com/LeakwatchScan) · [LinkedIn](https://www.linkedin.com/in/gabriel-diyan-80a378375) · [GitHub (personal)](https://github.com/crocogab)

LeakWatch

Secrets leak into public commits every minute. This watches the forges for yours. Built and run by [Gabriel Diyan](/about), a cybersecurity student — [why LeakWatch exists](/about).

Scan

-   [Product](/product)
-   [Live feed](/leaks)
-   [Trends](/leaks/trends)
-   [API docs](/docs)
-   [CI/CD](/docs?tab=ci)

Read

-   [Blog](/blog)
-   [Secret guides](/secrets)
-   [Changelog](/changelog)
-   [About](/about)

Verify

-   [Security](/security)
-   [Privacy](/privacy)
-   [Terms](/terms)
-   [Legal](/legal)
-   [Contact](/contact)
-   [Status](https://status.leakwatch.net)

© 2026 LeakWatch

[GitHub](https://github.com/Leakwatch-Scan)[X](https://x.com/LeakwatchScan)
