id: sumologic-access-token

info:
  name: Sumologic Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/sumologic-access-token.go
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/sumologic-access-token.yaml
  metadata:
    verified: true
    max-request: 1
  tags: sumologic,exposure,tokens

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)(?:sumo)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{64})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 490a0046304402204a950a138ec3948fb8ee13cb28a884c89e9ff163294e496da3490d313bfa22f6022009be4fd32fbe0507582934322f578ffe3405f4235538d8091af88866667fa68c:922c64590222798bb761d5b6d8e72950