id: bittrex-accesskey

info:
  name: Bittrex Access Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/bittrex-access-key.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/bittrex-access-key.go
  metadata:
    verified: true
    max-request: 1
  tags: bittrex,exposure,tokens,accesskey

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