id: confluent-secretkey

info:
  name: Confluent Secret Key
  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
    max-request: 1
  tags: confluent,exposure,tokens

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    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: 4a0a004730450220111766069ebdc2532ef9dd2af0c0e0cff93f44784567adc99db72bddb8553bbd022100a43ffd28e6f764a4457ac36261db079e207b7791b051205850799eaec1b8eafe:922c64590222798bb761d5b6d8e72950
