id: sendbird-access-id

info:
  name: SendBird Access ID
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/sendbird-access-id.go
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/sendbird-access-id.yaml
  metadata:
    max-request: 1
    verified: true
  tags: exposure,token,sendbird

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

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