id: grafana-cloud-api-token

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)\b(glc_[A-Za-z0-9+/]{32,400}={0,2})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4a0a00473045022100d3a2b2359b8d77a5b3032f1fdcacedbfa96d803e042a69bc2d1602ce854a33320220058e3467f45d91bbd80363de962a2f858b1c71d2ab966cd705e7c0e63f379cf6:922c64590222798bb761d5b6d8e72950