id: easypost-testtoken

info:
  name: Easypost Test API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/easypost-test-api-token.go
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/easypost-test-api-token.yaml
  metadata:
    verified: true
    max-request: 1
  tags: easypost,exposure,tokens

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

    extractors:
      - type: regex
        part: body
        regex:
          - EZTK(?i)[a-z0-9]{54}
# digest: 4b0a00483046022100ac247101afed5b3139898bff4f1b8edaeca8e53bd6b67b92524f9d2363dc9ac0022100b7ddab5bc098c50401b202905f6f246310355934556f75d06a213bf509742436:922c64590222798bb761d5b6d8e72950