# Slopsquatting for the common good

**URL:** <https://discuss.python.org/t/slopsquatting-for-the-common-good/107226>\
**Category:** Packaging\
**Tags:** security\
**Created:** [May 6, 2026, 10:11pm UTC](https://discuss.python.org/t/slopsquatting-for-the-common-good/107226 "2026-05-06T22:11:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![phildini](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/phildini/32/950_2.png) [@phildini](https://discuss.python.org/u/phildini)\
**Post date:** [May 6, 2026, 10:11pm UTC](https://discuss.python.org/t/slopsquatting-for-the-common-good/107226/1 "2026-05-06T22:11:53Z")

</div>

Hello! This seems extremely timely with the conversation around typosquatting. A security research friend and myself are worried about the security risks in the `mcp-{noun}` package space, and decided to something about it.

A full explanation is available at [Plastic Flowers to Protect the Hive - phildini.dev](https://phildini.dev/slopsquatting-for-good) , and the key Github org is at [SquatGuard · GitHub](https://github.com/squatguard)

I don’t need to be the person responsible for this forever, I’m open to institutional answers here, I’m just trying to mitigate before attackers catch wise.

Thanks!

---

<div class="post-metadata">

**Author:** ![JamesParrott](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/jamesparrott/32/10534_2.png) [@JamesParrott](https://discuss.python.org/u/JamesParrott)\
**Post date:** [May 7, 2026, 8:18am UTC](https://discuss.python.org/t/slopsquatting-for-the-common-good/107226/2 "2026-05-07T08:18:09Z")

</div>

LLMs hallucinating package names is not PyPi’s responsibility, it’s vibe coders’ responsibility

---

<div class="post-metadata">

**Author:** ![encukou](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/encukou/32/2461_2.png) [@encukou](https://discuss.python.org/u/encukou)\
**Post date:** [May 7, 2026, 8:24am UTC](https://discuss.python.org/t/slopsquatting-for-the-common-good/107226/3 "2026-05-07T08:24:42Z")

</div>

You should instead reach out to [admin@pypi.org](mailto:admin@pypi.org) and get these names prohibited. Doing it your way is extra work for you, not to mention that you’re breaking ~~PyPI’s terms of service~~ [PEP 541](https://peps.python.org/pep-0541/#invalid-projects).

(Speaking not as someone affiliated with PyPI, but as someone who [tried “good” mass squatting before](https://github.com/pypi/support/issues/355) and got this answer.)

---

<div class="post-metadata">

**Author:** ![JamesParrott](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/jamesparrott/32/10534_2.png) [@JamesParrott](https://discuss.python.org/u/JamesParrott)\
**Post date:** [May 7, 2026, 9:51am UTC](https://discuss.python.org/t/slopsquatting-for-the-common-good/107226/4 "2026-05-07T09:51:43Z")

</div>

Have you thought about making dep quality tool, in the line of code quality tools like Ruff that just scans whatever deps the agent needs? A simple allow list (or set) and block list, with overrides for user auditted packages, will be fast, even if it calls out on a cache miss, and would probably prevent 99% of typo-attacks.

With slop squatting prefixes, you now having to gatekeep the entire `mcp-*` namespace, and access to any name within it for legitimate projects, needs to be manually granted by yourself. Or by anyone willing to help you, that you deem trustworthy. So as this whole thing was motivated by “what if” theoretical security risks that haven’t happened yet, you’re still open to social engineering.

---

<div class="post-metadata">

**Author:** ![phildini](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/phildini/32/950_2.png) [@phildini](https://discuss.python.org/u/phildini)\
**Post date:** [May 7, 2026, 5:54pm UTC](https://discuss.python.org/t/slopsquatting-for-the-common-good/107226/5 "2026-05-07T17:54:10Z")

</div>

Right now, there are large companies spending millions of dollars convincing people of far less technical skill than the average user of this forum to implement behaviors that we, here, know has huge potential for harm. The point of what we’re trying to do is practice empathetic defense in depth for a new wave of users who are very possibly bumping up against PyPI for the first time, protecting and hopefully educating simultaneously.

One of the things I have loved about the Python community is our desire to be welcoming to newcomers, whatever their background, and to constantly improve the defaults and processes to make Python a place where people can be safe and grow.

Seth and Mike and the rest of the security team have done incredible work improving the security posture and primitives of the Python packaging ecosystem. We’re trying to extend that spirit to this new avenue for Python usage.

---

<div class="post-metadata">

**Author:** ![JamesParrott](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/jamesparrott/32/10534_2.png) [@JamesParrott](https://discuss.python.org/u/JamesParrott)\
**Post date:** [May 7, 2026, 7:29pm UTC](https://discuss.python.org/t/slopsquatting-for-the-common-good/107226/6 "2026-05-07T19:29:24Z")

</div>

That’s all well and good. Very inspiring even. But the same risks are there outside the mcp-\* namespace you’ve unilaterally mostly squatted en masse.

The responsible way to welcome new Python users is by getting the basics right, e.g. saying to them “Look, don’t run random untrusted code from the internet on your local machine. Despite the best efforts of the security team, do not assume PyPi is safe”.

You’re enabling such new users’ bad habits, and doing them a disservice.
