id: slack-app-token

info:
  name: Slack App Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/slack-app-token.txt
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/slack-app-token.yaml
    - https://api.slack.com/authentication
    - https://api.slack.com/authentication/best-practices
  classification:
    cwe-id: CWE-522,CWE-540
  metadata:
    max-request: 1
  tags: exposure,token,slack,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)(xapp-\d-[A-Z0-9]+-\d+-[a-z0-9]+)
# digest: 4a0a0047304502204e46aae52e4f0a0ea3eca3a7f4a9bbccca4603111e446dffb097118abbbef26002210080fcedf06ce40bc58e667f3146bca4f476926192c3cfdca35e6985bcf8b2a8fe:922c64590222798bb761d5b6d8e72950