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,vuln

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