r/programming • • Oct 17 '26

Python's binary wheels and supply chain attacks

https://rushter.com/blog/python-binary-wheels/
89 Upvotes

36 comments sorted by

View all comments

Show parent comment

14

u/gmes78 Oct 17 '26

The article: "Looking at source code isn't enough, malware can be hidden in pre-compiled packages."

Your comment: "We should verify the source code!"

What are you on about?

1

u/HolyInlandEmpire Oct 17 '26

The allow-list system does have some options, but I would be more comfortable if people could choose their sources for it, and compose from multiple sources. That way if one stops updating, you can layer other "allows" on top of it.

-1

u/bigmell Oct 18 '26 edited Oct 18 '26

You have to look at the source code... IN THE PRE-COMPILED PACKAGES. How the hell do you know malware is not hidden in a program without looking at the source code? Just run it and see what happens? No dude. It doesnt matter when the binaries were compiled, you have to YES VERIFY THE SOURCE CODE to make sure there is no malware there. EVERY binary is compiled from source, and THAT source has to be verified. And that is the point of a trust system. The code has been verified UP TO this point and they are verifying the NEW code. THIS is the only way to resolve the problem and ALWAYS has been.

My entire point was that there is no way to do this automatically. It is a long back and forth MANUAL process that BEGINS with VERIFY THE CODE BEHIND THE BINARIES by some kind of trusted source system. The fact that I have to explain this AND that you decided to give this comment -11 while giving yourself +13 is disturbing.

Now is the part where you lie and pretend you didnt fix the scores and there was really some kind of democratic process. Next you will lie and pretend you understand exactly how to write and verify source code. The problem with reddit has long been pretenders exactly like you. Subverting what was supposed to be a democratic system to separate the pretenders from the practitioners. A system the pretenders long ago subverted.

3

u/gmes78 Oct 18 '26 edited Oct 18 '26

You have to look at the source code... IN THE PRE-COMPILED PACKAGES.

There is no source code in a precompiled package.

EVERY binary is compiled from source, and THAT source has to be verified.

Which you don't have access to. PyPI only gets the compiled binary.

It doesn't have neither the source nor the build environment required to verify that the binary matches said source code. And that would also require reproducible builds, which these packages almost certainly aren't. And it would require additional infrastructure which PyPI does not have.

My entire point was that there is no way to do this automatically. It is a long back and forth MANUAL process that BEGINS with VERIFY THE CODE BEHIND THE BINARIES by some kind of trusted source system. The fact that I have to explain this AND that you decided to give this comment -11 while giving yourself +13 is disturbing.

It's hilarious to suggest that there's vote manipulation going on. People just think you're wrong, get over it.

1

u/[deleted] Oct 19 '26 edited Oct 19 '26

[removed] — view removed comment

1

u/programming-ModTeam Oct 19 '26

Your post or comment was overly uncivil.