id: gocardless-api-token

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

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