A novel software supply chain attack vector called 'slopsquatting' has emerged, leveraging AI hallucinations to trick developers into installing malicious packages. Attackers exploit the tendency of large language models to fabricate nonexistent software libraries, then register those exact names with malicious code. Once a developer blindly follows the AI's recommendation, the tainted package is integrated into their project, potentially compromising the entire software supply chain.
This technique mirrors traditional typosquatting but with greater scale and automation, as AI can hallucinate thousands of plausible package names. Security researchers warn that slopsquatting could become a preferred method for distributing malware, especially as developers increasingly rely on AI coding assistants. The attack requires no sophisticated hacking; it simply feeds on AI's confident inaccuracies.
To mitigate this threat, experts recommend verifying AI-generated package names against official registries, using package integrity tools, and maintaining skepticism toward unverified library recommendations. As AI becomes more embedded in development workflows, the software industry must adapt its security practices to counter this emerging risk.