The Python Software Foundation (PSF) plans to expand automatic malware quarantines on the Python Package Index (PyPI). The system already quarantines a project when multiple trusted reporters flag it. The 2027 roadmap calls for refining that process and adding a role that can handle malware reports without full administrator access. That gives more people the ability to review reports and correct mistakes.

A quarantine makes a package unavailable through the public index. It leaves copies that were already downloaded or installed untouched. PyPI’s April incident report describes how trusted reports triggered an automatic quarantine after attackers uploaded a malicious Telnyx release. The incident report puts the gap between upload and quarantine at 3 hours and 42 minutes.

Verify the release before it enters the build

The foundation also wants installers to reject tampered downloads and plans to rehearse recovering PyPI and Python.org after a compromise. It has yet to choose how PyPI will verify artifacts if the registry itself is compromised.

Distributors building from CPython, the standard Python interpreter, can already use Python.org’s Sigstore verification guide. Sigstore ties a signature to the identity that signed the file. Check the release against the expected release manager and identity provider in the build pipeline. For project dependencies, lock the versions you’ve reviewed. A short delay before adopting brand-new releases can give registries time to quarantine malware. Make an explicit exception for urgent security fixes.

The roadmap separately proposes improving the Python advisory database and planning Python’s move to encryption that can resist future quantum computers. The foundation says Alpha-Omega and Anthropic sponsor security-focused staff.

Caveat: This is a plan for stronger recovery and verification, not an announcement that Python.org or PyPI were breached.