The Spectrum Dispatch News

technology

PyPI launches redesigned project pages with enhanced security signals

The Python Package Index now displays clearer provenance information and attestations to help users assess package security and verify file origins.

PyPI launches redesigned project pages with enhanced security signals

PyPI has completed a redesign of its project pages aimed at improving how security information is presented to users. The updates, announced in July and now live, were shaped by user research with the Python community and implemented in partnership with Kabu Creative, according to the PyPI blog.

PyPI launches redesigned project pages with enhanced security signals

The centerpiece is a new dedicated security tab that communicates release provenance states and displays per-file attestations. PyPI calculates each release’s provenance state by checking whether release files have attestations—cryptographic records confirming where files came from.

Releases can exist in several provenance states. “Full Provenance” means 100% of release files have attestations, either PyPI Publish attestations (confirming publication by a PyPI Trusted Publisher) or SLSA Build Provenance attestations (linking files to source commits and build platforms). “No Provenance” means no files in the release have attestations, which is typical for older releases or projects without configured Trusted Publishing. According to PyPI, this does not necessarily indicate malice but rather that file origin cannot be cryptographically verified.

The redesign also introduces provenance warnings to flag potentially suspicious activity. These include:

  • Incomplete Provenance: Some files have attestations while others do not, suggesting inconsistent publishing methods.
  • Inconsistent Provenance: Files within the same release originate from different build systems or repositories.
  • Change of Provenance: Release files come from a different repository or workflow than previous releases, potentially indicating account takeover or pipeline compromise.
  • Loss of Provenance: A project previously publishing with attestations has stopped doing so.

The project detail page has been updated to display provenance warnings at the top alongside banners for yanked releases, archived projects, and pre-releases. The release files tab now includes search and filtering capabilities, and users can view the provenance state of each file in a table. A release history tab provides additional details including file count and provenance state.

According to the blog post, digital attestations were introduced in 2024 to provide verifiable records of release file provenance, but remained unfamiliar concepts for many users. The new interface implements recommendations from the OpenSSF Attestations Style Guide to address this knowledge gap. PyPI has also extended its user documentation with guides on assessing source code security, checking provenance, verifying package integrity, and reporting security issues.

Key facts

  • PyPI’s redesigned project pages are now live with a new security tab dedicated to provenance information and attestations
  • Releases are classified by provenance state: Full Provenance (100% of files have attestations), No Provenance (no attestations), or warnings for incomplete or inconsistent provenance
  • Provenance warnings alert users to potentially suspicious activity such as account takeover, infrastructure changes, or inconsistent publishing methods
  • The redesign was funded by the Open Source Security Foundation and implemented in partnership with Kabu Creative

Sources

← All posts