Discussion
Loading...

Discussion

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
nullagent
@nullagent@partyon.xyz  ·  activity timestamp 3 days ago

#Breaking There's an active nodejs supply chain attack going around.

From the looks of it many of these compromised packages have been mitigated but quite a few have not.

https://helixguard.ai/blog/malicious-sha1hulud-2025-11-24

#nodejs #cybersecurity #aws #github #npm #trufflehog #go #cyberattack #ShaiHulud #javascript #deno #browser

  • Copy link
  • Flag this post
  • Block
nullagent
@nullagent@partyon.xyz replied  ·  activity timestamp 3 days ago

I'm quickly finding a mix of packages which were compromised, some were months ago and had the bad versions taken down.

However at the same time I'm noticing packages like the one below that were -just- hacked 19 hours ago and still have not been taken down yet!

With how this worm works its a bit of a pencils down moment... you probably should check your packages right now.

https://www.npmjs.com/package/capacitor-voice-recorder-wav?activeTab=code

#nodejs #npm #ShaiHulud #javascript

Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
  • Copy link
  • Flag this comment
  • Block
nullagent
@nullagent@partyon.xyz replied  ·  activity timestamp 3 days ago

Taking a second to understand the attack rate. I constructed this query below which shows you essentially an up to date listing of developers/code that's been compromised.

One your box is infected and PII data has been found the worm then uses your github credentials to upload that content so ANYONE can now steal your credentials.

I'm finding multiple repos being popped every minute. This is an extremely active attack right now.

https://github.com/search?q=%22Sha1-Hulud%3A+The+Second+Coming.%22&type=repositories&s=updated&o=desc

#nodejs #npm #cybersecurity #github

  • Copy link
  • Flag this comment
  • Block
nullagent
@nullagent@partyon.xyz replied  ·  activity timestamp 3 days ago

Ok I've downloaded some of the compromised packages and you can search your already downloaded node modules for possibly infected packages using this command:

find ./node_modules -type f -name "bun_environment.js"

You can check your user level node cache using:

find ~/.npm -type f -name "bun_environment.js"

Still sizing this one up but if you get any hits check and see if they are big files (around 10MB) and if so you're likely infected.

#nodejs #npm #cybersecurity

  • Copy link
  • Flag this comment
  • Block
Andres
@Andres4NY@social.ridetrans.it replied  ·  activity timestamp 2 days ago

@nullagent npm was a great idea. A+, no notes.

  • Copy link
  • Flag this comment
  • Block
nullagent
@nullagent@partyon.xyz replied  ·  activity timestamp 2 days ago

imo.... this is all what having no 2FA turned on for your NPM and GitHub results in.

This can happen to pretty much any service where users share files and don't use 2FA.

@Andres4NY

  • Copy link
  • Flag this comment
  • Block
nullagent
@nullagent@partyon.xyz replied  ·  activity timestamp 2 days ago

I've spent the last few hours writing down my scripts for detecting this so you can use them!

I'm hitting on two or three ways to detect it and will be adding more.

Watching the attack running I can see developers all over the world still doing their morning `npm i` and getting owned 😭

Maybe let the node developers in your life know about this tool 👇🏿

https://github.com/datapartyjs/walk-without-rhythm

#ShaiHulud #WalkWithoutRhythm #nodejs #javascript #npm #github #cybersecurity

  • Copy link
  • Flag this comment
  • Block
nullagent
@nullagent@partyon.xyz replied  ·  activity timestamp 2 days ago

First pass is super simple and just looks for the file names & package.json signature for signs of infection anywhere in the path you tell it to search.

If it sees anything fishy it tells you where and stops until you've read the alert.

Oh and this only uses bash, sed, awk, grep, curl, and jq. So no npm, node or other big supply chains 🥴

https://github.com/datapartyjs/walk-without-rhythm/blob/main/check-projects

#ShalHulud #WalkWithoutRhythm #nodejs #npm #github #javascript

Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
  • Copy link
  • Flag this comment
  • Block
Lady Errant
@errant@mastodon.sdf.org replied  ·  activity timestamp 3 days ago

@nullagent I reiterate that these kinds of massive-dependency-tree package managers (npm, cargo, etc) have too large an attack surface to justify their convenience

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login