By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
Viral Trending contentViral Trending content
  • Home
  • World News
  • Politics
  • Sports
  • Celebrity
  • Business
  • Crypto
  • Gaming News
  • Tech News
  • Travel
Reading: Rspack npm Packages Compromised with Crypto Mining Malware in Supply Chain Attack
Notification Show More
Viral Trending contentViral Trending content
  • Home
  • Categories
    • World News
    • Politics
    • Sports
    • Celebrity
    • Business
    • Crypto
    • Tech News
    • Gaming News
    • Travel
  • Bookmarks
© 2024 All Rights reserved | Powered by Viraltrendingcontent
Viral Trending content > Blog > Tech News > Rspack npm Packages Compromised with Crypto Mining Malware in Supply Chain Attack
Tech News

Rspack npm Packages Compromised with Crypto Mining Malware in Supply Chain Attack

By Viral Trending Content 3 Min Read
Share
SHARE

Dec 20, 2024Ravie LakshmananMalware / Supply Chain Attack

Crypto Mining Malware

The developers of Rspack have revealed that two of their npm packages, @rspack/core and @rspack/cli, were compromised in a software supply chain attack that allowed a malicious actor to publish malicious versions to the official package registry with cryptocurrency mining malware.

Following the discovery, versions 1.1.7 of both libraries have been unpublished from the npm registry. The latest safe version is 1.1.8.

“They were released by an attacker who gained unauthorized npm publishing access, and contain malicious scripts,” software supply chain security firm Socket said in an analysis.

Cybersecurity

Rspack is billed as an alternative to the webpack, offering a “high performance JavaScript bundler written in Rust.” Originally developed by ByteDance, it has since been adopted by several companies such as Alibaba, Amazon, Discord, and Microsoft, among others.

The npm packages in question, @rspack/core, and @rspack/cli, attract weekly downloads of over 300,000 and 145,000, respectively, indicative of their popularity.

An analysis of the rogue versions of the two libraries has revealed that they incorporate code to make calls to a remote server (“80.78.28[.]72”) in order to transmit sensitive configuration details such as cloud service credentials, while also collecting IP address and location details by making an HTTP GET request to “ipinfo[.]io/json.”

In an interesting twist, the attack also limits the infection to machines located in a specific set of countries, such as China, Russia, Hong Kong, Belarus, and Iran.

The end goal of the attacks is to trigger the download and execution of an XMRig cryptocurrency miner on compromised Linux hosts upon installation of the packages by means of a postinstall script specified in the “package.json” file.

“The malware is executed via the postinstall script, which runs automatically when the package is installed,” Socket said. “This ensures the malicious payload is executed without any user action, embedding itself into the target environment.”

Cybersecurity

Besides publishing a new version of the two packages sans the malicious code, the project maintainers said they invalidated all existing npm tokens and GitHub tokens, checked the permissions of the repository and npm packages, and audited the source code for any potential vulnerabilities. An investigation into the root cause of the token theft is underway.

“This attack highlights the need for package managers to adopt stricter safeguards to protect developers, like enforcing attestation checks, to prevent updating to unverified versions,” Socket said. “But it’s not totally bullet-proof.”

“As seen in the recent Ultralytics supply chain attack in the Python ecosystem, attackers may still be able to publish versions with attestation by compromising GitHub Actions through cache poisoning.”

Found this article interesting? Follow us on Twitter  and LinkedIn to read more exclusive content we post.

You Might Also Like

With the Rise of AI, Cisco Sounds an Urgent Alarm About the Risks of Aging Tech

Up to 40% off in UGREEN’s Black Friday and Cyber Monday Big Sale

ServiceNow + Microsoft announce new agentic capabilities at Ignite

Gemini Coder 2 Build Mode : Free AI Coding Tool You Need to Try

Python-Based WhatsApp Worm Spreads Eternidade Stealer Across Brazilian Devices

TAGGED: cryptocurrency, Cyber Security, Cybersecurity, GitHub, Internet, Linux, Malware, NPM, supply chain attack
Share This Article
Facebook Twitter Copy Link
Previous Article New Syrian Leaders Say They Want To Contribute To ‘Regional Peace’
Next Article Anthony Carrigan: 5 Things on the Actor Playing Metamorpho in ‘Superman’ 2025
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

- Advertisement -
Ad image

Latest News

XRP Just ‘Flash-Wicked’ To $90 On Kraken — Expert Reveals Why
Crypto
With the Rise of AI, Cisco Sounds an Urgent Alarm About the Risks of Aging Tech
Tech News
Is there no limit to the Nvidia share price after Q3 earnings jump?
Business
US military officials in Ukraine amid reports of draft Russia peace plan
World News
NASA releases new 3I/ATLAS images showing the comet’s astonishing true nature
World News
Bitcoin just hit a critical point: analysts split between $85K crash and $250K surge
Crypto
Up to 40% off in UGREEN’s Black Friday and Cyber Monday Big Sale
Tech News

About Us

Welcome to Viraltrendingcontent, your go-to source for the latest updates on world news, politics, sports, celebrity, tech, travel, gaming, crypto news, and business news. We are dedicated to providing you with accurate, timely, and engaging content from around the globe.

Quick Links

  • Home
  • World News
  • Politics
  • Celebrity
  • Business
  • Home
  • World News
  • Politics
  • Sports
  • Celebrity
  • Business
  • Crypto
  • Gaming News
  • Tech News
  • Travel
  • Sports
  • Crypto
  • Tech News
  • Gaming News
  • Travel

Trending News

cageside seats

Unlocking the Ultimate WWE Experience: Cageside Seats News 2024

XRP Just ‘Flash-Wicked’ To $90 On Kraken — Expert Reveals Why

Investing £5 a day could help me build a second income of £329 a month!

cageside seats
Unlocking the Ultimate WWE Experience: Cageside Seats News 2024
May 22, 2024
XRP Just ‘Flash-Wicked’ To $90 On Kraken — Expert Reveals Why
November 20, 2025
Investing £5 a day could help me build a second income of £329 a month!
March 27, 2024
Brussels unveils plans for a European Degree but struggles to explain why
March 27, 2024
© 2024 All Rights reserved | Powered by Vraltrendingcontent
  • About Us
  • Contact US
  • Disclaimer
  • Privacy Policy
  • Terms of Service
Welcome Back!

Sign in to your account

Lost your password?