22 lines
567 B
YAML
22 lines
567 B
YAML
|
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|;]|$)
|