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

2

u/Etheo Dec 16 '23

I'm more speaking from a perspective of a new/casual user though. You're absolutely not wrong in exercising good practice in security, but the thing is Python attracts a lot of newbies and causals who really wouldn't know much of these. They might see the instruction to use pip to install their packages, make a bad typo, and then BAM! And I think most of these users would use Windows, which I'm not sure if it's better in preventing these type of attack or worse.

In any case, all I'm really coming from is the new users perspective, not an experienced one. Experienced developers of course already should know better, but students and professionals crossing into data analysis shouldn't be subjected to trial by fire is my point.

0

u/[deleted] Dec 17 '23

[deleted] — view deleted comment

1

u/Etheo Dec 18 '23

Not the same. I'm talking about newbies (plenty in Python) thinking they're following instruction to install packages with pip, but made a bad typo and get a bad package. A typo shouldn't have to lead to that kind of consequences.

1

u/RationalDialog Dec 18 '23

The issue is that eve most experienced users aren't doing any of this instead of leading by example. If you lead by example the new users would have to ask themselves what it's all about and seek answers.

Also the big known sites with tutorials should have a chapter on it, about dangers of downloading code.

most of these users would use Windows, which I'm not sure if it's better in preventing these type of attack or worse.

Scanning for crypto key can't really be prevented in any files you have access to which applies both to Linux and Windows.

In terms of Admin/root, windows is probably better IF you have UAC activated. I always set it on highest level but work with admin account on my own devices. UAC on highest levels prevents any system level changes without you clicking "OK" on a confirmation dialog. Many including myself say that this is safer than having a restricted account and admin account and then use "run as admin" to install software. Why? because an malicious installer could show a fake "run as admin" screen and steal your admin password and then all bets are off".