“Slopsquatting” attacks are using AI-hallucinated names resembling popular libraries to spread malware


- GenAI can hallucinate open source package names, experts warn
- It doesn’t always hallucinate a different name
- Cybercriminals can use the names to register malware
Security researchers have warned of a new method by which Generative AI (GenAI) can be abused in cybercrime, known as ‘slopsquatting’.
It starts with the fact that different GenAI tools, such as Chat-GPT, Copilot, and others, hallucinate. In the context of AI, “hallucination” is when the AI simply makes things up. It can make up a quote that a person never said, an event that never happened, or – in software development – an open-source software package that was never created.
Now, according to Sarah Gooding from Socket, many software developers rely heavily on GenAI when writing code. The tool could write the lines itself, or it could suggest the developer different packages to download and include in the product.
Hallucinating malware
The report adds the AI doesn’t always hallucinate a different name or a different package – some things repeat.
“When re-running the same hallucination-triggering prompt ten times, 43% of hallucinated packages were repeated every time, while 39% never reappeared at all,” it says.
“Overall, 58% of hallucinated packages were repeated more than once across ten runs, indicating that a majority of hallucinations are not just random noise, but repeatable artifacts of how the models respond to certain prompts.”
This is purely theoretical at this point, but apparently, cybercriminals could map out the different packages AI is hallucinating and – register them on open-source platforms.
Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!
Therefore, when a developer gets a suggestion and visits GitHub, PyPI, or similar – they will find the package and happily install it, without knowing that it’s malicious.
Luckily enough, there are no confirmed cases of slopsquatting in the wild at press time, but it’s safe to say it is only a matter of time. Given that the hallucinated names can be mapped out, we can assume security researchers will discover them eventually.
The best way to protect against these attacks is to be careful when accepting suggestions from anyone, living or otherwise.
You might also like
GenAI can hallucinate open source package names, experts warn It doesn’t always hallucinate a different name Cybercriminals can use the names to register malware Security researchers have warned of a new method by which Generative AI (GenAI) can be abused in cybercrime, known as ‘slopsquatting’. It starts with the fact…
Recent Posts
- “Slopsquatting” attacks are using AI-hallucinated names resembling popular libraries to spread malware
- Apple’s complicated plan to improve its AI while protecting privacy
- Google Cloud has big plans to take the pain out of adopting AI agents in your business
- The best smart rings for tracking sleep and health
- Ubisoft just open-sourced its colorblind assistance tool Chroma
Archives
- April 2025
- March 2025
- February 2025
- January 2025
- December 2024
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- September 2018
- October 2017
- December 2011
- August 2010