id: grafana-service-account-token

info:
  name: Grafana Service Account Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/grafana-service-account-token.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/grafana-service-account-token.go
  metadata:
    verified: true
  tags: grafana,file,keys
file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)\b(glsa_[A-Za-z0-9]{32}_[A-Fa-f0-9]{8})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4b0a00483046022100f7629a20a85027f4fdd9dba2d456bbd429a15eaf75549b61df08f15011d9797f022100b186ca23755389d7e8efd6cac3f398f7d25b862541d65c1ea1c92aa2650d7508:922c64590222798bb761d5b6d8e72950