id: finicity-api-token

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

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