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
  metadata:
    max-request: 1
  tags: exposure,token,slack

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

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