id: sendbird-access-token

info:
  name: SendBird Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/sendbird-access-token.go
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/sendbird-access-token.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}([a-f0-9]{40})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 490a00463044022052c86597bd229cceddb7948d010486d4d5ee54808456fc20a9d5712caae11462022047dc32275c213216a5ad74e365b96e938d56318fb5d1fa47147c8b9821a5d45c:922c64590222798bb761d5b6d8e72950