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
  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: 4a0a00473045022067e14552bf0d9b20f0b2d0d0dc2912f602bb07e0d233f84fed8ef9ce10560fa60221008fc234a3c4dd298f46b882957cfb899a62dc0a563e7145afd0f9c2398dd49b49:922c64590222798bb761d5b6d8e72950