id: confluent-secret-token

info:
  name: Confluent Secret Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/confluent-secret-key.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/confluent-secret-key.go
  metadata:
    verified: true
  tags: file,keys,confluent,token

file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)(?:confluent)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{64})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4b0a00483046022100c3bd82e432adc624baa98fedb4974d6abbca994f962c6b63b68b9147f5c3d3ef02210080e9b49f60ba9efb1eacb2296adb46672221c6f7b5c835b5dadcedb45215350d:922c64590222798bb761d5b6d8e72950