How Three New Malicious PyPI Packages Transformed Linux Devices into Cryptocurrency Miners?
2024-1-16 12:14:41 Author: infosecwriteups.com(查看原文) 阅读量:47 收藏

These packages demonstrate a sophisticated multi-phase attack pattern that culminates in the deployment of a CoinMiner

Caleb

InfoSec Write-ups

The discovery of three malicious Python Package Index (PyPI) packages targeting Linux devices with a cryptocurrency miner reflects a disturbing trend in software supply chain attacks.

These packages — modularseven-1.0, driftme-1.0, and catme-1.0 — originate from a newly created author account “sastra” and demonstrate a sophisticated multi-phase attack pattern that culminates in the deployment of a CoinMiner.

This recent incident, as reported by Fortinet, highlights the increasingly cunning tactics of malicious actors within the open-source ecosystem.

The attack begins subtly with the __init__.py file in the packages modularseven, driftme, and catme.

Upon execution, a shell script named unmi.sh is retrieved and executed, setting the stage for the miner's deployment.

https://www.fortinet.com/blog/threat-research/malicious-pypi-packages-deploy-coinminer-on-linux-devices

The script secures a configuration file outlining the mining operations and the CoinMiner file itself, discreetly hosted on GitLab.

What sets these packages apart is the additional layer of subterfuge.

By embedding the malicious commands within a shell script, the attackers have crafted a more elusive trap that can more easily slip past security defenses.

Furthermore, by inserting these commands into the ~/.bashrc file, they ensure the malware's persistence across system reboots and user sessions, effectively turning the user's device into a stealthy mining bot.

The Fortinet report draw attention to the striking similarities between these packages and the earlier identified ‘culturestreak’ package.


文章来源: https://infosecwriteups.com/how-three-new-malicious-pypi-packages-transformed-linux-devices-into-cryptocurrency-miners-c381d9b83ed3?source=rss----7b722bfd1b8d---4
如有侵权请联系:admin#unsafe.sh