id: gitlab-personal-accesstoken

info:
  name: GitLab Personal Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/gitlab.yml
    - https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html
  metadata:
    verified: true
  tags: file,keys,gitlab,token
file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - '\b(glpat-[0-9a-zA-Z_-]{20})(?:\b|$)'
# digest: 4b0a00483046022100d137039ea1fad80da2d4f46023116eda1bd571b33b5d6bc145947e69b24143a2022100b28f032aadded2f453b50361ff6ec80248087b1a6eee0931ef06704ea6c86dee:922c64590222798bb761d5b6d8e72950