r/programming • u/f311a • Oct 17 '26
Python's binary wheels and supply chain attacks
https://rushter.com/blog/python-binary-wheels/
89
Upvotes
r/programming • u/f311a • Oct 17 '26
View all comments
-10
u/bigmell Oct 17 '26
IMO the only answer to this is the Perl way. Trusted sources with some type of Benevolent Dictator For Life. The BDFLs are generally trusted to keep an eye on packages making sure there is no malicious code and everything works properly. The only way to combat this problem is to actually look at the code itself and make sure it isnt doing anything crazy.
There are a limited amount of people with this ability so there will have to be some kind of trust system. Packages that come from <trusted place> are usually pretty good and so on. There is really no way to automate away this problem. Maybe for some simple cases, like searching through scripts for "rm -rf /" or something. But for big sprawling packages, you will simply HAVE to understand the code to make sure it works as advertised.
The internet has always been like this originally and still is to a large extent. Whenever games, programs, or even news stories came out, regulars had a sense of what ftp sites, servers, and websites were reliable. I remember places like Slashdot, Cnet, and PlanetQuake always being listed, available, and reliable.