W4SP Stealer

Cybersecurity researchers have uncovered 29 packages in Python
Package Index (PyPI), the official third-party software repository
for the Python programming language, that aim to infect developers’
machines with a malware called W4SP Stealer.

“The main attack seems to have started around October 12, 2022,
slowly picking up steam to a concentrated effort around October
22,” software supply chain security company Phylum said[1]
in a report published this week.

The list of offending packages is as follows: typesutil,
typestring, sutiltype, duonet, fatnoob, strinfer, pydprotect,
incrivelsim, twyne, pyptext, installpy, faq, colorwin,
requests-httpx, colorsama, shaasigma, stringe, felpesviadinho,
cypress, pystyte, pyslyte, pystyle, pyurllib, algorithmic, oiu,
iao, curlapi, type-color, and pyhints.

Collectively, the packages have been downloaded more than 5,700
times, with some of the libraries (e.g., twyne and colorsama)
relying on typosquatting to trick unsuspecting users into
downloading them.

The fraudulent modules repurpose existing legitimate libraries
by inserting a malicious import statement[2]
in the packages’ “setup.py[3]” script to launch a
piece of Python code that fetches the malware from a remote
server.

W4SP Stealer[4], an open source
Python-based trojan, comes with capabilities to pilfer files of
interest, passwords, browser cookies, system metadata, Discord
tokens, as well as data from the MetaMask, Atomic and Exodus crypto
wallets.

This is not the first time W4SP Stealer has been delivered
through seemingly benign packages in the PyPI repository. In
August, Kaspersky uncovered[5]
two libraries named pyquest and ultrarequests that were found to
deploy the malware as a final payload.

CyberSecurity

The findings illustrate continued[6]
abuse[7]
of open source[8]
ecosystems[9]
to propagate malicious packages that are designed to harvest
sensitive information and make way for supply chain attacks[10].

“As this is an ongoing attack with constantly changing tactics
from a determined attacker, we suspect to see more malware like
this popping up in the near future,” Phylum noted.

References

  1. ^
    said
    (blog.phylum.io)
  2. ^
    import
    statement
    (docs.python.org)
  3. ^
    setup.py
    (thehackernews.com)
  4. ^
    W4SP
    Stealer
    (github.com)
  5. ^
    uncovered
    (securelist.com)
  6. ^
    continued
    (thehackernews.com)
  7. ^
    abuse (snyk.io)
  8. ^
    open
    source
    (blog.phylum.io)
  9. ^
    ecosystems
    (www.secure.software)
  10. ^
    supply
    chain attacks
    (thehackernews.com)

Read more