Re:Over 100k Infected Repos Found on GitHub
by mgii on Thursday February 29, 2024 @08:41AM
(#39549146)
I can approve this from our findings (author of this research): our system lists around 100 instances of the pattern you've mentioned every week, and around %3 are malicious. It would be great seeing it coming to an end.
Re:Over 100k Infected Repos Found on GitHub
by justinclift on Thursday February 29, 2024 @08:56AM
(#39549318)
Yeah. Security aware people have complained about this pattern forever, but then places like macOS Homebrew (brew.sh) just knowingly do it anyway. :(
Re:Over 100k Infected Repos Found on GitHub
by yencabulator on Thursday February 29, 2024 @09:10AM
(#39549473)
Unfortunately `npm i` has the same power.
`go get` is the only common dependency downloader I am currently aware of where hostile code doesn't run at install or build time.
I think we need better tooling for working in sandboxes, to at least compartmentalize the explosion. ChromeOS's "virtual machines can open Wayland windows on the main desktop" trick is neat, but the code needed to do that was less than clean or reusable when I last looked.
Re:Over 100k Infected Repos Found on GitHub
by richbell on Thursday February 29, 2024 @11:44AM
(#39551776)
> `go get` is the only common dependency downloader I am currently aware of where hostile code doesn't run at install or build time.
Maven is the same way, AFAIK.
Re:Over 100k Infected Repos Found on GitHub
by remram on Thursday February 29, 2024 @10:02AM
(#39550216)
What's the point? You're going to ship that code to your users, or run it against your production database. If you think it might be malicious, protecting the dev laptop shouldn't be the priority.
Re:Over 100k Infected Repos Found on GitHub
by yencabulator on Thursday February 29, 2024 @10:45AM
(#39550894)
I run production services that don't even talk to a database, or that have minimal read-only access. And even for the ones with a lot of write access, having the database stolen/nuked (to be restored from backup) is quite different from handing over all of my browser cookies, or my gcloud/aws/k8s ambient authority credentials that are just sitting in a file (seriously, why is big cloud client security worse than SSH).
Re:Over 100k Infected Repos Found on GitHub
by remram on Thursday February 29, 2024 @11:10AM
(#39551249)
Fair enough, some organizations might have devs with limited access, but you're right I can see a lot of situations where the dev laptop has strictly larger blast area.
Re:Over 100k Infected Repos Found on GitHub
by vundercind on Thursday February 29, 2024 @02:51PM
(#39554140)
It’s 0% worse than “add and trust our repository for your distro”, or “download this .deb/.rpm/installer”, or (worst of all) “do one of the above, but trusting a 3rd party who packaged this program for you, rather than the publisher”, which are the realistic alternatives.
Re:Over 100k Infected Repos Found on GitHub
by ivanjermakov on Thursday February 29, 2024 @10:18PM
(#39558181)
Pro tip: use example.com for such examples, because it's reserved specifically for that: https://www.rfc-editor.org/rfc/rfc2606.html#section-3.
Re:Over 100k Infected Repos Found on GitHub
by justinclift on Friday March 01, 2024 @11:08AM
(#39563101)
Good point, I just totally forgot. :)
aka the whole "just run 'curl https://somesite/install.sh' | sudo sh" to install our software
Seems like it'd go very hand in hand with this infected stuff mentioned in the article.