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
    - https://api.slack.com/authentication
  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: 4a0a00473045022100bee3848ab02c9af3e18bc72ec9cf4ad1d321f02231ed8ac03c003a0329bf05100220128a3fc7ab96fe1eb8895c397312912ef54f0b81eaa917102293f1d7ebcf0b20:922c64590222798bb761d5b6d8e72950