News for hackers. Stuff that matters.
Re:Malicious software libraries found in PyPI posing as well... by teilo on Friday September 15, 2017 @12:04PM (#15258226)
I think we need a system to prevent this instead of the wild-west that PyPi has become. For example: Developer signatures that are checked against a community rating. If someone does `pip install` pip would look up the developer signature of the package and check a community rating that would verify this is a developer who has offered legit packages in the past. It's not foolproof, but it would go a long way towards solving this.
Re:Malicious software libraries found in PyPI posing as well... by wongarsu on Friday September 15, 2017 @01:01PM (#15258720)
That sounds easy to defeat. Make some mundane, but legit packages (maybe on of those "$X but without the pointless complexity"-packages), gain trust, once trust is reached start uploading typo-squatting packages.

Knowing today's internet, programmers from cheap-labour nations (India & Co.) would soon start offering "trusted PyPi accounts" for sale on hacker forums.

Re:Malicious software libraries found in PyPI posing as well... by teilo on Friday September 15, 2017 @05:09PM (#15260796)
Yes, but keys can also be revoked, providing a way to mitigate this.
Re:Malicious software libraries found in PyPI posing as well... by zokier on Friday September 15, 2017 @12:38PM (#15258498)
You could add the ability for well known members to vet newbie developers, maybe by signing their key. And now you have re-invented web of trust.
Re:Malicious software libraries found in PyPI posing as well... by teilo on Friday September 15, 2017 @05:08PM (#15260791)
I was thinking more than the ratings would handle this, rather than having to sign keys. Ratings by well-respected and vetted members would have more weight.