id: slack-config-access-token

info:
  name: Slack Config Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/slack-config-access-token.txt
    - https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/slack-config-access-token.yaml
  metadata:
    max-request: 1
  tags: exposure,token,slack

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)(xoxe.xox[bp]-\d-[A-Z0-9]{163,166})
# digest: 4a0a00473045022040b5c66bbd556635cdcaaeb1ab45bf8cf5654ed60d4c26c620a984d0c4531ef9022100fb1d00e4405b5a32652c06c31ecd9a23cf05e6d927c3de913e1d713bfa9cf6c8:922c64590222798bb761d5b6d8e72950