rysiek,
@rysiek@mstdn.social avatar

Dear Hivemind!

We've seen supply chain attacks where old unmaintained npm packages were taken over and malwared, targeting devs.

We've seen attacks that typosquatted names of popular npm packages to get devs to include these accidentally.

We've seen malicious JS libraries hosted on large CDNs, used in attacks.

Have we seen a case where a JS library / npm package got taken over, malwered, and then published to CDNs in order to target websites that include it?

:boost_ok:

tanepiper,
@tanepiper@tane.codes avatar

@rysiek this is one that terrifies me for almost a decade now. So far haven't seen it, but this is why we are moving to compiled node apps in containers with SBOMs and absolutely no external CDNs

rysiek,
@rysiek@mstdn.social avatar

@tanepiper honestly I am surprised that I was so far not able to find a specific example of this happening.

I do vaguely remember some cryptocurrency websites being targeted that way, but I think the vector was not CDNs but malicious npm dependencies on build time. 🤔

tanepiper,
@tanepiper@tane.codes avatar

@rysiek yea, that's the basis of this proof of concept https://github.com/tanepiper/steal-ur-stuff

Many years ago we persuaded MySpace to let us inject code from a script we owned they put on their pages - if there was a way to still do that, I could imagine it working but browsers are pretty good these days at protecting against this - the only other way is to maybe background some serviced worker?

naugtur,
@naugtur@fosstodon.org avatar
rysiek,
@rysiek@mstdn.social avatar

@naugtur ah yes, that's I think something I remembered but couldn't find. Thanks!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • infosec
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • ngwrru68w68
  • tacticalgear
  • magazineikmin
  • Youngstown
  • khanakhh
  • rosin
  • slotface
  • InstantRegret
  • everett
  • kavyap
  • cisconetworking
  • JUstTest
  • cubers
  • modclub
  • GTA5RPClips
  • ethstaker
  • osvaldo12
  • Durango
  • provamag3
  • normalnudes
  • tester
  • anitta
  • megavids
  • Leos
  • lostlight
  • All magazines