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

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

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