id: grafana-api-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
  tags: grafana,file,keys
file:
  - extensions:
      - all

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