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/
  classification:
    cwe-id: CWE-540
  metadata:
    verified: true
    max-request: 1
  tags: postman,keys,token,api,exposure,vuln

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: 4a0a004730450220367c23b9cd003f0681b6db60936ba107611556dfed12a2925423d04e710041ad022100807b002de7d6642378cc6b3e90a34c0dbb8b7cb9632a4dee9621cf16d70cb35e:922c64590222798bb761d5b6d8e72950