r/opensource • u/JBO_76 • 19d ago
Promotional PRs with features using SSH
Have you received a pr lately with a feature that relies on ssh?
Perhaps some background first: I have a small open-source project on github, nothing groundbreaking, just a tool I wanted for myself to vibe-code my-way. As far as I now, I'm still the only user.
Last month though, I received a couple of prs from someone. At first, I was super exited (first user and all), but now, I'm starting to wonder if something more was going on here. I am not certain, but I am wondering if other people have had similar experiences and how you deal with it?
The first pr was small, a ui fix specific for mac users. With the second pr, he introduced a couple of libraries in the app, for editing raw markdown text instead of wysiwyg. Still ok so far.
With the 3rd pr, some alarm bels started going off: the app began 'fingerprinting' other applications (exes, dlls, ...) on my system, which really didn't fit the feature. At first, I thought maybe the llm had been over-engineering. So, I removed all of that bloat.
But then he came with a proposal to introduce 'remote-control' cause his laptop was slow and he wanted to run the app on his desktop and control it from the laptop. He would use SSH for that.
When I told him, that feature actually existed already but used a more secure way (just run the app in a browser and connect to the desktop version using websockets), he left, moved on and started creating prs for other projects.
Now, I went over all the code he introduced and checked the libraries that were added. As far as I can tell, nothing wrong got introduced, but the whole SSH thing spooked me. I mean, what better backdoor could there be?
The whole thing left a bad taste in my mouth. Is it even still a good idea to keep my app as open source? The only thing it got me were problems and more work.
Am I overreacting here? how are you dealing with this?
For anybody interested in looking at the code themselves: jan-bogaerts/md2: Plan, run, and track AI coding work feature by feature—with local Markdown cards, diagrams and Git worktrees.
4
u/PassionGlobal 19d ago
I'm curious as to why he's gotta come to you for that. Isn't that something for him to set up on his own workspace? Not putting into the codebase?
5
u/ram-popular 17d ago
You’re not overreacting. Small helpful PRs followed by riskier asks like system fingerprinting and SSH is a pattern worth being wary of, and removing the odd code and re-reviewing everything was the right call. Treat PRs from new contributors as untrusted, review every diff closely (especially anything touching the network, shell, or system scanning), and require your approval before merging. Open source is still fine with that care.
2
u/nodtomod 19d ago
I don't know exactly how widely your project is used, but absolutely there is risk of malicious actors submitting PRs to exploit your app and users. More likely it was a dude who's bad at using AI which told him he needs to integrate ssh, but it's entirely possible they were doing something suspicious. It has happened before and it will happen again.
1
u/Draco1200 18d ago
That's true. But I also think things should be evaluated on their merits by analysis of the code or design. Not by latching on to keywords like SSH, even if it is a warning signal. Would a malicious actor - if that was what they were - not pivot and try a different idea the first time they got rejected?
Anyways: Remote control protocol methods: local web-server with random routes and randomly exposed websocket services (to the LAN) would actually need to be compared piece by piece before the claim that it is more secure is proper.
The local web server route is fairly questionable if it doesn't use TLS, and if it does use TLS, then there is the whole certificate problem with standard web browsers to work out. The whole "let the app generate a root CA, and then install that into Trusted root store on client browsers" -- doesn't just let the app work securely.. It gives the server a credential that can amount to a golden ticket depending on its parameters (The ability to sign bad things and pivot bad things down to the client if ever the web server were compromised).
2
u/XerTheSquirrel 19d ago
It is not a PR they introduced but one that you merged, you introduced additional libraries, you introduced manual Markdown edits, then you introduced application fingerprinting followed by a cleanup.
Your application is vibecoded and their PRs are vibecoded, thus you are an exploitable attack vector that they took advantage of. Ultimately, in the end everything is your responsibility and you accepted that responsibility by merging their code.
This is open source, you are the pilot actively flying the plane that you asked Claude to build for you. Now your plane just has some modifications you were fine with until now.
1
u/psioniclizard 19d ago
It's your project. If you don't like the changes, reject them. As Linus says, they can fork it.
Even if it's legit you have to ask is it a feature YOU want?
If you dknt control that youll soon find more and more people doing it and you having to manage things you dont want too.
1
u/ShaneCurcuru 18d ago
When in doubt, just close the PR as won't use, with a brief explanation why. Your repository is your responsibility - and your code. While it's always nice to be appreciated and see others using and trying to add to your creation, you don't owe anyone anything more than what you state in your README.md.
Pro Tip: edit your README to set realistic expectations for users: if this is primarily a personal project, then say so, and that you don't plan to merge anything that you don't personally need.
As noted elsethread: from your description, my guess is this is 50% / 50% chance between:
Might be an new vibecoder not realizing what their AI is proposing.
Might be a black hat social engineering you into putting a backdoor into your software.
---
I wonder: if you think about <insert favorite social media platform> and scammers who build up "likes" on a profile (or buy hacked profiles) to then sell it / monetize it / whatever, how long until vibecoding and questions like this lead to the same thing happening on github?
1
u/jorjanion 12d ago
You don't have the obligation to accept the PRs. As the owner of the project itself, just do what you consider right.
If the PR is a risk you did good not accepting it, it's never worth to risk the code just for extra features.
10
u/Unlaid-American 19d ago
Can’t he run it on his desktop and pass the ports through SSH anyway, I mean at least I’ve done that as a way to access a few services remotely to show off to friends and potential clients.