Security researchers have identified more than 20 malicious PyPI packages designed to steal passwords and other sensitive information from the victims’ machines. Investigators are warning of two such packages ‘ultrarequests’ and ‘pyquest’ that were masquerading as ‘requests’, a highly popular open source package. The malicious repositories copied the description from the legitimate package and contained fake statistics. PyPI as an index which allows users to search for packages by keywords or by filters against their metadata. A single entry on PyPI can store, aside from just a package and its metadata, previous releases of the package, as well as different forms for other operating systems and Python versions.[1]
The malicious packages contained nearly identical code as ‘requests’ but were designed to write to a temporary file a one-liner Python script designed to fetch a next-stage script that in turn downloads and executes the final payload. Called ‘W4SP Stealer,’ the final payload is a Python trojan that collects saved cookies and passwords from browsers and Discord tokens, and sends them to the threat actor via a Discord webhook.[2] “The stealer also creates and sends a list of saved browser credentials for the URLs containing keywords ‘mail’, ‘card’, ‘bank’, ‘buy’, ‘sell’, etc. Apart from that, it gathers data from the MetaMask, Atomic and Exodus wallets, as well as Steam and Minecraft credentials,” a researcher explains. The malware also searches the victims’ downloads, documents, and desktop directories for filenames containing specific words. Additionally, it downloads a JavaScript payload that gets injected into Discord and which monitors victim actions related to email addresses, passwords, and billing information.
Snyk https://snyk.io, a Boston based cybersecurity company stated they found twelve PyPI malware samples, all belonging to the same threat actor: hackerfilelol, hackerfileloll, stealthpy, plutos, testpipper, testpipperz, pippytest, pippytests, cyphers, rblxtools, rbxtools, and rbxtool. “These malicious packages attempted to avoid detection while infiltrating Windows machines and executing malicious executable files downloaded from the Discord content delivery network (CDN) onto the host,” Snyk explains.
Once installed on the victim’s machine, the malware attempts to steal data from the Chrome browser including passwords, cookies, browsing and search histories, and bookmarks – as well as tokens from Discord. It also injects a persistent malicious agent into Discord’s process. According to Snyk, the malware is also abusing Discord resources for the distribution of executables. The ‘cyphers’ package also has a component designed to steal Roblox cookies and user data.
Snyk’s report came one week after Check Point warned of ten malicious PyPI packages it had discovered: Ascii2text, Pyg-utils, Pymocks, PyProto2, Test-async, Free-net-vpn, Free-net-vpn2, Zlibsrc, Browserdiv, and WINRPCexploit. Just as previously described malware, these packages were designed to harvest victims’ credentials and to download and execute code from the internet.
Red Sky Alliance is a Cyber Threat Analysis and Intelligence Service organization. For questions, comments or assistance, please contact the office directly at 1-844-492-7225, or feedback@wapacklabs. com
Weekly Cyber Intelligence Briefings:
- Reporting: https://www. redskyalliance. org/
- Website: https://www. wapacklabs. com/
- LinkedIn: https://www. linkedin. com/company/64265941
Weekly Cyber Intelligence Briefings:
REDSHORTS - Weekly Cyber Intelligence Briefings
https://attendee.gotowebinar.com/register/5504229295967742989
[1] https://pypi.org/project/pypi/
[2] https://www.securityweek.com/security-firms-find-over-20-malicious-pypi-packages-designed-data-theft
Comments