By Nicole Harris and Dustin Ingram
Attestations provide a verifiable record of a software artifact’s provenance: where and how a package was built or published, and which identity or workflow was responsible.
When package registries such as PyPI, RubyGems, and npm began supporting attestations via the in-toto Attestation Framework, it marked a major milestone in software supply-chain security. But introducing attestations is only part of the challenge. For users to benefit from them, they need to understand what they demonstrate, what their limitations are, and how to interpret them when evaluating a package.
Because attestations are relatively new, little guidance existed for presenting this information effectively. Early registry implementations often left users to interpret dense, unfamiliar metadata without explaining its practical significance.
To address this gap, the OpenSSF funded the Securing Software Repositories Working Group to develop an Attestations Style Guide, researching and documenting best practices for communicating attestations to end users.
Today, we’re pleased to announce that the first implementation of the style guide’s recommendations is live on the Python Package Index (PyPI), featuring redesigned project pages and a dedicated security tab.
Phase 1: Cross-Ecosystem Research and the Initial Style Guide
Led by Superbloom Design, in collaboration with Kabu Creative and the Securing Software Repositories Working Group, this phase involved qualitative research with open source maintainers, security researchers, and package consumers.
Through interviews and observations, the team explored how users evaluate package security, what they understand about attestations, and how they interpret existing registry interfaces.
Findings and Recommendations
The research revealed that users approach package security with different levels of knowledge, priorities, and expectations. Security specialists often know what information they need to assess a package, while less experienced users may lack the context to interpret technical details.
Several recurring themes emerged:
- Security information needs context. An attestation or status indicator alone doesn’t explain what it demonstrates or how users should interpret it. Clear explanations and guidance on what to do next are essential.
- Terminology matters. Unfamiliar technical concepts, such as provenance and attestations, need clear explanations and links to supporting information.
- Package trust is multifaceted. Users consider a variety of signals when assessing a package, including project activity, download counts, maintainer reputation, source code, checksums, and build information. Attestations are one part of this broader picture.
- Most users prioritize utility above security. Security information is important, but shouldn’t displace the details users need to assess whether a package is suitable for their needs.
These findings informed the OpenSSF Attestations Style Guide. It provides recommendations for page layout, information hierarchy, labels, and status indicators, alongside guidance on terminology, explanatory text, and supporting documentation.
Phase 2: PyPI Implementation
With principles for displaying attestations established, the OpenSSF funded a second phase of the project: implementing the style guide’s recommendations on the Python Package Index (PyPI).
Kabu Creative carried out this work in collaboration with the PyPI team, and investigated how the style guide should be adapted for PyPI’s use cases, including:
- Different Types of Attestations: How should PyPI distinguish between PyPI Publish attestations, which provide evidence about the publishing process, and SLSA Build Provenance attestations, which describe how a release file was built?
- Multiple Release Files: How should provenance be communicated when a release contains multiple files, some of which may have attestations while others may not?
- Changes in Provenance: How can PyPI highlight changes in provenance that might warrant investigation without unnecessarily alarming users when maintainers make legitimate changes to their workflows?
To address these questions, we developed and tested prototypes, conducted user surveys, and interviewed PyPI users. The resulting designs have been implemented on PyPI, and the lessons learned have been contributed back to the Attestations Style Guide as a PyPI implementation case study.
The New PyPI Security Tab
PyPI project pages now include a dedicated security tab, following the style guide’s recommendations. This provides a central place to review a project’s release provenance and inspect the attestations associated with individual release files.
The interface uses distinct colors and icons to differentiate attestation types, with each type linking to its corresponding predicate (the formal definition for the attestation type), allowing users to inspect the underlying claims.
The security tab communicates the overall provenance status of each release, including:
- No provenance: None of the files in the release have attestations.
- Full provenance: All files in the release have attestations. Each file may have a PyPI Publish attestation, a SLSA Build Provenance attestation, or both.
- Incomplete provenance: A portion of the files in the release were uploaded without an attestation.
- Inconsistent provenance: The attestation metadata indicates that the release files were produced by different, unrelated build or publishing pipelines, or originated from different source repositories.
- Change of provenance: The build or publishing pipeline or source identity that made the release files differ from a release within the preceding 14 days.
- Loss of provenance: A project that published a release with provenance within the preceding 14 days has published a new release without attestations.
The accompanying PyPI documentation explains each provenance state, including why warnings might occur (including both benign and malicious explanations), and how users can investigate further.
Other Surfaces
Although the security tab is the primary place to review provenance information and warnings, provenance is also visible elsewhere across PyPI.
Following the style guide’s recommendations, provenance status appears in the main project metadata sidebar. Provenance warnings also appear at the top of project pages, unless a release is quarantined, in which case the quarantine notice takes precedence.
The release files and release history tabs have also been updated to display provenance statuses and relevant warnings. Together, these changes make provenance information more visible and easier to understand across PyPI.
Learn More and Get Involved
- Read PyPI’s official launch post on the PyPI Blog.
- Explore the PyPI implementation case study in the OpenSSF Attestations Style Guide.
- Read PyPI’s new Package Security and Provenance guides.
- Join the conversation in the OpenSSF Securing Software Repositories Working Group and help bring these patterns to your ecosystem.
About the Authors
Nicole Harris is the founder and lead UX consultant at Kabu Creative, a PyPI maintainer, and a Python Software Foundation Fellow. She specializes in developer tooling, security interfaces, and human-centered design for open source communities. She contributed to Phase 1’s research and led the UX research and production interface implementation for Phase 2.
Dustin Ingram is a PyPI maintainer and administrator, a Staff Software Engineer on Google’s Open Source Security Team, and an active contributor to the OpenSSF Securing Software Repositories Working Group, where he has been a key champion for the development and rollout of digital attestations. He is also a Python Software Foundation Fellow and a former member of its Board of Directors.