id: coinbase-access-token

info:
  name: Coinbase Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/coinbase-access-token.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/coinbase-access-token.go
  metadata:
    verified: true
  tags: file,keys,coinbase,token
file:
  - extensions:
      - all

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