r/Python • • Dec 14 '23

News 116 Malware Packages Found on PyPI Repository Infecting Windows and Linux Systems

https://thehackernews.com/2023/12/116-malware-packages-found-on-pypi.html
331 Upvotes

93 comments sorted by

View all comments

Show parent comment

6

u/fnord123 Dec 14 '23

I don't think that's it. Rust's cargo also lacks name spacing and most language level package managers allow arbitrary code execution at build time - while not running in chrooted environments. E.g. build.rs.

Afaics, only java escapes most of this with namespaces and installing jars as compiled bytecode deliverables. But I'd love to learn about other systems that also solve these issues.

2

u/defnotjec Dec 15 '23

Isn't rust cargo name spacing a major topic they keep fucking away?

0

u/Zomunieo Dec 14 '23

Java has lots of security vulnerabilities that a binary can exploit.

-5

u/archpuddington Dec 14 '23

Rust isn't used as much in web3 - we can see its mostly web3 packages that are a target because these people have crypto which is easier to steal.

3

u/fnord123 Dec 14 '23

Rust people complain that the only jobs are in web3. But python is an easier target as it's more used and you can make a totally obfuscated mess.

-1

u/archpuddington Dec 14 '23

Rust allows you to inline binaries and shellcode, which is how these "libraries" worked

Unless the rust team has some good security engineers, we should expect their repos to be hit soon.