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,vuln

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: 4b0a00483046022100cdf737fceb741456f63ad880cd4ba4df8d2ae248d0cfcc0d7ff6a17a89713d12022100e27af70238f2b97e131add7c62bfadb60231845e811dfc034af0a955e1e1f244:922c64590222798bb761d5b6d8e72950