id: finnhub-access-token

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

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