id: slack-config-access-token

info:
  name: Slack Config Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/slack-config-access-token.txt
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/slack-config-access-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.xox[bp]-\d-[A-Z0-9]{163,166})
# digest: 490a0046304402207a7f360220dc87364f89f7bfb1a5b9f2192692f1465dea854bf0c1d5faad845d0220021e9bca9278a4d3d28dc6da9614ec6de55240677f682c6d90403d5e12de53fd:922c64590222798bb761d5b6d8e72950