News for hackers. Stuff that matters.
Re:3500 packages uploaded to PyPI, pointing to a malicious URL by freeone3000 on Tuesday March 02, 2021 @03:05PM (#26319855)
You don't have a different package name, but you for sure have a different package. Take, for instance, the keyword "long". 64 bit on amd64, 32-bit on armhf. So even source distributions to be compiled locally differ based on target, even if they have the same coordinates in pypy.
Re:3500 packages uploaded to PyPI, pointing to a malicious URL by vel0city on Tuesday March 02, 2021 @04:05PM (#26320727)
I agree the resulting binaries will be different but I disagree that these are then different packages. The package is whatever the distributor distributed it as. They distributed it as source, which you took and compiled to your local binary version. With "The individual packages need to be verified", and each resulting different binary being uniquely a different package, this means the package/repo maintainer of a source package would need to verify it for every single platform which compiles C and every potential compiler and every potential set of flags for the compiler as each set of platform/compiler/flags could result in a different binary and thus different behavior.
Re:3500 packages uploaded to PyPI, pointing to a malicious URL by freeone3000 on Tuesday March 02, 2021 @04:56PM (#26321509)
Yeah, if I were setting up a verification service there's no way I would verify source code instead of compiled binaries.