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|;]|$) # digest: 4a0a0047304502203ee79a83854b9d4bdc2472c9272e95b6f2b633a9d82e144e0f37c98871fd0081022100e7baa4b57aa54c798d42c8aceb829d7a5576e7547470475db71dceeab5d96c03:922c64590222798bb761d5b6d8e72950