Join our Newsletter — 33% off our NHI Course

Slopsquatting and AI package hallucinations: are controls keeping up?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 16497
Topic starter  

TL;DR: AI models are now hallucinating package names with enough consistency to turn slopsquatting from a nuisance into a scalable supply chain attack, with 19.7% of recommended packages in a USENIX study found not to exist and 43% recurring on every identical prompt run, according to Xygeni. The real governance gap is that human review cannot protect workflows where agents can install dependencies before anyone verifies origin or intent.

Editorial analysis by NHI Mgmt Group, based on content published by Xygeni: “Slopsquatting evolution: From AI Curiosity to Agent RCE”.

Key questions

Q: What breaks when AI assistants recommend packages that do not exist?

A: The trust model breaks because existence in a registry is no longer a reliable proxy for legitimacy.

Q: Why do repeated hallucinated dependency names create more risk than isolated mistakes?

A: Because repetition turns a model error into a predictable target.

Q: How can security teams tell whether AI-generated package suggestions are being trusted too much?

A: Look for invented dependency names in code, tickets, build scripts, and chat threads, then trace whether they were ever validated against a registry or approved source.

Practitioner guidance

  • Block unverified dependency installs by policy Require package existence, publisher identity, and provenance checks before any AI-suggested dependency can be installed in developer or agent workflows.
  • Constrain autonomous install privileges Limit coding agents and build assistants so they cannot add or fetch new packages without explicit approval gates tied to the repository or environment.
  • Track recurring hallucinated package names Log suggested dependency names from assistants and agents, then flag names that recur across prompts, repositories, or runs as likely attack candidates.

Bottom line: Slopsquatting is a supply chain trust problem created by repeatable AI package hallucinations, not a simple developer typo issue.

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 5 months ago
Posts: 16988
 

Slopsquatting is now a software supply chain governance issue, not a developer typo problem. The article shows that the attack surface starts with model output but becomes operational when install tooling trusts that output. That changes the control point from code review to dependency verification, which is a materially different governance problem. Practitioners should treat AI-suggested package names as a new trust boundary.

A question worth separating out:

Q: How should teams govern AI agents that can install dependencies?

A: Treat dependency installation as a privileged action that requires scoped authority, logging, and explicit approval for new packages. The agent should not inherit broad secrets or unrestricted registry access just because it can generate code. If the workflow must install, do it in a constrained environment with secret minimisation and dependency review before merge.

👉 Read our full editorial: Slopsquatting is becoming an autonomous supply chain risk



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.