id: discord-client-id

info:
  name: Discord Client ID
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/discord-client-id.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/discord-client-id.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}([0-9]{18})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4a0a00473045022100f6149597e93f98e020a3f9a615f00f0c8266bf92289992e560cd1ba0d27f31c002203217044538ddebd3993f3a6b220faa838f18b5e10589dcba832015b63956d75e:922c64590222798bb761d5b6d8e72950