id: slack-legacy-token

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

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

    extractors:
      - type: regex
        part: body
        regex:
          - (xox[os]-\d+-\d+-\d+-[a-fA-F\d]+)
# digest: 4a0a00473045022100ea1d6a90d60aee0b2767fc75e45c68865723a471d24f3d7b4c1ccf054bf2498502200115a380d36baeca4d2c17e18ba82d3e727b331431bdaafc4f7a8235e4da078e:922c64590222798bb761d5b6d8e72950