Slopsquatting: The Hilarious Nightmare of AI Code Hallucinations
Package hallucinations are the comedic villains of code-generating LLMs, introducing “slopsquatting” into the mix. Researchers at three US universities warn that malicious actors can exploit these fictitious package recommendations, leading to software mayhem. With commercial models misfiring 5.2% of the time, it’s a digital Wild West out there!

Hot Take:
Who knew our friendly neighborhood AI could be such a bad influence? LLMs are now hallucinating software packages like they’ve taken a trip down the rabbit hole, making it easier for hackers to pull the ol’ switcheroo on your codebase. Time to start treating these AIs like your eccentric uncle at a family gathering—don’t trust everything they say!
Key Points:
- Researchers identified a phenomenon called “slopsquatting” where LLMs suggest non-existent packages.
- This opens a new avenue for supply chain attacks by publishing malicious packages with those fictitious names.
- Out of 16 popular LLMs, none were free from package hallucinations, with 205,474 unique fictitious names generated.
- Commercial models have a 5.2% hallucination rate, while open source models hit 21.7%.
- Countermeasures include prompt engineering and supervised fine-tuning of LLMs.
Already a member? Log in here