GitLab Deploy Token
Detects GitLab deploy tokens (gldt- prefix). Deploy tokens grant read/write access to a project's repository, container registry and package registry; a leak enables artifact theft or tampering.
- Type
- regex
- Engine
- universal
- Confidence
- high
- Confidence justification
- High confidence: the distinctive gldt- prefix with a fixed 20-character body makes false positives extremely unlikely.
- Jurisdictions
- global
- Regulations
- Criminal Code Act 1995 (Cth), Computer Fraud and Abuse Act, Computer Misuse Act 1990
- Frameworks
- CIS Controls, ISO 27001, NIST CSF, SOC 2
- Data categories
- credentials, security
- Scope
- narrow
- Risk rating
- 8
- Platform compatibility
- Purview: Compatible, GCP DLP: Unsupported, Macie: Unsupported, Zscaler: Compatible, Palo Alto: Unsupported, Netskope: Unsupported
Pattern
(?<![A-Za-z0-9_-])gldt-[A-Za-z0-9_-]{20}(?![A-Za-z0-9_-])
Corroborative evidence keywords
gitlab, deploy token, container registry, package registry, CI/CD
Proximity: 300 characters
Should match
gldt-ABCDEFGHIJ1234567890— Exact 65 probe - deploy-token structure without independent GitLab contextGitLab container registry deploy credential gldt-aB3dE6gH9jK2mN5pQ8sT— Exact 75 probe - token with GitLab registry contextGitLab deploy secret GITLAB_DEPLOY_TOKEN=gldt-zZyYxXwWvVuU01234567— Exact 85 probe - deploy context plus canonical assignment
Should not match
gldt-tooShort— Too short to be a deploy tokenglpat-ABCDEFGHIJ1234567890— GitLab PAT prefix, not a deploy tokenglrt-ABCDEFGHIJ1234567890— GitLab runner token is a sibling family, not a deploy tokenDocumentation example: GitLab deploy GITLAB_DEPLOY_TOKEN=gldt-ABCDEFGHIJ1234567890— Documentation example containing a valid-shaped deploy token is excludedcreate a gitlab deploy token for the registry— Prose mention without a token value
Known false positives
- Documentation or examples showing placeholder gldt- strings. Mitigation: Require corroborative GitLab deploy/registry keywords and exclude placeholder markers.