id: easypost-token

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

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

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