PyPI hardens package security with new upload restrictions
Overview
The Python Package Index (PyPI) has implemented new security measures to protect users from potential attacks. Starting now, any new files uploaded to releases that are older than 14 days will be rejected. This change aims to prevent attackers from poisoning established releases if they gain access to a project's publishing tokens or release workflows. By enforcing this restriction, PyPI hopes to minimize the cleanup efforts required when projects are compromised. It also helps avoid confusion regarding the status of compromised releases, ensuring users can trust the integrity of the packages they are using.
Key Takeaways
- Affected Systems: Python Package Index (PyPI) releases
- Timeline: Newly disclosed
Original Article Summary
The Python Package Index (PyPI) now rejects uploads of new files to releases older than 14 days to prevent attackers from poisoning long-stable releases if a project’s publishing tokens or release workflows are compromised. “This change will protect Python users and reduce the amount of “cleanup” work associated with project compromises for PyPI admins. This restriction also means that compromises don’t put releases into an indeterminate and confusing state of both “compromised” and “not compromised”, … More → The post PyPI hardens package security with new upload restrictions appeared first on Help Net Security.
Impact
Python Package Index (PyPI) releases
Exploitation Status
No active exploitation has been reported at this time. However, organizations should still apply patches promptly as proof-of-concept code may exist.
Timeline
Newly disclosed
Remediation
Not specified
Additional Information
This threat intelligence is aggregated from trusted cybersecurity sources. For the most up-to-date information, technical details, and official vendor guidance, please refer to the original article linked below.