id: gitlab-runner-regtoken

info:
  name: GitLab Runner Registration 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/runner/security/
    - https://docs.gitlab.com/ee/security/token_overview.html#runner-registration-tokens-deprecated
    - https://docs.gitlab.com/ee/security/token_overview.html#security-considerations
  metadata:
    verified: true
  tags: keys,file,gitlab,runner,token
file:
  - extensions:
      - all

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