id: code-climate-token

info:
  name: Code Climate Token - Detect
  author: DhiyaneshDK
  severity: info
  description: Code Climate token was detected.
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/rules/codeclimate.yml
    - https://github.com/codeclimate/ruby-test-reporter/issues/34
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    verified: true
  tags: file,keys,codeclimate,token
file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - '(?i)codeclima.{0,50}\b([a-f0-9]{64})\b'

# Enhanced by md on 2023/05/04
# digest: 4a0a0047304502210085a1a05bdd7dccf5793d35df5f139067a28c34a5da68ea2b30f2965e25b6706402201c3ded8fee5d2254f21b7bb38ce4298894fa37634ccc6cf73f1c465106ed1b76:922c64590222798bb761d5b6d8e72950