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,vuln

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