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

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