News for hackers. Stuff that matters.
Re:Uv is the best thing to happen to the Python ecosystem in... by jampekka on Wednesday October 29, 2025 @03:32PM (#45751882)
Installing an out-of-distro deb/rpm/msi/dmg/etc package is just as unsafe as curl|sh. Or even unsafer, as packages tend to require root/admin.
Re:Uv is the best thing to happen to the Python ecosystem in... by procaryote on Wednesday October 29, 2025 @03:40PM (#45752009)
A package is at least a signable, checksummable artefact. The curl | sh thing could have been anything and after running it you have no record of what it was you did.

There have also been PoCs on serving malicious content only when piped to sh rather than saved to file.

If you want to execute shell code from the internet, at the very least store it in a file first and store that file somewhere persistent before executing it. It will make forensics easier

Re:Uv is the best thing to happen to the Python ecosystem in... by Grikbdl on Wednesday October 29, 2025 @07:14PM (#45754358)
If you're going to run code without inspecting it though, the methods are similar. One case has https, the other a signature (which you're trusting due to obtaining it over https). You can't inspect it reliably only after getting hypothetically compromised.
Re:Uv is the best thing to happen to the Python ecosystem in... by efreak on Saturday November 01, 2025 @03:05PM (#45784374)
I've seen deb files that do everything in a post-install script. There's no way to identify this before downloading them (they came from a hosted repo, were signed). Some of these download files based on an internal manifest, others just run `pip install`, and others download a list of other files that need to be downloaded.

There's no guarantee packages are actually making use of package features in any reasonable way, other than convention.

Re:Uv is the best thing to happen to the Python ecosystem in... by nikisweeting on Wednesday October 29, 2025 @04:20PM (#45752520)
Security and auditability is not the core problem, it's versioning and uninstalling. https://docs.sweeting.me/s/against-curl-sh
Re:Uv is the best thing to happen to the Python ecosystem in... by jampekka on Wednesday October 29, 2025 @04:34PM (#45752677)
Uninstalling can be a problem.

Versioning OTOH is often more problematic with distro package managers that can't support multiple versions of the same package.

Also inability to do user install is a big problem with distro managers.

Re:Uv is the best thing to happen to the Python ecosystem in... by Intralexical on Thursday October 30, 2025 @02:42AM (#45757045)
Also file conflicts. Installing an RPM/ALPM/APK should warn you before it clobbers existing files. But for a one-off install script, all it takes is a missing environment variable or an extra space (`mv /etc/$INSTAALCONF /tmp`, `chown -R root /$MY_DATA_PATFH`), and suddenly you can't log on.

Of course unpredictability itself is also a security problem. I'm not even supposed to run partial updates that at least come from the same repository. I ain't gonna shovel random shell scripts into the mix and hope for the best.

Re:Uv is the best thing to happen to the Python ecosystem in... by 1718627440 on Wednesday October 29, 2025 @06:19PM (#45753828)
That is still checked for its signature, the only thing you bypass is the automatic download over HTTP and dependency resolution by default.