Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Malware & Threats

Security Firms Find Over 20 Malicious PyPI Packages Designed for Data Theft

Security companies have identified more than 20 malicious PyPI packages designed to steal passwords and other sensitive information from the victims’ machines.

Security companies have identified more than 20 malicious PyPI packages designed to steal passwords and other sensitive information from the victims’ machines.

Kaspersky is 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.

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.

“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,” Kaspersky 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 says 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.

Advertisement. Scroll to continue reading.

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.

Kaspersky’s and Snyk’s reports come 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.

Related: New OpenSSF Project Hunts for Malicious Packages in Open Source Repositories

Related: 1,300 Malicious Packages Found in Popular npm JavaScript Package Manager

Related: PyPI Served Malicious Version of Popular ‘Ctx’ Python Package

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Click to comment

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Understand how to go beyond effectively communicating new security strategies and recommendations.

Register

Join us for an in depth exploration of the critical nature of software and vendor supply chain security issues with a focus on understanding how attacks against identity infrastructure come with major cascading effects.

Register

Expert Insights

Related Content

Cybercrime

The changing nature of what we still generally call ransomware will continue through 2023, driven by three primary conditions.

Cybercrime

A recently disclosed vBulletin vulnerability, which had a zero-day status for roughly two days last week, was exploited in a hacker attack targeting the...

Malware & Threats

The NSA and FBI warn that a Chinese state-sponsored APT called BlackTech is hacking into network edge devices and using firmware implants to silently...

Application Security

Virtualization technology giant VMware on Tuesday shipped urgent updates to fix a trio of security problems in multiple software products, including a virtual machine...

Malware & Threats

Unpatched and unprotected VMware ESXi servers worldwide have been targeted in a ransomware attack exploiting a vulnerability patched in 2021.

Cyberwarfare

An engineer recruited by intelligence services reportedly used a water pump to deliver Stuxnet, which reportedly cost $1-2 billion to develop.

Malware & Threats

Apple’s cat-and-mouse struggles with zero-day exploits on its flagship iOS platform is showing no signs of slowing down.

Cybercrime

No one combatting cybercrime knows everything, but everyone in the battle has some intelligence to contribute to the larger knowledge base.