Slopsquatting
Slopsquatting is the deliberate registration of non-existent software package names that AI coding assistants repeatedly invent, in order to trick developers into installing manipulated dependencies.
Slopsquatting is a supply-chain attack in which attackers register package names that language models routinely hallucinate. Installing the suggestion unchecked pulls malicious code into the project.
Explanation
When suggesting code, language models regularly invent libraries that do not exist — and do so surprisingly consistently: the same question often yields the same fictional name. Attackers collect these recurring hallucinations, register the names in public registries and ship malicious code. Unlike classic typosquatting no typo is required; the attack path runs through trust in the assistant. It is especially effective in agentic setups where a coding agent installs dependencies autonomously. Effective countermeasures are allowlists, lockfiles, registry proxies and a review step that checks every new dependency against known metadata such as age, downloads and repository history.
Marketing Relevance
Marketing and product teams increasingly run their own tools, landing pages and automations with AI assistance. That is exactly where security review is often missing — a single compromised package can leak tracking data, leads or credentials.
Example
An assistant suggests the package "consent-mode-helper" for an analytics script. It sounds plausible but has existed for two days, has no repository link and, once installed, exfiltrates environment variables to a third-party endpoint.
Common Pitfalls
The typical mistake is blind trust in plausible names. Equally risky are agents with install permissions and no approval step: they execute the attack fully automatically with no human inspection.
Origin & History
Researchers documented in 2024 and 2025 that a substantial share of AI-generated package recommendations point to non-existent libraries and that these hallucinations are reproducible. The term slopsquatting emerged in 2025 by analogy with typosquatting. As autonomous coding agents spread, the topic became a standard item in supply-chain security policies and major registry guidance in 2026.
Marketing Use Cases
Allowlist of vetted packages across all AI-assisted development environments.
CI check that scores new dependencies by age, downloads and repository history.
Registry proxy that centrally filters and logs installs from public sources.
Approval gate for coding agents before any new dependency may be installed.
Frequently Asked Questions
How does slopsquatting differ from typosquatting?
Typosquatting relies on user typos, slopsquatting on model hallucinations. The name need not resemble a real package — it only has to be the one the assistant reliably invents. Careful typing therefore no longer protects you.
Are agentic development environments more exposed?
Yes, considerably. When an agent not only suggests but also installs dependencies itself, the human review step disappears entirely. An approval mechanism for installs is therefore among the most important safeguards in agentic setups.
Which review signals are most informative?
Package age, download history, presence of a repository link, number of maintainers and consistency between published code and repository. A very young package with no history that matches the task exactly is a strong warning sign.
Related Services
Go deeper: Agentic AI Hub · Governance & compliance