id: slack-config-refresh-token

info:
  name: Slack Config Refresh Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/slack-config-refresh-token.txt
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/slack-config-refresh-token.yaml
  metadata:
    max-request: 1
  tags: exposure,token,slack

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)(xoxe-\d-[A-Z0-9]{146})
# digest: 4a0a0047304502204ad06de0503c9e160ecb016ffc478b7ec1aa77dafbce8d822e31bb163ae36342022100eb1af5fd35bb0639e08fe9495e8db8f83e544b26a7acc2d1325b018091015ee5:922c64590222798bb761d5b6d8e72950