id: shippo-api-token

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

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)\b(shippo_(live|test)_[a-f0-9]{40})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4a0a004730450220219ff936e6283021a043897191121d2a6433b774a35acf3e26758dc1b5374508022100dce62a95761fd598f46f02b954b233cd4e43d9659e08842f4bfe9af56b2fbf1a:922c64590222798bb761d5b6d8e72950