Back to the notes

PyPI now shows which packages are actually maintained

The Python Package Index redesigned project pages to surface security signals like 2FA status and release cadence. It is the kind of boring infrastructure work that stops supply chain attacks.

01equipment.jpg
Alice Wondrak-Biel / Wikimedia Commons. Resized and converted to WebP. Public domain

The Python Package Index redesigned its project pages to show security signals before you install a package. The new layout displays whether maintainers use two-factor authentication, how recently the package was updated, and whether the project has verified its publisher identity. This is not flashy. It is the kind of infrastructure work that stops supply chain attacks before they happen. The old PyPI page buried this information in tabs or did not show it at all. You had to know where to look. The new design puts 2FA status and verified publisher badges at the top of the page, next to the install command. If a package has not been updated in three years and the maintainer does not use 2FA, you see that immediately. The timing matters. The number of malicious packages uploaded to PyPI has climbed every year since 2020. Most attacks rely on typosquatting or abandoned packages with high download counts. A package with 100,000 weekly downloads but no update since 2021 is a target. An attacker compromises the maintainer account, pushes a malicious update, and waits. Showing 2FA status does two things. It nudges maintainers to enable it. It also gives downstream users a simple heuristic: if a critical dependency does not have 2FA enabled, that is a risk to document. Verified publishers are the other big addition. A package can prove it is published from a specific GitHub repository using OpenID Connect. No long-lived API tokens. No credentials in CI pipelines. The publisher identity is cryptographically bound to the source. The redesign will not stop every attack. Attackers will enable 2FA. They will fork repositories and verify those. But it raises the cost. It makes the easy attacks harder. I would like to see PyPI add download velocity signals next. A package that suddenly spikes from 100 downloads a week to 50,000 is either going viral or being targeted. Surfacing that pattern on the project page would help.


Source: PyPI’s redesigned project pages with clearer security signals are now live

Back to all notes

Behind the notes

Vikrant
Sharma.

Artificial Intelligence Engineer intern at Voxon Photonics in Adelaide. Studying a Master of Information and Communications Technology at UniSC, with a focus on data, machine learning and security.

Meet the person behind the work