AI coding tools invent packages that don't exist. Hackers register the names and load them with malware. Here's how to catch it first.
13.7.2026 • 3 minuuttia lukuaika

Change Lives!

Slopsquatting is what happens when an AI coding assistant recommends a software package that doesn't actually exist, and an attacker has already registered that exact name on a public repository and filled it with malware. A developer copies the AI's suggestion, runs the install command, and hands the attacker a way in. Nobody typo'd anything. It's a real, already-active supply chain risk, not a hypothetical one. Security researchers coined the term this year as AI coding tools became common enough that their hallucinations turned predictable – predictable enough for attackers to squat on the names before a developer even asks for them.
Large language models predict what a plausible answer looks like, not what's actually true. Asked for a library to handle a specific task, a model will sometimes generate a name that follows every naming convention perfectly, correct casing, correct structure, a name that simply isn't registered anywhere. The model has no internal signal telling it the difference between a real package and a very convincing guess. It sounds equally confident either way.
Attackers watch which fake names keep showing up across popular AI coding tools, then register those exact names on public package repositories before anyone else does. The package sits there looking legitimate, sometimes with a plausible README, until a developer's AI assistant recommends the same hallucinated name and the developer installs it without checking. From there the malicious code runs with whatever permissions that install script has, which on a lot of machines is plenty.
Checking a dependency list against a real registry, by hand, before code ships takes a developer minutes.
A few habits catch most of this. Search the exact package name on the real registry (PyPI, npm, crates.io, whichever applies) before installing anything an AI assistant suggests. Check the publish date and download count, a package that's three days old with twelve downloads isn't the same thing as an established library. Read the first few lines of an install script before trusting it with permissions. None of this replaces a second set of human eyes on anything shipping to production, it just narrows how much that person has to check. A dependency-review checklist is queued as a follow-up guide for exactly this.
None of this is an argument against using AI to code faster, plenty of freelancers doing this work use AI themselves and ship faster because of it. It's an argument for having someone in the loop who can tell a shortcut from a landmine.
Aiheeseen liittyviä tarinoita

KPMG and Uber data show AI coding costs spiralling. Freelancer data shows what hiring a fixed-price developer actually costs instead.
2 min read

AI's getting the blame for job cuts – but is it merely a scapegoat?
2 min read

An Honest, Side-by-Side Comparison for Businesses and Freelancers
10 min read

An Honest, Side-by-Side Comparison for Businesses and Freelancers
8 min read