Malicious versions of Nx and some supporting plugins were published

26 points by hoistbypetard


hwayne

The laziest possible exploit.

rbuchberger

This is my worst nighmare. I run so much Javascript written by who knows who and secured by hopes & dreams, as a necessity to do my job. It’s time I sorted out some kind of sandboxing.

dubiouslittlecreature

Didn’t know what Nx was. Went looking at their repo/readme.

“AI-first build platform”

Color me entirely unsurprised. GenAI crowd failing at security is nothing new.

Edit: oh my god it’s even worse. It was a prompt injection attack, they just ask whatever LLM the user is using with Nx to steal everything.

ThinkChaos

The “script” (LLM prompt) in the appendix is frightening.
I hadn’t actually considered getting infected with a sloppy virus (even if people using LLMs to write viruses is obvious). Now I’m even more afraid of the havoc a vibecoder “script kiddie” could cause…

I’ll take solace in being on NixOS and the corpus of #!/bin/bash shebangs likely making LLMs generate scripts that just don’t startup (/bin/bash doesn’t exist, proper portable shebang is #!/usr/bin/env bash).