By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: 40 npm Packages Compromised in Supply Chain Attack Using bundle.js to Steal Credentials
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > 40 npm Packages Compromised in Supply Chain Attack Using bundle.js to Steal Credentials
Computing

40 npm Packages Compromised in Supply Chain Attack Using bundle.js to Steal Credentials

News Room
Last updated: 2025/09/16 at 1:43 AM
News Room Published 16 September 2025
Share
40 npm Packages Compromised in Supply Chain Attack Using bundle.js to Steal Credentials
SHARE

Sep 16, 2025Ravie LakshmananMalware / Cyber Attack

Cybersecurity researchers have flagged a fresh software supply chain attack targeting the npm registry that has affected more than 40 packages that belong to multiple maintainers.

“The compromised versions include a function (NpmModule.updatePackage) that downloads a package tarball, modifies package.json, injects a local script (bundle.js), repacks the archive, and republishes it, enabling automatic trojanization of downstream packages,” supply chain security company Socket said.

The end goal of the campaign is to search developer machines for secrets using TruffleHog’s credential scanner and transmit them to an external server under the attacker’s control. The attack is capable of targeting both Windows and Linux systems.

Audit and Beyond

The following packages have been identified as impacted by the incident –

  • [email protected]
  • @ctrl/[email protected]
  • @ctrl/[email protected]
  • @ctrl/[email protected]
  • @ctrl/[email protected]
  • @ctrl/[email protected]
  • @ctrl/[email protected]
  • @ctrl/[email protected]
  • @ctrl/[email protected]
  • @ctrl/[email protected]
  • @ctrl/[email protected]
  • @ctrl/[email protected], @4.1.2
  • @ctrl/[email protected]
  • @ctrl/[email protected]
  • @ctrl/[email protected]
  • [email protected]
  • [email protected], 0.2.1
  • [email protected], 5.11.1
  • @nativescript-community/[email protected]
  • @nativescript-community/sentry 4.6.43
  • @nativescript-community/[email protected]
  • @nativescript-community/[email protected]
  • @nativescript-community/[email protected]
  • @nativescript-community/[email protected]
  • @nativescript-community/[email protected]
  • @nativescript-community/[email protected]
  • @nativescript-community/[email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]

The malicious JavaScript code (“bundle.js”) injected into each of the trojanized package is designed to download and run TruffleHog, a legitimate secret scanning tool, using it to scan the host for tokens and cloud credentials, such as GITHUB_TOKEN, NPM_TOKEN, AWS_ACCESS_KEY_ID, and AWS_SECRET_ACCESS_KEY.

“It validates npm tokens with the whoami endpoint, and it interacts with GitHub APIs when a token is available,” Socket said. “It also attempts cloud metadata discovery that can leak short-lived credentials inside cloud build agents.”

The script then abuses the developer’s credentials (i.e., the GitHub personal access tokens) to create a GitHub Actions workflow in .github/workflows, and exfiltrates the collected data to a webhook[.]site endpoint.

Developers are advised to audit their environments and rotate npm tokens and other exposed secrets if the aforementioned packages are present with publishing credentials.

“The workflow that it writes to repositories persists beyond the initial host,” the company noted. “Once committed, any future CI run can trigger the exfiltration step from within the pipeline where sensitive secrets and artifacts are available by design.”

crates.io Phishing Campaign

The disclosure comes as the Rust Security Response Working Group is warning of phishing emails from a typosquatted domain, rustfoundation[.]dev, targeting crates.io users.

CIS Build Kits

The messages, which originate from security@rustfoundation[.]dev, warn recipients of an alleged compromise of the crates.io infrastructure and instruct them to click on an embedded link to rotate their login information so as to “ensure that the attacker cannot modify any packages published by you.”

The rogue link, github.rustfoundation[.]dev, mimics a GitHub login page, indicating a clear attempt on the part of the attackers to capture victims’ credentials. The phishing page is currently inaccessible.

“These emails are malicious and come from a domain name not controlled by the Rust Foundation (nor the Rust Project), seemingly with the purpose of stealing your GitHub credentials,” the Rust Security Response WG said. “We have no evidence of a compromise of the crates.io infrastructure.”

The Rust team also said they are taking steps to monitor any suspicious activity on crates.io, in addition to getting the phishing domain taken down.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article 4 Hobbies Perfect for Cutting Your Screen Time 4 Hobbies Perfect for Cutting Your Screen Time
Next Article Save up to 30% With These Purple Promo Codes and Deals Save up to 30% With These Purple Promo Codes and Deals
Leave a comment

Leave a Reply Cancel reply

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

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Windows 11 Pro Is Marked Down to .97 but the Sale Ends Today
Windows 11 Pro Is Marked Down to $9.97 but the Sale Ends Today
News
Best Garmin deal: Save 0 on Garmin Venu 3S
Best Garmin deal: Save $100 on Garmin Venu 3S
News
Watch ‘The War Between Land and Sea’ — stream the Doctor Who spin-off
Watch ‘The War Between Land and Sea’ — stream the Doctor Who spin-off
News
Chris Evans’ 8-Episode Legal Thriller Is One Of Apple TV’s Most Underrated Shows – BGR
Chris Evans’ 8-Episode Legal Thriller Is One Of Apple TV’s Most Underrated Shows – BGR
News

You Might also Like

The TechBeat: Measuring Non-Linear User Journeys: Rethinking Funnels Metrics in A/B Testing (12/7/2025) | HackerNoon
Computing

The TechBeat: Measuring Non-Linear User Journeys: Rethinking Funnels Metrics in A/B Testing (12/7/2025) | HackerNoon

7 Min Read
The Day the House Entered Epistemic Hold: A Story of Ternary Logic, Congress, and Credible Evidence | HackerNoon
Computing

The Day the House Entered Epistemic Hold: A Story of Ternary Logic, Congress, and Credible Evidence | HackerNoon

0 Min Read
Most Creators Use The Wrong Pinterest Scheduler
Computing

Most Creators Use The Wrong Pinterest Scheduler

13 Min Read
9 Mobile Apps for Athlete Mental & Physical Fitness | HackerNoon
Computing

9 Mobile Apps for Athlete Mental & Physical Fitness | HackerNoon

0 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?