id: zendesk-key

info:
  name: Zendesk Secret Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/zendesk-secret-key.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/zendesk-secret-key.go
  metadata:
    verified: true
    max-request: 1
  tags: zendesk,exposure,tokens

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

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