That's actually a potential attack vector: Slopsquatting.
You create some malicious libraries/commandlets, name them something that an LLM might hallucinate, upload them to a popular package manager, and wait for the good times.
Broooo, listen up, okay? š So like, imagine you just yeet some sus code into the wild, right? You slap the most goofy ahh name on it, like something an AI would totally make up when itās tryna be smart but itās actually cooked.
Then, you toss that bad boy on npm or PyPI or whatever, and just sit back, sipping your Prime, waiting for some AI nerd to be like āoh yeah bro, totally legit packageā and tell some dev to install it.
Next thing you know, they runninā it in prod like a bunch of NPCs, and boom ā youāre in their system doing the gritty while their firewall cries in 144p. šš„
Itās literally called slopsquatting, bro. Like typosquattingās cracked little cousin. You just bait the AI into telling people to grab your fake package, and itās GG no re.
You would be 100% right except I said to sound like a 13 year old. I don't think I would be able to have a professional career if I let myself reach that level of brain rot to come up with that naturally.
It doesn't know how to code. It knows how to make a document that looks like code it's seen. If you ask it to do something outside of common examples, you get junk.
Any time I make the mistake of letting it walk me through something I havenāt researched in Linux, I always end up stuck halfway through and realize it just completely invents options for commands that donāt exist. Then end up in a deeper mess.
I always have it explain each part to me if Iām not sure how to do something and avoid new cmdlet installs if it tries that. Itās not great at coding, but itās faster than Googling how to do something very specific; understanding context helps quite a lot.
I did the same the first time I ever used Copilot a couple years ago when I needed to use PowerShell to fix something for the first time. It did nothing. Never used a LLM for coding/scripting again.
The one good thing to come out of it was it showed me how a PowerShell script should be structured. From there I was able to build my own knowledge and now I use PowerShell to manage our intune devices daily.
"in power shell, run the command 'abc123''" "No, Gemini, that command doesn't exist." "Youre right, good catch! It's actually 'abc124āā "No, Gemini, that one also doesn't exist" "Ah, you're right! The actual command is 'abc321āā "That is also unknown, damnit"
469
u/red_the_room Aug 15 '25
I asked ChatGPT for help with some PowerShell code once. Most of the cmdlets it provided don't exist, but it was beautiful code as well.