id: bittrex-secretkey

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
    max-request: 1
  tags: bittrex,exposure,tokens,secretkey

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

    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: 4a0a004730450220350ec35baca6a9e226b436d0884bbd785a3f7dd10158bfa5d9feb10259389c08022100f5bc22d602dc5b04c5a0826d5adc285fc7f34f88f9e4616ae3d13c2cac101ec0:922c64590222798bb761d5b6d8e72950