id: stripe-access-token

info:
  name: Stripe Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/stripe-access-token.go
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/stripe-access-token.yaml
    - https://stripe.com/docs/keys
  metadata:
    verified: true
    max-request: 1
  tags: sumologic,exposure,tokens

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)\b((sk|rk)_(test|live|prod)_[0-9a-z]{10,99})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4a0a00473045022100bfeab3e8b7bd3d698caea6a4c8e37d74c82ea953982a6e3dacb473c6e55d9df6022012ab246257821c59f64eebcb6fa05276f8bde660818db59460e182498f7de3fa:922c64590222798bb761d5b6d8e72950