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,vuln

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

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