id: pypi-token

info:
  name: PyPI Upload Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/pypi.yml
    - https://github.com/pypa/warehouse/issues/6051
    - https://pypi.org/project/pypitoken/
  metadata:
    verified: true
  tags: file,keys,pypi,token
file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - "(pypi-AgEIcHlwaS5vcmc[a-zA-Z0-9_-]{50,})"
# digest: 490a0046304402206c037a0760fb41c2b076719097cde8890a7bcbf70ed2b4fc07bb71411b85fb2202203b99b8d98541d8f31e9d30aed5032ab3e936f3c24aff2df96aa2859cbb3b2d9d:922c64590222798bb761d5b6d8e72950