id: beamer-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
    max-request: 1
  tags: beamer,exposure,tokens

http:
  - method: GET
    path:
      - "{{BaseURL}}"

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