r/Python • u/Obvious_Gap_5768 • Apr 07 '26
Discussion I published my first PyPI package few ago. Copycat packages appeared claiming to "outperform" it
I launched repowise on PyPI few days ago. It's a tool that generates and maintains structured wikis for codebases among other things.
This morning I searched for my package on PyPI and found three new packages all uploaded around the same time, all with the exact same description:
"Codebase intelligence that thinks ahead - outperforms repowise on every dimension"
They literally name my package in their description. All three appeared within hours of each other.
I haven't even checked what's inside them yet, but the coordinated timing and identical copy is sketchy at best, malicious at worst.
Has anyone else dealt with this kind of targeted squatting/spam on PyPI? Is there anything I can do?
Edit: Turns out these aren't just empty spam packages, they actually forked my AGPL-3.0 licensed code, used an LLM to fix a couple of minor issues, and republished under new names without any attribution or license compliance. So on top of the PyPI squatting, they're also violating the AGPL.
260
u/FoeHammer99099 Apr 07 '26
You can contact legal@python.org to report packages that infringe on your intellectual property. GitHub has their own DMCA takedown system.
Your complaints should be specific and factual. Are you the only author of the original code? How much of the infringing code is identical to yours? Include the license that you released your code under, and specify which terms of that license were not followed.
If there's a person on the other side, you can probably get pretty far by saber-rattling and threatening to do this if they don't comply with the license.
https://peps.python.org/pep-0541/#intellectual-property-policy
https://docs.github.com/en/site-policy/content-removal-policies/guide-to-submitting-a-dmca-takedown-notice#complaints-about-anti-circumvention-technology
198
u/sheriffSnoosel Apr 07 '26
Sus — bots hijacking pypi releases seems par for the course though
130
u/Smok3dSalmon Apr 07 '26
Sounds like a future malware honeypot. I’m going to check out repowise now
44
u/WildCard65 Apr 07 '26
I looked a bit into all 3 packages, they are from the same person linked to the same github repository.
48
u/Independent-Sir3234 Apr 07 '26
This happens to more packages than you'd think, usually within days of hitting some visibility threshold. I've seen this exact pattern twice — once with a small scraping library I put up, once with a coworker's CLI tool. PyPI's security team is surprisingly responsive if you report it through their malware form, got a resolution within 48 hours both times.
21
u/alex1033 Apr 07 '26
Can be malware.
I'll check repowise. Sounds interesting. Never heard before.
8
u/oclafloptson Apr 07 '26
Why it's so important to make triple sure you're using the correct package. There's no telling how compromised the copycats could be
6
u/riricide Apr 07 '26
Real work is getting outnumbered by these LLM-powered spambots. Sorry you're having to deal with this. Maybe once you figure out the process of mitigation make a blog or post so others have a resource to look to when this happens to them. Also, would you recommend a different license type given this situation - or do you think your current license protects you well enough? Curious because I work in open software and generally don't pay attention to the licensing so much -- but if it's going to be co-opted by malware then it makes sense to think about this properly.
17
u/ZCEyPFOYr0MWyHDQJZO4 Apr 07 '26
Same thing happens with books.
9
u/paul_h Apr 07 '26
Did the back create all your git history with their ID for committer?
2
u/iamevpo Apr 07 '26
In Read me you mention symbols, are they keywords and... any words, or tokens or literals?
And sorry about the copycats.
1
u/YirosMan2026 Apr 07 '26
This is kinda off topic but will be very helpful for our project! Will definitely take a look at it! - Yiros Man
5
u/UseMoreBandwith Apr 07 '26
malware?
2
u/Cool-Nefariousness76 Apr 08 '26
I had a similar experience around one year ago, but with some differences.
I published my package sqlmodelgen and not so long after that there was package named sqlmodelgenerator (supersimilar name), probably AI generated (docs full of emojis and full of dependencies), without the link to the repo.
2
u/AI_Tonic Ignoring PEP 8 Apr 07 '26
the good news is that it's probably originating from github , the bad news is it's still spam
1
u/andrewprograms Apr 08 '26
I got an idea for your next open source contribution
1
u/Emergency-Rough-6372 Apr 11 '26
hello, i am new to open source and licensing and was lookinh for a license that favour what i want but wasn't finding something fully covering all the point, i was suggested to make a custom license for this.
so i wanted to know is idea of making a custom license good? or should i compramise in some place and go with a official license instead
here what i want to cover in a license for my project that i am working on before releasing it
"Here is a concise summary of the intended license terms:
"
i would appreciate any and all suggestion over this.
1
u/paperlantern-ai Apr 14 '26
You can report these directly to PyPI through their support page - they've been pretty responsive about taking down packages that violate licenses or impersonate other projects. Include the AGPL violation details since that gives them a clear-cut reason to act. Also worth filing a DMCA takedown if they forked your code without attribution. The fact that they named your package in their own description makes this a pretty open and shut case.
1
u/__secondary__ Apr 23 '26
I recently encountered a similar situation where someone forked my project (licensed under the MIT license; it’s a bidirectional anonymization project for chatbots) and made a huge number of commits via LLM in a short period of time. I’m not sure if I should be concerned about anything?
He then forked my repo to create this project: https://github.com/jamon8888/hacienda-ghost
1
u/anonym-Creme6806 May 03 '26
Congrats man, how long did you work?
1
u/xander_abhishekh May 07 '26
This is becoming a real pattern across package ecosystems, not just PyPI. The core issue is that package registries treat metadata (descriptions, names) as unverified user input. There's no integrity checking between what a package claims to be and what it actually contains.
What worked for me when publishing Python packages, pin a hash of your package metadata on first release and document it. If someone forks and republishes, the hash mismatch is easy evidence for a takedown request. Not foolproof but it speeds up the process significantly.
The AGPL angle is your strongest lever here. Unlike MIT where they could do this legally, AGPL non-compliance is a clear-cut violation that PyPI and GitHub both act on quickly. Document the original commit timestamps vs their fork timestamps- that's usually all you need.
The scarier version of this is when copycat packages aren't just clones but actually inject malicious code into the dependencies. Same name pattern, same description, but with a backdoor in setup.py. Always verify the package author and source repo before pip installing anything you haven't seen before.
1
u/No-Caregiver-5817 May 07 '26
Bro I don't know how to learn python help me
1
u/pm_ds May 19 '26
All these packages are deleted , it was not intented to make it go to market those are mostly for learning and experimenting with the code version with claude code , sorry for in sorry for the inconvenience. most of them are generated by claude code testing .
0
u/schech425 Apr 07 '26
.
-39
u/ElderberryPrevious45 Apr 07 '26
This kind of hacking might be difficult to circumvent otherwise than you should take this possibility into account already in design. Meaning, if you have any (shorter perspectives?) profits in your mind.
0
u/[deleted] Apr 07 '26
[deleted] — view deleted comment
0
u/[deleted] Apr 07 '26
[deleted] — view deleted comment
15
u/[deleted] Apr 07 '26
[removed] — view removed comment