Cyber Crime

Ongoing supply chain attack targets Python developers with WASP Stealer

A threat actor tracked as WASP is behind an ongoing supply chain attack targeting Python developers with the WASP Stealer.

Checkmarx researchers uncovered an ongoing supply chain attack conducted by a threat actor they tracked as WASP that is targeting Python developers.

The attackers are using Python packages to distribute a polymorphic malware called W4SP Stealer.

The malicious code is able to steal the victim’s Discord accounts, passwords, crypto wallets, credit cards, and other sensitive data on the victim’s PC. Stolen data have been sent them back to the attacker through a hard-coded Discord webhook address.

The threat actor is offering the WASP stealer for $20 claiming it is undetectable and is heavily “protected by some awesome obfuscation.” The supply chain attacks seem to be financially motivated.

Checkmarx investigation started from recent reports from Phylum and Check Point, which spotted tens of PyPI packages delivering the W4SP stealer to developers’ systems.

The researchers pointed out that the attacks stand out for the use of steganography to hide the polymorphic malware hidden within an image file hosted on Imgur.

Once a malicious package is installed, the setup.py script is executed, and additional Python packages are deployed on the victim’s system, including judyb, which provides steganography utilities.

The setup.py script downloads a .png image from Imgur and saves it in the operating system’s temp directory. Then the scripts uses the “lsb.reveal” function of the judyb package to extract the hidden code from the image.

After the installed code is executed, it fetches another piece of code from the URL “hxxp://misogyny[.]wtf/inject/UsRjS959Rqm4sPG4”.

The overall process ends with the W4SP Stealer (aka WASP Stealer) infection.

The analysis of the malicious code allowed the expert to find an open invitation to join the attacker’s Discord server managed by a single user that goes with the name of “Alpha.#0001”.

The attacker is creating many fake users to appear legitimate while stealing the profile description from popular user accounts.

The researchers analyzed the Discord server “WASP” and discovered that hundreds of victims have been infected by this campaign.

The same actor, recently started using a new username on PyPI (“halt”) to upload typosquatting libraries that leveraged the StarJacking technique (stealing the stars from another project).

“The level of manipulation used by software supply chain attackers is increasing as attackers get increasingly more clever.” concludes the report. “This is the first time seen polymorphic malware used in software supply chain attacks, and It seems we will experience even more attacks like this.”

Follow me on Twitter: @securityaffairs and Facebook and Mastodon

[adrotate banner=”9″][adrotate banner=”12″]

Pierluigi Paganini

(SecurityAffairs – hacking, WASP Stealer)

[adrotate banner=”5″]

[adrotate banner=”13″]

Pierluigi Paganini

Pierluigi Paganini is member of the ENISA (European Union Agency for Network and Information Security) Threat Landscape Stakeholder Group and Cyber G7 Group, he is also a Security Evangelist, Security Analyst and Freelance Writer. Editor-in-Chief at "Cyber Defense Magazine", Pierluigi is a cyber security expert with over 20 years experience in the field, he is Certified Ethical Hacker at EC Council in London. The passion for writing and a strong belief that security is founded on sharing and awareness led Pierluigi to find the security blog "Security Affairs" recently named a Top National Security Resource for US. Pierluigi is a member of the "The Hacker News" team and he is a writer for some major publications in the field such as Cyber War Zone, ICTTF, Infosec Island, Infosec Institute, The Hacker News Magazine and for many other Security magazines. Author of the Books "The Deep Dark Web" and “Digital Virtual Currency and Bitcoin”.

Recent Posts

OpenAI bans ChatGPT accounts linked to Russian, Chinese cyber ops

OpenAI banned ChatGPT accounts tied to Russian and Chinese hackers using the tool for malware,…

7 hours ago

New Mirai botnet targets TBK DVRs by exploiting CVE-2024-3721

A new variant of the Mirai botnet exploits CVE-2024-3721 to target DVR systems, using a…

9 hours ago

BadBox 2.0 botnet infects millions of IoT devices worldwide, FBI warns

BadBox 2.0 malware has infected millions of IoT devices globally, creating a botnet used for…

11 hours ago

Over 950K weekly downloads at risk in ongoing supply chain attack on Gluestack packages

A supply chain attack hit NPM, threat actors compromised 16 popular Gluestack packages, affecting 950K+…

1 day ago

SECURITY AFFAIRS MALWARE NEWSLETTER ROUND 48

Security Affairs Malware newsletter includes a collection of the best articles and research on malware…

1 day ago

Security Affairs newsletter Round 527 by Pierluigi Paganini – INTERNATIONAL EDITION

A new round of the weekly Security Affairs newsletter has arrived! Every week, the best…

1 day ago