id: bittrex-secret-key

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

file:
  - extensions:
      - all

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