Stories
Slash Boxes
Comments

SoylentNews is people

posted by hubie on Monday January 23 2023, @09:52PM   Printer-friendly
from the pip-install-aw-crud dept.

It's not always easy to spot malicious impostors posing as legit downloads:

Researchers have uncovered yet another supply chain attack targeting an open source code repository, showing that the technique, which has gained wide use in the past few years, isn't going away any time soon.

This time, the repository was PyPI, short for the Python Package Index, which is the official software repository for the Python programming language. Earlier this month, a contributor with the username Lolip0p uploaded three packages to PyPI titled: colorslib, httpslib, and libhttps. The contributor was careful to disguise all three as legitimate packages, in this case, as libraries for creating a terminal user interface and thread-safe connection pooling. All three packages were advertised as providing full-featured usability.

[...] Open source repositories such as PyPI and NPM have become increasingly used as vectors for installing malware through supply chain attacks, which spread malicious software at the source of a legitimate project. From 2018 to 2021, this type of attack grew on NPM almost fourfold and about fivefold on PyPI, according to security firm ReversingLabs. From January to October last year, 1,493 malicious packages were uploaded to PyPI, and 6,977 malicious packages were uploaded to NPM.

[...] "Python end users should always perform due diligence before downloading and running any packages, especially from new authors," ReversingLabs researchers wrote in the post documenting the latest attacks. "And as can be seen, publishing more than one package in a short time period is no indication that an author is reliable."

The same advice should be applied to NPM, RubyGems, and virtually every other open source repository.


Original Submission

 
This discussion was created by hubie (1068) for logged-in users only, but now has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 2) by PiMuNu on Tuesday January 24 2023, @04:48PM

    by PiMuNu (3823) on Tuesday January 24 2023, @04:48PM (#1288382)

    > random guy's car trunk on a street corner

    Unfortunately, many reputable packages distribute through PyPI. If your local butcher sells rotten meat alongside the good stuff, how are you to know. The conclusion, as you have made, is that all the meat is rotten. That is bad news for python.

    To take a random, reputable example:
    https://numpy.org/install/ [numpy.org]
    "NumPy can be installed with conda, with pip, with a package manager on macOS and Linux, or from source." (pip being the PyPI build tool thing)

    Starting Score:    1  point
    Karma-Bonus Modifier   +1  

    Total Score:   2