id: sumologic-access-id

info:
  name: Sumologic Access ID
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/sumologic-access-id.go
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/sumologic-access-id.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}(su[a-zA-Z0-9]{12})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4b0a00483046022100c5ced4c7d53b1c8c2b560feb95b4d4e537d22081a0ff88ec8529292640d39e81022100afeda3072d484ca855d9b18bdae29fbec541490bb88f50aff0df682900751a3e:922c64590222798bb761d5b6d8e72950