id: slack-legacy-bot-token

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

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

    extractors:
      - type: regex
        part: body
        regex:
          - (xoxb-[0-9]{8,14}\-[a-zA-Z0-9]{18,26})
# digest: 4a0a00473045022078de12cee98474d1adddae056a66472287739a9ee116954fafff929181acf61d0221009289169cce9c917b4806078a2c8827d04d91f9b69c2f595febd1fae8878a7562:922c64590222798bb761d5b6d8e72950