id: scalingo-api-token

info:
  name: Scalingo API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/scalingo-api-token.go
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/scalingo-api-token.yaml
  metadata:
    max-request: 1
    verified: true
  tags: exposure,token,scalingo

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    extractors:
      - type: regex
        part: body
        regex:
          - \b(tk-us-[a-zA-Z0-9-_]{48})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 490a0046304402202b27b4183ab98da332cbaa4d5942075841eb936b6a15bdc224d02d0c7cadd36602205864e2d33784de0e0d9c4d1405bc029d9f2057da0766c6e1d7fc6787e9ee9e6c:922c64590222798bb761d5b6d8e72950