He should have patched it to do nothing and submitted a pull request.
AI agent suggested installing a malware package. Engineer almost took its advice
PWNED Welcome back to PWNED, the column where we make fun of those who are security self-owned, so hopefully you don’t do the same. This week, we have a story that’s hot off the presses about a company almost sabotaging its security by using AI for programming. Have a story about someone leaving a gaping hole in their network? …
COMMENTS
-
-
-
Friday 21st August 2026 12:00 GMT David Hicklin
> The lesson here is don’t trust a package, don’t trust a script, don’t trust a library, don’t trust code you have no idea what it (really) does or who wrote it from a malware strewn cesspit like GitHub
Great idea, the problem in most places is that the humans needed to check all this stuff have been let go in the name of AI, profit and the share price. What did you say? Oh, use AI to check it....
-
-
-
Thursday 20th August 2026 08:46 GMT Bebu sa Ware
"the company has a policy which they actually followed"
They ought to receive the coveted Hens' Teeth Award.
Just about every place I have worked corporate policy was a "custom more honoured in the breach" although understandably in many cases given the sheer volume of largely trivial or ridiculous policies.
-
-
-
Friday 21st August 2026 12:15 GMT Michael Strorm
Re: How many of these go unnoticed in "vibe coded" slop
Thing is, this isn't even a new problem. The Register already reported on this exploit almost two and a half years ago!
-
-
Thursday 20th August 2026 14:57 GMT Bill Gray
Seems like an obvious attack...
...now that I read about it. I could imagine it being self-reinforcing : you test AI out with a query, find that it replies with a non-existent library, create malware with that name, and AI scrapes your site and is reinforced in its hallucination of said library.
I'm the maintainer of an implementation of the curses library (PDCursesMod). One of my first interactions with AI was when receieved a "why doesn't my code work" inquiry.
Curses has some "soft label key" (SLK) functions, such as slk_label(), slk_init(), etc. This code had an slk_start() function, and there's no such animal. The code also had various bits that would be superficially plausible if you didn't actually know much about curses or the SLK functions.
I replied that the code made no sense for these reasons, and got the reply that he realized that now, and had just figured AI would get it right. (I don't think the tendency of AI to make stuff up was widely recognized at the time.)
I suppose I could have just supplied a suitably diabolical slk_start() for him. Perhaps one that would take over the screen and show, in large flashing letters, "DON'T TRUST AI". And underneath, a HHGTTG-ish "please don't call this function."
-
-
Thursday 20th August 2026 23:20 GMT Bill Gray
Re: Seems like an obvious attack...
Also, in your case I would probably have been less gentle and replied RTFM or lmgtfy.com
At the time, I was somewhat taken aback and was just curious as to how he'd come up with this bit of bogusness. I just couldn't imagine how he had come up with something superficially on target, yet also so extremely superficial. Nowadays, of course, we'd all nod wisely and immediately recognize AI slop.
-
-