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

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

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