Skip to main content
Mallory
← Back to News
package-repository-poisoningai-enabled-threat-activitydependency-confusion-typosquatbuild-pipeline-compromise

LLM Package Hallucinations Fuel Slopsquatting Supply-Chain Attacks

Supply Chain Risk · 2 sources · Updated 5mo ago · First seen Jul 16, 2026

LLM Package Hallucinations Fuel Slopsquatting Supply-Chain Attacks

Researchers and security vendors warned that slopsquatting has evolved into a practical software supply-chain threat as code-generating LLMs repeatedly recommend nonexistent package names that attackers can register and weaponize. An arXiv study, We Have a Package for You!, found that 19.7% of packages suggested by tested code-generation models did not exist, reinforcing earlier demonstrations that hallucinated names are often stable enough to be predicted and abused rather than being purely random errors.

The threat has expanded from misleading human developers to compromising AI coding agents and automated workflows. Reporting cited the spread of the hallucinated npm package react-codeshift across 237 repositories, continued downloads of a malicious package named unused-imports, and a newer HalluSquatting technique that combines hallucinated resources with prompt injection to steer AI-assisted development tools into fetching and executing attacker-controlled code.

Why it matters

Impact assessment

Slopsquatting is a practical software supply-chain exposure affecting organizations that use AI-assisted coding, code-generation copilots, or autonomous coding agents in development workflows. The highest-risk populations are software engineering teams, CI/CD environments, and enterprises consuming npm and PyPI packages based on LLM-generated recommendations, especially where package installation is automated.

The impact can range from developer workstation compromise to CI/CD pipeline abuse and downstream software supply-chain contamination if attacker-registered packages are installed and executed. Exposure is potentially widespread rather than narrowly targeted because hallucinated package names recur across prompts and repositories, and there are reported real-world cases of package adoption and continued downloads.

Supporting details

  • Affected environments:
    • AI-assisted software development workflows
    • Autonomous or semi-autonomous coding agents
    • npm and Python package consumers
    • CI/CD systems that automatically resolve or install dependencies
  • Severity drivers:
    • Potential remote code execution through malicious package install scripts or imported code
    • Risk of credential theft, source-code theft, build tampering, and lateral movement from developer or build environments
    • Reputational and operational impact if poisoned dependencies are shipped downstream
  • Scope indicators:
    • 19.7% of packages suggested by tested code-generation models did not exist in the cited study
    • More than 205,000 unique hallucinated package names were logged across tested models
    • 43% of hallucinated package names reportedly recurred in every run across repeated identical prompts
  • Known in-the-wild indicators:
    • Hallucinated npm package react-codeshift appeared across 237 repositories
    • Malicious package unused-imports continued to receive about 233 weekly downloads in early 2026
    • Earlier demonstration package huggingface-cli received more than 30,000 downloads within three months after publication as an empty package proof of concept
Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

6 events · Jun 12, 2024 – Jul 10, 2026
  1. Jul 10, 20265mo ago

    HalluSquatting technique combines hallucinations with prompt injection

    In July 2026, researchers described "HalluSquatting," a technique that combines hallucinated resources with prompt injection to hijack AI coding agents into executing attacker-controlled code.

    Slopsquatting Attacks: AI's New Supply Chain Threat | Xygeni
  2. Jul 10, 20265mo ago

    Malicious package "unused-imports" continues to be downloaded

    In 2026, the malicious package named "unused-imports" was still receiving downloads, showing that attackers were successfully weaponizing hallucinated package names.

    Slopsquatting Attacks: AI's New Supply Chain Threat | Xygeni
  3. Jul 10, 20265mo ago

    Hallucinated npm package name spreads across 237 repositories

    In 2026, the hallucinated npm package name "react-codeshift" was found propagated across 237 repositories, indicating the threat had expanded from human developers to AI coding agents.

    Slopsquatting Attacks: AI's New Supply Chain Threat | Xygeni
  4. Jul 10, 20265mo ago

    USENIX study finds 19.7% of recommended packages did not exist

    In 2025, a USENIX study reported that 19.7% of packages recommended by the tested code-generation models did not exist, providing quantitative evidence that slopsquatting had become a measurable threat.

    Slopsquatting Attacks: AI's New Supply Chain Threat | Xygeni
  5. Jul 10, 20265mo ago

    Bar Lanyado demonstrates package hallucination risk

    In 2023, Bar Lanyado demonstrated the slopsquatting concept using the nonexistent package name "huggingface-cli," showing how hallucinated dependency names could create a software supply-chain risk.

    Slopsquatting Attacks: AI's New Supply Chain Threat | Xygeni
  6. Jun 12, 20242y ago

    Academic study analyzes package hallucinations by code LLMs

    An academic paper titled "We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMs" was published on arXiv, documenting package hallucination behavior in code-generating models.

    We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMs
Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.