241 Npm and PyPI Packages Drops Linux Cryptominers - TuxCare

241 Npm and PyPI Packages Drops Linux Cryptominers

Obanla Opeyemi

August 30, 2022

Cryptominer, linux, linux exploits

Researchers be have uncovered at least 241 malicious Npm and PyPI packages that drop cryptominers after infecting Linux machines.

These malicious packages are largely typosquats of widely used libraries and each one of them downloads a Bash script on Linux systems that run cryptominers.

Lübbers discovered “at least 33 projects” on PyPI that launched XMRig, an open source Monero cryptominer after infecting a system.
While trying to report the processes for the 33 projects to PyPI, the researcher uncovered another 22 packages with the same malicious payload published by the threat actor.

“After I reported them to PyPI, they were quickly deleted – but the malicious actor was still in the process of uploading more packages, and uploaded another 22. The packages targeted Linux systems and installed crypto mining software XMRig,” explain Lübbers.

According to tbe researcher, the python packages contain codes that downloads the BASH script from the threat actor’s sever via Bit.ly URL shortener. The shortened link then redirects to the script hosted on 80.78.25[.]140:8000.

After it is executed, the script notifies the threat actor of the IP address of the compromised host and if the deployment of cryptominers succeed.

“I found these packages through a little side project of mine, which I call the Package Observatory Club. It queries and stores metadata about all new packages uploaded to PyPI and RubyGems.org and runs some heuristics. If it looks suspicious enough it alerts me and I take a look,” the researcher further clarified.

NPM also known as Node Package Manager is an online repository for the publishing of open-source Node.js projects. It is also a command-line utility for interacting with said repository that aids in package installation, version management, and dependency management.

Admins are advised to take security measures to protect their servers from these attacks.

The sources for this piece include an article in BleepingComputerBleepingComputer.

Like what you're reading?
Get Important Content In Your Inbox.

Tell us your challenges and our experts will help you find the best approach to address them with the TuxCare product line.

Resources

State of Enterprise Linux Cybersecurity ... Read More State of Enterprise Linux Cybersecurity ...
Dangerous remotely exploitable vulnerability ... Read More Dangerous remotely exploitable vulnerability ...
Securing confidential research data ... Read More Securing confidential research data ...
State of Enterprise Vulnerability Detection ... Read More State of Enterprise Vulnerability Detection ...
Demand for Rapid Risk Elimination for ... Read More Demand for Rapid Risk Elimination for ...
TuxCare Free Raspberry Pi Patching Read More TuxCare Free Raspberry Pi Patching