# Slopsquatting / package hallucination, defined with a sourced example

GLOSSARY, read 12 Nov 2026

**The short answer.** Package hallucination is when a model suggests a software package name that does not exist. Wikipedia defines slopsquatting as registering a non-existent package name that a large language model may hallucinate, and notes that researcher Bar Lanyado saw a model invent the name huggingface-cli in 2023.

## Definition

Package hallucination is when a model suggests a software package name that does not exist. Slopsquatting is an attacker registering that name so a developer or agent who installs it gets malicious code. Pin dependencies and check that a suggested package is real and established before install.

## Example from a real source

**Example.** Wikipedia defines slopsquatting as registering a non-existent package name that a large language model may hallucinate, and notes that researcher Bar Lanyado saw a model invent the name huggingface-cli in 2023.

## Related terms

- [Credential exposure](/glossary/credential-exposure/): Credential exposure is when tokens, keys or passwords become readable to an agent, a tool or an attacker.
- [Secrets in context](/glossary/secrets-in-context/): Secrets in context are credentials or private data that have been loaded into an agent's context window.
- [Tool poisoning](/glossary/tool-poisoning/): Tool poisoning is hiding instructions in an MCP tool's description or metadata.

## Where to read more

- [The Agent Surface Map](/agent-surface-map/)
- [The Action Control Matrix](/action-control-matrix/)
- [All glossary terms](/glossary/)

## Sources

- en.wikipedia.org/wiki/Slopsquatting: https://en.wikipedia.org/wiki/Slopsquatting (read 12 Nov 2026)

Last reviewed 12 Nov 2026. Canonical: https://aiendpointsecurityranked.com/glossary/slopsquatting-package-hallucination/
