Skip to content

PRP: Secret extractor for Grafana Cloud API + Grafana Service Account #1840

@impszi95

Description

@impszi95

Overview
Add two new secret detectors for Grafana tokens: Grafana Cloud API Token and Grafana Service Account Token.

Popularity of Secret/Service
Grafana is used by millions of organizations worldwide for monitoring, logging, and observability.
Attackers can impersonate service accounts and gain access to Grafana instances with the same permissions as the compromised account.

Validation Method

  • Grafana Cloud API Token Validator: Queries https://www.grafana.com/api/v1/tokens with the token to verify it's associated with a valid Grafana Cloud account.

  • For Service account, a stack is searched and used as validation f.e.: xyz.grafana.net/api/user/.

regex:
Service Account: glsa_[A-Za-z0-9_-]{30,50}
Cloud: glc_[0-9a-zA-Z+/=]{110,130}

Metadata

Metadata

Assignees

No one assigned

    Labels

    PRPPatch Reward Program: This label is added to all PRP related issues for easy filteringPRP:RequestPatch Reward Program: This issue is a PRP contribution request and is being reviewed by the panel.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions