TIMEWELL
Solutions
Free ConsultationContact Us
TIMEWELL

Unleashing organizational potential with AI

ISO/IEC 27001 (ISMS) certification mark (SGS / ISMS-AC)

ISO/IEC 27001:2022 certified Certificate No. JP26/00000255 Scope: Planning, development and operation of SaaS products utilizing AI technology

Services

  • ZEROCK
  • TRAFEED
  • TIMEWELL BASE
  • WARP
  • WARP 1Day
  • WARP NEXT Corporate
  • WARP BASIC
  • WARP ENTRE
  • Alumni Salon
  • WARP for Schools
  • Alumni Ventures
  • FDE
  • AI Consulting
  • EMC GLOBAL

Company

  • About Us
  • Team
  • Why TIMEWELL
  • News
  • Contact
  • Free Consultation

Content

  • Insights
  • Knowledge Base
  • Case Studies
  • Whitepapers
  • Events
  • Solutions
  • AI Readiness Check
  • ROI Calculator

Legal

  • Privacy Policy
  • Manual Creator Extension
  • WARP Terms of Service
  • WARP NEXT School Rules
  • Legal Notice
  • Security
  • Anti-Social Policy
  • ZEROCK Terms of Service
  • TIMEWELL BASE Terms of Service

Newsletter

Get the latest AI and DX insights delivered weekly

Your email will only be used for newsletter delivery.

© 2026 株式会社TIMEWELL All rights reserved.

Contact Us
HomeColumnsAIセキュリティSlopsquatting Has Arrived: 20% of AI-Recommended Packages Don't Exist | The New Front of npm/PyPI Supply Chain Attacks
AIセキュリティ

Slopsquatting Has Arrived: 20% of AI-Recommended Packages Don't Exist | The New Front of npm/PyPI Supply Chain Attacks

Published2026-05-15Updated2026-08-01Ryuta Hamamoto
AI SecuritySupply ChainAI CodingMCPOWASP LLM Top 10WARP SECURITY

“I asked Claude Code for a React state management library. It suggested react-pretty-state. npm install worked fine. Behavior was clean.

Slopsquatting Has Arrived: 20% of AI-Recommended Packages Don't Exist | The New Front of npm/PyPI Supply Chain Attacks
Share

I'm Ryuta Hamamoto from TIMEWELL.

“I asked Claude Code for a React state management library. It suggested react-pretty-state. npm install worked fine. Behavior was clean. Done.” Five minutes later, the developer's local environment was already streaming production database credentials to an attacker's server.

This is not a hypothetical scenario. It is a real instance of Slopsquatting—a new flavor of supply chain attack in which attackers pre-register the “plausible-sounding-but-non-existent” package names that AI hallucinates. The moment a developer trusts the AI and runs npm install, they are pwned.

Trend Micro's 2025 research reports a startling figure: 20% of packages recommended by AI are non-existent. This article covers the mechanics of Slopsquatting, the real-world Cursor / Claude Code / MCP incidents around it, and four defenses development teams can put in place today.

TL;DR

  • Slopsquatting = a supply chain attack where attackers pre-register the hallucinated package names AI assistants produce
  • The statistic: 20% of AI-recommended packages don't exist—a perfect ambush opportunity
  • Cursor (MCPoison / CurXecute), Claude Code (TrustFall), and the broader MCP ecosystem (7,000+ public servers, 150M+ downloads) all have live incident cases
  • Defense is a four-layer stack: signature verification, lockfile discipline, strict Workspace Trust, AIBOM

What is Slopsquatting—in 60 seconds

It is a cousin of Typosquatting.

  • Typosquatting: register reqests to catch developers who mistype requests—targets human typos
  • Slopsquatting: register react-pretty-state because AI keeps hallucinating it—targets AI hallucinations

“Slop” is slang for AI-generated garbage content. Slopsquatting research took off in late 2024; Trend Micro, Lasso Security, and Socket have all published detection cases.

The weight of 20%

A 2025 study evaluated 756,000 package-name samples from multiple LLMs. Roughly 20% were non-existent (no hits on PyPI / npm / RubyGems / Maven).

LLM Hallucination rate
General GPT-class models ~20%
Open-source models (CodeLlama, Mistral, etc.) 30-40%
Top-tier commercial models (GPT-4, Claude) ~5-15%

Structurally, “trust the AI and npm install” has a known probability of stepping on a landmine.

AI Security training, taken seriously

A 2-day intensive course fully aligned with OWASP, NIST, ISO/IEC 42001, and METI. Take it as executives, practitioners, or both.

Book a WARP SECURITY ConsultationView Course Details

How the attack flows

Step 1: Attacker watches for opportunities

Ask multiple AIs the same question many times. Collect the hallucinated package names.

“Recommend five React state management libraries.”
→ AI mentions `react-pretty-state`, `easy-react-store`—non-existent.

Step 2: Pre-register on npm / PyPI / etc.

Prioritize names that AIs repeatedly recommend. Publish a legitimate-looking package plus a backdoor.

Step 3: Developers npm install on AI advice

  • Cursor / Claude Code / Copilot suggests it
  • Developer trusts the recommendation
  • npm install react-pretty-state

Step 4: Compromise

  • postinstall script reads local .env
  • AWS / GCP credentials, API keys, network recon data go to a C2 server
  • Self-update routine evades detection

Real-world incidents around Cursor / Claude Code / MCP

Around AI coding, real-world incidents have piled up:

Cursor MCPoison (CVE-2025-54136, July 2025)

A validation gap in Cursor IDE's MCP server configuration allowed RCE on the developer's machine via a malicious MCP server. CVSS 9.6.

Cursor CurXecute (CVE-2025-54135, August 2025)

Opening a specially crafted repository triggered arbitrary code execution via the .cursor configuration file. Cursor patched quickly.

Claude Code TrustFall (CVE-2025-59536, February 2026)

Opening a malicious repository caused RCE via project configuration, leaking API tokens. Anthropic emphasized strict Workspace Trust.

MCP ecosystem structural risk

As of May 2026, 7,000+ public MCP servers, 150M+ cumulative downloads. STDIO design issues, mcp-remote (CVE-2025-6514), and other problems have led researchers to label MCP “the most likely contemporary supply-chain entry vector.”

Four defenses development teams can deploy today

Defense 1: Mandate package signature verification

# npm
npm install --signature
npm audit signatures

# PyPI (PEP 458/480)
pip install --require-hashes -r requirements.txt
  • Auto-reject unsigned packages in CI/CD
  • Evaluate Sigstore / cosign
  • Allow only internal registries (Verdaccio, Artifactory)

Defense 2: Strict lockfile discipline

  • Always commit package-lock.json / pnpm-lock.yaml / poetry.lock
  • Mandate human review immediately after AI proposes a new package and you run npm install
  • Auto-escalate PRs with large lockfile diffs to security review

Defense 3: Strict Workspace Trust

For Cursor / Claude Code / VSCode-family editors, configure Workspace Trust to distrust by default:

// VSCode settings.json
{
  "security.workspace.trust.enabled": true,
  "security.workspace.trust.startupPrompt": "always",
  "security.workspace.trust.untrustedFiles": "open"
}
  • External repositories always start untrusted
  • Promotion to trusted requires explicit approval
  • Force Workspace Trust on in CI environments

Defense 4: AIBOM (AI Bill of Materials)

Beyond software SBOM, add visibility into AI-specific dependencies:

  • Which LLMs are in use (GPT-4, Claude, Llama, etc.)
  • MCP server list and signatures
  • AI agent / tool permission scope
  • Training data provenance

OWASP Top 10 for LLM 2025 supply chain item lists AIBOM as a recommended control.

A counter-intuitive truth about review costs

The more AI coding spreads, the higher the human review cost should be, not lower.

  • Old workflow: developer googles, evaluates trust, adopts directly
  • AI workflow: AI proposes → developer verifies what the AI proposed → adopts

Teams expecting “3x productivity from AI” must plan to review 3x as many proposals. If you don't bake that into your design, the productivity gains get eaten by incident response costs.

Also readWhat Sakura Internet's Breach Disclosure Teaches Us | Designing for the Day Your Cloud Provider Is Compromised

One question for executives

“Are our teams using AI coding? Then who verifies the AI-suggested packages, and how?”

If your organization cannot answer that, you are queued up for the Slopsquatting ambush.

How WARP SECURITY treats this

TIMEWELL's WARP SECURITY treats Slopsquatting-style supply chain attacks as Scenario 05.

In the Executives course, leaders work through the AI productivity vs. security review cost trade-off in an investment decision workshop.

In the Practitioners course, hands-on:

  • Observe AI hallucinating non-existent packages live
  • Implement signature verification and Workspace Trust
  • Draft an AIBOM template
  • Establish MCP server provenance verification

Where the EU AI Act fits — what starts on 2 August 2026, and what does not

Slopsquatting defense is no longer a purely technical topic; it now connects to the AI governance rulebook. The date to know is 2 August 2026, the general date of application of the EU AI Act (Regulation (EU) 2024/1689) regulatory framework (European Commission). It is not, however, the date the Act applies "in full." The Act phases in, and what starts on 2 August 2026 is principally:

  • the transparency obligations of Chapter IV (Art. 50)
  • Chapter III Section 5 (Art. 40-49: harmonised standards, conformity assessment, CE marking, registration)
  • the European Commission's power to impose fines on providers of general-purpose AI (GPAI) models (Art. 101)

The substantive obligations for high-risk AI start later. Under the Digital Omnibus amending act, Regulation (EU) 2026/1744 (adopted 8 July 2026, published in OJ L 2026/1744 on 24 July 2026, in force from 27 July 2026), Chapter III Sections 1-3 apply to Annex III high-risk systems (Art. 6(2)) from 2 December 2027, and to Annex I high-risk systems (Art. 6(1), i.e. AI embedded in regulated products) from 2 August 2028. The authorised representative duty (Art. 22), value-chain obligations (Art. 25), deployer obligations (Art. 26) and the fundamental rights impact assessment (Art. 27) take effect on those same dates.

On penalties (Art. 99): breaches of the Art. 5 prohibitions carry up to EUR 35 million or 7% of worldwide annual turnover, whichever is higher, and GPAI-related and other breaches up to EUR 15 million or 3%, whichever is higher. Chapter XII itself (Art. 99 and 100) has applied since 2 August 2025; what is added on 2 August 2026 is the Art. 101 Commission fining power described above.

One transitional point: providers of AI systems generating synthetic content that were placed on the market before 2 August 2026 must comply with Art. 50(2) by 2 December 2026, under the newly inserted Art. 111(4).

What all of this governs is transparency on the model provider side. It is no substitute for dependency verification on the user side. The operational question—who checks the provenance of the packages an AI suggests, and how—stays with the development organization. The more the rulebook matures, the stronger the case for controlling the permissions and provenance of AI agents (see also Governed Enterprise AI Agents).

Summary

  • Slopsquatting targets AI-hallucinated packages as a new supply chain attack
  • 20% of AI-recommended packages are non-existent—the attack greenhouse
  • Cursor / Claude Code / MCP ecosystem has live incident cases (2025-2026)
  • Defense: signature verification, lockfile discipline, Workspace Trust, AIBOM—four layers
  • Teams expecting 3x productivity must also process 3x the security verification

AI coding is unquestionably powerful. With power comes responsibility. Slopsquatting picks off teams that abandoned that responsibility, in order.

References

  • Slopsquatting - Trend Micro
  • Cursor MCPoison / CurXecute - Tenable
  • Claude Code TrustFall - Check Point Research
  • MCP Supply Chain Risk - OX Security
  • OWASP Top 10 for LLM Applications 2025

This article was produced with the help of AI. A human verified the primary sources and edited the text before publication.

Read next

Articles that answer the question you are likely to have next.

  1. 1EchoLeak Deep Dive: How CVE-2025-32711 Made Copilot Exfiltrate Secrets | A Complete Guide to Indirect Prompt InjectionEchoLeak Deep Dive: How CVE-2025-32711 Made Copilot Exfiltrate Secrets | A Complete Guide to Indirect Prompt Injection.
  2. 2What Sakura Internet's Breach Disclosure Teaches Us | Designing for the Day Your Cloud Provider Is CompromisedIn August 2026, Sakura Internet disclosed unauthorized access to its hosting environment and later to its sales management system, and on 10 September it published its investigation results. This is not a piece about what the company did wrong. It walks through why provider-side intrusions happen, what legal duties stay with the customer, and how to read the scope of an ISMAP registration before you rely on it.
  3. 3Cyberattacks on the Power Grid: Japan's New Rule for Solar and Battery Equipment, and How to PrepareOn 16 October 2026, Nikkei reported that the targets of cyberattacks on Japan's power grid exceed 100 million points. The government plans to require JC-STAR Level 1 certified products for solar and battery grid connections from April 2027. This article separates the disclosed facts from what could not be confirmed, and sets out what owners, operators and procurement staff can prepare now, based on public documents.

How well do you understand AI?

Take our free 5-minute assessment covering 7 areas from AI comprehension to security awareness.

Book a Free Consultation
Book a Free Consultation45-minute online sessionDownload ResourcesProduct brochures & whitepapers

Share this article if you found it useful

Share

Newsletter

Get the latest AI and DX insights delivered weekly

Your email will only be used for newsletter delivery.

Free download

Building an Internal AI Usage Guideline: A Practical Guide with Model Wording (November 2026)

A practical guide to writing, and keeping alive, your own company rules for generative AI and AI agents. Covers basic policy and roles, the approved-AI list, information classes and how to confirm inference stays in-country, seven basic rules for AI agents, securing development and public services, devices, authentication and impersonation, technology crossing borders (export classification), incident response, and training and pledges. About 21 pages with model wording you can paste into a company rulebook, a 90-day drafting plan, FAQ, checklists and primary-source references. Written around Japanese law and guidance.

Download for free

Make AI security a skill your team actually has

WARP SECURITY is a two-day intensive aligned with OWASP, NIST, ISO/IEC 42001, and METI guidelines. Executives and practitioners can attend separately.

Contact UsView WARP SECURITY Details

Related Articles

EchoLeak Deep Dive: How CVE-2025-32711 Made Copilot Exfiltrate Secrets | A Complete Guide to Indirect Prompt Injection

EchoLeak Deep Dive: How CVE-2025-32711 Made Copilot Exfiltrate Secrets | A Complete Guide to Indirect Prompt Injection

EchoLeak Deep Dive: How CVE-2025-32711 Made Copilot Exfiltrate Secrets | A Complete Guide to Indirect Prompt Injection.

2026-05-15
What Sakura Internet's Breach Disclosure Teaches Us | Designing for the Day Your Cloud Provider Is Compromised

What Sakura Internet's Breach Disclosure Teaches Us | Designing for the Day Your Cloud Provider Is Compromised

In August 2026, Sakura Internet disclosed unauthorized access to its hosting environment and later to its sales management system, and on 10 September it published its investigation results. This is not a piece about what the company did wrong. It walks through why provider-side intrusions happen, what legal duties stay with the customer, and how to read the scope of an ISMAP registration before you rely on it.

2026-08-19
Cyberattacks on the Power Grid: Japan's New Rule for Solar and Battery Equipment, and How to Prepare

Cyberattacks on the Power Grid: Japan's New Rule for Solar and Battery Equipment, and How to Prepare

On 16 October 2026, Nikkei reported that the targets of cyberattacks on Japan's power grid exceed 100 million points. The government plans to require JC-STAR Level 1 certified products for solar and battery grid connections from April 2027. This article separates the disclosed facts from what could not be confirmed, and sets out what owners, operators and procurement staff can prepare now, based on public documents.

2026-10-21
Does Blocking Foreign Traffic Work? What Japan's Residential Proxy Data Shows

Does Blocking Foreign Traffic Work? What Japan's Residential Proxy Data Shows

Country-level blocking cuts down automated scans and DDoS noise, but Japanese authorities now state plainly that attackers routing through hijacked home devices can reach servers that restrict overseas access. This piece looks at where attacks appear to come from, where geo-blocking stops working, why allow lists beat deny lists for admin panels, and how to keep your own devices from becoming someone else's attack exit.

2026-10-04
What the Digital Agency's GSS Breach Teaches Companies About VPN Patching

What the Digital Agency's GSS Breach Teaches Companies About VPN Patching

On 11 September 2026, Japan's Digital Agency disclosed unauthorized access to GSS, the shared work environment for government staff. The entry point was a publicly known VPN vulnerability rated "Medium". This piece walks through the official disclosure, why severity-ordered patching did not arrive in time, why VPN appliances have become the most common way in, why zero trust did not prevent it, and what any organisation can change this week. It also reflects developments up to 6 November 2026.

2026-09-11
Amodei's "We Must Pace the Frontier," Explained, With My View From Japan

Amodei's "We Must Pace the Frontier," Explained, With My View From Japan

On September 12, 2026, Anthropic CEO Dario Amodei published "We Must Pace the Frontier," arguing that the industry should deliberately slow the rate of AI capability gains. Within hours, Sam Altman said OpenAI "will do the same" on embedded evaluators and Elon Musk posted "Dario is right." This article walks through the essay section by section, explains the two triggers behind it with primary sources, recursive self-improvement and the incident in which roughly 1,200 agents coordinated on an unsanctioned message board and compromised Hugging Face, reads the three-step plan and its geopolitical caveat, and closes with my own view from the standpoint of a Japanese company. It also reflects developments through 6 November 2026, including the September 24 U.S.–China summit and Anthropic's October 15 update on independent evaluators.

2026-09-13