id: heroku-key

info:
  name: Heroku API Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/heroku.yml
    - https://devcenter.heroku.com/articles/authentication
  metadata:
    verified: true
  tags: file,keys,heroku,token
file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - '(?i)heroku.{0,20}key.{0,20}\b([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b'
# digest: 490a00463044022037740c150aeb270935cdc2cb26146e86ad21515d29651e0f15f3489972fcadf6022069a65fd7117595f2b9a014ede9f50cad35964bb50f450cc92c3aa4db7f4f636d:922c64590222798bb761d5b6d8e72950