id: postman-key

info:
  name: Postman API Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/rules/postman.yml
    - https://learning.postman.com/docs/developer/intro-api/
    - https://learning.postman.com/docs/developer/postman-api/authentication/
  metadata:
    verified: true
    max-request: 1
  tags: postman,keys,token,api,exposure

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

    extractors:
      - type: regex
        part: body
        regex:
          - '\b(PMAK-[a-zA-Z0-9]{24}-[a-zA-Z0-9]{34})\b'
# digest: 4b0a00483046022100c137f2c2ba43b720bf018d19d9ce6fcd4f52311f5c9596df5af4d46bcacbf530022100cbca83de6790503d48e84a857b8fb91e2e7d53d777293fed2c905014704f94bb:922c64590222798bb761d5b6d8e72950