id: discord-client-secret

info:
  name: Discord Client Secret
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/discord-client-secret.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/discord-client-secret.go
  metadata:
    verified: true
  tags: file,keys,discord,token

file:
  - extensions:
      - all

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