id: beamer-api-token

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

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