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/crates/noseyparker/data/default/builtin/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: 490a00463044022020fcd05a8360057a55ec53d6f3b67d65c2fd5e75039904a02c6027ab4095c76e02207f51b5d189de2448c13d275098e7b2e7843008a27b2853214e8cfa8863b6d92c:922c64590222798bb761d5b6d8e72950