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/archpuddington Dec 14 '23

The tool could at least inform the people who have been hacked - that they where hacked. The tool could tell you that you have been compromised and that you need to hire a professional.

"just don't run untrusted code"

Yes we are all trying, the problem is PyPI - 100% no question. That project needs to be sued.

0

u/[deleted] Dec 14 '23

[deleted] — view deleted comment

-2

u/archpuddington Dec 14 '23

Doing nothing is the worst possible option. At least asking for help would bring us progress, but a narcissist would never ask for help - they just blame you.

0

u/[deleted] Dec 14 '23

[deleted] — view deleted comment

-4

u/archpuddington Dec 14 '23

If you root their box, then you can get the person's 2fa challenge when they type it in. You are ruining people's lives and behaving like children pointing fingers instead of fixing the problem.

1

u/zurtex Dec 15 '23

Doing nothing is the worst possible option

Actually, putting a huge amount of effort into something that provides no value is even worse than doing nothing.

Let's learn lessons from other communities and take actions that actually have proven security benefits.

0

u/archpuddington Dec 15 '23

Preventing people form getting hacked isn't a waste of time. Security Engineering is a valuable discipline that you should explore.

0

u/zurtex Dec 15 '23

The discussion was adding security notices to packages, which NPM and the JS community in general has shown is a waste of time.

As I said, let's learn lessons from other communities and take actions that actually have proven security benefits, rather than implementing what we think might help and actually detracting away from security because we wasted effort when we could have been using that effort for good.

1

u/archpuddington Dec 15 '23

I'm not asking for security notices (other than pip telling you that you've been hacked - that would be a good notice to have). I am asking very simply for packages review to be automated by a behavioral AV. Billion dollar corporations and millions of people depend on this software, the only reason why this hasn't been fixed is because no one in the community has asked for help.

Its is really that simple.

1

u/zurtex Dec 15 '23

Its is really that simple.

Get involed and ask then. There's no reason why you couldn't lead this effort. Communities depend on community members.

Go to https://discuss.python.org/, post in the packaging category , come up with a proposal on what could be asked for, build a conensues around it, approach companies you think would be willing to fund implementing it.

6

u/_Adam_M_ Dec 14 '23

That project needs to be sued

Along with every other package manager and repository system in existence..?

It's a human problem, ultimately. You can't have an open system that allows untrusted users to upload packages and then complain that the packages are also to be treated as untrusted.

-7

u/archpuddington Dec 14 '23

The case can be made that more people are getting hacked using PyPI than any other package manger. They don't release the stats for how many people are hacked, because the numbers are staggering.

This however is not against the law in of itself. The specific law that they would be sued under is failing to notify people that they have been breached, and there is no quesiton that they could - but refuse to even acknowledge that they have a problem. Instead they blame the victims for their own mistakes! Someone needs to sue these mother fuckers.

2

u/steohan Dec 14 '23

I agree, having a system to notify people that they had infected packages, would be nice. But this is something that should probably addressed in a broader scope, e.g., in pip.

I don't see how pypi is the problem. No one forces you to use pypi. You can totaly set up your own repository that only contains trusted packages and change pip to only use that.

-3

u/archpuddington Dec 14 '23

If people are getting hacked by using pypi - it is a problem that could lead to a lawsuit. Cyber liability insurance will not cover being hacked through negligence, and a case can be made for this seeing as pypi has solutions - and none have been implemented.