id: grafana-key info: name: Grafana API Key author: DhiyaneshDK severity: info reference: - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/grafana-api-key.yaml - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/grafana-api-key.go metadata: verified: true max-request: 1 tags: grafana,exposure,tokens http: - method: GET path: - "{{BaseURL}}" extractors: - type: regex part: body regex: - (?i)\b(eyJrIjoi[A-Za-z0-9]{70,400}={0,2})(?:['|\"|\n|\r|\s|\x60|;]|$)