id: slack-legacy-workspace-token

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

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

    extractors:
      - type: regex
        part: body
        regex:
          - (xox[ar]-(?:\d-)?[0-9a-zA-Z]{8,48})
# digest: 4b0a004830460221009bb85b7ceea6f4d2cb87d1d72b03c0905ab63345298a8371a0ecbd20fc374a4a022100edf7cb52ffa70ee63ecdbcf9a96664f9d2fb5423d76a59a43bc0c134e3eb813f:922c64590222798bb761d5b6d8e72950