id: jenkins-token

info:
  name: Jenkins Token or Crumb
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/jenkins.yml
    - https://www.jenkins.io/blog/2018/07/02/new-api-token-system/
    - https://www.jenkins.io/doc/book/security/csrf-protection/
  metadata:
    verified: true
  tags: file,keys,jenkins,crumb,token
file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - '(?i)jenkins.{0,10}(?:crumb)?.{0,10}\b([0-9a-f]{32,36})\b'
# digest: 4b0a00483046022100bffb8417d0d72081ead41d0d64bf6728e2a5a4a0bf40f221ba5aa09a2c9b371b022100d137996b341e24b56ac5b3dda0fe8d37740d3e2d8ea7c25216cd51c1113f730d:922c64590222798bb761d5b6d8e72950